Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/limxing/CityPickerWebView
省市县三级联动,JS实现
https://github.com/limxing/CityPickerWebView
Last synced: 3 months ago
JSON representation
省市县三级联动,JS实现
- Host: GitHub
- URL: https://github.com/limxing/CityPickerWebView
- Owner: limxing
- Created: 2016-10-09T06:01:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-11T03:09:34.000Z (about 8 years ago)
- Last Synced: 2024-06-16T03:32:27.147Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 496 KB
- Stars: 60
- Watchers: 7
- Forks: 23
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - CityPickerWebView - JS实现的省市县三级联动 (选择器(Picker))
README
# CityPickerWebView
省市县三级联动,JS实现添加依赖
```
compile 'me.leefeng:citypicker:1.0'
```使用方法:
onCreat()中:
```
cityPicker = new CityPicker(MainActivity.this, this);```
打开选择器:
```
cityPicker.show();```
监听方法回调:
```
@Override
public void getCity(final String name) {
textView.setText(name);
}
```处理返回键:
```
@Override
public void onBackPressed() {
if (cityPicker.isShow()){
cityPicker.close();
return;
}
super.onBackPressed();
}
```参考文献:mui