android.widget.AutoCompleteTextView.setImeOptions()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中android.widget.AutoCompleteTextView.setImeOptions()方法的一些代码示例,展示了AutoCompleteTextView.setImeOptions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AutoCompleteTextView.setImeOptions()方法的具体详情如下:
包路径:android.widget.AutoCompleteTextView
类名称:AutoCompleteTextView
方法名:setImeOptions

AutoCompleteTextView.setImeOptions介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public static void styleSearchView(SearchView searchView, Context context) {
  LinearLayout searchPlate = (LinearLayout) searchView
      .findViewById(R.id.abs__search_plate);
  // TODO
  // searchPlate.setBackgroundResource(R.drawable.your_custom_drawable);
  if (searchPlate != null)
    ((com.actionbarsherlock.widget.SearchView.SearchAutoComplete) searchPlate
        .getChildAt(0))
        .setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
  AutoCompleteTextView searchText = (AutoCompleteTextView) searchView
      .findViewById(R.id.abs__search_src_text);
  if (searchText != null)
    searchText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
  // TODO
  // searchText.setHintTextColor(context.getResources().getColor(R.color.your_custom_color));
}

代码示例来源:origin: CUTR-at-USF/OpenTripPlanner-for-Android

mDrawerLayout = (DrawerLayout) mainView.findViewById(R.id.drawerLayout);
mTbStartLocation.setImeOptions(EditorInfo.IME_ACTION_NEXT);
mTbEndLocation.setImeOptions(EditorInfo.IME_ACTION_DONE);
mTbEndLocation.setImeActionLabel(getResources().getString(R.string.text_box_virtual_keyboard_done_label), EditorInfo.IME_ACTION_DONE);
mTbEndLocation.requestFocus();

代码示例来源:origin: TongmingWu/Manga

etSearch.setImeOptions(EditorInfo.IME_ACTION_SEND);
etSearch.setOnEditorActionListener(new TextView.OnEditorActionListener() {
  @Override

代码示例来源:origin: WowzaMediaSystems/gocoder-sdk-samples-android

mAutoCompleteEditText.setImeOptions(editText.getImeOptions());
mAutoCompleteEditText.setInputType(editText.getInputType());
mAutoCompleteEditText.setKeyListener(editText.getKeyListener());

代码示例来源:origin: LineageOS/android_packages_apps_Jelly

autoCompleteTextView.setImeOptions(autoCompleteTextView.getImeOptions() |
    EditorInfo.IME_FLAG_NO_PERSONALIZED_LEARNING);

相关文章

AutoCompleteTextView类方法