title: Setting Custom ActionBar Title from Fragment
body: <p>In my Main <code>FragmentActivity</code>, I setup my custom <code>ActionBar</code> title like this:</p>
  
  <pre><code>    LayoutInflater inflator = (LayoutInflater) this
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      View v = inflator.inflate(R.layout.custom_titlebar, null);
  
      TextView tv = (TextView) v.findViewById(R.id.title);
      Typeface tf = Typeface.createFromAsset(this.getAssets(),
              "fonts/capsuula.ttf");
      tv.setTypeface(tf);
      tv.setText(this.getTitle());
  
      actionBar.setCustomView(v);
  </code></pre>
  
  <p>This works perfect.  However, once I open other <code>Fragments</code>, I want the title to change.  I am not sure how to access the Main <code>Activity</code> to do this?  In the past, I did this:</p>
  
  <pre><code>((MainFragmentActivity) getActivity()).getSupportActionBar().setTitle(
              catTitle);
  </code></pre>
  
  <p>Can someone advise on the proper method?</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/transparent" &gt;
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerVertical="true"
          android:layout_marginLeft="5dp"
          android:ellipsize="end"
          android:maxLines="1"
          android:text=""
          android:textColor="#fff"
          android:textSize="25sp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>