The code used in all the activites is:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
And the mytitle xml is:
<?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="fill_parent"
android:background="#FFFFF0" >
<ImageView
android:id="@+id/mytitle"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
android:src="@drawable/header_bloodbank2" />
</LinearLayout>
The header in my app doesn't fit well to its dimensions.I've used 'fill_parent' for both width and height attributes. Still, no help. The header doesn't wrap fully. What may be the reason behind it ? Help me out! Also attached a snapshot!