title: Why is the status bar disabled in BasicActivity?
body: <p>I am using a Basic Activity to show some results but the top bar is not visible in this activity like other actives.how can i do it ? Advance thanks for any comment on this</p>
  
  <p><a href="https://i.stack.imgur.com/WYeLc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WYeLc.png" alt="enter image description here"></a></p>
  
  <p>here is my mainfest </p>
  
  <pre><code>&lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"
              android:theme="@style/AppTheme.NoActionBar"&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;activity android:name=".ResultActivity" /&gt;
          &lt;activity
              android:name=".DetailActivity"
              android:label="@string/title_activity_detail"
              android:theme="@style/AppTheme.NoActionBar"&gt;&lt;/activity&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p>Layout for Activity:</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;TextView
          android:text="TextView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/textViewDetails"
          android:layout_marginTop="15dp"
          android:layout_below="@+id/appBarLayout"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:layout_marginLeft="10dp"
          android:layout_marginStart="10dp" /&gt;
  </code></pre>