Smoothen jagged edges of rotated image view

Have you ever rotate an ImageView before? It’s quite simple to rotate an ImageView, as that could simply be done by even in the layout xml code with the android:rotation attribute.

A simple example of code as below

<CustomImageView
android:id="@+id/image_on"
android:layout_width="60dp"
android:layout_height="60dp"
android:rotation="-6"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store