0
進行點擊動作,我有以下AutoCompleteTextView
如何防止AutoCompleteTextView的下降,由潛伏下來時,立即在下拉項
據如下實施: -
public class MyAutoCompleteTextView extends AutoCompleteTextView {
public MyAutoCompleteTextView(final Context context, final AttributeSet attrs, final int defStyle) {
super(context, attrs, defStyle);
init();
}
public MyAutoCompleteTextView(final Context context, final AttributeSet attrs) {
super(context, attrs);
init();
}
public MyAutoCompleteTextView(final Context context) {
super(context);
init();
}
private void init() {
this.setOnItemClickListener(getMyOnItemClickListener());
}
private OnItemClickListener getMyOnItemClickListener() {
return new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,
...
}
};
}
當用戶點擊下拉項時,將會觸發onItemClick
功能。同時,下拉式UI將自動立即隱藏。
我想知道,即使執行點擊操作,我怎麼讓下拉UI顯示所有的時間?
重寫'dismissDropDown'? – pskink