Adjust card elevation

This commit is contained in:
seven332 committed 2018-10-20 01:41:20 +08:00
1 parent cb92fbad3d
commit 0704579d26
7 files changed
+8 -4

No files matched your search

@@ -40,7 +40,7 @@
<Space
android:layout_width="match_parent"
android:layout_height="26dp"/>
android:layout_height="24dp"/>
</LinearLayout>
@@ -20,6 +20,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
style="@style/CardView.Reactive">
<RelativeLayout
@@ -20,6 +20,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
style="@style/CardView.Normal">
<com.hippo.ehviewer.widget.TileThumb
@@ -19,6 +19,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
style="@style/CardView.Reactive">
<RelativeLayout
@@ -18,6 +18,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
style="@style/CardView.Normal">
<LinearLayout
+1 -1
View File
@@ -52,7 +52,7 @@
<dimen name="gallery_grid_margin_v">4dp</dimen>
<!-- 8dp - 4dp, 4dp for card padding -->
<dimen name="gallery_search_bar_margin_h">4dp</dimen>
<dimen name="gallery_search_bar_margin_h">6dp</dimen>
<!-- 12dp - 4dp, 4dp for card padding -->
<dimen name="gallery_search_bar_margin_v">8dp</dimen>
+2 -2
View File
@@ -141,8 +141,8 @@
<style name="CardView.Normal">
<item name="cardCornerRadius">2dp</item>
<item name="cardUseCompatPadding">true</item>
<item name="cardElevation">4dp</item>
<item name="cardMaxElevation">4dp</item>
<item name="cardElevation">2dp</item>
<item name="cardMaxElevation">2dp</item>
<item name="cardPreventCornerOverlap">true</item>
<item name="cardBackgroundColor">?attr/contentColorPrimary</item>
<item name="contentPadding">0dp</item>