For my list, I want to change the default focus color. However, when I
set listSelector, the area of linelayout change to that color.Not the
single focused listitem. Anything wrong?

<LinearLayout android:id="@+id/list_panel"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_weight="1"
            android:layout_gravity="fill"
            android:layout_marginBottom="20px"
                android:background="@drawable/list_bg">
        <ListView android:id="@+id/android:list"
                        android:divider="@drawable/content_bg"
                        android:layout_width="fill_parent"
                        android:listSelector="@drawable/list_focus"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:scrollbars="none"/>
                <TextView android:id="@+id/android:empty"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="No result!"/>
     </LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to