change color of item in listview (without click)
问题 I've tried to change the background color of specific items in a ListView . first, catch it from database: ListAdapter adapter = new ArrayAdapter(getApplicationContext(), android.R.layout.simple_list_item_1, db.getAllApps()); final ListView list = (ListView) findViewById(R.id.ListViewApps); list.setAdapter(adapter); then I will set all apps in different color, if they have the tag activated // if app is activated in db --> set another colour in ListView private void setAppCheck(ListView list)