Bug 48018 - Horizontal scrollview within MasterDetailPage is empty - only on Android Nougat
Summary: Horizontal scrollview within MasterDetailPage is empty - only on Android Nougat
Status: RESOLVED UPSTREAM
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-26 12:27 UTC by Falko Schindler
Modified: 2018-03-26 08:34 UTC (History)
5 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED UPSTREAM

Description Falko Schindler 2016-11-26 12:27:22 UTC
The following code produces a MasterDetailPage with a horizontal ScrollView containing a simple Label. On Android 7.1 "Nougat" the Label is not rendered. Removing the ScrollOrientation.Horizontal, it is visible as expected. On Android 6.0 as well as iOS I don't notice any issues.

    MainPage = new MasterDetailPage {
        Master = new ContentPage { Title = "Test" },
        Detail = new ContentPage {
            Content = new ScrollView {
                Orientation = ScrollOrientation.Horizontal,
                Content = new Label {
                    Text = "Label",
                },
            },
        },
    };
Comment 1 Falko Schindler 2016-11-26 12:35:56 UTC
The bug still occurs on Xamarin.Forms 2.3.3.168.
Comment 2 Falko Schindler 2016-11-28 07:57:08 UTC
I noticed that when constructing the ScrollView later, e.g. within a Button's command, it is correctly rendered.
Comment 3 Falko Schindler 2016-11-28 08:52:22 UTC
A possible workaround is to create the Content within OnAppearing of the ContentPage.
Comment 4 Paul DiPietro [MSFT] 2017-08-08 21:33:39 UTC
This appears to be resolved when updating to the latest support.v7.appcompat package.
Comment 5 christopher 2018-03-26 08:34:51 UTC
Could not reproduce this bug with Xamarin.Forms 2.5.0.280555 and Xamarin.Android.Support.v7.AppCompat on a Nexus 6 with Android 7.1.1.