@UiThread void updateUi(Address addr, String number) { tvNumero.setText(number); autocompleteEndereco.setAdapter(null); autocompleteEndereco.setText(addr.getThoroughfare()); if (getActivity() == null) { return; } autocompleteEndereco.setAdapter( new PlacesAutoCompleteAdapter( getActivity(), R.layout.autocomplete_list_item, SoliciteLocalFragment.class)); autocompleteEndereco.dismissDropDown(); }
@Override public void onClick(View arg0) { // TODO Auto-generated method stub switch (arg0.getId()) { case com.actionbarsherlock.R.id.abs__search_src_text: mSEditText.setFocusable(true); if (mSEditText.hasFocus() && mSEditText.getEditableText().toString().equals("")) { if (!mSEditText.isPopupShowing()) { showHistory(true); } else { mSEditText.dismissDropDown(); } } break; default: break; } }
public void setBeneficiaryName(String name) { beneficiary_name_et.setText(name); beneficiary_name_et.dismissDropDown(); }
public void dismissHistory() { mSEditText.dismissDropDown(); }