Android implements a simple city list function
•
Android
This example shares the simple usage of Android city list for your reference. The specific contents are as follows
Steps:
1. Add dependency in gradle of app:
com.github.andyoom:citypicker:v1.0.4
2. Add in the build.gradle of the project
maven {url " https://jitpack.io "}
Start writing code:
XML layout:
Mainactivity Code:
Effect in simulator:
Click button and the
Return will return the city name, which implements a simple city list!
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码