From 453a85cf0d9688247ccdfd768f0d1d4c4ffdab63 Mon Sep 17 00:00:00 2001 From: sesamecracker <1475675235@qq.com> Date: Fri, 23 Mar 2018 23:17:40 +0800 Subject: [PATCH] frist commit --- app/.DS_Store | Bin 0 -> 6148 bytes app/.gitignore | 0 app/app.iml | 146 ++++++++++++++++++ app/build.gradle | 0 app/proguard-rules.pro | 0 app/src/.DS_Store | Bin 0 -> 6148 bytes .../ExampleInstrumentedTest.java | 0 app/src/main/.DS_Store | Bin 0 -> 6148 bytes app/src/main/AndroidManifest.xml | 4 +- app/src/main/java/.DS_Store | Bin 0 -> 6148 bytes app/src/main/java/com/.DS_Store | Bin 0 -> 6148 bytes app/src/main/java/com/example/.DS_Store | Bin 0 -> 6148 bytes .../example/weather/test/WeatherGetTest.java | 39 +++++ .../weather/util/HttpCallbackListener.java | 10 ++ .../com/example/weather/util/HttpUtil.java | 53 +++++++ .../studio/weatherappdesign/MainActivity.java | 62 +++++++- app/src/main/res/.DS_Store | Bin 0 -> 6148 bytes .../main/res/drawable-v24/circular_shape.xml | 19 +++ .../drawable-v24/ic_launcher_foreground.xml | 0 app/src/main/res/drawable-v24/ring_shape.xml | 19 +++ app/src/main/res/drawable/button_selector.xml | 2 +- app/src/main/res/drawable/button_shape.xml | 0 .../res/drawable/button_shape_pressed.xml | 0 app/src/main/res/drawable/design.png | Bin .../res/drawable/ic_launcher_background.xml | 0 app/src/main/res/drawable/notification.png | Bin .../main/res/drawable/partly_sunny_small.png | Bin app/src/main/res/drawable/rainy_small.png | Bin app/src/main/res/drawable/rainy_up.png | Bin app/src/main/res/drawable/sunny_small.png | Bin app/src/main/res/drawable/windy_small.png | Bin app/src/main/res/layout/activity_main.xml | 41 +++-- .../res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../mipmap-anydpi-v26/ic_launcher_round.xml | 0 app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-hdpi/ic_launcher_round.png | Bin app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher_round.png | Bin app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin app/src/main/res/mipmap-xxxhdpi/logo.png | Bin 0 -> 8952 bytes app/src/main/res/values/colors.xml | 0 app/src/main/res/values/strings.xml | 0 app/src/main/res/values/styles.xml | 0 .../weatherappdesign/ExampleUnitTest.java | 0 build.gradle | 0 .../profile-2018-03-15-22-48-15-685.json | 1 + .../profile-2018-03-15-22-48-15-685.rawproto | Bin 0 -> 1464 bytes .../profile-2018-03-15-22-49-06-066.json | 1 + .../profile-2018-03-15-22-49-06-066.rawproto | Bin 0 -> 1458 bytes .../profile-2018-03-15-22-49-20-070.json | 1 + .../profile-2018-03-15-22-49-20-070.rawproto | Bin 0 -> 4086 bytes .../profile-2018-03-15-22-58-57-439.json | 1 + .../profile-2018-03-15-22-58-57-439.rawproto | Bin 0 -> 1458 bytes .../profile-2018-03-15-22-59-00-621.json | 1 + .../profile-2018-03-15-22-59-00-621.rawproto | Bin 0 -> 4093 bytes .../profile-2018-03-15-22-59-40-002.json | 1 + .../profile-2018-03-15-22-59-40-002.rawproto | Bin 0 -> 6788 bytes .../profile-2018-03-16-00-41-15-884.json | 1 + .../profile-2018-03-16-00-41-15-884.rawproto | Bin 0 -> 5980 bytes .../profile-2018-03-16-01-49-24-563.json | 1 + .../profile-2018-03-16-01-49-24-563.rawproto | Bin 0 -> 6539 bytes .../profile-2018-03-16-01-57-48-709.json | 1 + .../profile-2018-03-16-01-57-48-709.rawproto | Bin 0 -> 5958 bytes .../profile-2018-03-16-01-59-55-504.json | 1 + .../profile-2018-03-16-01-59-55-504.rawproto | Bin 0 -> 5974 bytes .../profile-2018-03-16-02-04-40-029.json | 1 + .../profile-2018-03-16-02-04-40-029.rawproto | Bin 0 -> 5931 bytes .../profile-2018-03-16-02-06-11-697.json | 1 + .../profile-2018-03-16-02-06-11-697.rawproto | Bin 0 -> 5980 bytes .../profile-2018-03-16-02-08-00-867.json | 1 + .../profile-2018-03-16-02-08-00-867.rawproto | Bin 0 -> 5928 bytes .../profile-2018-03-16-02-21-13-344.json | 1 + .../profile-2018-03-16-02-21-13-344.rawproto | Bin 0 -> 6562 bytes .../profile-2018-03-16-02-22-04-617.json | 1 + .../profile-2018-03-16-02-22-04-617.rawproto | Bin 0 -> 5971 bytes .../profile-2018-03-16-02-23-06-210.json | 1 + .../profile-2018-03-16-02-23-06-210.rawproto | Bin 0 -> 5927 bytes .../profile-2018-03-16-02-34-52-967.json | 1 + .../profile-2018-03-16-02-34-52-967.rawproto | Bin 0 -> 6680 bytes .../profile-2018-03-16-02-35-54-423.json | 1 + .../profile-2018-03-16-02-35-54-423.rawproto | Bin 0 -> 6019 bytes .../profile-2018-03-16-02-44-13-601.json | 1 + .../profile-2018-03-16-02-44-13-601.rawproto | Bin 0 -> 6515 bytes .../profile-2018-03-16-02-45-12-978.json | 1 + .../profile-2018-03-16-02-45-12-978.rawproto | Bin 0 -> 5930 bytes .../profile-2018-03-16-02-45-37-613.json | 1 + .../profile-2018-03-16-02-45-37-613.rawproto | Bin 0 -> 5965 bytes .../profile-2018-03-16-02-45-59-921.json | 1 + .../profile-2018-03-16-02-45-59-921.rawproto | Bin 0 -> 5935 bytes .../profile-2018-03-16-02-46-21-444.json | 1 + .../profile-2018-03-16-02-46-21-444.rawproto | Bin 0 -> 6533 bytes .../profile-2018-03-16-02-51-36-661.json | 1 + .../profile-2018-03-16-02-51-36-661.rawproto | Bin 0 -> 5954 bytes .../profile-2018-03-16-02-54-59-057.json | 1 + .../profile-2018-03-16-02-54-59-057.rawproto | Bin 0 -> 5969 bytes .../profile-2018-03-16-09-00-37-407.json | 1 + .../profile-2018-03-16-09-00-37-407.rawproto | Bin 0 -> 5981 bytes .../profile-2018-03-16-15-23-31-181.json | 1 + .../profile-2018-03-16-15-23-31-181.rawproto | Bin 0 -> 5924 bytes .../profile-2018-03-16-15-39-48-409.json | 1 + .../profile-2018-03-16-15-39-48-409.rawproto | Bin 0 -> 6461 bytes .../profile-2018-03-16-15-44-16-605.json | 1 + .../profile-2018-03-16-15-44-16-605.rawproto | Bin 0 -> 6425 bytes .../profile-2018-03-16-15-47-13-336.json | 1 + .../profile-2018-03-16-15-47-13-336.rawproto | Bin 0 -> 6492 bytes .../profile-2018-03-16-15-48-19-008.json | 1 + .../profile-2018-03-16-15-48-19-008.rawproto | Bin 0 -> 6149 bytes .../profile-2018-03-16-15-51-18-863.json | 1 + .../profile-2018-03-16-15-51-18-863.rawproto | Bin 0 -> 6484 bytes .../profile-2018-03-16-15-55-33-947.json | 1 + .../profile-2018-03-16-15-55-33-947.rawproto | Bin 0 -> 2858 bytes .../profile-2018-03-16-15-56-11-510.json | 1 + .../profile-2018-03-16-15-56-11-510.rawproto | Bin 0 -> 6428 bytes .../profile-2018-03-16-15-57-27-117.json | 1 + .../profile-2018-03-16-15-57-27-117.rawproto | Bin 0 -> 6448 bytes .../profile-2018-03-16-15-57-45-105.json | 1 + .../profile-2018-03-16-15-57-45-105.rawproto | Bin 0 -> 5867 bytes .../profile-2018-03-16-16-09-51-629.json | 1 + .../profile-2018-03-16-16-09-51-629.rawproto | Bin 0 -> 6469 bytes .../profile-2018-03-16-16-12-40-159.json | 1 + .../profile-2018-03-16-16-12-40-159.rawproto | Bin 0 -> 6451 bytes .../profile-2018-03-16-16-18-00-144.json | 1 + .../profile-2018-03-16-16-18-00-144.rawproto | Bin 0 -> 6445 bytes .../profile-2018-03-16-16-19-44-195.json | 1 + .../profile-2018-03-16-16-19-44-195.rawproto | Bin 0 -> 6445 bytes .../profile-2018-03-16-17-28-35-265.json | 1 + .../profile-2018-03-16-17-28-35-265.rawproto | Bin 0 -> 1458 bytes .../profile-2018-03-16-17-28-53-360.json | 1 + .../profile-2018-03-16-17-28-53-360.rawproto | Bin 0 -> 4092 bytes .../profile-2018-03-16-17-29-20-711.json | 1 + .../profile-2018-03-16-17-29-20-711.rawproto | Bin 0 -> 6781 bytes .../profile-2018-03-16-18-44-04-018.json | 1 + .../profile-2018-03-16-18-44-04-018.rawproto | Bin 0 -> 1468 bytes .../profile-2018-03-16-18-44-20-765.json | 1 + .../profile-2018-03-16-18-44-20-765.rawproto | Bin 0 -> 4084 bytes .../profile-2018-03-16-18-48-24-708.json | 1 + .../profile-2018-03-16-18-48-24-708.rawproto | Bin 0 -> 5965 bytes .../profile-2018-03-16-18-50-41-474.json | 1 + .../profile-2018-03-16-18-50-41-474.rawproto | Bin 0 -> 5959 bytes .../profile-2018-03-16-18-51-34-341.json | 1 + .../profile-2018-03-16-18-51-34-341.rawproto | Bin 0 -> 5957 bytes .../profile-2018-03-16-18-52-29-387.json | 1 + .../profile-2018-03-16-18-52-29-387.rawproto | Bin 0 -> 4857 bytes .../profile-2018-03-16-18-55-45-344.json | 1 + .../profile-2018-03-16-18-55-45-344.rawproto | Bin 0 -> 4659 bytes .../profile-2018-03-16-19-07-00-324.json | 1 + .../profile-2018-03-16-19-07-00-324.rawproto | Bin 0 -> 4836 bytes .../profile-2018-03-16-19-25-18-315.json | 1 + .../profile-2018-03-16-19-25-18-315.rawproto | Bin 0 -> 4847 bytes .../profile-2018-03-23-11-37-21-309.json | 1 + .../profile-2018-03-23-11-37-21-309.rawproto | Bin 0 -> 1462 bytes .../profile-2018-03-23-11-37-51-911.json | 1 + .../profile-2018-03-23-11-37-51-911.rawproto | Bin 0 -> 4086 bytes .../profile-2018-03-23-12-35-45-800.json | 1 + .../profile-2018-03-23-12-35-45-800.rawproto | Bin 0 -> 4981 bytes .../profile-2018-03-23-12-58-10-156.json | 1 + .../profile-2018-03-23-12-58-10-156.rawproto | Bin 0 -> 4900 bytes .../profile-2018-03-23-12-58-37-142.json | 1 + .../profile-2018-03-23-12-58-37-142.rawproto | Bin 0 -> 4659 bytes .../profile-2018-03-23-12-59-31-520.json | 1 + .../profile-2018-03-23-12-59-31-520.rawproto | Bin 0 -> 4663 bytes .../profile-2018-03-23-13-02-37-820.json | 1 + .../profile-2018-03-23-13-02-37-820.rawproto | Bin 0 -> 3987 bytes .../profile-2018-03-23-13-05-12-506.json | 1 + .../profile-2018-03-23-13-05-12-506.rawproto | Bin 0 -> 3981 bytes .../profile-2018-03-23-13-26-59-090.json | 1 + .../profile-2018-03-23-13-26-59-090.rawproto | Bin 0 -> 3981 bytes .../profile-2018-03-23-13-27-12-970.json | 1 + .../profile-2018-03-23-13-27-12-970.rawproto | Bin 0 -> 3982 bytes .../profile-2018-03-23-13-27-31-495.json | 1 + .../profile-2018-03-23-13-27-31-495.rawproto | Bin 0 -> 4838 bytes .../profile-2018-03-23-13-30-22-780.json | 1 + .../profile-2018-03-23-13-30-22-780.rawproto | Bin 0 -> 3108 bytes .../profile-2018-03-23-13-30-45-964.json | 1 + .../profile-2018-03-23-13-30-45-964.rawproto | Bin 0 -> 4837 bytes .../profile-2018-03-23-13-36-36-081.json | 1 + .../profile-2018-03-23-13-36-36-081.rawproto | Bin 0 -> 4838 bytes .../profile-2018-03-23-14-15-38-560.json | 1 + .../profile-2018-03-23-14-15-38-560.rawproto | Bin 0 -> 4840 bytes .../profile-2018-03-23-14-16-45-378.json | 1 + .../profile-2018-03-23-14-16-45-378.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-17-09-812.json | 1 + .../profile-2018-03-23-14-17-09-812.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-18-02-763.json | 1 + .../profile-2018-03-23-14-18-02-763.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-19-18-848.json | 1 + .../profile-2018-03-23-14-19-18-848.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-20-03-538.json | 1 + .../profile-2018-03-23-14-20-03-538.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-20-57-222.json | 1 + .../profile-2018-03-23-14-20-57-222.rawproto | Bin 0 -> 4873 bytes .../profile-2018-03-23-14-30-45-099.json | 1 + .../profile-2018-03-23-14-30-45-099.rawproto | Bin 0 -> 4871 bytes .../profile-2018-03-23-14-31-21-547.json | 1 + .../profile-2018-03-23-14-31-21-547.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-31-44-431.json | 1 + .../profile-2018-03-23-14-31-44-431.rawproto | Bin 0 -> 4871 bytes .../profile-2018-03-23-14-33-32-234.json | 1 + .../profile-2018-03-23-14-33-32-234.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-14-42-32-038.json | 1 + .../profile-2018-03-23-14-42-32-038.rawproto | Bin 0 -> 4871 bytes .../profile-2018-03-23-14-44-00-028.json | 1 + .../profile-2018-03-23-14-44-00-028.rawproto | Bin 0 -> 4872 bytes .../profile-2018-03-23-21-59-49-274.json | 1 + .../profile-2018-03-23-21-59-49-274.rawproto | Bin 0 -> 1464 bytes .../profile-2018-03-23-22-00-48-505.json | 1 + .../profile-2018-03-23-22-00-48-505.rawproto | Bin 0 -> 4087 bytes display/DownloadUpdate.gif | Bin display/btn_click.gif | Bin display/button.gif | Bin display/change_txt_on_btn_clicked.gif | Bin display/create_a_new_project.gif | Bin display/design_version_01.gif | Bin display/design_version_02.gif | Bin display/drawable.gif | Bin display/landscape.gif | Bin display/layout_part_one.gif | Bin display/manifest_no_action_bar.gif | Bin display/need_to_achieve_weather_app.gif | Bin display/new_project.gif | Bin display/paste_drawables.gif | Bin display/re_draw.gif | Bin display/slices.gif | Bin display/textview_id.gif | Bin display/toolbar_none.gif | Bin display/weather_app.gif | Bin display/weather_app_assign.png | Bin gradle.properties | 0 gradle/.DS_Store | Bin 0 -> 6148 bytes gradle/wrapper/gradle-wrapper.jar | Bin gradle/wrapper/gradle-wrapper.properties | 0 gradlew.bat | 0 local.properties | 11 ++ readme.md | 0 settings.gradle | 0 weather-application.iml | 19 +++ 241 files changed, 490 insertions(+), 16 deletions(-) create mode 100644 app/.DS_Store mode change 100644 => 100755 app/.gitignore create mode 100644 app/app.iml mode change 100644 => 100755 app/build.gradle mode change 100644 => 100755 app/proguard-rules.pro create mode 100644 app/src/.DS_Store mode change 100644 => 100755 app/src/androidTest/java/mg/studio/weatherappdesign/ExampleInstrumentedTest.java create mode 100644 app/src/main/.DS_Store mode change 100644 => 100755 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/.DS_Store create mode 100644 app/src/main/java/com/.DS_Store create mode 100644 app/src/main/java/com/example/.DS_Store create mode 100644 app/src/main/java/com/example/weather/test/WeatherGetTest.java create mode 100644 app/src/main/java/com/example/weather/util/HttpCallbackListener.java create mode 100644 app/src/main/java/com/example/weather/util/HttpUtil.java mode change 100644 => 100755 app/src/main/java/mg/studio/weatherappdesign/MainActivity.java create mode 100644 app/src/main/res/.DS_Store create mode 100644 app/src/main/res/drawable-v24/circular_shape.xml mode change 100644 => 100755 app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable-v24/ring_shape.xml mode change 100644 => 100755 app/src/main/res/drawable/button_selector.xml mode change 100644 => 100755 app/src/main/res/drawable/button_shape.xml mode change 100644 => 100755 app/src/main/res/drawable/button_shape_pressed.xml mode change 100644 => 100755 app/src/main/res/drawable/design.png mode change 100644 => 100755 app/src/main/res/drawable/ic_launcher_background.xml mode change 100644 => 100755 app/src/main/res/drawable/notification.png mode change 100644 => 100755 app/src/main/res/drawable/partly_sunny_small.png mode change 100644 => 100755 app/src/main/res/drawable/rainy_small.png mode change 100644 => 100755 app/src/main/res/drawable/rainy_up.png mode change 100644 => 100755 app/src/main/res/drawable/sunny_small.png mode change 100644 => 100755 app/src/main/res/drawable/windy_small.png mode change 100644 => 100755 app/src/main/res/layout/activity_main.xml mode change 100644 => 100755 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml mode change 100644 => 100755 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml mode change 100644 => 100755 app/src/main/res/mipmap-hdpi/ic_launcher.png mode change 100644 => 100755 app/src/main/res/mipmap-hdpi/ic_launcher_round.png mode change 100644 => 100755 app/src/main/res/mipmap-mdpi/ic_launcher.png mode change 100644 => 100755 app/src/main/res/mipmap-mdpi/ic_launcher_round.png mode change 100644 => 100755 app/src/main/res/mipmap-xhdpi/ic_launcher.png mode change 100644 => 100755 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png mode change 100644 => 100755 app/src/main/res/mipmap-xxhdpi/ic_launcher.png mode change 100644 => 100755 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png mode change 100644 => 100755 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png mode change 100644 => 100755 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/logo.png mode change 100644 => 100755 app/src/main/res/values/colors.xml mode change 100644 => 100755 app/src/main/res/values/strings.xml mode change 100644 => 100755 app/src/main/res/values/styles.xml mode change 100644 => 100755 app/src/test/java/mg/studio/weatherappdesign/ExampleUnitTest.java mode change 100644 => 100755 build.gradle create mode 100644 build/android-profile/profile-2018-03-15-22-48-15-685.json create mode 100644 build/android-profile/profile-2018-03-15-22-48-15-685.rawproto create mode 100644 build/android-profile/profile-2018-03-15-22-49-06-066.json create mode 100644 build/android-profile/profile-2018-03-15-22-49-06-066.rawproto create mode 100644 build/android-profile/profile-2018-03-15-22-49-20-070.json create mode 100644 build/android-profile/profile-2018-03-15-22-49-20-070.rawproto create mode 100644 build/android-profile/profile-2018-03-15-22-58-57-439.json create mode 100644 build/android-profile/profile-2018-03-15-22-58-57-439.rawproto create mode 100644 build/android-profile/profile-2018-03-15-22-59-00-621.json create mode 100644 build/android-profile/profile-2018-03-15-22-59-00-621.rawproto create mode 100644 build/android-profile/profile-2018-03-15-22-59-40-002.json create mode 100644 build/android-profile/profile-2018-03-15-22-59-40-002.rawproto create mode 100644 build/android-profile/profile-2018-03-16-00-41-15-884.json create mode 100644 build/android-profile/profile-2018-03-16-00-41-15-884.rawproto create mode 100644 build/android-profile/profile-2018-03-16-01-49-24-563.json create mode 100644 build/android-profile/profile-2018-03-16-01-49-24-563.rawproto create mode 100644 build/android-profile/profile-2018-03-16-01-57-48-709.json create mode 100644 build/android-profile/profile-2018-03-16-01-57-48-709.rawproto create mode 100644 build/android-profile/profile-2018-03-16-01-59-55-504.json create mode 100644 build/android-profile/profile-2018-03-16-01-59-55-504.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-04-40-029.json create mode 100644 build/android-profile/profile-2018-03-16-02-04-40-029.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-06-11-697.json create mode 100644 build/android-profile/profile-2018-03-16-02-06-11-697.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-08-00-867.json create mode 100644 build/android-profile/profile-2018-03-16-02-08-00-867.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-21-13-344.json create mode 100644 build/android-profile/profile-2018-03-16-02-21-13-344.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-22-04-617.json create mode 100644 build/android-profile/profile-2018-03-16-02-22-04-617.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-23-06-210.json create mode 100644 build/android-profile/profile-2018-03-16-02-23-06-210.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-34-52-967.json create mode 100644 build/android-profile/profile-2018-03-16-02-34-52-967.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-35-54-423.json create mode 100644 build/android-profile/profile-2018-03-16-02-35-54-423.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-44-13-601.json create mode 100644 build/android-profile/profile-2018-03-16-02-44-13-601.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-45-12-978.json create mode 100644 build/android-profile/profile-2018-03-16-02-45-12-978.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-45-37-613.json create mode 100644 build/android-profile/profile-2018-03-16-02-45-37-613.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-45-59-921.json create mode 100644 build/android-profile/profile-2018-03-16-02-45-59-921.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-46-21-444.json create mode 100644 build/android-profile/profile-2018-03-16-02-46-21-444.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-51-36-661.json create mode 100644 build/android-profile/profile-2018-03-16-02-51-36-661.rawproto create mode 100644 build/android-profile/profile-2018-03-16-02-54-59-057.json create mode 100644 build/android-profile/profile-2018-03-16-02-54-59-057.rawproto create mode 100644 build/android-profile/profile-2018-03-16-09-00-37-407.json create mode 100644 build/android-profile/profile-2018-03-16-09-00-37-407.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-23-31-181.json create mode 100644 build/android-profile/profile-2018-03-16-15-23-31-181.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-39-48-409.json create mode 100644 build/android-profile/profile-2018-03-16-15-39-48-409.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-44-16-605.json create mode 100644 build/android-profile/profile-2018-03-16-15-44-16-605.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-47-13-336.json create mode 100644 build/android-profile/profile-2018-03-16-15-47-13-336.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-48-19-008.json create mode 100644 build/android-profile/profile-2018-03-16-15-48-19-008.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-51-18-863.json create mode 100644 build/android-profile/profile-2018-03-16-15-51-18-863.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-55-33-947.json create mode 100644 build/android-profile/profile-2018-03-16-15-55-33-947.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-56-11-510.json create mode 100644 build/android-profile/profile-2018-03-16-15-56-11-510.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-57-27-117.json create mode 100644 build/android-profile/profile-2018-03-16-15-57-27-117.rawproto create mode 100644 build/android-profile/profile-2018-03-16-15-57-45-105.json create mode 100644 build/android-profile/profile-2018-03-16-15-57-45-105.rawproto create mode 100644 build/android-profile/profile-2018-03-16-16-09-51-629.json create mode 100644 build/android-profile/profile-2018-03-16-16-09-51-629.rawproto create mode 100644 build/android-profile/profile-2018-03-16-16-12-40-159.json create mode 100644 build/android-profile/profile-2018-03-16-16-12-40-159.rawproto create mode 100644 build/android-profile/profile-2018-03-16-16-18-00-144.json create mode 100644 build/android-profile/profile-2018-03-16-16-18-00-144.rawproto create mode 100644 build/android-profile/profile-2018-03-16-16-19-44-195.json create mode 100644 build/android-profile/profile-2018-03-16-16-19-44-195.rawproto create mode 100644 build/android-profile/profile-2018-03-16-17-28-35-265.json create mode 100644 build/android-profile/profile-2018-03-16-17-28-35-265.rawproto create mode 100644 build/android-profile/profile-2018-03-16-17-28-53-360.json create mode 100644 build/android-profile/profile-2018-03-16-17-28-53-360.rawproto create mode 100644 build/android-profile/profile-2018-03-16-17-29-20-711.json create mode 100644 build/android-profile/profile-2018-03-16-17-29-20-711.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-44-04-018.json create mode 100644 build/android-profile/profile-2018-03-16-18-44-04-018.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-44-20-765.json create mode 100644 build/android-profile/profile-2018-03-16-18-44-20-765.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-48-24-708.json create mode 100644 build/android-profile/profile-2018-03-16-18-48-24-708.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-50-41-474.json create mode 100644 build/android-profile/profile-2018-03-16-18-50-41-474.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-51-34-341.json create mode 100644 build/android-profile/profile-2018-03-16-18-51-34-341.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-52-29-387.json create mode 100644 build/android-profile/profile-2018-03-16-18-52-29-387.rawproto create mode 100644 build/android-profile/profile-2018-03-16-18-55-45-344.json create mode 100644 build/android-profile/profile-2018-03-16-18-55-45-344.rawproto create mode 100644 build/android-profile/profile-2018-03-16-19-07-00-324.json create mode 100644 build/android-profile/profile-2018-03-16-19-07-00-324.rawproto create mode 100644 build/android-profile/profile-2018-03-16-19-25-18-315.json create mode 100644 build/android-profile/profile-2018-03-16-19-25-18-315.rawproto create mode 100644 build/android-profile/profile-2018-03-23-11-37-21-309.json create mode 100644 build/android-profile/profile-2018-03-23-11-37-21-309.rawproto create mode 100644 build/android-profile/profile-2018-03-23-11-37-51-911.json create mode 100644 build/android-profile/profile-2018-03-23-11-37-51-911.rawproto create mode 100644 build/android-profile/profile-2018-03-23-12-35-45-800.json create mode 100644 build/android-profile/profile-2018-03-23-12-35-45-800.rawproto create mode 100644 build/android-profile/profile-2018-03-23-12-58-10-156.json create mode 100644 build/android-profile/profile-2018-03-23-12-58-10-156.rawproto create mode 100644 build/android-profile/profile-2018-03-23-12-58-37-142.json create mode 100644 build/android-profile/profile-2018-03-23-12-58-37-142.rawproto create mode 100644 build/android-profile/profile-2018-03-23-12-59-31-520.json create mode 100644 build/android-profile/profile-2018-03-23-12-59-31-520.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-02-37-820.json create mode 100644 build/android-profile/profile-2018-03-23-13-02-37-820.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-05-12-506.json create mode 100644 build/android-profile/profile-2018-03-23-13-05-12-506.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-26-59-090.json create mode 100644 build/android-profile/profile-2018-03-23-13-26-59-090.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-27-12-970.json create mode 100644 build/android-profile/profile-2018-03-23-13-27-12-970.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-27-31-495.json create mode 100644 build/android-profile/profile-2018-03-23-13-27-31-495.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-30-22-780.json create mode 100644 build/android-profile/profile-2018-03-23-13-30-22-780.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-30-45-964.json create mode 100644 build/android-profile/profile-2018-03-23-13-30-45-964.rawproto create mode 100644 build/android-profile/profile-2018-03-23-13-36-36-081.json create mode 100644 build/android-profile/profile-2018-03-23-13-36-36-081.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-15-38-560.json create mode 100644 build/android-profile/profile-2018-03-23-14-15-38-560.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-16-45-378.json create mode 100644 build/android-profile/profile-2018-03-23-14-16-45-378.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-17-09-812.json create mode 100644 build/android-profile/profile-2018-03-23-14-17-09-812.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-18-02-763.json create mode 100644 build/android-profile/profile-2018-03-23-14-18-02-763.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-19-18-848.json create mode 100644 build/android-profile/profile-2018-03-23-14-19-18-848.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-20-03-538.json create mode 100644 build/android-profile/profile-2018-03-23-14-20-03-538.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-20-57-222.json create mode 100644 build/android-profile/profile-2018-03-23-14-20-57-222.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-30-45-099.json create mode 100644 build/android-profile/profile-2018-03-23-14-30-45-099.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-31-21-547.json create mode 100644 build/android-profile/profile-2018-03-23-14-31-21-547.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-31-44-431.json create mode 100644 build/android-profile/profile-2018-03-23-14-31-44-431.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-33-32-234.json create mode 100644 build/android-profile/profile-2018-03-23-14-33-32-234.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-42-32-038.json create mode 100644 build/android-profile/profile-2018-03-23-14-42-32-038.rawproto create mode 100644 build/android-profile/profile-2018-03-23-14-44-00-028.json create mode 100644 build/android-profile/profile-2018-03-23-14-44-00-028.rawproto create mode 100644 build/android-profile/profile-2018-03-23-21-59-49-274.json create mode 100644 build/android-profile/profile-2018-03-23-21-59-49-274.rawproto create mode 100644 build/android-profile/profile-2018-03-23-22-00-48-505.json create mode 100644 build/android-profile/profile-2018-03-23-22-00-48-505.rawproto mode change 100644 => 100755 display/DownloadUpdate.gif mode change 100644 => 100755 display/btn_click.gif mode change 100644 => 100755 display/button.gif mode change 100644 => 100755 display/change_txt_on_btn_clicked.gif mode change 100644 => 100755 display/create_a_new_project.gif mode change 100644 => 100755 display/design_version_01.gif mode change 100644 => 100755 display/design_version_02.gif mode change 100644 => 100755 display/drawable.gif mode change 100644 => 100755 display/landscape.gif mode change 100644 => 100755 display/layout_part_one.gif mode change 100644 => 100755 display/manifest_no_action_bar.gif mode change 100644 => 100755 display/need_to_achieve_weather_app.gif mode change 100644 => 100755 display/new_project.gif mode change 100644 => 100755 display/paste_drawables.gif mode change 100644 => 100755 display/re_draw.gif mode change 100644 => 100755 display/slices.gif mode change 100644 => 100755 display/textview_id.gif mode change 100644 => 100755 display/toolbar_none.gif mode change 100644 => 100755 display/weather_app.gif mode change 100644 => 100755 display/weather_app_assign.png mode change 100644 => 100755 gradle.properties create mode 100644 gradle/.DS_Store mode change 100644 => 100755 gradle/wrapper/gradle-wrapper.jar mode change 100644 => 100755 gradle/wrapper/gradle-wrapper.properties mode change 100644 => 100755 gradlew.bat create mode 100644 local.properties mode change 100644 => 100755 readme.md mode change 100644 => 100755 settings.gradle create mode 100644 weather-application.iml diff --git a/app/.DS_Store b/app/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0f93f242001c3eec62b41e4a78a866125079d911 GIT binary patch literal 6148 zcmeHKyK2Kg5S)!2Fr;yr@_r$Ia2Wdw@&mzE6A&0;+^foW< + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle old mode 100644 new mode 100755 diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro old mode 100644 new mode 100755 diff --git a/app/src/.DS_Store b/app/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9d6a56620545250bb9a34aa5ef87a586fdec28fa GIT binary patch literal 6148 zcmeH~J#ND=428+mgMlm_Giu2JdIP~oPS6W9ZI%FTJOtf!^gjNeK$Xr#5j+CqCsHB| zzriv^MCZ@*v&bYOBitx^3!N$QK|bUp7rCBq@5|e|E_r5?v@`HYy8YZHr~nn90#tws zP=SA>fZf}$aT{c$0#twsd@EqzhXOa&WDEMI1HnfCa6s7&Yo8^+Vg;}!TM!kPMk^St z>SKu2y&Wuht|nVB+C_8t(0sDm6a&*}7cEF&S{)2jfC_X9JVid){eOi2Hve}mOsN1B zcrXQYIJ_KYyj0$;cduvl*R0yQ!9hQc@Z%={iCx7zxEuD1Ex?*=K~!M;5pWq8sKB2p F@C6gX5~u(G literal 0 HcmV?d00001 diff --git a/app/src/androidTest/java/mg/studio/weatherappdesign/ExampleInstrumentedTest.java b/app/src/androidTest/java/mg/studio/weatherappdesign/ExampleInstrumentedTest.java old mode 100644 new mode 100755 diff --git a/app/src/main/.DS_Store b/app/src/main/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..965650a79b67d2b6af05236adf859fb711ef2527 GIT binary patch literal 6148 zcmeHKyJ`bL3>?K*7}B^*xxe5)Sd8-p`GGjG8)GooB=uGKu6$ZXk3h`f&S}gDw6m+z zXt^m)Cjhqk*e-zufH~a}U%pJupSw@&p(2jvHMZyX!`tzAm}FiLICsDv8+>B(mp{V^ zJDh(*tS^%SQa}nw0VyB_ZlFN*)cNBLYN>=2kOKFmfPWtv-LV&riSg;+5+eX{U^tBX zm?enK1H@i9CNe^^q!N>AHDXxO8E=)>3&+Hy!{TPvshh1P6pPy#Z;=k`iCU$A6u4Ai zmdAzn|7ZG@`TvrnlN68wccp+0>zDP4uT;Ht@^ap58~v5;Ip1_Q?t{W5+A%TOF%RC3 epCT#qn(z6%7mkTRXFTXc{S3G+GAZ!i3j6>H(HMFF literal 0 HcmV?d00001 diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml old mode 100644 new mode 100755 index ac739f17..137e2dde --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,11 +2,11 @@ - + XRJ47Gs)iG`6dSLh8Q1SjYPs)E!7^oOeZpL(tyjrVLL6@9V6f}SPkC64VV zZ-`?v^X<>^&1`LEODNHPIZTE7)QQZ>LUiUhoIZ!)MC)~{JnjP>=XS8c&d2Zn@n`$G z8jxEe2E>3E5CdXB3_OT|s;kS@gYqej7!U)m!vNoh1|{~wF)^MF4DrtgE?^G9JbDRW zqXF0p$3$2lUM+%Gs8@^O8IJu{e!Xx^%y9EK8F}htuMWlIbl6+CoA*SGVn7VsGBD5O zn)QDVz0?2S25BV*#K222;EUb+Zi_2bZJk_>wYEV&p!E5JQZSDY3{j4OQI4@-Io^a* c`Zdn6-wVgY2!}nwfmzM<86Z0nG4MPFE^opX$^ZZW literal 0 HcmV?d00001 diff --git a/app/src/main/java/com/.DS_Store b/app/src/main/java/com/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..19f63214b8fe4ae5f1e6166d73a7426a20e1c3d0 GIT binary patch literal 6148 zcmeHK%Sr=55UkdKfn0LTael!+7()Dl{D7L|wh}=Ek9+dF{4}c{h+*SNatYPYT{FF1 zJ4_w6w*lDteSZ%u0nF)+`1CL}f9^i9o5~oG&Ud_Gz+wNk8=jAo>hlTb-r;}`JmKXx z|2Ui{C@Te|fE17dQa}p)O9Ah_wD}@YQ3^-_De$9!e;*p%u@{bs@#$cQ5r8;jI*jX> zC5X)v#9lZiGDEYZ5|e5*Vp!6dZ&lX|$Hb(=YWT1^*=jHOaivR!s literal 0 HcmV?d00001 diff --git a/app/src/main/java/com/example/.DS_Store b/app/src/main/java/com/example/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2b86e2f5a57a285b5bb4c67908f7e5c2916b9df6 GIT binary patch literal 6148 zcmeHKJ8A { @Override protected String doInBackground(String... strings) { - String stringUrl = "http://mpianatra.com/Courses/info.txt"; + String stringUrl= "http://v.juhe.cn/weather/index?format=2&cityname=重庆&key=3f915b0cad6ae92729f8eb1f0446b66d"; HttpURLConnection urlConnection = null; BufferedReader reader; + mData.setText(getData()); + mWeek.setText(getWeek()); try { URL url = new URL(stringUrl); @@ -67,7 +125,7 @@ protected String doInBackground(String... strings) { return null; } //The temperature - return buffer.toString(); + return buffer.toString().substring(66,68); } catch (MalformedURLException e) { e.printStackTrace(); diff --git a/app/src/main/res/.DS_Store b/app/src/main/res/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..77805e891ed5675e2866475de58ef4c726278763 GIT binary patch literal 6148 zcmeHKJ8HvF5S&e17y`y+%6EYjxxvFYC&&fzQ4xcU10j%7RnC>8dG3H0qWh*HKq<|EV0#ZN<{8j<)y|m?3qM{U#0#e{x0Y4ua-LV&riE(r= z#0WrKFdfEq%o4=r31TlC6Pck|Qi(~m8Zj*C%(trRg=1pUVKsbMz1eC)v3NV5-=ZAW z6BVU^6qqV-ncKDZ|2z5*^Z%5jofMD)|4IQ{Z11-lep2<;*~fXWZS)7a*L>04xDE + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable-v24/ring_shape.xml b/app/src/main/res/drawable-v24/ring_shape.xml new file mode 100644 index 00000000..67df94a4 --- /dev/null +++ b/app/src/main/res/drawable-v24/ring_shape.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/button_selector.xml b/app/src/main/res/drawable/button_selector.xml old mode 100644 new mode 100755 index 915d05ce..687a2e8d --- a/app/src/main/res/drawable/button_selector.xml +++ b/app/src/main/res/drawable/button_selector.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/app/src/main/res/drawable/button_shape.xml b/app/src/main/res/drawable/button_shape.xml old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/button_shape_pressed.xml b/app/src/main/res/drawable/button_shape_pressed.xml old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/design.png b/app/src/main/res/drawable/design.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/notification.png b/app/src/main/res/drawable/notification.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/partly_sunny_small.png b/app/src/main/res/drawable/partly_sunny_small.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/rainy_small.png b/app/src/main/res/drawable/rainy_small.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/rainy_up.png b/app/src/main/res/drawable/rainy_up.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/sunny_small.png b/app/src/main/res/drawable/sunny_small.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/drawable/windy_small.png b/app/src/main/res/drawable/windy_small.png old mode 100644 new mode 100755 diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml old mode 100644 new mode 100755 index c191667a..31bcafb9 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -10,6 +10,7 @@ tools:context="mg.studio.weatherappdesign.MainActivity"> @@ -99,6 +100,7 @@ android:id="@+id/tv_date" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:text="03/03/2018" android:textColor="@android:color/white" /> @@ -117,6 +119,9 @@ android:id="@+id/temperature_of_the_day" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" android:gravity="right" android:text="28" android:textColor="@android:color/white" @@ -131,8 +136,21 @@ android:gravity="right" android:text="°C" android:textColor="@android:color/white" - android:textSize="22sp" /> - + android:textSize="22sp" + android:id="@+id/textView" /> + +