|
2 | 2 | xmlns:tools="http://schemas.android.com/tools" |
3 | 3 | android:layout_width="match_parent" |
4 | 4 | android:layout_height="match_parent" |
| 5 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 6 | + |
5 | 7 | android:paddingBottom="@dimen/activity_vertical_margin" |
6 | 8 | tools:context=".MyActivity" |
7 | 9 | > |
8 | 10 |
|
9 | | - <View |
10 | | - android:id="@+id/holder_view" |
| 11 | + <android.support.v7.widget.Toolbar |
| 12 | + android:id="@+id/toolbar" |
| 13 | + android:layout_height="wrap_content" |
11 | 14 | android:layout_width="match_parent" |
12 | | - android:layout_height="?android:attr/actionBarSize" |
13 | | - android:viewName="holder2" |
14 | | - android:background="?android:colorPrimary"/> |
15 | | - |
16 | | - <Button |
17 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
18 | | - android:id="@+id/fab_button" |
19 | | - android:layout_width="@dimen/fab_size" |
20 | | - android:viewName="fab" |
21 | | - android:layout_height="@dimen/fab_size" |
22 | | - android:layout_marginRight="@dimen/activity_horizontal_margin" |
23 | | - android:background="@drawable/ripple_round" |
24 | | - android:stateListAnimator="@anim/fab_anim" |
25 | | - android:elevation="5dp" |
26 | | - android:layout_centerHorizontal="true" |
27 | | - android:layout_alignParentBottom="true"/> |
| 15 | + android:background="?android:colorPrimary" |
| 16 | + android:minHeight="?attr/actionBarSize"/> |
28 | 17 |
|
29 | 18 | <LinearLayout |
30 | 19 | android:id="@+id/row_container2" |
31 | 20 | android:layout_width="match_parent" |
32 | 21 | android:layout_height="match_parent" |
33 | | - android:layout_below="@id/holder_view" |
| 22 | + android:layout_below="@id/toolbar" |
34 | 23 | android:orientation="vertical" |
35 | 24 | android:layout_centerHorizontal="true" |
36 | 25 | android:paddingLeft="@dimen/activity_horizontal_margin" |
|
61 | 50 | <include |
62 | 51 | android:id="@+id/sample_row6" |
63 | 52 | layout="@layout/view_sample_row"/> |
64 | | - |
65 | | - |
66 | 53 | </LinearLayout> |
67 | 54 |
|
| 55 | + <Button |
| 56 | + android:id="@+id/fab_button" |
| 57 | + android:layout_width="@dimen/fab_size" |
68 | 58 |
|
| 59 | + android:transitionName="fab" |
| 60 | + android:layout_height="@dimen/fab_size" |
| 61 | + android:layout_marginRight="@dimen/activity_horizontal_margin" |
| 62 | + android:background="@drawable/ripple_round" |
| 63 | + android:stateListAnimator="@anim/fab_anim" |
| 64 | + android:elevation="5dp" |
| 65 | + android:layout_centerHorizontal="true" |
| 66 | + android:layout_alignParentBottom="true"/> |
69 | 67 |
|
70 | 68 | </RelativeLayout> |
0 commit comments