0

通常のリスト ビューでは区切り線は認識されますが、フル スクリーン モードに切り替えると暗くなりすぎます。線の色を制御するにはどうすればよいですか?

わかりやすくするために、こちらの画像をご覧ください: https://dl.dropbox.com/u/15065300/layout.png

活動コード XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff"
    android:orientation="vertical"
    tools:context=".ProductList" >

<TextView
        android:id="@+id/textView0"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#123456"
        android:drawableLeft="@drawable/ic_launcher"
        android:drawablePadding="6sp"
        android:text="@string/app_name"
        android:gravity="center_vertical"
        android:padding="8sp"
        android:textSize="22sp"
        android:textStyle="bold"
        android:textColor="#ffffff"/> 


        <!-- List View -->
    <ListView
        android:id="@+id/list_view"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#ffffff"/>

</LinearLayout>

List_Item のコード

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <!-- Product Name -->

     <com.examdple.customproduct.CustomTextView

            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#111111"
            android:paddingTop="10sp"
            android:id="@+id/product_list"
            android:paddingLeft="20sp"
            android:paddingBottom="5sp"
            android:textSize="16sp" />

</LinearLayout>

プロジェクト全体はこちらhttp://www.mediafire.com/?umt91j6acq8b6gm

4

1 に答える 1

1

android:divider属性を使用する必要があります:

<ListView
    android:id="@+id/list_view"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="#ffffff"
    android:divider="#FFFF0000"
    android:dividerHeight="1dip"/>
于 2013-01-06T16:58:56.643 に答える