Determine the dimensions of the scrollbars of a canvas
-
14-06-2021 - |
Domanda
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.
Soluzione
You can use View.getScrollbarSize(). It will return the width of vertical scrollbars or the height of horizontal scrollbars.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow