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

MasterDetailPage on Android Tablet problem (right border not clickable)

$
0
0

Hi
I'm using a MasterDetailPage and just notice that a small button wasn't clickable under android.
Took me some time to realize that it was all the right border of the screen that wasn't clickable.

To reproduce:
In the "FormsGallery" project of the "xamarin-forms-samples-master" Git
Edit the file NamedColorPage.cs and change the content to :

// Build the page
            this.Content = new StackLayout
            {
                Children = 
                {
                    new StackLayout
                    {   
                        HorizontalOptions = LayoutOptions.Center,
                        VerticalOptions = LayoutOptions.CenterAndExpand,
                        Children = 
                        {
                            CreateLabel("Color.R", "R = {0:F2}"),
                            CreateLabel("Color.G", "G = {0:F2}"),
                            CreateLabel("Color.B", "B = {0:F2}")
                        }
                    },
                    boxView,
                    new StackLayout
                    {   
                        HorizontalOptions = LayoutOptions.Center,
                        VerticalOptions = LayoutOptions.CenterAndExpand,
                        Children = 
                        {
                            CreateLabel("Color.Hue", "Hue = {0:F2}"),
                            CreateLabel("Color.Saturation", "Saturation = {0:F2}"),
                            CreateLabel("Color.Luminosity", "Luminosity = {0:F2}")
                        }
                    }**,
                    new Grid()
                    {
                        BackgroundColor = Color.Green,
                        Children =
                        {
                            new Button() { Text = "Test", BackgroundColor= Color.Red, HorizontalOptions = LayoutOptions.End , WidthRequest=300}
                        }
                    }**

                }
            };

In landscape when the Master page is always visible, you will notice that the right border of the button is not clickable.
I've done the test on my Galaxy Tab 3 and on a VM
Is there any known workaround ?

BR
Cyril


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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