I have the following xamarin layout schemma:
<StackLayout>
<Grid>...</Grid> <!-- TOP GRID - This must be fixed -->
<ScrollView>...</ScrollView> <!-- This must scroll -->
<Grid><Entry></Entry>/Grid> <!-- BOTTOM GRID - This must scroll -->
</StackLayout>
iOS behavior is surprisingly as I want(that's a chat layout, so top bar has pic and username which I want to be visible all time), but android behavior is up scrolling the whole page and keeping only Entry and bottom of ScrollView visible, that is almost what I need, but Top Grid is disappearing. Only Srollview and the Bottom grid musts scroll.
How can I achieve this?
EDIT 1
Sample project:
https://wetransfer.com/downloads/46b455cb7148189a0d1f84affa77b7e120210428144025/02b001
Can you try like this.
The basic Layout structre will be like this.
On your PCL, Create
KeyboardViewOn ios Create
KeyboardViewRendererFor Android add this in App.Xaml
UPDATE 1
From Your solution, You need to make 3 Changes.
Remove this line from MainTheme.Base in your style.
Remove this line from MainActivity
Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);Add
Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);After LoadApplication in mainactivity.UPDATE 2
If removing
android:windowFullscreenmessed status bar color as well as bottom bar color, We can make use of custom render.Create an Interface
IStatusBarPlatformSpecificIn android project create render named
StatusbarNow you can call it from your desired pages
OnAppearingLike this.You can now set the status bar color and bottom color matching to your page.Let me know if this worked for you.