chiark / gitweb /
Wow, is that a proper Android build system?
[tripe-android] / res / layout / toy.xml
diff --git a/res/layout/toy.xml b/res/layout/toy.xml
new file mode 100644 (file)
index 0000000..7929429
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent">
+  <TextView
+      android:text="@string/toy_greeting"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_centerInParent="true"/>
+  <Button
+      android:text="@string/toy_ok"
+      android:layout_width="wrap_content"
+      android:layout_height="wrap_content"
+      android:layout_alignParentRight="true"
+      android:layout_alignParentBottom="true"
+      android:onClick="clickOk"/>
+</RelativeLayout>