-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathB_LINEAR_LAYOUT_02_WEIGHT_03.xml
40 lines (34 loc) · 1.11 KB
/
B_LINEAR_LAYOUT_02_WEIGHT_03.xml
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.levent.learning.layout_examples.MainActivity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:background="#0000FF"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Left"
android:textColor="#FF0000"
android:background="#00DDDD"
android:layout_weight="1"
/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Center"
android:textColor="#FF0000"
android:background="#DDFF00"
android:layout_weight="2"
/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Right"
android:textColor="#FF0000"
android:background="#00DDDD"
android:layout_weight="2"
/>
</LinearLayout>