Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

MasterDetail left and right navigation screens

$
0
0

Is there a way to have Left and Right slideout navigation in a MasterDetail page? In Android you can simply use the example below, and I know that some of the OSS iOS plugins also support both... just not sure if the X.F MasterDetailPage supports it.

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:local="http://schemas.android.com/apk/res-auto"
    android:id="@+id/RootView_Layout"
            android:layout_height="match_parent"
        android:layout_width="match_parent">
<!-- The main content view -->
    <FrameLayout
        android:id="@+id/RootView_ContentFrame"
            android:layout_height="match_parent"
        android:layout_width="match_parent"  />
<!-- The left navigation drawer -->
    <include
        android:layout_width="300dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        layout="@layout/_leftdrawerlayout" />
<!-- The right navigation drawer -->
    <include
        android:layout_width="330dp"
        android:layout_height="match_parent"
        android:layout_gravity="end"
        layout="@layout/_rightdrawerlayout" />
</android.support.v4.widget.DrawerLayout>

Viewing all articles
Browse latest Browse all 58056

Trending Articles