Fix gallery item margins

This commit is contained in:
tehcneko committed 2021-03-20 22:01:40 +08:00
1 parent 02b3f2bc63
commit a06e3ad6b5
5 files changed
+8 -6

No files matched your search

@@ -153,7 +153,7 @@ abstract class GalleryAdapter extends RecyclerView.Adapter<GalleryHolder> {
switch (viewType) {
default:
case TYPE_LIST:
layoutId = R.layout.item_history;
layoutId = R.layout.item_gallery_list;
break;
case TYPE_GRID:
layoutId = R.layout.item_gallery_grid;
+2 -1
View File
@@ -19,7 +19,8 @@
style="@style/CardView.Reactive"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:layout_marginVertical="2dp"
android:layout_marginHorizontal="6dp"
android:background="?selectableItemBackground"
android:checkable="true"
android:clickable="true"
@@ -20,7 +20,8 @@
style="@style/CardView.Normal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:layout_marginVertical="2dp"
android:layout_marginHorizontal="6dp"
android:background="?selectableItemBackground"
android:checkable="true"
android:clickable="true"
@@ -19,7 +19,8 @@
style="@style/CardView.Reactive"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:layout_marginVertical="2dp"
android:layout_marginHorizontal="6dp"
android:background="?selectableItemBackground"
android:checkable="true"
android:clickable="true"
+1 -2
View File
@@ -18,8 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingHorizontal="@dimen/gallery_list_margin_v">
android:clipToPadding="false">
<include layout="@layout/item_gallery_list" />