0
我想更改listView上的顏色f fasr滾動,現在我有一個白色,我想更改顏色。我這樣做:Java android設置顏色setFastScroll
listView.setFastScrollEnabled(true);
listView.setFastScrollAlwaysVisible(true);
我想更改listView上的顏色f fasr滾動,現在我有一個白色,我想更改顏色。我這樣做:Java android設置顏色setFastScroll
listView.setFastScrollEnabled(true);
listView.setFastScrollAlwaysVisible(true);
在styles.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorAccent">@color/colorAccent</item>
<item name="android:fastScrollThumbDrawable">@drawable/your_custom_drawable_color</item>
做到這一點,在這裏我要補充這個styles.xml –
你會發現在水庫現有styles.xml - >值 - > styles.xml。只需添加上面的代碼中的第二項。 AppTheme已經在那裏。 –
如果它適合你,請接受答案! –