title: Unable to remove Title bar from app
body: <p>I am using <code>AppTheme.NoActionBar</code>. I am trying to remove title bar from app.</p>
  <p>Here what i have already tried.</p>
  <p>Tried settings <code>android:theme=&quot;@style/Theme.NoTitleBar&quot;</code> this gives me error <code>cannot resolve symbol</code></p>
  <p>Tried adding <code>requestWindowFeature(Window.FEATURE_NO_TITLE);</code> in onCreate method before setting <code>ContentView</code> it doesn't affect anything</p>
  <p>Here are the post i posts i already tried</p>
  <p><a href="https://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme">How to hide the title bar for an Activity in XML with existing custom theme</a></p>
  <p><a href="https://stackoverflow.com/questions/23255373/remove-app-title-bar-android">Remove app title bar android</a></p>
  <p>What i am trying to do is i am creating a custom UI and want the app full screen(want to show notification bar).</p>
  <p>Also my app is targeted for Api level 10 and above</p>
  <p><strong>Update</strong>
  Here are few more things i tried <a href="https://chat.stackoverflow.com/rooms/113175/discussion-between-arthur-leao-and-akash-kumar">https://chat.stackoverflow.com/rooms/113175/discussion-between-arthur-leao-and-akash-kumar</a> suggested by @ArhturLeao</p>
  <p><strong>Update 2</strong></p>
  <p>Tried <code>@android:style/Theme.NoTitleBar</code> on a new sample project worked as expected(had to extened Activity class instead of AppCompactActivity class)</p>
  <p>Tried same with project i am having issue and it still shows Blank TitleBar.</p>
  <p>Here is the project i am having trouble with <a href="https://github.com/skywebdeveloper/Tikona-Session-Manager/tree/design" rel="nofollow noreferrer">https://github.com/skywebdeveloper/Tikona-Session-Manager/tree/design</a></p>
  <p>**Update 3 **</p>
  <p><code>onCreate</code> Method</p>
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
          CookieHandler.setDefault(new CookieManager());
  
          popupLoader = new ProgressDialog(this);
  
          url = getSharedPreferences(&quot;url&quot;, MODE_PRIVATE);
          sessionPreference = getSharedPreferences(&quot;session&quot;, MODE_PRIVATE);
  
          sessionStart = (TextView) findViewById(R.id.sessionStartValue);
          sessionDuration = (TextView) findViewById(R.id.sessionDurationValue);
          sessionUsage = (TextView) findViewById(R.id.sessionUsageValue);
  
  
          logout = new AlertDialog.Builder(this);
          logout.setMessage(&quot;Are you sure you want logout?&quot;).setTitle(&quot;Confirm Logout&quot;);
          logout.setPositiveButton(&quot;Logout&quot;, new DialogInterface.OnClickListener() {
              @Override
              public void onClick(DialogInterface dialog, int which) {
                  //Call logout uri
                  logout();
              }
          });
          logout.setNegativeButton(&quot;Cancel&quot;, new DialogInterface.OnClickListener() {
              @Override
              public void onClick(DialogInterface dialog, int which) {
                  //Do nothing
              }
          });
  
          logout.create();
  
          //fetchSessionDetails();
          getURLs();
  
      }
  </code></pre>
  <blockquote>
  <p>style.xml</p>
  </blockquote>
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.Light.DarkActionBar&quot;&gt;
          &lt;!-- Customize your theme here. --&gt;
  
          &lt;item name=&quot;colorPrimary&quot;&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryDark&quot;&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name=&quot;colorAccent&quot;&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name=&quot;windowActionBar&quot;&gt;false&lt;/item&gt;
          &lt;item name=&quot;windowNoTitle&quot;&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name=&quot;AppTheme.NoActionBar&quot;&gt;
          &lt;item name=&quot;windowActionBar&quot;&gt;false&lt;/item&gt;
          &lt;item name=&quot;windowNoTitle&quot;&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name=&quot;AppTheme.AppBarOverlay&quot; parent=&quot;ThemeOverlay.AppCompat.Dark.ActionBar&quot; /&gt;
  
      &lt;style name=&quot;AppTheme.PopupOverlay&quot; parent=&quot;ThemeOverlay.AppCompat.Light&quot; /&gt;
  
  &lt;/resources&gt;
  </code></pre>