我有一些用于 editText 搜索过滤器的代码
EditText searchView = (EditText) findViewById(R.id.search_view_edit);
searchView.setVisibility(View.VISIBLE);
`list.setTextFilterEnabled(true);`
searchView.setHint( getResources().getString( R.string.search_friend_hint ) );
searchView.addTextChangedListener( new TextWatcher() {
@Override
public void onTextChanged( CharSequence s, int start,int before, int count ) {
Log.d("abc123", "onTextChanged " + s.toString() );
if (TextUtils.isEmpty( s )) {
list.clearTextFilter();
} else {
list.setFilterText( s.toString() );
}
}
@Override
public void beforeTextChanged( CharSequence s, int start, int count, int after ) {}
@Override
public void afterTextChanged( Editable s ) {}
});
但默认情况下会显示输入提示:
如何禁用提示?