I have create a simple custom title which is showing perfectly. However I am not sure what id to give my TextView in order for the setTitle method to work its magic.
My first choice was @android:id/title but that did not work.
Example I have defined a custom title layout in xml and added it to my activity.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/custom_title"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/transparent" >
<ImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:scaleType="centerInside"
android:onClick="home"
android:src="@drawable/logo" />
<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:textSize="18dp"
android:textStyle="bold"
android:layout_centerVertical="true"
android:text="TextView" />
</RelativeLayout>
The TextView is now the "title" container. What I want is for the android:label value from the manifest to automatically be put in this new title TextView.
Ie. the default method setTitle must be adding this value to some defined view id - I just need that id.