|
2 | 2 | xmlns:tools="http://schemas.android.com/tools"
|
3 | 3 | android:layout_width="match_parent"
|
4 | 4 | android:layout_height="match_parent"
|
5 |
| - android:paddingLeft="@dimen/activity_horizontal_margin" |
6 |
| - android:paddingRight="@dimen/activity_horizontal_margin" |
7 |
| - android:paddingTop="@dimen/activity_vertical_margin" |
8 | 5 | android:paddingBottom="@dimen/activity_vertical_margin"
|
| 6 | + |
9 | 7 | tools:context=".MyActivity"
|
10 | 8 | >
|
11 | 9 |
|
12 |
| - <TextView |
13 |
| - android:text="@string/hello_world" |
14 |
| - android:layout_width="wrap_content" |
15 |
| - android:layout_height="wrap_content" |
| 10 | + <FrameLayout |
| 11 | + android:id="@+id/holder_view" |
| 12 | + android:layout_width="match_parent" |
| 13 | + android:layout_height="72dp" |
| 14 | + android:background="?android:colorPrimary"> |
| 15 | + |
| 16 | + <TextView |
| 17 | + android:id="@+id/holder_text" |
| 18 | + android:layout_width="wrap_content" |
| 19 | + android:layout_height="wrap_content" |
| 20 | + android:text="First activity" |
| 21 | + android:textSize="30sp" |
| 22 | + android:textColor="?android:colorForeground" |
| 23 | + android:layout_marginLeft="72dp" |
| 24 | + android:layout_marginBottom="@dimen/activity_vertical_margin" |
| 25 | + android:layout_gravity="bottom" |
| 26 | + android:fontFamily="sans-serif-light" |
16 | 27 | />
|
17 | 28 |
|
18 |
| - <include |
| 29 | + </FrameLayout> |
| 30 | + |
| 31 | + <ImageButton |
| 32 | + xmlns:android="http://schemas.android.com/apk/res/android" |
19 | 33 | android:id="@+id/fab_button"
|
20 |
| - layout="@layout/view_fab_button" |
21 |
| - /> |
| 34 | + android:layout_width="@dimen/fab_size" |
| 35 | + android:layout_height="@dimen/fab_size" |
| 36 | + android:layout_marginRight="@dimen/activity_horizontal_margin" |
| 37 | + android:background="@drawable/ripple_round" |
| 38 | + android:stateListAnimator="@anim/fab_anim" |
| 39 | + android:src="@drawable/ic_action_add" |
| 40 | + android:elevation="5dp" |
| 41 | + android:layout_below="@+id/holder_view" |
| 42 | + android:layout_marginTop="-26dp" |
| 43 | + android:layout_alignParentEnd="true" /> |
22 | 44 |
|
23 | 45 | </RelativeLayout>
|
0 commit comments