2012-05-03 13 views
0

携帯電話が縦置きモードのとき、画像ビューが最大サイズを横に満たしています。しかし、horisontalモードに移行すると、imageViewは親とマッチしません。私は画面の境界に拡大される画像が必要です。 私は間違っていますか?画像をAndroidでフルサイズに設定

私のxml:

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_height="fill_parent" 
android:layout_width="fill_parent" 
android:orientation="vertical"> 
<ScrollView 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 
<RelativeLayout 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:padding="5dp"> 
<ImageView 
android:id="@+id/picture" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:src="@drawable/keks1" 
    /> 

答えて

3

セットImageViewの背景のないSRC。

android:background="@drawable/keks1" 
+0

Yess!どうもありがとうございました!) – Stas

関連する問題