How to bring ImageView under the transparent Status Bar
<p>In the images below,I am trying to bring the ImageView under the StatusBar. But its not happening.</p>

<p><a href="https://i.stack.imgur.com/oxgrX.png" rel="nofollow noreferrer">Image Screenshot on Android API 19</a></p>

<p><a href="https://i.stack.imgur.com/XnZ4p.png" rel="nofollow noreferrer">Image Screenshot on Android API 22</a></p>

<p><strong>I went on <a href="https://stackoverflow.com/questions/29907615/android-transparent-status-bar-and-actionbar">Android transparent status bar and actionbar</a> (this question) and tried to implement the same but its not working.</strong> </p>

<p>The <strong>xml layout of the activity</strong> is </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;FrameLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;LinearLayout
android:id="@+id/category_layout_top"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"&gt;

&lt;FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;
&lt;ImageView
    android:fitsSystemWindows="true"
    android:layout_width="390dp"
    android:layout_height="390dp"
    android:id="@+id/category_Image_View"/&gt;


    &lt;android.support.v7.widget.Toolbar
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/def_toolbar"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:minHeight="?attr/actionBarSize"
        android:background="#00FFFFFF"
        android:layout_alignParentTop="true" /&gt;




&lt;/FrameLayout&gt;
&lt;LinearLayout
 android:layout_width="match_parent"
 android:layout_height="50dp"
 android:id="@+id/category_linearlayout"&gt;
&lt;TextView android:layout_width="match_parent"
android:layout_height="match_parent"
android:singleLine="true"
android:id="@+id/category_textView"
/&gt;
&lt;/LinearLayout&gt;

&lt;/LinearLayout&gt;

&lt;/FrameLayout&gt;
</code></pre>

<p>I tried the below code in the <strong>onCreate()</strong> method also</p>

<pre><code> setStatusBarTranslucent(true);



protected void setStatusBarTranslucent(boolean makeTranslucent) {
    if (makeTranslucent) {
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    } else {
        getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    }
}
</code></pre>

<p><strong>style.xml</strong></p>

<pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
    &lt;!-- Customize your theme here. --&gt;
    &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
    &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
    &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;

&lt;/style&gt;
</code></pre>

<p><strong>style-v21.xml</strong></p>

<pre><code>&lt;style name="AppTheme.NoActionBar"&gt;
    &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
    &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
    &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
    &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p><strong>AppTheme is the style used in the activity.</strong></p>

<p><strong>EDIT 1</strong></p>

<p><strong>I used a  color in the background of FrameLayout to check whether it was under the status bar or not. And it is not.</strong></p>

<p>So the problem is not with Layout, I guess.</p>

<p><strong>EDIT 2</strong>
this is the desired result 
<a href="https://i.stack.imgur.com/K2GMA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K2GMA.jpg" alt=""></a></p>