編輯:關於android開發
(不是大神,沒有幾百子項目,去你丫的)
private int last_item_position ; @Override public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3) { // 取消合成 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.notifyDataSetChanged(); } 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; }
Android SharedPreference的使用,sharedpreference在《Android 在內部存儲讀寫文件》一文中,談到了登錄用戶名和密碼的方法,通過
Activity詳解一 配置、啟動和關閉activity,activity詳解先看效果圖: Android為我們提供了四種應組件,分別
Android黑科技,讀取用戶短信+修改系統短信數據庫, 安卓系統比起ios系統最大的缺點,相信大家都知道,就是系統安全問題。這篇博客就秀一波&ldquo
在Linux上分析死鎖問題的簡單方法死鎖 (deallocks): 是指兩個或兩個以上的進程(線程)在執行過程中,因爭奪資源而造成的一種互相等待的現象,若無外力作用,它們