FAB and notification creation fragment
This commit is contained in:
BIN
app/src/main/res/drawable-hdpi/ic_action_add.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_action_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 139 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_add.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_action_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 121 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_add.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_action_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_add.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_action_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 246 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_action_add.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_action_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 477 B |
@@ -1,8 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<include layout="@layout/toolbar" />
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/toolbar" />
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:id="@+id/main_menu_fragment_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:contentDescription="@string/fab_cd_create_notification"
|
||||
android:layout_gravity="bottom|end|right"
|
||||
android:id="@+id/main_menu_fab_add_notification"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:fabSize="normal"
|
||||
android:src="@drawable/ic_action_add"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
@@ -7,4 +7,5 @@
|
||||
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize" />
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:layout_scrollFlags="scroll|enterAlways"/>
|
||||
|
||||
@@ -13,4 +13,6 @@
|
||||
<string name="pref_clear_database_summary">Remove all logged notifications</string>
|
||||
<string name="pref_export_title">Export to sdcard</string>
|
||||
<string name="pref_about_title">About</string>
|
||||
<string name="fab_cd_create_notification">FAB: Create notification</string>
|
||||
<string name="title_create_notification">Create notification</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user