I'm creating an app for android and ios to listen to music from my radio station. For now I have a tabbedPage design with the menu option at the bottom. In the MainActivity I have created a ContentView with a linearLayout that always stays on top of all tabpages. But I would like that the player can be expanded to the top and reverse.
I have made a video screenshot of another app from the netherlands of what I would like to achieve.

Biggest question, is the TabbedPage capable to do this or do I need a whole other setup?
Different kinds of linearLayouts or relativeLayouts
Added code by request of ToolmakerSteve.
In my MainActivity OnCreate I have this:
ViewGroup contentView = FindViewById<ViewGroup>(Android.Resource.Id.Content);
LinearLayout view = new LinearLayout(this);
view.Orientation = Android.Widget.Orientation.Horizontal;
view.SetBackgroundColor(Android.Graphics.Color.Blue);
view.Background = getDrawableWithRadius();
FrameLayout.LayoutParams parameter = new FrameLayout.LayoutParams((Device.Idiom == TargetIdiom.Tablet ? 60 : LinearLayout.LayoutParams.MatchParent), (Device.Idiom == TargetIdiom.Tablet ? 110 : 160));
parameter.Gravity = GravityFlags.Bottom | GravityFlags.Left;
parameter.BottomMargin = 220;
view.LayoutParameters = parameter;
btnPushPlay = new Android.Widget.ImageButton(this);
btnPushPlay.Click += BtnPushPlay_Click;
btnPushPlay.SetBackgroundColor(Android.Graphics.Color.Transparent);
btnPushPlay.SetImageResource(Resource.Drawable.media_play_green);
view.AddView(btnPushPlay);
lblSong = new TextView(this);
lblSong.TextSize = 18;
lblSong.SetPadding(10, 35, 0, 0);
lblSong.SetTextColor(Android.Graphics.Color.White);
lblSong.Text = "Luister live!";
view.AddView(lblSong);
contentView.AddView(view);
And in the MainPage.xaml I have this:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Kickit_Radio.MenuPages;assembly=Kickit_Radio"
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:local1="clr-namespace:Kickit_Radio.ViewModels"
android:TabbedPage.ToolbarPlacement="Bottom"
BarBackgroundColor="#000000"
BarTextColor="White"
BackgroundColor="Black"
x:Class="Kickit_Radio.MainPage"
NavigationPage.HasNavigationBar="False"
NavigationPage.HasBackButton="True" SelectedTabColor="Green" UnselectedTabColor="#3184ca">
<TabbedPage.Children>
<local:Home Title="Home" IconImageSource="home.ico" />
<local:Nieuws Title="Nieuws" IconImageSource="@drawable/news" />
<local:Request Title="Request" IconImageSource="@drawable/record" />
<local:Programma Title="Programma" IconImageSource="@drawable/column" />
<local:Streams Title="Streams" IconImageSource="@drawable/record" />
<local:Contact Title="Contact" IconImageSource="@drawable/about"/>
</TabbedPage.Children>
</TabbedPage>
After searching and thinking, I came up with a solution to add a page to the
TabViewItem. First, you need to edit yourxaml-file fromContentPagetoContentView. Also change theBindingContextand theContent, for example:Also change your class:
To:
After that, you can add your page to the
TabViewItemHope this will help you further!