aboutsummaryrefslogtreecommitdiffstats
path: root/layoutopt/samples/inefficient_weight.xml
diff options
context:
space:
mode:
Diffstat (limited to 'layoutopt/samples/inefficient_weight.xml')
-rw-r--r--layoutopt/samples/inefficient_weight.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/layoutopt/samples/inefficient_weight.xml b/layoutopt/samples/inefficient_weight.xml
new file mode 100644
index 0000000..c687ed8
--- /dev/null
+++ b/layoutopt/samples/inefficient_weight.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <Button
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0" />
+
+ <LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+
+ android:orientation="vertical">
+
+ <Button
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0" />
+
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file