framelayoutの下でimageviewを使用しています。画像ビューで背景画像を適用しましたが、画像が画面を完全に覆うことができません。中央に表示されます。画面を完全に覆いたい...
どうすればそれを達成できますか?よろしくお願いします:-)
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="com.example.muhammad.maqalatlayout.jild_copy"
android:background="@color/Green">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@mipmap/brown_border1"
android:layout_margin="0dp"
android:layout_marginLeft="0dp"
android:layout_marginTop="0dp"
android:layout_marginRight="0dp"
android:layout_marginBottom="0dp"
android:layout_gravity="top|left|bottom|center_vertical|right"
android:visibility="visible"
android:adjustViewBounds="false"
android:scaleType="fitStart"/>
android:background
プロパティを設定しているため、体重計が機能していないと思います。これを試して:
<ImageView
...
android:src="@mipmap/brown_border1"
... />
また、できれば画像を/drawable/
フォルダに入れてください。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加