Ben Williamson wrote:
> I have an expandable list view that I'm trying to create custom 
> selectors for.
>
> I have a style set as such (in styles.xml)
> <style name="MyOwnTheme" parent="android:Theme">
> <item name="android:listSelector">#FFFFFFFF</item>
> </style>
>
> And I've assigned this style to the list view as such
> <ExpandableListView android:id="@android:id/list"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:layout_weight="1"
>         android:drawSelectorOnTop="false"
>         android:divider="#000000"
>         android:dividerHeight="0dp"
>         android:color="#FFCE6A8D" />
>
> But now the entire list view gets the selector, not just the selected 
> item... Anyone know what's up with this?
Pasted the wrong code....

<ExpandableListView android:id="@android:id/list"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:layout_weight="1"
         android:drawSelectorOnTop="false"
         android:divider="#000000"
         android:dividerHeight="0dp"
         style="@style/MyOwnTheme" />


also tried setting android:listSelector, same effect, and grabbing the 
list view via code and setting setListSelector.... they highlight the 
entire list when I touch on a single item.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to