Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to create Xamarin Menu Item like Youtube

$
0
0

Hi everyone,

How can I design a menu item like Youtube app as below screenshots

Android

Android

Ios

Ios

I'm using Content Pages embed in a Tabbed Page as below code


<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="TestApp"
             xmlns:pages="clr-namespace:TestApp;assembly=TestApp"
            Title="Hello">
    <ContentPage Title="Tab 1">
        <ContentPage.ToolbarItems>
            <ToolbarItem Name="MenuItem1" Order="Primary" Icon="Microsoft.png" Text="Item 1" Priority="0" />
            <ToolbarItem Name="MenuItem2" Order="Secondary" Icon="Xamarin.png" Text="Item 2" Priority="1" />
        </ContentPage.ToolbarItems>
    </ContentPage>
    <ContentPage Title="Tab 2">
        <ContentPage.ToolbarItems>
            <ToolbarItem Name="MenuItem1" Order="Primary" Icon="Microsoft.png" Text="Item 1" Priority="0" />
            <ToolbarItem Name="MenuItem2" Order="Secondary" Icon="Xamarin.png" Text="Item 2" Priority="1" />
        </ContentPage.ToolbarItems>
    </ContentPage>
</TabbedPage>

I don't know whether this approach is correct? Is there any other approach better than this one?

=== Updated ====

Another question: With kind of this UI should I go with xamarin.forms or native?


Viewing all articles
Browse latest Browse all 204402

Trending Articles