title: custom title bar is not working android
body: <p>Hi i have set up a custom title bar but the app crashes and i don't get any error log in LogCat, i'm going crazy. Here's is some code, can you experts see what's wrong?</p>
  
  <pre><code>boolean isCustomTitleSupported;
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          isCustomTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
          setContentView(R.layout.about);
          customizeTitleBar("My Title");
  
      public void customizeTitleBar(String title){
          if(isCustomTitleSupported){
              getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.customtitlebar);
              TextView customTitleText = (TextView)findViewById(R.id.customtitle);
              customTitleText.setText(title);
              customTitleText.setTextColor(Color.WHITE);
          }
      }
  </code></pre>
  
  <p><strong>customtitlebar.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="horizontal" 
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
      &lt;TextView android:id="@+id/customtitle"
          android:layout_width="wrap_content" 
          android:layout_height="fill_parent"
          android:textStyle="bold"
          android:padding="3px" 
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>some help will be appreciated</p>
  
  <p>Thanks!!</p>
  
  <p><strong>EDIT:</strong> i noticed that i wasn't extending Activity but BaseActivity a superclass i created to have the menu available in all of my activities. So i changed back to extend Activity and it's working but this is a problem because i need menus too. Is there any tricks so i could keep extending BaseActivity and even get the title bar to work?</p>