Skip to content

Commit b96ece8

Browse files
committed
Add elevation tests to sample
1 parent 4539bab commit b96ece8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sample/src/main/res/layout/activity_main.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,15 @@
8484

8585
<TextView
8686
style="@style/Container"
87+
android:elevation="8dp"
8788
android:text="@string/animated_ripple"/>
8889
</me.thanel.swipeactionview.SwipeActionView>
8990

9091
<me.thanel.swipeactionview.SwipeActionView
9192
android:id="@+id/swipe_card_view"
92-
style="@style/SwipeItem">
93+
style="@style/SwipeItem"
94+
app:sav_swipeLeftRippleColor="@color/colorPrimary"
95+
app:sav_tools_previewRipple="swipeLeft">
9396

9497
<ImageView style="@style/Icon"/>
9598

@@ -100,7 +103,8 @@
100103
<androidx.cardview.widget.CardView
101104
android:layout_width="match_parent"
102105
android:layout_height="match_parent"
103-
android:layout_margin="16dp">
106+
android:layout_margin="16dp"
107+
app:cardElevation="12dp">
104108

105109
<TextView
106110
style="@style/Container"

sample/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
<item name="android:layout_width">match_parent</item>
4848
<item name="android:layout_height">wrap_content</item>
4949
<item name="android:minHeight">?listPreferredItemHeight</item>
50-
<item name="android:background">@color/colorPrimaryDark</item>
50+
<item name="android:background">@android:color/darker_gray</item>
5151
</style>
5252
</resources>

0 commit comments

Comments
 (0)