Posts

Showing posts with the label #List view

ListView in Android

Image
  ListView  is used when you have to show items in a vertically scrolling list. Best example of it is our device's Contact List. With ListView, user can easily browse the information, while scrolling up and down. You can set divider between every item and set its height and color as per your UI design. Inside a ListView, we can show list of Text items by using TextView, or pictures using ImageView, or any other view or a combination of views. As  ListView  is generally used to display a large set of data, hence it is not feasible to manually create list items for the complete data, hence Android provides us with special  Adapter  classes which can be used to supply data from datasets to ListView. To learn android course visit the following android development course Blog Following are some of the main attributes that are most commonly used: AttributeDescription android:divider Using this attribute we can specify a divider between List items. A dr...