First, the stackFromBottom property. After this property, the list you made will display the bottom of your list, with the values true and false
android:stackFromBottom="true"
The second is the transcriptMode property, which requires real-time tracking or viewing information with ListView or other controls that display a large number of Items, and hope that the latest entries can be automatically scrolled into the visual range. The Android platform control (supports ScrollBar) can be automatically slided to the bottom by setting the transcriptMode property.
android:transcriptMode="alwaysScroll"
The third cacheColorHint attribute is, many people hope to change its background so that it can conform to the overall UI design. It is simple to change the background back. Just prepare a picture and then specify the attribute android:background="@drawable/bg", but don't be happy too early. After you do this, you find that the background has changed, but when you drag or click on the blank position of the list, you find that the ListItem has turned black, destroying the overall effect.
If you just change the background color, you can directly specify android:cacheColorHint as the color you want. If you use pictures as the background, just specify android:cacheColorHint as transparent (#00000000)
The fourth divider attribute, which is used to set an image as a spacing between each item, or remove the dividing line between items.
android:divider="@drawable/list_driver" where @drawable/list_driver is an image resource. If you don't want to display the dividing line, just set it to android:divider="@drawable/@null"
The fifth fadingEdge property, with black shadows on top and bottom
android:fadingEdge="none" has no shadows~
The sixth scrollbars property is used to hide the scrollbar of the listView.
android:scrollbars="none" and setVerticalScrollBarEnabled(true); have the same effect, they are hidden when they are inactive, and also hidden when they are active.
The seventh fadeScrollbars attribute, android:fadeScrollbars="true" When configuring ListView layout, setting this attribute to true can automatically hide and display the scrollbar.
The eighth fastScrollEnabled property,
Many developers don’t know how to enable the fast scroll slider of the ListView list control. Here, Android Development Network tells you that the auxiliary scroll slider only needs one line of code to handle it. If you use XML layout, you only need to add the property android:fastScrollEnabled="true" to the ListView node. For Java code, you can control the enablement through (true); and the parameter false is hidden. Another point is that when your scrolling content is small and less than the 3 screen heights of the current ListView, this fast scroll slider will not appear. At the same time, this method is still the basic method of AbsListView. You can use fast scroll assistance in subclasses such as ListView or GridView.
ninth drawSelectorOnTop attribute
When set to true, the selector will be drawn over the selecteditem. Otherwise the selector is drawn behind the selected item. Thedefault value is false.
android:drawSelectorOnTop="true" Click on a record and the color will be displayed on the top. The text on the record will be blocked, so click on the text and you will not be able to see the text.
android:drawSelectorOnTop="false" Click on a record and will not place it. The color will be behind the record and become the background color, but the text of the record content is visible.