Does ListView have scroll?
Ngày đăng:
23/12/2021
Trả lời:
0
Lượt xem:
24
In this post lets see how we can scroll Android ListView both Horizontally and Vertically. For making Android Listview Horizontal scroll possible we can use HorizontalScrollView. Lets see how we can implement HorizontalScrollView to make our Android Listview scroll in both directions i.e. Horizontally as well as Vertically. Now we can move on to programming our Android ListView. Create a new class file with name items.java and edit it as below. This file is just a work around file instead of making a whole SQLite database. This is my Data source for my ListView. items.java: Now edit your MainActivity.java file as below: |