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

Android Scrollview and Keyboard not working correctly with Absolute layout as Root...

$
0
0

Using Forms 1.3.0 at the moment...

OK I have a special hierarchy in my project and stacks and need the keyboard to activate the scroll view correctly however in Android there seems to be a bug because the same code on the iOS side is working correctly... Here is the layout I have...

(NOT WORKING)
ContentPage
--- AbsoluteLayout
----- StackLayout (this is my custom header)
----- StackLayout (this is my custom sidenav)
----- StackLayout (this is my custom content area)
------- ScrollView
--------- StackLayout
----------- Entry (input)
----------- ...... more inputs

Activating an Entry box will bring up the keyboard but will not scroll the scrollview to the correct location so the keyboard does not block the input... I don't want to be using the traditional layout of a current navigation layout and navigation bar because it very limiting in the type of layout I am trying to make...

The above layout and code works perfectly on iOS but not on Android... When the keyboard pops up it does NOT scroll the view correctly... However the below layout does work on Android but it does not let me build the type of layout that I want...

(WORKING)
- ContentPage
--- StackLayout
----- StackLayout (this is my custom header)
----- StackLayout (this is my custom content area)
------- ScrollView
--------- StackLayout
----------- Entry (input)
----------- ...... more inputs

Any ideas? or maybe I wait for Forms 1.3.2 ???

I need to have an AbsoluteLayout on the very top so I can position all my layout element accordingly... (nav bar, side nav, satellite buttons, etc...) It is just not achievable using a StackLayout on the Root... Unless someone knows how...

Thanks,


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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