Mark: Thanks for the quick reply. Maybe I'm just getting too nit-picky! I have a dev list a mile long and I'm worried about this - I sh9ould have my head examined. I went ahead and tested it out.
I add the following XML to the project drawables: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:drawable="@drawable/icon_focused" /> <item android:drawable="@drawable/icon" /> </selector> I edited the following manifest line from: <application android:icon="@drawable/icon"> To: <application android:icon="@drawable/the_real_icon"> I created icon_focused, which simply says "IT WORKS" in an ugly red font, but it does not call it. Did I miss something? I'm a REAL newbie; humblest apologies and sincerest thanks in advance. Thanks, Nick Owens VP, ThreeClix Office: (904) 429-7039 Mobile: (847) 565-9392 After Hours: (904) 540-5830 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Murphy Sent: Friday, February 19, 2010 1:24 PM To: [email protected] Subject: Re: [android-developers] Focus Hover On App Icon? Nick Owens wrote: > I'm wondering if there's any way to switch out the application icon the main > category, when the focus scrolls over it. I'm not sure if I could send a > screenshot through this user group; if I could, you would see that our > design guys in their infinite wisdom chose Droid Hover orange as the logo > color. When not hovered on, it looks like a series of orange swoops. But > when hovered, it looks exactly like an orange square! Crap, crappity crap > crap, help me please! I haven't tried using a StateListDrawable for the application icon, though it might work. You'd have something like: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:drawable="@drawable/icon_focused" /> <item android:drawable="@drawable/icon" /> </selector> in res/drawable/the_real_icon.xml, and reference that in your manifest. Then, have two PNGs, one for the unfocused icon and one that will be used when it's focused. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- 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 -- 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

