@OnEditorAction(R.id.et_q)
public boolean onEditorAction(TextView v, int actionId, KeyEvent key) {
Dlog.d("actionId: "+ actionId);
if (actionId == 3) {
search();
}
return true;
}
@OnTextChanged(R.id.et_q)
public void onTextChanged(CharSequence name) {
mList.clear();
if (name.length() > 0) {
for (EyedocDicVO row : mOriginList) {
if (row.getTitle().contains(name) || row.getDesc().contains(name)) {
mList.add(row);
}
}
} else {
mList.addAll(mOriginList);
}
mRecyclerAdapter.notifyDataSetChanged();
}
@OnFocusChange({R.id.et_l_sph,R.id.et_r_sph})
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
}
}
@OnCheckedChanged({R.id.chk_use_terms, R.id.chk_policy})
public void checked(CompoundButton button, boolean checked) {
validCheckbox();
}