Skip to content

Commit

Permalink
Clip ripple of reset icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Jan 3, 2025
1 parent d546f35 commit 0a5a8b4
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions app/src/main/res/layout/view_widget_seekbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,30 @@

</LinearLayout>

<ImageView
android:id="@+id/reset"
android:layout_width="@dimen/reset_icon_size"
android:layout_height="@dimen/reset_icon_size"
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|center"
android:layout_marginVertical="16dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="22dp"
android:alpha="0.4"
android:contentDescription="@string/reset"
android:foreground="?attr/selectableItemBackground"
android:src="@drawable/ic_reset"
app:tint="?attr/colorOnPrimaryContainer" />
app:cardBackgroundColor="@color/transparent"
app:cardCornerRadius="120dp"
app:cardElevation="0dp"
app:cardForegroundColor="@color/transparent"
app:cardUseCompatPadding="false"
app:strokeColor="@color/transparent"
app:strokeWidth="0dp">

<ImageView
android:id="@+id/reset"
android:layout_width="@dimen/reset_icon_size"
android:layout_height="@dimen/reset_icon_size"
android:alpha="0.4"
android:contentDescription="@string/reset"
android:foreground="?attr/selectableItemBackground"
android:src="@drawable/ic_reset"
app:tint="?attr/colorOnPrimaryContainer" />

</com.google.android.material.card.MaterialCardView>
</com.google.android.material.card.MaterialCardView>

0 comments on commit 0a5a8b4

Please sign in to comment.