문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top