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?

KalLe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to