Setting ImageView ScaleType to “center” is not working as I expect it
I have the following layout for my ImageView : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:descendantFocusability="blocksDescendants"> <ImageView android:id="@+id/imageview_icon" android:layout_width="48dp" android:layout_height="48dp" android:scaleType="fitCenter" /> (...) </LinearLayout> Those 48dp equal to 36px, 48px and 72px in ldpi , mdpi and hdpi respectively. All the images that will be used in this ImageView