Last active
September 17, 2019 10:43
-
-
Save gohilbhagirath90/bac4b525696578fa175f to your computer and use it in GitHub Desktop.
change color of scrollbar in scrollview android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a scroll bar in drawable(scrollbar.xml) using this | |
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle"> | |
<gradient | |
android:angle="45" | |
android:centerColor="#669C79E7" | |
android:endColor="#66C0C0C0" | |
android:startColor="#669C70E2" /> | |
<corners android:radius="8dp" /> | |
</shape> | |
and add this scroll bar like android:scrollbarThumbVertical="@drawable/scrollbar" to your ListView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
plz tell me how to add android:scrollbarThumbVertical="@drawable/scrollbar" . thanks for reading