Android ScrollView Scrollbar Size

后端 未结 3 2141
失恋的感觉
失恋的感觉 2021-02-20 09:55

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 the theme but nothing

3条回答
  •  礼貌的吻别
    2021-02-20 10:01

    Try implementing android:scrollbarThumbVertical and android:scrollbarSize="1dp" together, and your problem will be solved for ScrollView, RecyclerView.

    Refer following code snippet

    
    

    For HorizontalScrollView:

    
    

提交回复
热议问题