android: simple text Listview

android: simple text Listview:

1. First, we need an activity there Listview xml configuration file;

 

 

 2. In the control is initialized loyal activity;

3. You need to define an array of characters consisting of;

4. Call adapter (ArrayAdapter is used herein) to context, own layout, the array is written;

 

 5. Effect

 

 

Map

 

 

Guess you like

Origin www.cnblogs.com/srwk/p/11748644.html