This app is a simple master-detail demo built for the Surface Duo using Xamarin.Forms.
The Xamarin team built a neat demo called XamarinTV; I've borrowed some ideas from that (including the theme handling!), but stripped down to two simple views.
The sample uses the TwoPaneView control to lay out a CollectionView and a WebView: across both screens when the app is spanned, but split when on a single screen (or regular Android device).
There is a settings view (accessed via the gear icon), which should always take up an entire screen (not be split). Check out the code in MainPage.xaml.cs
to see how the TwoPaneView
is configured to make that happen. The same behavior can be accomplished via MVVM and Triggers (see the XamarinTV visual states and view model for their solution).
Sample running on a regular Android device