Skip to content

Instantly share code, notes, and snippets.

@AmaldevTA
Created October 15, 2020 06:38
Show Gist options
  • Save AmaldevTA/ba07bd61d72a6b0643c357b58ae881bc to your computer and use it in GitHub Desktop.
Save AmaldevTA/ba07bd61d72a6b0643c357b58ae881bc to your computer and use it in GitHub Desktop.
<androidx.cardview.widget.CardView
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
app:cardElevation="0dp"/>
card.setCardBackgroundColor(ContextCompat.getColor(context, R.color.light_ash))
<TextView
android:background="?attr/editTextBackground"
android:gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceMediumInverse"
android:textColor="?attr/editTextColor"
android:textIsSelectable="true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment