In android application I am using adapter
for populating ListView
control like below:
public class ChildActivity extends ActionBarActivity implements GetChildList {
private ListView lv_child;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_child);
List<String> array = new ArrayList<String>(); // for e.g array ["num1", "num2"]
lv_child = (ListView)findViewById(R.id.lv_child);
ArrayAdapter<String> adapterChild = new ArrayAdapter<String>(ChildActivity.this, android.R.layout.simple_list_item_1,array);
lv_child.setAdapter(adapterChild);
}
}
but i don't understand where its is simple_list_item_1
declare at this line ArrayAdapter<String> adapterChild = new ArrayAdapter<String>(ChildActivity.this, android.R.layout.simple_list_item_1,array);
Kindly suggest me, waiting for reply.