(Android UI development_ A simple implementation of listriview and listriview
Content of this article:
1. All implementation ideas of horizontal listview;
2. One of the most common ideas, horizo?? Ntallistview, develop a simple photo album based on horizontal listview;
3. The implemented horizontal listview will change the item background color when clicking to browse, so as to solve the problem of chaotic item selection caused by setselected in listview.
As we all know, the default direction of listview is vertical, but sometimes people prefer a horizontal listview to view the whole network. The implementation idea of horizontal listview is as follows:
1. Use horizo?? Ntalscrollview contains a listview in the layout, refer to here; 2. Use GridView to set the number of rows to 1;
3. Someone inherited listview and constructed a horizo?? Ntalscrolllistview, see: here
4. Foreign Daniel inherited AdapterView & lt; Horizo?, constructed by listadapter?? ntalListView。 This is the most orthodox of all the above methods. This paper is based on this method. See here)