1)..First Create ArrayAdapter Object with row layout and textview :-
ArrayAdapter<String> News=new ArrayAdapter<String>(this, R.layout.gl_row,R.id.textView2, <your string array object of data>);
2) Now set this adapter in listview :-
list.setAdapter(News);
No comments:
Post a Comment