title: Android customized default title bar is not showing in 4.x devices
body: <p>I had customized the default title bar and it's showing as expected in 2.x, 3.x devices, but it's not showing in 4.x devices. </p>
  
  <p>On device 2.2:<br>
  <img src="https://i.stack.imgur.com/qxKY7.jpg" alt="enter image description here"></p>
  
  <p>On device 4.1.2:<br>
  <img src="https://i.stack.imgur.com/C96xk.jpg" alt="enter image description here"></p>
  
  <p>This is the code inside onCreate:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          TextView localTextView = (TextView) getWindow().findViewById(
                  android.R.id.title);
          if (localTextView != null) {
              ViewParent localViewParent = localTextView.getParent();
              if ((localViewParent != null)
                      &amp;&amp; ((localViewParent instanceof FrameLayout))) {
                  View localView = ((LayoutInflater) getSystemService("layout_inflater"))
                          .inflate(R.layout.logout_button, null);
                  UIImageButton localUIImageButton = (UIImageButton) localView
                          .findViewById(R.id.logoutButton);
                  Rect localRect = new Rect();
                  Window localWindow = getWindow();
                  localWindow.getDecorView().getWindowVisibleDisplayFrame(
                          localRect);
                  int i = localRect.top;
                  int j = localWindow.findViewById(android.R.id.title).getTop() - i;
                  PrintStream localPrintStream = System.out;
                  Object[] arrayOfObject = new Object[1];
                  arrayOfObject[0] = Integer.valueOf(j);
                  localPrintStream.printf("%d", arrayOfObject);
                  localUIImageButton.setMaxHeight(j);
                  ((FrameLayout) localViewParent).addView(localView);
              }
          }
      }
  </code></pre>
  
  <p>This is the manifest code:</p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="15" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/title_activity_main" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>I want the title bar in 4.x devices to be similar as in 2.x.</p>