Fix click effect

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-08-07 16:14:14 +02:00 committed by Alper Öztürk
parent bcd9941a11
commit 6ac22071cf
2 changed files with 4 additions and 2 deletions

View file

@ -104,7 +104,8 @@ public class TemplateAdapter extends RecyclerView.Adapter<TemplateAdapter.ViewHo
super(binding.getRoot());
this.binding = binding;
viewThemeUtils.files.themeTemplateCardView(this.binding.templateContainer);
itemView.setOnClickListener(this);
binding.templateLayout.setOnClickListener(this);
binding.templateContainer.setOnClickListener(this);
}
@Override

View file

@ -27,10 +27,11 @@
<com.google.android.material.card.MaterialCardView
android:id="@+id/template_container"
android:checkable="true"
android:clickable="true"
android:focusable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:cardElevation="0dp"
app:strokeColor="@color/card_border_selector"
app:strokeWidth="2dp">