From 2481346e00e5558a488c1250fca657814843f0e5 Mon Sep 17 00:00:00 2001 From: tuancoltech Date: Sat, 23 Nov 2024 19:02:05 +0900 Subject: [PATCH] Fix issue: Graphics thumb displays on top of ripple effect --- .../dev/arkbuilders/arkmemo/ui/adapters/NotesListAdapter.kt | 1 + app/src/main/res/layout/adapter_text_note.xml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/NotesListAdapter.kt b/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/NotesListAdapter.kt index 2b0383d..02439ef 100644 --- a/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/NotesListAdapter.kt +++ b/app/src/main/java/dev/arkbuilders/arkmemo/ui/adapters/NotesListAdapter.kt @@ -348,6 +348,7 @@ class NotesListAdapter( } binding.cbDelete.setOnCheckedChangeListener(noteCheckedListener) binding.layoutAudioView.root.setBackgroundResource(R.drawable.bg_audio_view_note_item) + binding.viewItemContent.clipToOutline = true } } } diff --git a/app/src/main/res/layout/adapter_text_note.xml b/app/src/main/res/layout/adapter_text_note.xml index 1e0f0f9..93e90b8 100644 --- a/app/src/main/res/layout/adapter_text_note.xml +++ b/app/src/main/res/layout/adapter_text_note.xml @@ -5,8 +5,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:clickable="true" - android:layout_marginBottom="@dimen/note_item_padding" - android:background="@drawable/ripple_note_item"> + android:layout_marginBottom="@dimen/note_item_padding">