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

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

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

AutoCompleteTextView.<init>介绍

暂无

代码示例

代码示例来源:origin: robolectric/robolectric

@Test
public void shouldInvokeFilter() throws Exception {
 Robolectric.getForegroundThreadScheduler().pause();
 AutoCompleteTextView view =
   new AutoCompleteTextView(ApplicationProvider.getApplicationContext());
 view.setAdapter(adapter);
 view.setText("Foo");
 assertThat(adapter.getCount()).isEqualTo(2);
}

代码示例来源:origin: vbier/habpanelviewer

public AutocompleteTextPreference(Context context, AttributeSet attrs) {
  super(context, attrs);
  mTextView = new AutoCompleteTextView(context, attrs);
}

代码示例来源:origin: AmaldevTA/ChipLayout

private TextView createAutoCompleteTextView(Context context)
{
  final ChipLayout.LayoutParams lparamsTextView = new ChipLayout.LayoutParams(ChipLayout.LayoutParams.WRAP_CONTENT, ChipLayout.LayoutParams.WRAP_CONTENT);
  lparamsTextView.setMargins(0, 0, 0, 0);
  final TextView textView = new AutoCompleteTextView(context);
  textView.setPadding(0, 0, 0, 0);
  textView.setBackgroundColor(Color.parseColor("#00FFFFFF"));
  textView.setLayoutParams(lparamsTextView);
  textView.setSingleLine(true);
  textView.setTextColor(textColor);
  if(textSize > 0){
    textView.setTextSize(textSize);
  }
  return textView;
}

代码示例来源:origin: hemant3370/Insta

.build();
 realm = Realm.getInstance(realmConfiguration);
txtUrl = new AutoCompleteTextView(this);
editFab = (FloatingActionButton) findViewById(R.id.fabEdit);
addFab = (FloatingActionButton) findViewById(R.id.fab1);

代码示例来源:origin: posm/OpenMapKitAndroid

final AutoCompleteTextView editText = new AutoCompleteTextView(activity);
editText.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
if (prevTagValsNotInChoices.size() > 0) {

代码示例来源:origin: AmaldevTA/ChipLayout

private AutoCompleteTextView createAutoCompleteTextView(Context context) {
  final LayoutParams lparamsTextView = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
  lparamsTextView.setMargins(0, 0, 10, 0);
  lparamsTextView.gravity = Gravity.CENTER;
  final AutoCompleteTextView autoCompleteTextView = new AutoCompleteTextView(context);
  autoCompleteTextView.setBackgroundColor(Color.parseColor("#00FFFFFF"));
  autoCompleteTextView.setLayoutParams(lparamsTextView);
  autoCompleteTextView.setHint(" ");
  autoCompleteTextView.setPadding(10,0,10,10);
  autoCompleteTextView.setSingleLine(true);
  autoCompleteTextView.setTextColor(textColor);
  autoCompleteTextView.setHintTextColor(hintColor);
  autoCompleteTextView.setCursorVisible(true);
  return autoCompleteTextView;
}

代码示例来源:origin: posm/OpenMapKitAndroid

final AutoCompleteTextView customEditText = new AutoCompleteTextView(activity);
customEditText.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
customEditText.addTextChangedListener(new TextWatcher() {

代码示例来源:origin: GeoODK/collect

autocomplete = new AutoCompleteTextView(getContext());

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

mAutoCompleteEditText = new AutoCompleteTextView(getContext());

相关文章

AutoCompleteTextView类方法