Changing header button image and header text at runtime
<p>I have a header common in all activities. </p>

<p>header.xml  </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header_layout" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal"&gt;

&lt;!-- home button --&gt;
&lt;ImageButton android:id="@+id/header_home_button"
    android:src="@drawable/menu_info" android:layout_height="wrap_content"
    android:layout_width="wrap_content" /&gt;

&lt;!-- header text --&gt;
&lt;TextView android:id="@+id/header_title" android:layout_width="200dip"
    android:layout_height="wrap_content" android:gravity="center"
    android:text="Todays recipe :" android:textSize="20dp"
    android:textStyle="bold" /&gt;

&lt;/LinearLayout&gt;  
</code></pre>

<p>However in different activities the title changes for textview and image for imageButton also changes. How to change them at runtime?  </p>

<p>Thanks</p>
