How to set the color of ScrollView scrollbar
Updated: June 2, 2013 15:27:18 Author:
How to set the scrollbar color of ScrollView, friends who need it can refer to it
Many developers don't know how to set the slider color of the ScrollView scrollbar control when doing Android UI. In fact, through the xml layout property of ScrollView android:scrollbarThumbVertical, a drawable object can be associated. For example, in ScrollView we have
android:scrollbars="vertical" //The scrollbar is vertical
android:scrollbarThumbVertical="@drawable/red" //The vertical scroll bar has red color, and red can be a png image or an xml graphics file composed of shape.
android:scrollbars="vertical" //The scrollbar is vertical
android:scrollbarThumbVertical="@drawable/red" //The vertical scroll bar has red color, and red can be a png image or an xml graphics file composed of shape.
Related Articles
Example of how to use the android effect TapBarMenu draw the bottom navigation bar
This article mainly introduces the use of the Android effect TapBarMenu draws the bottom navigation bar, which has certain reference value. If you are interested, you can learn about it.2017-01-01Android implements nine-grid gesture password
This article mainly introduces the Android implementation of nine-grid gesture passwords in detail. The sample code in the article is introduced in detail and has certain reference value. Interested friends can refer to it.2022-06-06Android implements photo shooting function
This article mainly introduces the Android camera function in detail, which has certain reference value. Interested friends can refer to it.2018-05-05How to access pictures on the Android Internet and display them on the client
This article mainly introduces the method of Android accessing pictures on the Internet and displaying them on the client. It analyzes the skills of Android processing pictures with examples, and comes with Android's URL encapsulation class, network connection encapsulation class and output stream encapsulation class. Friends who need it can refer to it.2015-12-12Detailed explanation of Kotlin programming loop control example
This article mainly introduces a detailed explanation of Kotlin programming loop control examples. Friends in need can refer to it for reference. I hope it can be helpful. I wish you more progress and get a promotion as soon as possible.2022-08-08Detailed explanation of two ways to implement rotation animation on Android
This article mainly introduces two ways to implement rotation animation on Android. Friends who need it can refer to it2021-08-08Android uses Textview to achieve scaling effect
This article mainly introduces in detail to android using Textview to achieve scaling effect, which has certain reference value. Interested friends can refer to it.2017-11-11The easiest example of copying text content to the system clipboard on Android (Share)
Below, the editor will bring you the simplest example of copying text content on Android to the system clipboard (share). The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor2017-04-04Android Personal Finance Tool Three: Add Bill Page
This article mainly introduces the function implementation of the billing page of Android personal finance tools. Here are example codes and implementation renderings. Interested friends can refer to it.2016-08-08Android controls achieve water drop effect
This article mainly introduces in detail to Android controls to achieve water drop effects, which has certain reference value. Interested friends can refer to it.2019-02-02