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.

Was it helpful?

Solution

Your HorizontalScrollView should have only 1 child (a horizontal LinearLayout or something). Try getting the width of that view.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top