我想在相應的圖像視圖中放置兩個圖像,以使它們佔據整個屏幕。到目前爲止我只在這裏得到:((要添加被測試的器件我使用S3)放置兩個圖像佔據整個屏幕
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/white"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:onClick="onClick"
android:src="@drawable/up" />
<ImageView
android:id="@+id/blue"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:src="@drawable/blue"
android:onClick="onClick"
android:layout_below="@id/white"/>
</RelativeLayout>
的圖像是1080×1920,並調整爲屏幕,問題是要麼低於圖像被不正確地縮放或他們不正確連接我有一個在頂部黑色區域和底部
我很抱歉,但該圖片的大小相同的不
看看這裏:http://stackoverflow.com/questions/14773039/how-to-put-50-for-width – 2013-02-19 16:56:21