选中ListPopupWindow的某一项后,将此项内容更新到EditText中,并隐藏ListPopupWindowetLanguages = (EditText) findViewById(R.id.et_languages);etLanguages.setKeyListener(null); lpwLanguages = new ListPopupWindow(this);mAdapterLanguages = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mLanguages);lpwLanguages.setAdapter(mAdapterLanguages);lpwLanguages.setAnchorView(etLanguages); lpwLanguages.setModal(true); lpwLanguages.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { showMessage("Select " + mLanguages[position]); etLanguages.setText(mLanguages[position]); lpwLanguages.dismiss(); }});etLanguages.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { getDataFromNet(); } return false; }});public void getDataFromNet() { new Thread(new Runnable() { @Override public void run() 5/10 首页 上一页 3 4 5 6 7 8 下一页 尾页