에 초상화를 변경할 때 여기 내 로그 캣 오류의 닫습니다. /layout
및 /layout-land
에 대한 레이아웃은 이미지를 표시하기위한보기 만 포함하고 있지만 세로 방향에서는 집어 넣고 확대하여 centerInside
에 있고 가로로 보면 fitxy
입니다.안드로이드 응용 프로그램의 힘은 풍경
다음은 모두 당신의 com.jc.jcpremiere.TouchImageView
및 ImageView
클래스 android:id="@+id/aboutview"
이 세로
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rellayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.jc.jcpremiere.TouchImageView
android:id="@+id/aboutview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:adjustViewBounds="true"
android:background="@color/White"
android:scaleType="centerInside" />
</RelativeLayout>
에 대한 나의 풍경
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativelayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<ImageView
android:id="@+id/aboutview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/White"
android:scaleType="fitXY" />
</RelativeLayout>
가로 모드에서 이미지 뷰를 사용할 수있는 방법이 있고 xy에 맞춰 찍을 수있는 방법이 있나요? 내부에 touchimageview를 사용할 수 있습니까? – user3334111