本文整理了Java中android.widget.AutoCompleteTextView.clearFocus()
方法的一些代码示例,展示了AutoCompleteTextView.clearFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AutoCompleteTextView.clearFocus()
方法的具体详情如下:
包路径:android.widget.AutoCompleteTextView
类名称:AutoCompleteTextView
方法名:clearFocus
暂无
代码示例来源:origin: ckcz123/PKUHelper-Android
@Override
public void onItemSelected(AdapterView<?> parent, View view,
int position, long id) {
autoComplete.clearFocus();
}
代码示例来源:origin: CUTR-at-USF/OpenTripPlanner-for-Android
/**
* Removes focus from the text box chosen by the parameter and deletes map click listener if
* none of the text boxes remain focused.
*
* @param isStartTextbox to select text box to removes focus from
*/
private void removeFocus(boolean isStartTextbox) {
if (!mMapFailed){
if (isStartTextbox) {
mTbStartLocation.clearFocus();
if (!mTbEndLocation.hasFocus()){
mMap.setOnMapClickListener(null);
}
} else {
mTbEndLocation.clearFocus();
if (!mTbStartLocation.hasFocus()){
mMap.setOnMapClickListener(null);
}
}
}
}
代码示例来源:origin: Coinomi/coinomi-android
private void clearFocusAndHideKeyboard() {
signingAddressView.clearFocus();
messageView.clearFocus();
signatureView.clearFocus();
Keyboard.hideKeyboard(getActivity());
}
代码示例来源:origin: ckcz123/PKUHelper-Android
autoComplete.clearFocus();
代码示例来源:origin: openwalletGH/openwallet-android
private void clearFocusAndHideKeyboard() {
signingAddressView.clearFocus();
messageView.clearFocus();
signatureView.clearFocus();
Keyboard.hideKeyboard(getActivity());
}
代码示例来源:origin: ckcz123/PKUHelper-Android
int padding = Util.sp2px(this, 5);
autoComplete.setPadding(autoComplete.getPaddingLeft(), padding, autoComplete.getPaddingRight(), padding);
autoComplete.clearFocus();
代码示例来源:origin: zadr50/Gojek
@Override
public void onResult(PlaceBuffer places) {
if( places.getStatus().isSuccess() ) {
Place place = places.get( 0 );
mPlaceTujuan=place;
displayPlace( place );
mPredictTextView.setText( "" );
mPredictTextView.clearFocus();
mAdapter.clear();
// Check if no view has focus:
if (mPredictTextView.hasFocus()) {
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(mPredictTextView.getWindowToken(), 0);
}
}
//Release the PlaceBuffer to prevent a memory leak
places.release();
}
} );
代码示例来源:origin: LineageOS/android_packages_apps_Jelly
autoCompleteTextView.clearFocus();
return true;
autoCompleteTextView.clearFocus();
return true;
autoCompleteTextView.clearFocus();
mWebView.loadUrl(url);
});
代码示例来源:origin: stripe/stripe-android
@Test
public void countryAutoCompleteTextView_onInputFocus_displayDropDown() {
mAutoCompleteTextView.clearFocus();
assertFalse(mAutoCompleteTextView.isPopupShowing());
mAutoCompleteTextView.requestFocus();
assertTrue(mAutoCompleteTextView.isPopupShowing());
}
内容来源于网络,如有侵权,请联系作者删除!