Back to Blog
In the ‘Contacts’ application instance, it boils down to having a section for each letter of the alphabet. In addition to the order, it is usually a good practice to section your data in several groups. The solution for that is to sort all contacts in an understandable and regular order: the alphabetical order. This will obviously prevent you from easily picking one of them and calling him/her. Unfortunatly, using a ListView widget is not enough… Let’s say you developed a list of contacts where all of your contacts are displayed in a random order. In other words, it gives the user a large overview of his/her contacts. This pattern is quite handy as it shows several contacts on screen at the same time. In this Activity each contact is represented by a single item view. For instance, the ‘Contacts’ application uses a ListView containing all of your contacts. ListViews are commonly used to display a large set of similar data. You can clone it by having a look at the following GitHub page: To gather sample codes all together, I have just created a new repository on GitHub that will contain a single application with the examples. In the first opus, I shared a zip file containing the source code of the sample application but I don’t think this is a good idea for future articles. Note: I do not know how many articles will be written in this series of tips and tricks about the Android ListView widget. This is obviously not mandatory but you will have a concise explanation about the main purpose of this series of articles! Note: For those who forgot to read the first article of the ListView Tips & Tricks series, please go to the first opus and read it.
0 Comments
Read More
Leave a Reply. |