aboutsummaryrefslogtreecommitdiffstats
path: root/layoutopt/samples/inefficient_weight.xml
blob: 785350a9fc8b3eeac7990465d8b654bcb1451125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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
	    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="0dip"
		 	android:layout_weight="1.0" />

	</LinearLayout>

</LinearLayout>