Scrollview control not working properly in .Net MAUI (Android) #8427
Labels
area-controls-scrollview
ScrollView
platform/android 🤖
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Milestone
Description
I have created custom tab control using ScrollView control and Bindable StackLayout control.
I first created this solution in Xamarin.Forms (VS for Mac 2019) and works fine on both platforms, but the same solution when developed in .Net MAUI (VS for Mac 2022 Prev) it's not working properly in Android.
Details available here:
https://stackoverflow.com/questions/72804245/scrollview-control-not-working-properly-in-net-maui-android
Steps to Reproduce
https://github.com/divyesh008/Maui_sample
1 Create a new Maui project, and in MainPage.XAML takes a scroll view with Horizontal orientation and inside that take a Bindable StackLayout.
2 After scroll view end tag add subviews that you want to display as a tab.
3 In ViewModel write a logic to change the tab view and Maintain bool flags to show/hide relevant views.
4 Run the project in Android and try to change the tab it will display a blank screen, then if you close the app by pressing the hardware back button and open it again it will show the selected tab properly.
Version with bug
6.0.312
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 10, 11 and above
Did you find any workaround?
No, I have tried different work arounds but none of them worked.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: