Giter Club home page Giter Club logo

citypicker's Introduction

CityPicker 城市选择器

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

功能点

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

数据来源

《中华人民共和国国家统计局-最新县及县以上行政区划代码(截止2016年7月31日)》

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

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

效果展示

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

CityPicker使用方法

一. 仿iOS样式使用方法

样式一链接-(仿iOS滚轮实现)

二. 仿京东样式使用方法

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

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

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

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

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

gradle引用

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

代码混淆

#地区3级联动选择器

-keep class com.lljjcoder.**{
	*;
}

-dontwarn demo.**
-keep class demo.**{*;}
-dontwarn net.sourceforge.pinyin4j.**
-keep class net.sourceforge.pinyin4j.**{*;}
-keep class net.sourceforge.pinyin4j.format.**{*;}
-keep class net.sourceforge.pinyin4j.format.exception.**{*;}

更新说明

V4.0.1版本更新内容(2019.01.24)

  1. 发布4.0.1版本,修复仿京东样式中出现的崩溃bug

V4.0.0版本更新内容(2019.01.23)

  1. 发布4.0.0版本,新增仿京东的地址选择器样式

历史更新说明

专属QQ群,欢迎加入!

QQ群:417846442

其他问题wiki

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

赞赏

如果你喜欢 citypicker 这个开源库,感觉 citypicker 帮助到了你,可以点右上角 "Star" 支持一下 谢谢!,你也还可以扫描下面的二维码~ 请作者喝一杯牛奶,让作者更有动力写出更好的开源库服务大家。^_^

赞赏的伙计,请注明你们的昵称,请留下你们的联系方式(最好是GitHub地址),谢谢合作 ^_^ 。

赞赏人员列表

赞赏的人

citypicker's People

Contributors

crazyandcoder 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.