Skip to main content

Posts

Showing posts with the label customize

Customize The Title Bar in Android

xml for custom title bar: < ?xml version="1.0" encoding="utf-8"?> < LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/titlebar> < TextView style="@style/MyRedTextAppearance" android:padding="7dp" android:id="@+id/txtvew_title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textColor="#FFFFFF" android:textSize="20dp" android:textStyle="bold" android:gravity="center"/> < /LinearLayout> main.xml: Include the above xml to the main xml as given below... < RelativeLayout xmlns:android="http://schemas.android.com/a...