Giter Club home page Giter Club logo

citypicker's Introduction

citypicker logo

CityPicker 城市选择器

在实际的项目中一般情况下都需要使用到省市区三级联动地址选择的功能,有的公司是提供接口获取,有的公司则不是,需要自己实现。一开始,我也深受其扰,每次都是要复制一遍,就想能不能打个包出来,供大伙使用。所以自己就封装了一个,不需要自己添加数据源,直接引用即可。这就是CityPicker城市选择器的由来!

功能点

  1. 支持仿iOS滚轮实现、仿京东样式、一级城市列表、三级城市列表
  2. 支持多种自定义属性来满足你的需求
  3. 简单的几行代码即可实现城市选择器功能
  4. 支持使用自己的数据来实现城市选择器

gradle引用

implementation 'liji.library.dev:citypickerview:5.2.4'

更新说明

最新版本

V5.2.4版本更新内容(2020.12.01)

  1. 发布5.2.4版本,增加自定义数据源样式的自定义item属性
  2. 修复bug

历史更新记录

历史更新说明

数据来源

2018年12月中华人民共和国县以上行政区划代码

**数据(维基百科)需翻墙

港澳数据(维基百科)需翻墙

效果展示

样式说明 图片效果
样式选择 在这里插入图片描述
仿iOS滚轮实现 8.11x16.19-1080x2050 在这里插入图片描述
自定义数据源 在这里插入图片描述
仿京东样式 在这里插入图片描述 在这里插入图片描述
一级城市列表 在这里插入图片描述 在这里插入图片描述
三级城市列表 在这里插入图片描述 在这里插入图片描述在这里插入图片描述

CityPicker使用方法

一. 仿iOS样式使用方法

  1. 样式一链接-(仿iOS滚轮实现)
  2. 样式一链接-(自定义数据源)

二. 仿京东样式使用方法

样式二链接-(仿京东样式)

三. 一级城市列表使用方法

样式三链接-一级城市列表使用方法

四. 三级城市列表使用方法

样式四链接-三级城市列表使用方法

代码混淆

代码混淆解决方案

专属QQ群,欢迎加入!

QQ群:417846442

其他问题wiki

https://github.com/crazyandcoder/citypicker/wiki

License

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.

码农的小世界

欢迎关注本人公众号,学习更多知识,每天定时更新干货。

citypicker logo

citypicker's People

Contributors

crazyandcoder avatar v200123 avatar mao720 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.