请查看原文链接
不再赘述,本只是搜到原作者的框架,甚是喜欢,但发现有一些BUG,于是自己尽力修复了一些,为了方便和需求又添加了一些新的接口
本打算自己留着用了,时间仓促,也没有太雕琢代码质量,单看到issue里有那么多问题,也不知道大家解决没有,但本着开源的原则,就把自己的版本发出来了
原来整体代码还是比较好看懂的,我又加了一些简单的备注,如果可能建议还是多尝试着自己看一看
- 新增可以配置是否开启“热门城市”
- 新增可以配置是否开启“定位”
- 开放接口自定义“热门城市”标题
- 开放接口自定义“热门城市”内容数据
- 现在数据库文件只包含市以上了
- 修复“没有内容时还可以点击到城市”的BUG
- 修复“搜索不显示光标的BUG”
- 开放接口自定义城市数据
- 提升最低版本号为16
- 新增自动根据名称识别首字母
- 自定义数据一键排序
通过自定义CityPickerConfig来完成自定义
样例代码中已经有详细的代码和备注,点击查看样例代码
This is a fixed version, please click here to see more
If you need, you can submit an issue.
如果有需要,可以提交iuuse
####再次感谢原作者,希望帮助到更多的人