1
我有這樣的代碼:安卓:圖像更小,他的真實大小
<?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"
android:gravity="top"
android:background="@drawable/db_bg_color">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:id="@+id/noise_bar_red"
android:src="@drawable/noise_bar_red"
android:contentDescription="@string/app_name"
android:layout_centerHorizontal="true" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:id="@+id/noise_bar"
android:src="@drawable/noise_bar"
android:contentDescription="@string/app_name"
android:layout_centerHorizontal="true" />
</RelativeLayout>
的問題是,最後的圖像,做大像db_bg_color和喜歡的畫面,有點像縮小,我不知道...但它不會填充屏幕...既不fill_parent。 看到這個:http://img835.imageshack.us/img835/7121/schermata20121203alle12.png 爲什麼?
沒有:-(不起作用 – Zak
同時使用您的提示和FILL_PARENT解決 – Zak