Skip to content

Instantly share code, notes, and snippets.

@Kolyall
Created November 13, 2019 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kolyall/be97544fcb9398bd83f509c05b46ebbd to your computer and use it in GitHub Desktop.
Save Kolyall/be97544fcb9398bd83f509c05b46ebbd to your computer and use it in GitHub Desktop.
ImageView patterns

ImageView:

  1. Add ClickEffect to imageView
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:clipChildren="false"
android:clipToPadding="false"
android:focusable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_dislike_36dp"
android:tint="@color/colorAccent"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment