一个天气预报的小例子,不是完整的项目。可以学习一下安卓关于使用xml和json的相关知识,天气数据接口使用的是http://v.juhe.cn/weather/index提供的接口,源码注释一般,比较时候参考学习。项目编码GBK默认编译版本4.4.2
文件夹 PATH 列表 卷序列号为 5B665353 3CD2:D088 C:. │ javaapk.com文件列表生成工具.bat │ 更多源码打包下载.url │ 本源码使用帮助.txt │ 目录列表.txt │ └─Weather │ .classpath │ .project │ AndroidManifest.xml │ ic_launcher-web.png │ proguard-project.txt │ project.properties │ ├─.settings │ org.eclipse.jdt.core.prefs │ ├─assets ├─gen │ └─com │ └─example │ └─weather │ BuildConfig.java │ R.java │ ├─libs │ android-support-v4.jar │ gson-2.2.1.jar │ ├─res │ ├─drawable-hdpi │ │ app_bg01.jpg │ │ app_bg02.jpg │ │ app_bg03.jpg │ │ app_bg04.jpg │ │ ic_launcher.png │ │ item_bg.png │ │ item_foot.png │ │ item_mid.png │ │ item_top.png │ │ menu_city_manager.png │ │ menu_diy.png │ │ menu_update.png │ │ Thumbs.db │ │ top_bar.png │ │ weathericon_condition_01.png │ │ weathericon_condition_02.png │ │ weathericon_condition_03.png │ │ weathericon_condition_04.png │ │ weathericon_condition_05.png │ │ weathericon_condition_06.png │ │ weathericon_condition_07.png │ │ weathericon_condition_08.png │ │ weathericon_condition_09.png │ │ weathericon_condition_10.png │ │ weathericon_condition_11.png │ │ weathericon_condition_12.png │ │ weathericon_condition_13.png │ │ weathericon_condition_14.png │ │ weathericon_condition_15.png │ │ weathericon_condition_16.png │ │ weathericon_condition_17.png │ │ widget_bg.png │ │ │ ├─drawable-ldpi │ ├─drawable-mdpi │ │ ic_launcher.png │ │ │ ├─drawable-xhdpi │ │ ic_launcher.png │ │ │ ├─drawable-xxhdpi │ │ ic_launcher.png │ │ │ ├─layout │ │ activity_city.xml │ │ activity_main.xml │ │ item.xml │ │ │ ├─menu │ │ city.xml │ │ main.xml │ │ │ ├─raw │ │ china.xml │ │ │ ├─values │ │ dimens.xml │ │ strings.xml │ │ styles.xml │ │ │ ├─values-sw600dp │ │ dimens.xml │ │ │ ├─values-sw720dp-land │ │ dimens.xml │ │ │ ├─values-v11 │ │ styles.xml │ │ │ └─values-v14 │ styles.xml │ └─src └─com └─example ├─city │ City.java │ CityActivity.java │ MyAdapter.java │ MyHandler.java │ Province.java │ ProvinceHandler.java │ └─weather Content.java MainActivity.java Result.java Today.java Weather.java WeatherAdapter.java
您必须登录才能评论.
xml解析没值
bucuo 挺好的
有错误
我想学习一下关于xml解析方面
有错