-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ScrollView IsClippedToBounds="true" not rendering on Android with Forms 3.3, 3.4, 3.5, 3.6, 4.0 #4455
Comments
Hi I m having trouble reproduction your issue, do you mind upload a small repo using 3.2. Thanks |
Rui, I emailed you screenshots and a demo page. Let me know if you need anything else, ok? Thanks, Mark. |
@rmarinho do you need anything additional from @BlueFire-LLC ? |
Attached are some screenshots and the demo page. You’ll see in the demo page that I reference a custom gesture recognizer that uses Android’s GestureDetector.SimpleOnGestureListener. BugTest1 – first page You can view the actual app from the link below. The demo page was taken from the Drive page of the app. https://play.google.com/store/apps/details?id=com.bluefire_llc.motorhomes Mark. Demo App Screenshot with 3.2, First Page Screenshot with 3.2, Second Page Screenshot with 3.2, Third Page |
@BlueFire-LLC I'm not quite sure how to recreate the issue with what you've attached I've included a project that has the page from your zip file in it. Can you try to modify the above project to demonstrate your issues? |
@BlueFire-LLC Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you! |
Still is. I was planning on getting back to you this week. I never heard back from@rmarinho with the test app I sent and also included in the previous posts. I still have to use 3.2 in my Android project even though the iOS and Win10 is 3.4. |
Hello Samantha,
It still is affecting me. I was planning on getting back to you this week. I never heard back from @rmarinho with the test app I sent and also included in the previous posts. I still have to use 3.2 in my Android project even though the iOS and Win10 is 3.4.
I’ve attached the test app here so you can take a look at it or pass it along.
Thanks,
Mark.
Mark Fredrickson
Founder & CTO
BlueFire LLC
206-251-0698
<http://www.bluefire-llc.com/> www.bluefire-llc.com
From: Samantha Houts [mailto:notifications@github.com]
Sent: Monday, February 4, 2019 3:00 PM
To: xamarin/Xamarin.Forms <Xamarin.Forms@noreply.github.com>
Cc: Mark Fredrickson <mark.fredrickson@bluefire-llc.com>; Mention <mention@noreply.github.com>
Subject: Re: [xamarin/Xamarin.Forms] ScrollView IsClippedToBounds="true" not rendering on Android with Forms 3.3 & 3.4 (#4455)
@BlueFire-LLC <https://github.com/BlueFire-LLC> Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#4455 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFFuHhZUfs07YgkPAn_iB_DFaJfu6Ijqks5vKLtogaJpZM4YoEHc> . <https://github.com/notifications/beacon/AFFuHlQHrgbj-_XOPnNoJoleUYMaqqw4ks5vKLtogaJpZM4YoEHc.gif>
|
See repro #5225 (comment) |
Any update???? I still have to use 3.2 for my Android project. |
So, I just tried 3.6 and it still is broken. How long do I have to wait for this to get fixed? |
Ok, you guys owe me a cold one. After 6 months of staying on version 3.2 I finally had time to figure out what's going on. So I just spent the last two days going through all sorts of gyrations. I began with the Triage app you provided that works and my app that does not. I started pairing down my app (it's pretty big) to just the Android project. I then started adding to the Triage app to see if I could make it not work. I also started removing pieces from mine to make it work. Of course every time I added or removed something I had to test it. This took the first day plus some of the second. I finally ended up with two apps (Triage and mine) that had identical project files (.csproj). And still Triage worked and mine did not. I even made sure that the app files were the same (MainActivity, BugTest, etc). Everything was the same and mine still did not work. I was totally baffled. The only file that was different was the AndroidManifest.xml. It of course had different package names and labels. So I made them the same and still mine did not work. Now everything was exactly the same. I even thought that maybe installing one after the other made a difference but nope. I even tried VS 2017 and VS 2019 thinking it was a VS bug, but still the same. I sat back and stared at all the files and lo and behold I noticed that in the AndroidManifest.xml the order of <uses_sdk .../> and <application .../> were different. No, I said, that couldn't be the reason. It's a settings file. The order should make no difference. Well, it looks like in version 3.3 you handed over a change to a junior programmer who was so enthusiastic to show how good he was that he started coding before reading in all the settings. If you reverse the order so that <uses_sdk .../> is after <application .../> you will cause Triage not to work. I would very much appreciated knowing how this occurred and when it will be fixed. I have a big note now in my AndroidManifest.xml file to make sure <uses_sdk .../> precedes <application .../>. |
@BlueFire-LLC so that issues comes from the android tooling and not our side If you look at the documentation for linting a manifest file from android That's one of the examples
you can even test this locally by manually running the linter
Off hand I'm not sure the direct effect of specifying that order incorrectly. I'm guessing the targetSdk is getting dropped or it causes minsdk to get set much lower which then internally effects how things are processed I'm checking with the Xam Android team if there's a way to surface this as a warning for future users though. Nice Find 🍨 |
Thanks for the quick response. I'm not an Android guy so the whole linting thing was a bit beyond me :). Yeah, a warning would suffice since it's an easy thing to get wrong but still easy to fix. Maybe you could run Lint before compiling? |
@PureWeen Well, I'm back on 3.2 (big sad face). Seems that this trick does not work with older versions of Android. One of my customers reported the missing scrolling pages and I learned he was on Android 4.4.1. I dug out an old tablet with 4.4.1 on it and sure enough the behavior is back. I'm sort of out of options to try. Any ideas or at least can you find out which Android version works with this method? I only have this tablet (4.4.1) and newer ones (7.0). Update - this appears to only affect Android version 4.x.x and lower. |
My existing project has forms that basically look like this:
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand">
<StackLayout ...>
<ScrollView ... IsClippedToBounds="true">
<StackLayout ...>
Bunch of controls
</StackLayout>
</ScrollView>
</StackLayout>
<StackLayout Orientation="Vertical" VerticalOptions="EndAndExpand">
Some buttons
</StackLayout>
</StackLLayout>
In Forms 3.2 everything works great but starting with Forms 3.3 the first scroll page renders but subsequent pages do not.
When setting IsClippedToBound off, the pages render but overlay the buttons.
This only applies to Android. My iOS and Windows 10 projects render correctly.
PS. I tried to indent the Xaml but it doesn't work.
The text was updated successfully, but these errors were encountered: