Android Question [Solved] Spinner in tabstripview

angel_

Well-Known Member
Licensed User
Longtime User
When I scroll up or down, the spinner (triangle) display blinks at the top (in the tab area), how can I avoid this effect?

Attached example
 

Attachments

  • scroll_spinner.zip
    13.8 KB · Views: 119
  • Screenshot_20191231.jpg
    Screenshot_20191231.jpg
    61.2 KB · Views: 135

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is a mistake:
B4X:
Scv1.Panel.LoadLayout("Layout1")
    Scv1.Panel.Height = 150%y
You should first set the panel's size and only then load the layout.

The issue you describe, which I also see, looks like an Android bug.
Setting the ScrollView color seems to solve it:
B4X:
Scv1.Color = Colors.Transparent
Workaround source: https://stackoverflow.com/questions/45442578/scrollview-and-spinner

Check B4XPreferencesDialog for a nice way to create input forms.
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
This is a mistake:
B4X:
Scv1.Panel.LoadLayout("Layout1")
    Scv1.Panel.Height = 150%y
You should first set the panel's size and only then load the layout.
Thank you

The issue you describe, which I also see, looks like an Android bug.
Setting the ScrollView color seems to solve it:
B4X:
Scv1.Color = Colors.Transparent
It works
 
Upvote 0
Top