我还有一个这样的需求,貌似不太好实现吧~
我有一个输入框,我根据当前的输入法中文或者英文来检索数据~
譬如我listView的item显示的是通讯录用户姓名,和手机号码!
如果当然输入法是中文的话,我就按照用户姓名检索,其他输入法的情况下,我就按照手机号码检索~~不知道这个怎么搞!~~
private TextWatcher changeWather = new TextWatcher() {
public void afterTextChanged(Editable s) {
}public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
}public void onTextChanged(CharSequence s, int start, int before,
int count) {
///应该在这个地方做的吧~,但是怎么做呢~请指教!!!!
}
};