Fix padding in RecyclerViews (#1148)

This commit is contained in:
Andy Bao 2018-01-06 12:50:40 -05:00 committed by inorichi
parent ac88f1c146
commit fe7001975a
5 changed files with 8 additions and 4 deletions

View file

@ -10,5 +10,6 @@ android:layout_height="wrap_content">
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="4dp" android:paddingBottom="4dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:clipToPadding="false"
tools:listitem="@layout/catalogue_global_search_controller_card" /> tools:listitem="@layout/catalogue_global_search_controller_card" />
</FrameLayout> </FrameLayout>

View file

@ -78,6 +78,7 @@
android:orientation="horizontal" android:orientation="horizontal"
android:paddingEnd="4dp" android:paddingEnd="4dp"
android:paddingStart="4dp" android:paddingStart="4dp"
android:clipToPadding="false"
tools:listitem="@layout/catalogue_global_search_controller_card_item" /> tools:listitem="@layout/catalogue_global_search_controller_card_item" />
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>

View file

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

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<eu.kanade.tachiyomi.widget.AutofitRecyclerView <eu.kanade.tachiyomi.widget.AutofitRecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/library_grid" android:id="@+id/library_grid"
style="@style/Theme.Widget.GridView.Catalogue" style="@style/Theme.Widget.GridView.Catalogue"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:columnWidth="140dp" android:columnWidth="140dp"
android:clipToPadding="false"
tools:listitem="@layout/catalogue_grid_item" /> tools:listitem="@layout/catalogue_grid_item" />

View file

@ -9,8 +9,9 @@
android:id="@+id/recycler" android:id="@+id/recycler"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginBottom="4dp" android:paddingBottom="4dp"
android:layout_marginTop="4dp" android:paddingTop="4dp"
android:clipToPadding="false"
tools:listitem="@layout/recently_read_item"> tools:listitem="@layout/recently_read_item">
</android.support.v7.widget.RecyclerView> </android.support.v7.widget.RecyclerView>