ImageView에서 이미지를 크기 조정하고 가운데 놓기에 문제가 있습니다.
업 스케일링, 아무런 문제가 없지만, 다운 스케일링, 이미지가 더 이상 중앙에 나타납니다 때, 그리고 이미지 뷰의 경계가 다음과 같이 잘못 :ImageView가 축소 된 이미지의 가운데를 제대로 맞추지 못합니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:src="@drawable/stereomood_splash"
android:scaleType="fitCenter"
android:id="@+id/imageView1"
android:layout_width="100dip"
android:layout_height="200dip"></ImageView>
</LinearLayout>
이것은 버그입니까? 다른 사람이 해결 방법을 찾았습니까?
와우 .. 슬프게도,이 충고는 내 문제를 해결합니다. –