locked
Xamarin Forms with a NavigationPage repeat view at bottom of screen on Nexus 5 RRS feed

  • Question

  • User88979 posted

    Hi there. When I test some of the Xamarin forms samples and my own app on my Nexus 5, the view stops before the bottom of the screen and then starts to repeat itself.

    Code:

    using System;
    using Xamarin.Forms;
    
        namespace ToDoList
        {
            public class App
            {
                public static Page GetMainPage ()
                {   
                    return new NavigationPage(new HomeScreen());
                }
            }
        }
    
    <?xml version="1.0" encoding="UTF-8"?>
    <ContentPage    xmlns="http://xamarin.com/schemas/2014/forms" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
                    x:Class="ToDoList.HomeScreen"
                    Padding="20"
                    Title="My Activities">
        <ContentPage.Content>
            <StackLayout Spacing="10"
                   VerticalOptions="CenterAndExpand" 
                   Orientation="Vertical">
                <Label Text="Stop"
                       BackgroundColor="Red"
                       Font="20" />
                <Label Text="Slow down"
                       BackgroundColor="Yellow"
                       Font="20" />
                <Label Text="Go"
                       BackgroundColor="Green"
                       Font="20" />
                <Label Text="Stop"
                       BackgroundColor="Red"
                       Font="20" />
                <Label Text="Slow down"
                       BackgroundColor="Yellow"
                       Font="20" />
                <Label Text="Go"
                       BackgroundColor="Green"
                       Font="20" />
            </StackLayout>
        </ContentPage.Content>
    </ContentPage>
    
    using System;
    using System.Collections.Generic;
    using Xamarin.Forms;
    
    namespace ToDoList
    {   
        public partial class HomeScreen : ContentPage
        {   
            public HomeScreen ()
            {
                InitializeComponent ();
            }
        }
    }
    

    Once, it rendered taking up less than the full screen but without repeating.

    If I delete the navigation page and just have a ContentPage alone, it renders correctly. See images below. Is this a bug?

    Saturday, November 29, 2014 3:05 AM

All replies

  • User88979 posted

    The image that repeats. Sorry, did not upload images correctly. First post.

    Saturday, November 29, 2014 3:07 AM
  • User77911 posted

    I am seeing the exact same issue. I have filed a bug and took the time to create a test project for Xamarin to dive straight into the issue and I have had no reply in almost three weeks :( https://bugzilla.xamarin.com/show_bug.cgi?id=24656

    Thursday, December 4, 2014 10:33 AM
  • User92291 posted

    I am also seeing the same bug on a Nexus 5 on Android 5.

    Enclosing a page in a NavigationPage distorts the content. The bottom of the page cuts off content and then begins repeating content from elsewhere on the page. Also, tested with AbsoluteLayout.

    Thursday, December 11, 2014 4:48 PM
  • User92291 posted

    This seems to be fixed in the latest prerelease 1.3.0.6280-pre2.

    Friday, December 12, 2014 8:20 AM