Hello everyone! What is wrong with this code? I cannot intercept ListView onItemSelected (no effect and no log output. Nothing happens!). Advice appreciated!
ListView mylist=(ListView)findViewById(android.R.id.list); mylist.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View v, int position, long id) { v.setBackgroundColor(0xFFFF0000); Log.d("ListViewItem selected!", ""); } @Override public void onNothingSelected(AdapterView<?> arg0) { } } ); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---