mxn21 / FlowingDrawer

swipe display drawer with flowing & bouncing effects.
Apache License 2.0
2.57k stars 468 forks source link

How can I make the drawer overlap the title bar ? #37

Closed tudor07 closed 7 years ago

tudor07 commented 7 years ago

Hi,

I wonder how can I make the drawer to fit all the screen height so it overlaps the title bar and also the status bar.

This is how it looks now: drawer

I want the drawer to be all the way up overlapping the title bar.

Thanks.

mxn21 commented 7 years ago

FlowingDrawer will always fit all the screen height and overlaps the title bar(toolbar) ,but not the status bar.

tudor07 commented 7 years ago

But in my case (as you can see in the picture) the FlowingDrawer does not overlay the title bar(toolbar). Is this a default behavior ? Because it does not work by default for me.

mxn21 commented 7 years ago

I guess your xml file is not correct. please read README or refer to demo

tudor07 commented 7 years ago

Thanks for your fast response. This is my activity_main.xml:

<com.mxn.soul.flowingdrawer_core.FlowingDrawer
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawerlayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipChildren="false"
    android:clipToPadding="false"
    app:edPosition="1"
    app:edMenuSize="260dp"
    app:edMenuBackground="#dddddd">

    <!--content-->
    <RelativeLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:id="@+id/fragment_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <Button
            android:id="@+id/pair_try_again"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/try_again"
            android:layout_centerHorizontal="true"
            android:visibility="gone"/>

    </RelativeLayout>

    <!--menu-->
    <com.mxn.soul.flowingdrawer_core.FlowingMenuLayout
        android:id="@+id/menulayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:id="@+id/id_container_menu"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <TextView
                android:id="@+id/home"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="HOME"/>

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="SETTINGS"
                android:layout_below="@id/home"/>
        </RelativeLayout>

    </com.mxn.soul.flowingdrawer_core.FlowingMenuLayout>

</com.mxn.soul.flowingdrawer_core.FlowingDrawer>

I don't really see anything wrong with it.

mxn21 commented 7 years ago

well, check out your mainActivity's style , in my demo I use Theme.AppCompat.Light.NoActionBar

tudor07 commented 7 years ago

Ohh I understand. I use Theme.AppCompat.Light.DarkActionBar. So I should make a custom ActionBar and make it stay below the FlowingDrawer as there is no customization option for the FlowingDrawer itself ?

mxn21 commented 7 years ago

yes ,you are right . @tudor07

tudor07 commented 7 years ago

Ok I understand. Thank you very much for your time and fast responses. This issue can be closed then. :)

usergoodvery commented 6 years ago

Hi, Is it actually a "mistake" to display below the toolbar? In my case that's a requirement.

regards,