Skip to content

tinybright/CharacterPickerView

 
 

Repository files navigation

CharacterPickerView

可实现三级联动的选择器,高仿iOS的滚轮控件

仿iOS的PickerView控件

可实现单项选择,并支持一二三级联动效果

Demo

//选项选择器
CharacterPickerWindow mOptions = new CharacterPickerWindow(activity);
//初始化选项数据
setPickerData(mOptions.getPickerView());
//设置默认选中的三级项目
mOptions.setSelectOptions(0, 0, 0);
//监听确定选择按钮
mOptions.setOnoptionsSelectListener(new CharacterPickerWindow.OnOptionsSelectListener() {
    @Override
    public void onOptionsSelect(int options1, int option2, int options3) {
        // TODO 处理选择结果
    }
});
mOptions.showAtLocation(v, Gravity.BOTTOM, 0, 0);

效果图

效果图

Thanks

About

可实现三级联动的选择器,高仿iOS的滚轮控件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%