Reputation: 1
I am trying to use gravity as start(android:layout_gravity="start"'
)
in following code
but no luck as of yet.
Here is the Layout :
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
android:scrollIndicators="none">
<android.support.design.widget.NavigationView
android:layout_width="90pt"
android:layout_height="440dp"
android:fitsSystemWindows="false"
android:layout_gravity="start"
app:menu="@menu/drawer_menu"
android:paddingTop="@dimen/abc_action_bar_content_inset_material"
android:touchscreenBlocksFocus="false">
</android.support.design.widget.NavigationView>
</LinearLayout>
Upvotes: 0
Views: 56
Reputation: 31
Use Drawer Layout instead of Linear Layout. For Navigation view the parent layout should always be DrawerLayout.
Upvotes: 1