Open zhushenwudi opened 4 years ago
modify the NiceSpinner.java: @Override public boolean onTouchEvent(MotionEvent event) { if (isEnabled() && event.getAction() == MotionEvent.ACTION_UP && adapter != null) { if (!popupWindow.isShowing() && adapter.getCount() > 0) { showDropDown(); } else { dismissDropDown(); } } return super.onTouchEvent(event); }
当列表是空列表时,各种bug,我在自己修改
各位,推荐用这个 https://github.com/jaredrummler/MaterialSpinner 暂时没有发现大问题
@zhushenwudi 这个自定义数据的List列表比较繁琐。需要自定义Adapter
modify the NiceSpinner.java: @Override public boolean onTouchEvent(MotionEvent event) { if (isEnabled() && event.getAction() == MotionEvent.ACTION_UP && adapter != null) { if (!popupWindow.isShowing() && adapter.getCount() > 0) { showDropDown(); } else { dismissDropDown(); } } return super.onTouchEvent(event); }