I am using a custom view that I add scrollbars to like this:
setHorizontalScrollBarEnabled(true);
setVerticalScrollBarEnabled(true);
TypedArray a = context.obtainStyledAttributes(R.styleable.View);
initializeScrollbars(a);
a.recycle()
Now is there a way to find out the thickness of the scrollbars in pixels? For the vertical scrollbar I'd like to find out the width and for the horizontal scrollbar I'd like to find out the height, both in pixels.
Is there a way to do this programmatically?