File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pickerview/src/main/java/com/bigkoo/pickerview/view Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,16 +163,16 @@ public void onItemSelected(int index) {
163163 public void setNPicker (List <T > options1Items , List <T > options2Items , List <T > options3Items ) {
164164
165165 // 选项1
166- wv_option1 .setAdapter (new ArrayWheelAdapter (options1Items ));// 设置显示数据
166+ wv_option1 .setAdapter (new ArrayWheelAdapter <> (options1Items ));// 设置显示数据
167167 wv_option1 .setCurrentItem (0 );// 初始化时显示的数据
168168 // 选项2
169169 if (options2Items != null ) {
170- wv_option2 .setAdapter (new ArrayWheelAdapter (options2Items ));// 设置显示数据
170+ wv_option2 .setAdapter (new ArrayWheelAdapter <> (options2Items ));// 设置显示数据
171171 }
172172 wv_option2 .setCurrentItem (wv_option2 .getCurrentItem ());// 初始化时显示的数据
173173 // 选项3
174174 if (options3Items != null ) {
175- wv_option3 .setAdapter (new ArrayWheelAdapter (options3Items ));// 设置显示数据
175+ wv_option3 .setAdapter (new ArrayWheelAdapter <> (options3Items ));// 设置显示数据
176176 }
177177 wv_option3 .setCurrentItem (wv_option3 .getCurrentItem ());
178178 wv_option1 .setIsOptions (true );
You can’t perform that action at this time.
0 commit comments