Your HorizontalScrollView
should have only 1 child (a horizontal LinearLayout
or something). Try getting the width of that view.
HorrizontalScrollView Full Width
-
12-10-2022 - |
Question
Well, I've developed a HorizontalScrollView
with some buttons inside.
I'm able to get the width of this HorizontalScrollView
through getWidth()
. But that returns the width of the displayed HorizontalScrollView
, not the full extension.
How could I get the full width? I mean, the full width including the buttons that are not displayed on the screen?
Cheers.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow