为什么Listview Edittext中不显示键盘?
我在listview中使用了一个库从左向右滑动,但在listview中有一个edittext,单击edittext后,键盘不会显示为什么Listview Edittext中不显示键盘?,listview,keyboard,android-edittext,swipe,Listview,Keyboard,Android Edittext,Swipe,我在listview中使用了一个库从左向右滑动,但在listview中有一个edittext,单击edittext后,键盘不会显示 holderGroups.edit.setOnTouchListener(new OnTouchListener() { @SuppressLint("ClickableViewAccessibility") @Override public boolean onTouch(View v, MotionEvent
holderGroups.edit.setOnTouchListener(new OnTouchListener() {
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
InputMethodManager im = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);
im.showSoftInput(holderGroups.edit, 0);
break;
case MotionEvent.ACTION_UP:
v.performClick();
break;
default:
break;
}
return true;
}
});
请通读我的代码并给我建议一些解决方案