My app has some lists where I'd like to show items in activated state,
where appropriate (when they are "checked").

I'd like to use the platform's standard appearance for this activated
state, so it matches other lists and other apps - esp. since the activation
color is quite different between Android 3.* and 4.*.


And this is where I'm running into a snag:


- The SDK has ready-made list item layouts that support activated state,
for example @android:layout/simple_list_item_activated_1

- I have my own list item layouts, so can't use one of those

- The platform's list item layouts use:

    android:background="?android:attr/activatedBackgroundIndicator"

- <item name="activatedBackgroundIndicator"> in the platform's
res/values/themes.xml is marked with @hide, referencing it from my layouts
produces an error

- Following the actual definition of this attribute, we come
to @android:drawable/activated_background_holo_light - which a private
resource and can't be referenced from an application


I know I can copy the drawables out of the platform(s) and put them under
res/drawable-v11 and res/drawable-v14, including all the density
variations, but...

... I'm really hoping that I've missed something and there is a way to
highlight activated list items without adding more platform resources to my
app.


So, any ideas on what I missed?


Thanks,
-- Kostya

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to