Well, I met the requirement again, and needed to modify the style of ScrollBar, so I looked up a lot of documents, I think the summary of this great cow is good, by the way, I took a look at his home page, wow, great ~!! Attach great god article links: http://likfe.com/archives/
knowledge points in the ListView/ScrollView/RecyclerView add attributes:
android: vertical scrollbars = “”
android: scrollbarTrackVertical =” @ drawable/xxx_vertical_track “
android: scrollbarThumbVertical =” @ drawable/xxx_vertical_thumb “
B: Horizontal scroll bar
android: horizontal scrollbars = “”
android: scrollbarTrackHorizontal =” @ drawable/xxx_horizontal_track “
android: scrollbarThumbHorizontal =” @ drawable/xxx_horizontal_thum “
other common attributes
defines the style and position of the scrollbar
android:scrollbarStyle= “outsideInset”
2. Define the size of the scroll bar, refers to the width, when the vertical level refers to the height of the
android: dp scrollbarSilbarSize = “4”
attributes | effects | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 scrollbarThumbVertical[Horizontal] | 3 short bars | ||||||||||
7 scrollbarTrackVertical[Horizontal] | 9 long bars, The background td> tr> tbody> table> Note that where scrollbaTrackxxx, scrollbarThumbxxx can use: ◦ custom Shape ◦ ◦. ◦ can be registered for use.9. PNG @color/ XXX to use color values You cannot use the # XXXXXX color value directly Android :scrollbarStyle can define the style and position of the scrollbar with four optional values including insideOverlay, insideInset, outsideOverlay and outsideInset. Where inside and outside respectively mean whether the overlay is inside the padding of the view, overlay and inset mean whether the overlay is on the view or inserted behind the view, so the four values respectively represent:
Demo
Demo 2
default: The self-use test machine suddenly failed root, the network looked for a lot of tutorials, finally found a reliable tutorial, hereby record, some mobile phones may also be applicable
Unlocking the bootloader for the first time will erase all your data.
Take a look at what it looks like ununlocked:
Because we are using the fastboot.exe execution file
Then use the volume key to select “Yes” and press the “power” button to confirm. After success, it will be displayed as follows :(the red sentence at the bottom)
|