tags:

views:

24

answers:

1

hello, i want to dynamic design scrollbars in the EditText using code,but i donot find this api as setscrollbars,could you tell me if i can programatically? realize " android:scrollbars="vertical" ",if can ,how to realize?

+1  A: 

You have to override the android:scrollbarTrackVertical and android:scrollbarThumbVertical drawables with your own. You can do it in code or with styling.

This is a link that shows how to do custom buttons. The principle for scrollbars is similar.

locka
i donot want to set myself stying,i want to know android:scrollbars="vertical how to using code complete.as android:text ,ican use code (View)setText()
pengwang