本文整理了Java中android.widget.AutoCompleteTextView.setTag()
方法的一些代码示例,展示了AutoCompleteTextView.setTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AutoCompleteTextView.setTag()
方法的具体详情如下:
包路径:android.widget.AutoCompleteTextView
类名称:AutoCompleteTextView
方法名:setTag
暂无
代码示例来源:origin: dsolonenko/financisto
public Pair<TextView, AutoCompleteTextView> addListNodeCategory(LinearLayout layout, int filterToggleId) {
ListBuilder b = inflater.new ListBuilder(layout, R.layout.select_entry_category);
View v = b.withButtonId(R.id.category_add, listener)
.withClearButtonId(R.id.category_clear, listener)
.withAutoCompleteFilter(listener, filterToggleId)
.withId(R.id.category, listener).withLabel(R.string.category).withData(R.string.select_category)
.create();
ImageView transferImageView = v.findViewById(R.id.split);
transferImageView.setId(R.id.category_split);
transferImageView.setOnClickListener(listener);
ToggleButton toggleBtn = v.findViewById(filterToggleId);
AutoCompleteTextView filterTxt = v.findViewById(R.id.autocomplete_filter);
filterTxt.setTag(toggleBtn);
TextView entityNameTxt = v.findViewById(R.id.data);
entityNameTxt.setTag(R.id.bMinus, v.findViewById(R.id.category_clear));
return Pair.create(entityNameTxt, filterTxt);
}
代码示例来源:origin: dsolonenko/financisto
public Pair<TextView, AutoCompleteTextView> addListNodeWithButtonsAndFilter(LinearLayout layout, int nodeLayoutId, int id, int actBtnId, int clearBtnId, int labelId, int defaultValueResId, int filterToggleId) {
ListBuilder b = inflater.new ListBuilder(layout, nodeLayoutId);
final View v = b.withButtonId(actBtnId, listener)
.withClearButtonId(clearBtnId, listener)
.withAutoCompleteFilter(listener, filterToggleId)
.withId(id, listener)
.withLabel(labelId)
.withData(defaultValueResId)
.create();
if (actBtnId > 0) {
showButton(v, actBtnId);
}
AutoCompleteTextView filterTxt = v.findViewById(R.id.autocomplete_filter);
ToggleButton toggleBtn = v.findViewById(filterToggleId);
filterTxt.setTag(toggleBtn);
TextView textView = v.findViewById(R.id.data);
textView.setTag(R.id.bMinus, v.findViewById(clearBtnId));
textView.setTag(v);
return Pair.create(textView, filterTxt);
}
代码示例来源:origin: AmaldevTA/ChipLayout
autoCompleteTextView.setTag(autoCompleteTextViewTag);
if(this.getChildCount() < 1 && hintText != null){
autoCompleteTextView.setHint(hintText);
内容来源于网络,如有侵权,请联系作者删除!