Specify that your application has no title bar, and then make your custom
title bar part of your content view.

On Tue, Jun 9, 2009 at 9:20 AM, Rick <[email protected]> wrote:

>
> I'm setting up an app to use a custom title so I can get the proper
> logo into the title instead of just text, and to make it clean (since
> the logo has a flat black background), I also want the whole title bar
> to be black. My xml for the title is a framelayout to hold the logo
> inside of a linearlayout to change the background color, and I'm
> setting the title in OnCreate() as follows:
>
>        protected void onCreate(Bundle savedInstanceState){
>                super.onCreate(savedInstanceState);
>        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
>        setContentView(R.layout.main);
>        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
> R.layout.title);
>        }
>
> With this setup, the old gray from the old title bar still exists
> around the edge of my custom title. Appears to be on the order of 3-4
> px on the bottom and 8-10 px on each side. Any ideas about how to get
> the black background to cover the entire area?
>
> Thanks
>
> -Rick
>
> >
>

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