On Wed, Feb 11, 2009 at 12:09 PM, $§Kalle§$ <[email protected]> wrote:

>
> I am using the following Layout for the titlebar with a blue backround
> color
>
> <RelativeLayout
>        android:id="@+id/RelativeLayout01"
>        xmlns:android="http://schemas.android.com/apk/res/android";
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:background="#ff000099">
>        <TextView
>                android:id="@+id/TextView01"
>                android:layout_height="wrap_content"
>                android:text="@string/app_name"
>                android:textColor="#ffffffff"
>                android:textStyle="bold"
>                android:gravity="center_vertical"
>                android:layout_centerVertical="true"
>                android:layout_width="wrap_content">
>        </TextView>
> </RelativeLayout>
>
> In onCreate I got:
> ...
>        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
>        setContentView(R.layout.main);
>        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
> R.layout.title);
> ...
>
> With that I get a changed titlebar for my HelloWorlApp, that is fine.
> But somehow on the left and right side there is some margin and I
> still can see some Grey from the original titlebar.
>
> What did I wrong?


Where do the icons next the title string come from? I don't see them in your
layout, so there must be something you're doing outside of the posted code
and layout that is causing the problem.
And why on earth are you trying to make your app's title bar look like
Windows 3.1? ;)

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