Android 개발에 익숙하지 않습니다. 나는 (안드로이드) 안드로이드 에뮬레이터에서 내 안드로이드 프로그램을 테스트했지만 큰 화면을 가지고있는 삼성 전화에서 동일한 프로그램을 실행할 때 타블렛에서 내 ImageView가 화면에 맞지 않습니다.Android ImageView가 큰 화면에 맞지 않습니다.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CompareActivity" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/topbar" />
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#160203" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</TabHost>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp" >
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/crdt" />
<ImageButton
android:id="@+id/registerbutton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="38dp"
android:layout_marginTop="15dp"
android:background="@android:color/transparent"
android:src="@drawable/green" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView2"
android:adjustViewBounds="true"
android:src="@drawable/savings" />
<ImageButton
android:id="@+id/blubutton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/registerbutton"
android:layout_alignTop="@+id/imageView3"
android:layout_marginTop="18dp"
android:background="@android:color/transparent"
android:src="@drawable/blue" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView3"
android:adjustViewBounds="true"
android:src="@drawable/pl" />
<ImageButton
android:id="@+id/redbutton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/blubutton"
android:layout_alignTop="@+id/imageView4"
android:layout_marginTop="17dp"
android:background="@android:color/transparent"
android:src="@drawable/red" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView4"
android:adjustViewBounds="true"
android:src="@drawable/homlons" />
<ImageView
android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView5"
android:adjustViewBounds="true"
android:src="@drawable/fd" />
<ImageButton
android:id="@+id/orbutton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/redbutton"
android:layout_alignTop="@+id/imageView5"
android:layout_marginTop="26dp"
android:background="@android:color/transparent"
android:src="@drawable/orange" />
<ImageButton
android:id="@+id/pubutton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/orbutton"
android:layout_alignTop="@+id/imageView6"
android:layout_marginTop="18dp"
android:background="@android:color/transparent"
android:src="@drawable/purple" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>
android : scaleType = "fitXY"를 ImageView에 설정하십시오. –
어떤 이미지 뷰가 화면에 적합하지 않습니까? –
@Amrola 두 ImageViews – Akunar