4

ListView画像で構成される をレンダリングしています。プレーングレー色をなくしたい。どうすればそれを取り除くことができますか? 奇妙でかなり簡単なようですが、解決策がわかりません。

ここに画像の説明を入力

list_View.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:background="#efefef"
    android:orientation="vertical" >



    <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"

        android:cacheColorHint="#00000000"
        android:divider="@android:color/black"
        android:dividerHeight="1.0sp"
        android:textColor="#000000" />

</RelativeLayout>

image.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="#A4A4A4"
    android:orientation="horizontal" >

    <ImageView
        android:id="@+id/imageStatus"
        android:layout_alignParentTop="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:adjustViewBounds="true" />

</LinearLayout>
4

3 に答える 3

2

リストビューでコードを次のように編集します。

android:layout_height="wrap_content"
于 2013-07-24T06:28:29.883 に答える