私はviewpager
たくさんのを持っていてlistviews
、リストがいっぱいまたは空でないときは、背景を黒にしたいのですが、一部の電話でmotorola
は、特にデフォルトの背景が灰色になっています
これがviewpagerを使用した私の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"
android:orientation="vertical"
android:background="#000000">
<RelativeLayout android:id="@+id/top_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/titlebg"
android:layout_above="@+id/list">
<ImageView
android:id="@+id/imgStartupHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dp"
android:src="@drawable/logo"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:src="@drawable/fire_android"/>
</RelativeLayout>
<android.support.v4.view.ViewPager
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/pager"
android:background="#000000"/>
</LinearLayout>
リストビューを保持する私のページャーxml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/layout"
android:background="#000000">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/bottom_rl"
android:background="#000000" >
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000">
</ListView>
</RelativeLayout>
<RelativeLayout android:id="@+id/bottom_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/bottombg">
<ImageView android:id="@+id/listName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/incidents"/>
</RelativeLayout>
</RelativeLayout>
両方のファイルで背景を設定しました#000000
が、まだ灰色の背景として表示されていますが、ここで何が欠けていますか?