Fix gallery item margins
This commit is contained in:
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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
Reference in new issue
Block a user