Emile
Emile

Reputation: 11721

Android: Set spacing to left of scrollbar in gridview

I have a grid view with scroll bars permanently displayed. When i set the android:paddingRight property (of the GridView) to say 10dip the vertical scroll bar is shifted to the left as well.

I don't want the scroll bar to shift to the left, i purely want extra white space between the scroll bar and the grid views tiled elements.

Not to say that this isn't expected behaviour, but is there a way of adding space to the left of scroll bar without having to either:

Android 2.2.

Upvotes: 6

Views: 3212

Answers (1)

Emile
Emile

Reputation: 11721

Ah found that the following controls the behaviour i was looking to control.

<GridView 
android:scrollbarStyle="outsideInset"
/>

Upvotes: 18

Related Questions