Prepare
- Source 1 (1600 x 1200):
![](https://qiita-user-contents.imgix.net/https%3A%2F%2Fraw.githubusercontent.com%2Feneim%2Feneim.github.io%2Fresources%2Fblog%2F2016%2F5%2Fsource_1.jpg?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=a50ceb215dec31dd26678311b3bf712c)
- Source 2 (480 x 360):
- Layout:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#3e3639"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_margin="16dp"
android:background="#ea5444"
android:cropToPadding="false"
android:padding="16dp"
android:adjustViewBounds="false"
android:scaleType="center"
android:src="@drawable/io16_social"
/>
</FrameLayout>
Reviews
A. SDK 23, Source 1.
I. layout_width="match_parent"
- 1 ScaleType = center
- 2 ScaleType = centerCrop
- 3 ScaleType = centerInside
- 4 ScaleType = fitCenter
II. layout_width="wrap_content"
- 1 ScaleType = center
- 2 ScaleType = centerCrop
- 3 ScaleType = centerInside
- 4 ScaleType = fitCenter
B. SDK 23, Source 2.
I. layout_width="match_parent"
- 1 ScaleType = center
- 2 ScaleType = centerCrop
- 3 ScaleType = centerInside
- 4 ScaleType = fitCenter
II. layout_width="wrap_content"
- 1 ScaleType = center
- 2 ScaleType = centerCrop
- 3 ScaleType = centerInside
- 4 ScaleType = fitCenter