Browse Source

Add bottom padding to library for ActionToolbar

arkon 5 years ago
parent
commit
fe803a4588

+ 4 - 0
app/src/main/res/layout/library_grid_recycler.xml

@@ -7,4 +7,8 @@
     android:layout_height="match_parent"
     android:clipToPadding="false"
     android:columnWidth="140dp"
+    android:paddingStart="5dp"
+    android:paddingTop="5dp"
+    android:paddingEnd="5dp"
+    android:paddingBottom="@dimen/action_toolbar_list_padding"
     tools:listitem="@layout/source_grid_item" />

+ 2 - 0
app/src/main/res/layout/library_list_recycler.xml

@@ -4,4 +4,6 @@
     android:id="@+id/library_list"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:clipToPadding="false"
+    android:paddingBottom="@dimen/action_toolbar_list_padding"
     tools:listitem="@layout/source_list_item" />

+ 1 - 0
app/src/main/res/layout/source_recycler_autofit.xml

@@ -7,4 +7,5 @@
     android:layout_height="match_parent"
     android:clipToPadding="false"
     android:columnWidth="140dp"
+    android:padding="5dp"
     tools:listitem="@layout/source_grid_item" />

+ 1 - 1
app/src/main/res/layout/updates_controller.xml

@@ -15,7 +15,7 @@
             android:layout_height="match_parent"
             android:clipToPadding="false"
             android:descendantFocusability="blocksDescendants"
-            android:paddingBottom="?attr/actionBarSize"
+            android:paddingBottom="@dimen/action_toolbar_list_padding"
             tools:listitem="@layout/updates_item" />
 
         <eu.kanade.tachiyomi.widget.ActionToolbar

+ 2 - 0
app/src/main/res/values/dimens.xml

@@ -13,6 +13,8 @@
     <dimen name="fab_margin">16dp</dimen>
     <dimen name="fab_list_padding">88dp</dimen>
 
+    <dimen name="action_toolbar_list_padding">72dp</dimen>
+
     <dimen name="dialog_content_padding">24dp</dimen>
     <dimen name="dialog_margin_top_content">20dp</dimen>
 

+ 0 - 1
app/src/main/res/values/styles.xml

@@ -164,7 +164,6 @@
     </style>
 
     <style name="Theme.Widget.GridView.Source">
-        <item name="android:padding">5dp</item>
         <item name="android:gravity">top|left</item>
         <item name="android:smoothScrollbar">true</item>
         <item name="android:cacheColorHint">?android:attr/textColorHint</item>