在实际的项目中一般情况下都需要使用到省市区三级联动地址选择的功能,有的公司是提供接口获取,有的公司则不是,需要自己实现。一开始,我也深受其扰,每次都是要复制一遍,就想能不能打个包出来,供大伙使用。所以自己就封装了一个,不需要自己添加数据源,直接引用即可。这就是CityPicker城市选择器的由来!
- 支持仿iOS滚轮实现、仿京东样式、一级城市列表、三级城市列表
- 支持多种自定义属性来满足你的需求
- 简单的几行代码即可实现城市选择器功能
- 支持使用自己的数据来实现城市选择器
implementation 'liji.library.dev:citypickerview:5.2.4'
V5.2.4版本更新内容(2020.12.01)
- 发布5.2.4版本,增加自定义数据源样式的自定义item属性
- 修复bug
样式说明 | 图片效果 |
---|---|
样式选择 | |
仿iOS滚轮实现 | |
自定义数据源 | |
仿京东样式 | |
一级城市列表 | |
三级城市列表 |
QQ群:417846442
https://github.com/crazyandcoder/citypicker/wiki
Copyright 2016 crazyandcoder
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
欢迎关注本人公众号,学习更多知识,每天定时更新干货。