after creating some menus with simple_list_item_1(which worked very well) I tried replacing this with simple_list_item_2, but my system throws exceptions ...
Now I am wondering how to create such an entry with two different sizes for my list ... are there any traps for beginners? Can someone please help me solve my (small !?) problem?
My code is as follows:
ListAdapter listAdapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_2, fileNames);
setListAdapter(listAdapter);
My String[] fileNamesstores all lines for display in ascending order (does it matter for functionality ?!)
After an unsuccessful search on some forums, I hope that one of you can give me a useful suggestion.
nice greetings, poeschlorn
source
share