Quantcast
Viewing all articles
Browse latest Browse all 91519

Shell close animation stuttering on Android

Hi,

today I experimented a bit with the "new" (not that new anymore) shell component in order to set up a simple hamburger menu.
I'm facing the same issue as with the MasterDetailPage in the past, were the animation of closing the menu is stuck for a second before actually closing.
For the Masterdetail it was solved by adding a delay (which was bad already) but I can't find a way to solve it for shell.

Does anyone know how to improve the closing animation? Right now it is unusable.

Here is my xaml setup:

<?xml version="1.0" encoding="UTF-8"?>
<Shell BackgroundColor="#D4503B"  xmlns="http://xamarin.com/schemas/2014/forms" xmlns:page="clr-namespace:MyApp.ContentPages" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.AppShell">
    <FlyoutItem Title="Dashboard" >
            <Tab>
                <ShellContent ContentTemplate="{DataTemplate page:Page1}"/>
            </Tab>
    </FlyoutItem>
    <FlyoutItem Title="Train ticket request">
            <Tab>
                <ShellContent ContentTemplate="{DataTemplate page:Page2}" />
            </Tab>
    </FlyoutItem>
    <FlyoutItem Title="Parking spot reservation">
            <Tab>
                <ShellContent ContentTemplate="{DataTemplate page:Page3}" />
            </Tab>
    </FlyoutItem>
</Shell>

Page 1 is almost empty, just two buttons without any styling are shown there but the same problem. Page2 and 3 are a bit more complex but still not overwhelmingly crazy.

One of my ideas was to manually tell when to open and close and navigate but I didn't find a way how to implement it (For example, how to get the menu icon click event?)
Any ideas?

I'm using Xamarin.Forms 4.3.0.947036

References confirming the bug (One is marked as solved but clearly isn't):
https://github.com/xamarin/Xamarin.Forms/issues/7521
https://github.com/xamarin/Xamarin.Forms/issues/5216

References to fix MasterDetail in the past:
https://github.com/xamarin/Xamarin.Forms/issues/4398
https://stackoverflow.com/questions/48115810/how-can-i-make-the-masterdetailpage-faster-on-android


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>