我將圖像視圖設置爲全屏,但不起作用:左側和右側之間有一些空間。如何將imageview
設置爲全屏?imageview未設置全屏
這是我的XML代碼:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/imageView"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ImageView>
</LinearLayout>
也可以使用'match_parent',而不是'fill_parent'。 'fill_parent'被認爲已被棄用。 – nabroyan 2013-03-09 07:54:26