WheelPicker icon indicating copy to clipboard operation
WheelPicker copied to clipboard

Slide out of range(my simple solution, but need another better solution)

Open thirtyyuan opened this issue 6 years ago • 0 comments

When we use mCityPicker.setSelectedItemPosition(0)(mCityPicker was scroll to bottom) at another picker setOnItemSelectedListener(), such as mProvincePicker.setOnItemSelectedListener(), if new DataList size less then old DataList, the offset will be more then mCityPicker's new size, so ,mCityPicker will be display like empty. It will happen at sometimes. My solution is very simple but can display normally: call setSelectedItemPosition(0) before setData(newDataList). Do you have any better and reasonable solution? solution.png

thirtyyuan avatar Mar 13 '18 03:03 thirtyyuan