main.xml<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="
http://schemas.android.com/apk/res/android" android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@string/backgroundColor">
<EditText android:id="@+id/EditText01" android:layout_height="wrap_content" android:text="Input text" android:editable="true" android:layout_width="fill_parent"></EditText>
<RadioGroup android:id="@+id/RadioGroup01" android:layout_width="wrap_content" android:layout_height="wrap_content">
<RadioButton android:id="@+id/RadioButton01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/str1"></RadioButton>
<RadioButton android:id="@+id/RadioButton02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/str2"></RadioButton>
</RadioGroup>
<Button android:text="Hit me" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="@string/buttonHandler"></Button>
</LinearLayout>
strings.xml<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="
http://schemas.android.com/apk/res/android"> <string name="hello">Hello World, TheTest!</string>
<string name="app_name">Test project name</string>
<string name="buttonHandler">myClickHandler</string>
<string name="str1">String One</string><string name="str2">The String two</string>
<string name="StringValueVar">The string value</string>
<string name="backgroundColor">#A5A5DA</string>
</resources>
TheTest.javapackage ua.fog.test;
import android.app.Activity;
import android.os.Bundle;
public class TheTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}