Hi,

Can you please tell me where is the android code which picks the
different drawable will be used as background
when it has focus?

For example, I have the following setup for my widget:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>

    <item android:state_pressed="true"
          android:drawable="@drawable/header_list_pressed" />

    <item android:state_focused="true"
          android:drawable="@drawable/header_list_focus" />
</selector>

Where is the android code which finds out which drawable it should
used for the widget's background?

I have looked at view.java, but I can't figure out which method is
doing what drawable should be used.

Thank you.

--~--~---------~--~----~------------~-------~--~----~
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