Commit ccd9fb8accdce76a4ebfb65c16f6e7eb3dfde351
1 parent
f7ec075b
- add FAB icon
Showing
4 changed files
with
7 additions
and
14 deletions
app/src/main/res/drawable/icon_add_book.png
0 → 100644
3.25 KB
app/src/main/res/layout/app_bar_main.xml
... | ... | @@ -20,6 +20,11 @@ |
20 | 20 | <android.support.design.widget.FloatingActionButton android:id="@+id/fab" |
21 | 21 | android:layout_width="wrap_content" android:layout_height="wrap_content" |
22 | 22 | android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" |
23 | - android:src="@android:drawable/ic_input_add" /> | |
23 | + android:cropToPadding="false" | |
24 | + android:src="@drawable/icon_add_book" | |
25 | + android:adjustViewBounds="false" | |
26 | + android:scaleType="center" | |
27 | + android:nestedScrollingEnabled="false" | |
28 | + android:baselineAlignBottom="false" /> | |
24 | 29 | |
25 | 30 | </android.support.design.widget.CoordinatorLayout> | ... | ... |
app/src/main/res/layout/test.xml deleted
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | - android:orientation="vertical" android:layout_width="match_parent" | |
4 | - android:layout_height="match_parent"> | |
5 | - | |
6 | - <TextView | |
7 | - android:layout_width="wrap_content" | |
8 | - android:layout_height="wrap_content" | |
9 | - android:textAppearance="?android:attr/textAppearanceLarge" | |
10 | - android:text="Large Text" | |
11 | - android:id="@+id/textView2" /> | |
12 | -</LinearLayout> | |
13 | 0 | \ No newline at end of file |
app/src/main/res/values/colors.xml