It's not a bug, you need to request all features before setContentView().

On Wed, Apr 29, 2009 at 6:29 PM, quill <[email protected]> wrote:

>
> Hi, Streets!
> My sdk is cupcake1.5, the bug still remains...(if it is a bug)
>
> On Apr 29, 9:59 pm, Streets Of Boston <[email protected]> wrote:
> > 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!- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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