jjzjj

ListViewAdapter

全部标签

android - 如何在 Android 的 ListView Adapter 中隐藏默认键盘

我正在使用ListViewAdapter在我的主页上绑定(bind)ListView,并使用自定义键盘。但是当我点击EditText时,会显示默认键盘。我尝试使用以下代码隐藏它:InputMethodManagermgr=(InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE);mgr.hideSoftInputFromWindow(diesel.getWindowToken(),0);activity.getWindow().setSoftInputMode(WindowManager.La

java - ListViewAdapter extends CursorAdapter 滚动时顺序困惑

我很困惑。我在网上找到了一些建议,但我无法在此代码上实现它。这是我的问题。每次我滚动时,ListView的顺序都会困惑。我不知道该怎么做。我真的需要一些帮助。我会非常感谢你的好意。这是我的代码:publicclassListViewAdapterMeasurementextendsCursorAdapter{TextViewlblContent,lblDate;DBHelperdbHelper;ButtonbtnSelect;publicListViewAdapterMeasurement(Contextcontext,Cursorc){super(context,c,FLAG_REG