views:

120

answers:

3

Hi everybody. I'm using a ScrollView and i want to set the ScrollBar size, but everything i tried failed. I tried with attribute android:scrollbarSize, with style, with theme but nothing. The size of the scrollbar it's always the same. Any suggestions? Thanks

A: 

I tried with this:

<ScrollView 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
android:layout_marginTop="10px"
android:layout_marginBottom="15px"
android:scrollbarSize="20px"
android:scrollbarTrackVertical="@drawable/scrollbar_reflection"
android:scrollbarThumbVertical="@drawable/scrollbar_state2">

but the width of the Scrollbar doesn't change.

So i created a stye file like this:

<resources>
   <style name="ShowAllScrollBar1">
     <item name="android:scrollbarSize">20px</item>           
 </style>
</resources>

and then set style in AndroidManifest.

carlovv
A: 

Any suggestions? Everything i tried failed.

carlovv
A: 

Have you tried to change the scrollbar drawable to some bigger one?

android:scrollbarThumbHorizontal

Mannaz