It's a bug. I don't know if it's fixed in Cupcake, but in 1.1 and 1.0
this does not work. The icon will always be on the left.

On Apr 29, 4:39 am, quill <[email protected]> wrote:
> Hi all,
> I just want to set an icon in the right of titlebar, so I use:
>         Window  w = getWindow();
>         w.requestFeature(Window.FEATURE_RIGHT_ICON);
>         setContentView(R.layout.main);
>         w.setFeatureDrawableResource(Window.FEATURE_RIGHT_ICON,
>                         R.drawable.icon);
> but it doesn't work, the icon is still at left. Did I miss something?
> Pls help me, thx!
--~--~---------~--~----~------------~-------~--~----~
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