Giter VIP home page Giter VIP logo

citypicker11's Introduction

citypicker logo

CityPicker 城市选择器

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

功能点

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

gradle引用

compile 'liji.library.dev:citypickerview:5.2.0'

更新说明

最新版本

V5.2.0版本更新内容(2020.01.16)

  1. 发布5.2.0版本,修复仿京东样式下面省下面出现省直辖县行政单位数据的错乱问题。

历史更新记录

历史更新说明

数据来源

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

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

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

效果展示

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

CityPicker使用方法

一. 仿iOS样式使用方法

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

二. 仿京东样式使用方法

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

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

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

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

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

代码混淆

代码混淆解决方案

专属QQ群,欢迎加入!

QQ群:417846442

其他问题wiki

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

码农的小世界

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

citypicker logo

citypicker11's People

Contributors

tcsl-wjx avatar mao720 avatar

Watchers

James Cloos avatar kailaisi 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.