AndroidでRelativeLayoutの中にFrameLayoutをフルスクリーン表示させたいと思っています。
FrameLayoutの中のimageViewで画像を表示させてるんですが、左右や上下に隙間ができてしまって、表示がフルスクリーンになりません。
FrameLayoutでなくてもなんでも良いのですが、RelativeLayoutの上のレイヤーにフルスクリーンでかぶせたいのですが少しの隙間ができてできません。
やり方をご教授ください。
Java
1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:id="@+id/relativeLayout" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:tools="http://schemas.android.com/tools" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 android:layout_margin="0dp" 9 android:padding="0dp" 10 android:fitsSystemWindows="true" 11 tools:context=".setTimerActivity"> 12 13 (省略) 14 15 <FrameLayout 16 android:id="@+id/repeatSetLayout" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:layout_margin="0dp" 20 android:padding="0dp" 21 android:fitsSystemWindows="true" 22 android:adjustViewBounds="true"> 23 24 <ImageView 25 android:id="@+id/imageViewbg2" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:layout_margin="0dp" 29 android:padding="0dp" 30 android:fitsSystemWindows="true" 31 android:adjustViewBounds="true" 32 app:srcCompat="@drawable/bg1" /> 33 34 (省略) 35 36 </FrameLayout> 37 38</RelativeLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。