posted 5 years ago
final Integer[] achieveGoalsTitles = {R.string.createList1, R.string.cleanEnvironment1, R.string.avoidDistractions1, R.string.earlyMorning1
, R.string.useWeekends1, R.string.neverProcrastinate1, R.string.findSupport1, R.string.beFutureOne1, R.string.checkProgress1,
R.string.motivateYourself1};
list1.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1,achieveGoalsTitles));
when I run the app , it shows me the listview items as int values . the problem always be in the last code "achieveGoalsTitles" which is the name of the array above