これは私のAndroidlist_item
レイアウトXMLです:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingRight="?android:attr/scrollbarSize"
android:background="@drawable/list_bg">
<TextView
android:id="@+id/tv_displayname"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
これはlist_bg
画像です:
それでも、Androidエミュレーターで表示すると次のようになります。
わずかなグラデーション効果があるため、背景が適用されていることがわかりますが、この黒いオーバーレイがどこから来ているのかわかりません。