Android Question Horizontal scroll view width not consistent with other views

webba

New Member
Licensed User
Longtime User
Hi all,

Can anyone explain this odd behavior to me? To reproduce it:

I start a new project. Go into the designer and place a panel. Size it to fill the screen. Set anchors to BOTH so it works on all screen variants.

Add a Horizontal scroll view as a child, set the size to fill the panel and set anchors to BOTH again.

Use the UI Cloud to see the design - esp on tablets:
The Horizontal scroll view does not fill the width as expected.

I tried with other view types (button) and they work as expected.

Please help?

Cheers

Andy
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The HorizontalScrollView does fill the width. You are seeing the inner width value:

SS-2016-08-08_17.34.13.png
 
Upvote 0

webba

New Member
Licensed User
Longtime User
Many thanks Erel - my mistake.
The lower value of 500 made it look as though the view was not all the way across.
Cheers
Andy
 
Upvote 0
Top