diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-26 12:55:34 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-26 12:55:34 +0100 |
commit | 734ebfad68ab5a93055c002eb073c6a694ef4436 (patch) | |
tree | 872f96fc1e94c844628c0696a5b82448b6ce7f59 /same-android/res | |
parent | 402efe234b8e2fefa6ea5f135d27c5575ade34d9 (diff) |
Begin support for variables on Android.
Diffstat (limited to 'same-android/res')
-rw-r--r-- | same-android/res/layout/variable_test.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/same-android/res/layout/variable_test.xml b/same-android/res/layout/variable_test.xml new file mode 100644 index 0000000..4570577 --- /dev/null +++ b/same-android/res/layout/variable_test.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView + android:id="@+id/variable_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <EditText + android:id="@+id/set_variable_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" > + <requestFocus /> + </EditText> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0.18" + android:text="Set" + android:onClick="setVariable" /> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file |