I have a layout like this for my icon:
<LinearLayout
android:id="@+id/icon_layout"
android:layout_width="36dp"
android:layout_height="36dp"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:background="@drawable/ic_globe"
/>
</LinearLayout>
I want to make it so that if the layout is clicked:
- The image "pops" slightly (scales it from
24dp
to32dp
and then back to24dp
) - Change (fade in) the color of the icon to red as it's scaling
How can I do this?