Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Scrollview scrollbar not visible on Android #7629

Open
ColeXm opened this issue Sep 23, 2019 · 10 comments
Open

[Bug] Scrollview scrollbar not visible on Android #7629

ColeXm opened this issue Sep 23, 2019 · 10 comments
Labels
in-progress This issue has an associated pull request that may resolve it! p/Android t/bug 🐛

Comments

@ColeXm
Copy link

ColeXm commented Sep 23, 2019

Description

I want to show scrollbar in scrollview, so I tried to set this.VerticalScrollBarEnabled = true; this.ScrollbarFadingEnabled = false; in custom renderer of ScrollViewRenderer in Android project , it only works under Xamarin.Forms 3.4.xx , and it crash with the error message Java.Lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ScrollBarDrawable on XF 3.5.xxx, when i set XF version later than 3.5. m, crash doesn't happen but the scrollbar never shows up .

Steps to Reproduce

  1. Open the project i upload
  2. Downgrade XF version to 3.4 to see if the scrollbar is visible.
  3. Downgrade XF version to 3.5 to see if it crashes.
  4. Set XF version later than 3.5 to see if the scrollbar is visible .

Expected Behavior

scrollbar in scrollview always visible

Actual Behavior

Crash on XF 3.5 and scrollbar invisible after XF 3.5.
FormsApplication.zip

@ColeXm ColeXm added s/unverified New report that has yet to be verified t/bug 🐛 labels Sep 23, 2019
@hartez hartez removed the s/unverified New report that has yet to be verified label Sep 23, 2019
@hartez
Copy link
Contributor

hartez commented Sep 23, 2019

Normally I'd tell you to set the VerticalScrollBarVisibility property on your ScrollView, but that appears to be broken as well.

@erdugen
Copy link

erdugen commented Oct 2, 2019

It's not just scrollview.
There's also a listview.
VerticalScrollBarVisibility does not work on android.

@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Oct 18, 2019
CliffAgius pushed a commit to CliffAgius/Xamarin.Forms that referenced this issue Dec 6, 2019
@ChrisTTian667
Copy link

The fix has been reverted. So this bug should be reopened too.
It seems still to be a current problem (using todays version)

@hartez hartez reopened this Jun 29, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@luismts
Copy link

luismts commented Aug 26, 2020

Any update about this? Facing the same issue.

@ChrisWortley
Copy link

Hi. Just started using Xamarin Forms / Github - so I'm not confident in my understanding. My Android app has many labels, each with text that scrolls vertically - and teh scrolling works - but no vertical scrollbar appears - so the user doen't necessarily know there is more text to see. Am I understanding this thread right? The problem isn't because of something I'm doing wrong. There is in fact a bug that prevents vertcal scrollbars appearing in Android - for all Xamarin Forms views. And, looking at samhouts' link, there's no scheduled fix date yet. Is that right? Thanks for your help.

@AlexSmith11
Copy link

You are correct, I just ran into this aswell. It seems that the fix is included in Xamarin.Forms version 4.8, as mentioned in the issue linked above.

@ChrisWortley
Copy link

Thanks Alex. I don't know if you can help me understand how to get Xamarin.Forms v 4.8? I'm using Visual Studio v 16.7.3 with an option to upgrade to 16.7.6 - but I can't see anything about which version of Xamarin.Forms I am on, or what I would get if I upgraded? Thanks. Chris

@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@tlhintoq
Copy link

So... This was fixed in 2019
Rolled back in 2020
Added to the 5.0.0 milestone later in 2020
mentioned as still a problem in 2020
No new checkins mentioned in this thread after that
And 5.0 is the current version of XamarinForms.
So... Was this ever fixed in a current stable release?

@jrasbr
Copy link

jrasbr commented Feb 23, 2022

This is still an issue!

@MoriDanWork
Copy link

End of 2022, still an issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in-progress This issue has an associated pull request that may resolve it! p/Android t/bug 🐛
Projects
None yet
Development

No branches or pull requests