On Nov 7, 5:14 pm, Jake Wharton <jakewhar...@gmail.com> wrote:
> I added the following line to the onCreate in the TitlesActivity class in
> the shakespeare sample which worked fine.
>
> getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0xff550000));
>
> [image: device-2011-11-07-151317.png]
>
> ---
> Jake Whartonhttp://about.me/jakewharton
>
> On Sun, Nov 6, 2011 at 7:47 AM, Profete162 <christophe.versi...@gmail.com>wrote:
>
>
>
>
>
>
>
> > More Info, as I cannot edit:
>
> > The doc is clear, that should work:
> >http://developer.android.com/guide/topics/ui/actionbar.html
>
> > Styling the Action Bar
>
> > The Action Bar is the heading for your application and a primary
> > interaction point for users, so you might want to modify some of its
> > design in order to make it feel more integrated with your application
> > design. There are several ways you can do this if you wish.
>
> > For simple modifications to the ActionBar, you can use the following
> > methods:
>
> > setBackgroundDrawable()
> > Sets a drawable to use as the Action Bar's background. The drawable
> > should be a Nine-patch image, a shape, or a solid color, so the system
> > can resize the drawable based on the size of the Action Bar (you
> > should not use a fixed-size bitmap image).
>
> > Thank a lot for your help.
>
>
>
> device-2011-11-07-151317.png
> 34KViewDownload