Listview selects the first item by default. Click to change the subitem background image. The listview background image
(It's not a great god. There aren't hundreds of sub-projects. You can't do it)
Private int last_item_position; @ Override public void onItemClick (AdapterView <?> Arg0, View view, int position, long arg3) {// cancel merging mTts. stopSpeaking (); isSpeaking = 0; PoiList poiList = poiListList. get (position); List <String> lStrings = poiList. poiContent; search_word_title.setText (poiList. poiName); TV _place.setText (poiList. poiSpotName); String contentUri = lStrings. get (0); downLoadContent (contentUri); ImageView imageView = (ImageView) view. findViewById (R. id. search_listview_item_img); last_item_position = position; adapter. policydatasetchanged ();} public class SearchAdapter extends ArrayAdapter <GetResultFromPOIName. poiList> {private int resourceId; private ImageView imageView; public SearchAdapter (Context context, int textViewResourceId, List <GetResultFromPOIName. poiList> objects) {super (context, textViewResourceId, objects); resourceId = textViewResourceId;} @ Override public View getView (int position, View convertView, ViewGroup parent) {PoiList poiList = getItem (position); TextView newsTitleText = (TextView) convertView. findViewById (R. id. news_title); imageView = (ImageView) convertView. findViewById (R. id. search_listview_item_img); imageView. setBackgroundResource (R. drawable. image_floor_gary); if (last_item_position = position) {imageView. setBackgroundResource (R. drawable. image_floor_color);} else {imageView. setBackgroundResource (R. drawable. image_floor_gary);} return convertView ;}