私は背景イメージを持つ相対レイアウトを持っていますが、イメージがすべてのレイアウトスペースを埋めるようにしたいと思う、パディングの問題だと思います。作業。 また、パディングを-1dipに設定する前に、階層型ビューアでパディングを検査します。 はここに私のxml相対レイアウトの背景がすべてのスペースを埋めていない
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/gridView"
android:background="@drawable/tool_bar"
android:gravity="center"
>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/locate" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView1"
android:src="@drawable/orbit" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/imageView2"
android:src="@drawable/search" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView3"
android:src="@drawable/snap" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView4"
android:src="@drawable/profile" />
</RelativeLayout>
thanks
私は背景イメージが相対レイアウトスペースを埋めるようにします。画面全体を埋めるための相対レイアウトではない – mauriyouth