Цвет фона для Android
Как я могу установить цвет фона для списка? Я могу установить цвет фона элементов списка, но не дырку Activity-View (см. Черную часть внизу изображения). Как я могу этого достичь?
XML ListActivity выглядит следующим образом:
<code><?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" android:background="@color/darkbluelogo" > <ImageView android:id="@+id/list_image" android:layout_width="48dip" android:layout_height="48dip" android:contentDescription="@id/list_image" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" android:background="@color/darkbluelogo" android:scrollingCache="false" android:cacheColorHint="#00000000" > <TextView android:id="@+id/title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@+id/title" > </TextView> <TextView android:id="@+id/datetime" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@+id/datetime" > </TextView> </LinearLayout> </LinearLayout> </code>
И вот как это выглядит на устройстве:
SOLUTION:
Мне пришлось добавить стиль XML и добавить это к действию в AndroidManifest.xml
Это был правильный ответ: https://stackoverflow.com/a/10426474/1306012