Пример #1
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;
    }
  }
 private void testAutoComplete(AutoCompleteTextView textView, String text) throws Throwable {
   BBCTTestUtil.addCard(this.solo, this.card);
   this.solo.typeText(textView, text.substring(0, 2));
   this.solo.waitForText(text);
   Assert.assertTrue(textView.isPopupShowing());
 }