Comments (7)
@diguasange 你的initLocation()方法是异步请求定位的话,第一次打开定位城市可能为空;点击取消按钮返回的data是null,先判断下。
from citypicker.
intiLocation()方法如下:
请问怎么解决初次定位城市为空的问题?
from citypicker.
初次定位为空,打开CityPicker后默认就是定位失败
from citypicker.
没有显示定位失败,定位城市按钮无显示
from citypicker.
在onClick()方法中的onLocate()方法,在点击时似乎并未被调用,因为在onLocate()方法内添加Log输出定位城市数据,点击时并无log输出
from citypicker.
你的cityLocated默认为空的吧,因为你传了LocatedCity,就是已经定位了城市所以点击没反应。还不明白的话加QQ交流群601783167
from citypicker.
谢谢作者!
from citypicker.
Related Issues (20)
- 根据定位获取到省市,但是城市编码怎么获取的
- 状态栏透明,能看到覆盖的页面沉浸式状态的内容 HOT 1
- 在fragment中使用会闪退 HOT 2
- 城市信息没有位置信息 HOT 1
- 能否支持多选功能
- 在热门区域上面是否可以添加选择的历史记录 HOT 2
- 修改状态栏颜色
- 您好在activity中使用 但是报了库里面的错误能帮忙看下吗 HOT 1
- 打开城市选择列表时比较慢 HOT 2
- 搜不到**啊?为啥能搜到台北?什么操作? HOT 2
- 列表联动
- 我在fragment,点击显示城市选择后,点击搜索,出现软键盘,取消后,fragment出现软键盘 HOT 7
- 玩完 HOT 3
- 一个ActivityGroup套4个activity,在其中的一个HomeActivity加入你的库和默认主题,一进来就崩溃
- 内存泄漏 HOT 1
- 数据可以自己插入吗 HOT 2
- android.view.InflateException: Binary XML file line #7: Binary XML file line #12: Error inflating class EditText HOT 2
- 我想去掉定位城市那一行,请问应该怎么去掉?谢谢
- 可否设计成在xml中使用
- 可以去掉定位模块吗? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citypicker.