[TIMOB-26168] Android: ScrollView does not show ScrollIndicators
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-08-13T18:17:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Russell Kenny |
Assignee | Gary Mathews |
Created | 2018-06-28T17:55:55.000+0000 |
Updated | 2018-09-11T17:39:54.000+0000 |
Description
Nothing seems to work to get the ScrollView ScollIndicators to show up. Here's the example code from the documentation, and corresponding screenshot.
<Alloy>
<Window title="Scrollbar Test">
<ScrollView id="scrollView" showVerticalScrollIndicator="true" showHorizontalScrollIndicator="true" height="80%" width="80%">
<View id="view" backgroundColor="#336699" borderRadius="10" top="10" height="2000" width="1000" />
</ScrollView>
</Window>
</Alloy>
Attachments
File | Date | Size |
---|---|---|
Screenshot_1530209007.png | 2018-06-28T18:06:02.000+0000 | 35044 |
Screenshot_20180628-135125.jpg | 2018-06-28T17:55:31.000+0000 | 88224 |
Update, I also tested in Android 7 running in an emulator and got the same result: no scrollbars appear either when the window is first opened, OR when actual scrolling is taking place. I am using some custom colors in my AppCompat theme defined in app/platform/android/res/values/MYTHEME.xml, but I'm not setting anything to white, and I confirmed that commenting out the entire block of XML has no effect on the issue. Here it is anyway in case you're interested:
*TEST CASE*
master: https://github.com/appcelerator/titanium_mobile/pull/10142
Verified the fix on Sdk 7.5.0.v20180911090425.Scroll view appears both on when windows opens and scrolling happens. Closing.