app dashboard cardview click effect and animation android studio code example
Example 1: app dashboard cardview click effect and animation android studio
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="155dp"
android:layout_height="230dp"
android:elevation="4dp"
android:translationZ="5dp"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:onClick="showNotices"
android:background="?android:attr/selectableItemBackground"
android:id="@+id/notices_card"
card_view:cardCornerRadius="2dp">
</android.support.v7.widget.CardView>
Example 2: app dashboard cardview click effect and animation android studio
android:clickable="true"
Example 3: app dashboard cardview click effect and animation android studio
android:foreground="?android:attr/selectableItemBackground"