I have a canvas with scrollbars (not using ScrollView), and I need to know the measures of the scrollbars, i.e width and height. Is there any way to determine them? Thanks.

有帮助吗?

解决方案

You can use View.getScrollbarSize(). It will return the width of vertical scrollbars or the height of horizontal scrollbars.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top