I am designing an app which contains header title bar, I am using the following xml for creating header bar. but I am unable to show full width, if i use fill_parent it acts really weird. Any idea or any suggestions how to create a header title bar, increase decrease height. Thanks a lot.
window_title.xml lay out below.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:padding="0px"
android:layout_width="fill_parent"
android:layout_height="60px"
android:background="#323331">
<ImageView
android:id="@+id/header"
android:src="@drawable/header"
android:layout_width="fill_parent"
android:layout_height="60px"/>
</LinearLayout>
.java file
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);