summaryrefslogtreecommitdiff
path: root/same-android/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'same-android/res/layout')
-rw-r--r--same-android/res/layout/variable_test.xml34
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