|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | android:layout_width="match_parent" |
4 | | - android:layout_height="match_parent"> |
| 4 | + android:layout_height="match_parent" |
| 5 | + android:orientation="vertical"> |
5 | 6 |
|
6 | | - <LinearLayout |
| 7 | + <android.support.v7.widget.Toolbar |
| 8 | + android:id="@+id/toolbar" |
7 | 9 | android:layout_width="match_parent" |
8 | | - android:layout_height="wrap_content" |
9 | | - android:orientation="vertical"> |
| 10 | + android:layout_height="?attr/actionBarSize" |
| 11 | + android:background="?attr/colorPrimary" /> |
10 | 12 |
|
11 | | - <com.commit451.adapterlayout.AdapterLinearLayout |
12 | | - android:id="@+id/adapter_layout" |
13 | | - android:layout_width="wrap_content" |
14 | | - android:layout_height="wrap_content" |
15 | | - android:orientation="vertical"/> |
| 13 | + <ScrollView |
| 14 | + android:layout_width="match_parent" |
| 15 | + android:layout_height="wrap_content"> |
16 | 16 |
|
17 | | - <com.wefika.flowlayout.FlowLayout |
| 17 | + <LinearLayout |
18 | 18 | android:layout_width="match_parent" |
19 | | - android:layout_height="wrap_content"> |
20 | | - |
21 | | - <Button |
22 | | - android:id="@+id/add_cheese" |
23 | | - android:layout_width="wrap_content" |
24 | | - android:layout_height="wrap_content" |
25 | | - android:text="Add" /> |
26 | | - |
27 | | - <Button |
28 | | - android:id="@+id/remove_cheese" |
29 | | - android:layout_width="wrap_content" |
30 | | - android:layout_height="wrap_content" |
31 | | - android:text="Remove Last" /> |
32 | | - |
33 | | - <Button |
34 | | - android:id="@+id/remove_middle" |
35 | | - android:layout_width="wrap_content" |
36 | | - android:layout_height="wrap_content" |
37 | | - android:text="Remove Middle" /> |
| 19 | + android:layout_height="wrap_content" |
| 20 | + android:orientation="vertical"> |
38 | 21 |
|
39 | | - <Button |
40 | | - android:id="@+id/new_adapter" |
| 22 | + <com.commit451.adapterlayout.AdapterLinearLayout |
| 23 | + android:id="@+id/adapter_layout" |
41 | 24 | android:layout_width="wrap_content" |
42 | 25 | android:layout_height="wrap_content" |
43 | | - android:text="New Adapter" /> |
44 | | - |
45 | | - </com.wefika.flowlayout.FlowLayout> |
46 | | - </LinearLayout> |
47 | | - |
48 | | -</ScrollView> |
| 26 | + android:orientation="vertical" /> |
| 27 | + |
| 28 | + <com.wefika.flowlayout.FlowLayout |
| 29 | + android:layout_width="match_parent" |
| 30 | + android:layout_height="wrap_content"> |
| 31 | + |
| 32 | + <Button |
| 33 | + android:id="@+id/add_cheese" |
| 34 | + android:layout_width="wrap_content" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:text="Add" /> |
| 37 | + |
| 38 | + <Button |
| 39 | + android:id="@+id/remove_cheese" |
| 40 | + android:layout_width="wrap_content" |
| 41 | + android:layout_height="wrap_content" |
| 42 | + android:text="Remove Last" /> |
| 43 | + |
| 44 | + <Button |
| 45 | + android:id="@+id/remove_middle" |
| 46 | + android:layout_width="wrap_content" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:text="Remove Middle" /> |
| 49 | + |
| 50 | + <Button |
| 51 | + android:id="@+id/new_adapter" |
| 52 | + android:layout_width="wrap_content" |
| 53 | + android:layout_height="wrap_content" |
| 54 | + android:text="New Adapter" /> |
| 55 | + |
| 56 | + </com.wefika.flowlayout.FlowLayout> |
| 57 | + </LinearLayout> |
| 58 | + </ScrollView> |
| 59 | + |
| 60 | +</LinearLayout> |
0 commit comments