android - How to make this drawer work in my layout -
i want multipleorientationslidingdrawer places on top in layout setting attributes layout_above
or below
@ it´s makes multipleorientationslidingdrawer
fill screen.
as see first child multipleorientationslidingdrawer
. if set second child drawer1
android:layout_below="@+id/multipleorientationslidingdrawer"
multipleorientationslidingdrawer
takes entire screen , works perfect can open drawer1
main content , toolbar hidden.
how come multipleorientationslidingdrawer
takes hold screen when closed?
any ide?
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_layout" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.port.android.ui.launcher.activitymain"> <com.port.android.ui.helper.multipleorientationslidingdrawer xmlns:custom="http://schemas.android.com/apk/res-auto/your.app" android:id="@+id/multipleorientationslidingdrawer" android:layout_width="match_parent" android:layout_height="wrap_content" custom:content="@+id/content_c" custom:handle="@+id/handle_c" custom:orientation1="top"> <relativelayout android:id="@id/handle_c" android:layout_width="match_parent" android:layout_height="30dp" android:background="#333333"> <textview android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginleft="4dp" android:gravity="left|center_vertical" android:text="@string/debug_viewer" /> </relativelayout> <framelayout android:id="@id/content_c" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#555555"> <android.support.v7.widget.recyclerview android:id="@+id/recyclerview" android:layout_width="match_parent" android:layout_height="wrap_content" android:fadescrollbars="false" android:gravity="top" android:scrollbarfadeduration="0" android:scrollbarsize="20dp" android:scrollbarthumbvertical="@android:color/darker_gray" android:scrollbars="vertical"/> </framelayout> </com.port.android.ui.helper.multipleorientationslidingdrawer> <android.support.v4.widget.drawerlayout android:id="@+id/drawer1" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.port.android.ui.launcher.activitymain"> <android.support.design.widget.coordinatorlayout android:id="@+id/snackbar_coordinatorlayout" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintleft_toleftof="parent" app:layout_constraintright_torightof="parent" app:layout_constrainttop_totopof="parent"> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintleft_toleftof="parent" app:layout_constraintright_torightof="parent" app:layout_constrainttop_totopof="parent"> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:custom="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?attr/colorprimary" android:fitssystemwindows="true"> <relativelayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <linearlayout android:id="@+id/linearlayout_head" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <textview android:id="@+id/current_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingtop="3dp" android:text="@string/production_title" android:textsize="20dp" android:textstyle="bold"/> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorprimary" android:orientation="horizontal"> <android.support.v7.widget.appcompatimageview android:id="@+id/country_image" android:layout_width="50dp" android:layout_height="35dp" android:paddingtop="4dp" app:srccompat="@drawable/anon_user_48dp"/> <space android:layout_width="8dp" android:layout_height="match_parent"/> <textview android:id="@+id/subitem_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginend="16dp" android:layout_marginright="16dp" android:maxlines="3" android:paddingbottom="4dp" android:textstyle="bold"/> </linearlayout> <textview android:id="@+id/current_visitors" android:layout_width="match_parent" android:layout_height="wrap_content" android:textstyle="bold" /> <space android:layout_width="match_parent" android:layout_height="8dp"/> </linearlayout> <progressbar android:id="@+id/toolbar_progress_indicator" style="?android:attr/progressbarstyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentend="true" android:layout_alignparentright="true" android:layout_margintop="28dp" android:visibility="invisible"/> </relativelayout> </android.support.v7.widget.toolbar> </linearlayout> <framelayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" app:layout_behavior="com.port.android.ui.helper.moveupwardbehavior"> <android.support.v7.widget.recyclerview android:id="@+id/recyclerview1" android:layout_width="match_parent" android:layout_height="wrap_content" android:fadescrollbars="false" android:scrollbarfadeduration="0" android:scrollbarsize="20dp" android:scrollbarthumbvertical="@android:color/darker_gray" android:scrollbars="vertical" /> <android.support.constraint.constraintlayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/windowbackground" tools:context="com.port.android.ui.launcher.activitymain"> <android.support.v4.widget.nestedscrollview android:layout_width="wrap_content" android:layout_height="0dp" android:layout_marginbottom="8dp" android:layout_marginleft="8dp" android:layout_marginstart="8dp" android:layout_margintop="8dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintleft_toleftof="parent" app:layout_constraintright_torightof="parent" app:layout_constrainttop_totopof="parent"> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="16dp"> <!-- start user --> <space android:layout_width="match_parent" android:layout_height="8dp"/> <textview android:id="@+id/about_header_user" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/user_header_text" android:textappearance="?android:attr/textappearancelarge"/> <space android:layout_width="match_parent" android:layout_height="16dp"/> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <imageview android:id="@+id/user_profile_picture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/anon_user_48dp"/> <space android:layout_width="16dp" android:layout_height="match_parent"/> <textview android:id="@+id/user_display_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium"/> </linearlayout> <textview android:id="@+id/user_email" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium"/> <textview android:id="@+id/user_enabled_providers" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium"/> <textview android:id="@+id/user_total_legacy_adresses" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium"/> <!-- end user --> </linearlayout> </android.support.v4.widget.nestedscrollview> </android.support.constraint.constraintlayout> </framelayout> </linearlayout> </android.support.design.widget.coordinatorlayout> <android.support.design.widget.navigationview android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:layout_marginbottom="4dp" android:layout_margintop="0dp" app:menu="@menu/menu_navigation_exit_address"> </android.support.design.widget.navigationview> </android.support.v4.widget.drawerlayout> </relativelayout>
Comments
Post a Comment