FAB animation update
6
app/src/main/res/anim/fab_hide_to_bottom.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/accelerate_quint"
|
||||
android:fromYDelta="0"
|
||||
android:toYDelta="30%p"
|
||||
android:duration="200" />
|
||||
6
app/src/main/res/anim/fab_show_from_bottom.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/accelerate_cubic"
|
||||
android:fromYDelta="30%p"
|
||||
android:toYDelta="0"
|
||||
android:duration="300" />
|
||||
|
Before Width: | Height: | Size: 134 B |
BIN
app/src/main/res/drawable-hdpi/ic_add_white_24dp.png
Normal file
|
After Width: | Height: | Size: 127 B |
BIN
app/src/main/res/drawable-hdpi/ic_mode_edit_white_24dp.png
Normal file
|
After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 119 B |
|
Before Width: | Height: | Size: 116 B |
BIN
app/src/main/res/drawable-mdpi/ic_add_white_24dp.png
Normal file
|
After Width: | Height: | Size: 88 B |
BIN
app/src/main/res/drawable-mdpi/ic_mode_edit_white_24dp.png
Normal file
|
After Width: | Height: | Size: 165 B |
|
Before Width: | Height: | Size: 168 B |
BIN
app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
app/src/main/res/drawable-xhdpi/ic_mode_edit_white_24dp.png
Normal file
|
After Width: | Height: | Size: 239 B |
|
Before Width: | Height: | Size: 242 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_mode_edit_white_24dp.png
Normal file
|
After Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 500 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png
Normal file
|
After Width: | Height: | Size: 102 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_mode_edit_white_24dp.png
Normal file
|
After Width: | Height: | Size: 355 B |
@@ -18,11 +18,12 @@
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:layout_height="@dimen/fab_size"
|
||||
android:layout_width="@dimen/fab_size"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_action_add_18dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_add_white_24dp"
|
||||
app:backgroundTint="@color/colorPrimary"
|
||||
app:layout_anchor="@id/categories_list"
|
||||
app:layout_anchorGravity="bottom|right|end"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
@@ -20,7 +21,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ScrollView
|
||||
<android.support.v4.widget.NestedScrollView
|
||||
android:id="@+id/manga_info_scroll_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
@@ -254,28 +256,25 @@
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</android.support.v4.widget.NestedScrollView>
|
||||
|
||||
</android.support.v4.widget.SwipeRefreshLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="bottom">
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
app:backgroundTint="@color/colorPrimary"
|
||||
app:layout_behavior="eu.kanade.tachiyomi.ui.base.fab.ScrollAwareFABBehavior"/>
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab_edit"
|
||||
android:layout_height="@dimen/fab_size"
|
||||
android:layout_width="@dimen/fab_size"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_mode_edit_white_24dp"
|
||||
app:backgroundTint="@color/colorPrimary"
|
||||
app:layout_anchor="@id/manga_info_scroll_view"
|
||||
app:layout_anchorGravity="bottom|right|end"
|
||||
app:layout_behavior="eu.kanade.tachiyomi.ui.base.fab.ScrollAwareFABBehavior"/>
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
@@ -7,6 +7,7 @@
|
||||
<dimen name="margin_left">16dp</dimen>
|
||||
<dimen name="margin_right">16dp</dimen>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
<dimen name="fab_size">56dp</dimen>
|
||||
|
||||
<dimen name="dialog_content_padding">24dp</dimen>
|
||||
<dimen name="dialog_margin_top_content">20dp</dimen>
|
||||
|
||||