1

Android : How to select in code the first item in a listview (with baseadapter) to change its background

view story
linux-howto

http://stackoverflow.com – I have a listview for my menu with a baseadapter. My Activity : listView_menu = (ListView) findViewById(R.id.listView_menu); model_category = new Model_Category(context); listView_menu.setAdapter(new BaseAdapter_Menu(context, model_category.GetAllDifferentCategory())); listView_menu.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3) { view.setSelected(true); } }); listView_menu.setSelection(0); My getView method of BaseAdapter_Menu (extends B (HowTos)