@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();
 }
Exemplo n.º 2
0
  @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;
    }
  }
Exemplo n.º 3
0
 public void setBeneficiaryName(String name) {
   beneficiary_name_et.setText(name);
   beneficiary_name_et.dismissDropDown();
 }
Exemplo n.º 4
0
 public void dismissHistory() {
   mSEditText.dismissDropDown();
 }