Hi Guys, i have a following ListActivity:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get Strings from res/strings.xml
String items[] = { getString(R.string.mainMenu_1),
getString(R.string.mainMenu_2), getString(R.string.mainMenu_3),
getString(R.string.mainMenu_4), getString(R.string.mainMenu_5)};
strings = items;
ListAdapter listAdapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, items);
setListAdapter(listAdapter);
}
Displaying it and reacting to user clicks works great, now I want to add some pictures before the text (like "Settings"). can someone explain me how to do this? (How to get pictures from res/drawable isn needed to get explained ;-))
greets, poeschlorn