├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── cw.png │ │ │ │ ├── uv.png │ │ │ │ ├── ._100.png │ │ │ │ ├── air.png │ │ │ │ ├── back.png │ │ │ │ ├── bgpic.jpg │ │ │ │ ├── comf.png │ │ │ │ ├── drsg.png │ │ │ │ ├── flu.png │ │ │ │ ├── sport.png │ │ │ │ ├── trav.png │ │ │ │ ├── x100.png │ │ │ │ ├── x100n.png │ │ │ │ ├── x101.png │ │ │ │ ├── x102.png │ │ │ │ ├── x103.png │ │ │ │ ├── x103n.png │ │ │ │ ├── x104.png │ │ │ │ ├── x104n.png │ │ │ │ ├── x200.png │ │ │ │ ├── x201.png │ │ │ │ ├── x202.png │ │ │ │ ├── x203.png │ │ │ │ ├── x204.png │ │ │ │ ├── x205.png │ │ │ │ ├── x206.png │ │ │ │ ├── x207.png │ │ │ │ ├── x208.png │ │ │ │ ├── x209.png │ │ │ │ ├── x210.png │ │ │ │ ├── x211.png │ │ │ │ ├── x212.png │ │ │ │ ├── x213.png │ │ │ │ ├── x300.png │ │ │ │ ├── x300n.png │ │ │ │ ├── x301.png │ │ │ │ ├── x301n.png │ │ │ │ ├── x302.png │ │ │ │ ├── x303.png │ │ │ │ ├── x304.png │ │ │ │ ├── x305.png │ │ │ │ ├── x306.png │ │ │ │ ├── x307.png │ │ │ │ ├── x309.png │ │ │ │ ├── x310.png │ │ │ │ ├── x311.png │ │ │ │ ├── x312.png │ │ │ │ ├── x313.png │ │ │ │ ├── x314.png │ │ │ │ ├── x315.png │ │ │ │ ├── x316.png │ │ │ │ ├── x317.png │ │ │ │ ├── x318.png │ │ │ │ ├── x399.png │ │ │ │ ├── x400.png │ │ │ │ ├── x401.png │ │ │ │ ├── x402.png │ │ │ │ ├── x403.png │ │ │ │ ├── x404.png │ │ │ │ ├── x405.png │ │ │ │ ├── x406.png │ │ │ │ ├── x406n.png │ │ │ │ ├── x407.png │ │ │ │ ├── x407n.png │ │ │ │ ├── x408.png │ │ │ │ ├── x409.png │ │ │ │ ├── x410.png │ │ │ │ ├── x499.png │ │ │ │ ├── x500.png │ │ │ │ ├── x501.png │ │ │ │ ├── x502.png │ │ │ │ ├── x503.png │ │ │ │ ├── x504.png │ │ │ │ ├── x507.png │ │ │ │ ├── x508.png │ │ │ │ ├── x509.png │ │ │ │ ├── x510.png │ │ │ │ ├── x511.png │ │ │ │ ├── x512.png │ │ │ │ ├── x513.png │ │ │ │ ├── x514.png │ │ │ │ ├── x515.png │ │ │ │ ├── x900.png │ │ │ │ ├── x901.png │ │ │ │ ├── x999.png │ │ │ │ ├── bgpic1.jpg │ │ │ │ ├── bgpic2.jpg │ │ │ │ ├── bgpic3.jpg │ │ │ │ ├── bgpic4.jpg │ │ │ │ ├── desktop.png │ │ │ │ ├── add_city.png │ │ │ │ ├── add_city1.png │ │ │ │ ├── add_city2.png │ │ │ │ ├── background.jpg │ │ │ │ ├── desktop1.png │ │ │ │ ├── tab_menu_text.xml │ │ │ │ ├── tab_menu_setting.xml │ │ │ │ ├── tab_menu_better.xml │ │ │ │ ├── tab_menu_channel.xml │ │ │ │ ├── tab_menu_message.xml │ │ │ │ ├── dotted_line.xml │ │ │ │ ├── diag.xml │ │ │ │ ├── tab_menu_bg.xml │ │ │ │ ├── list_circle.xml │ │ │ │ ├── app_list_corner_round.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── tab_my_normal.png │ │ │ │ ├── tab_my_pressed.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ ├── tab_better_normal.png │ │ │ │ ├── tab_better_pressed.png │ │ │ │ ├── tab_channel_normal.png │ │ │ │ ├── tab_message_normal.png │ │ │ │ ├── tab_channel_pressed.png │ │ │ │ └── tab_message_pressed.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── id.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── city_item.xml │ │ │ │ ├── fragment3.xml │ │ │ │ ├── my_dialog.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── add_city.xml │ │ │ │ ├── fragment1.xml │ │ │ │ └── fragment2.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── a19093 │ │ │ │ └── project_endofterm │ │ │ │ ├── VariableApp.java │ │ │ │ ├── StreamTool.java │ │ │ │ ├── GetData.java │ │ │ │ ├── City.java │ │ │ │ ├── MySQHelper.java │ │ │ │ ├── MyFragmentPagerAdapter.java │ │ │ │ ├── Add_city.java │ │ │ │ ├── CityAdapter.java │ │ │ │ ├── CityOperator.java │ │ │ │ ├── Fragment3.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── Request │ │ │ │ ├── LifestyleForecast.java │ │ │ │ ├── HourlyWeatherForecast.java │ │ │ │ └── WeeklyWeatherForecast.java │ │ │ │ ├── Fragment2.java │ │ │ │ └── Fragment1.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── a19093 │ │ │ └── project_endofterm │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── a19093 │ │ └── project_endofterm │ │ └── ExampleInstrumentedTest.java ├── libs │ └── sdk_HeWeather_Public_Android_V2.0.jar ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── vcs.xml ├── runConfigurations.xml ├── gradle.xml ├── codeStyles │ └── Project.xml └── misc.xml ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/cw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/cw.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/uv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/uv.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/._100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/._100.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/air.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/air.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bgpic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/bgpic.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/comf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/comf.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drsg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/drsg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/flu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/flu.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/sport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/sport.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/trav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/trav.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x100.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x100n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x100n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x101.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x102.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x103.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x103n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x103n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x104.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x104.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x104n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x104n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x200.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x201.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x201.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x202.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x202.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x203.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x203.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x204.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x204.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x205.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x205.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x206.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x206.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x207.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x207.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x208.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x208.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x209.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x209.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x210.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x210.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x211.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x211.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x212.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x213.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x213.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x300.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x300n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x300n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x301.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x301.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x301n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x301n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x302.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x302.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x303.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x303.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x304.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x304.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x305.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x305.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x306.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x306.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x307.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x307.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x309.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x309.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x310.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x311.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x311.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x312.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x312.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x313.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x313.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x314.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x314.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x315.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x315.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x316.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x316.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x317.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x317.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x318.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x318.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x399.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x399.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x400.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x401.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x401.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x402.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x402.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x403.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x403.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x404.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x405.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x405.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x406.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x406.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x406n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x406n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x407.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x407.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x407n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x407n.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x408.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x408.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x409.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x409.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x410.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x410.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x499.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x499.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x500.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x501.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x501.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x502.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x502.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x503.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x503.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x504.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x504.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x507.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x507.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x508.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x508.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x509.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x509.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x510.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x510.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x511.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x511.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x512.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x513.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x513.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x514.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x514.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x515.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x515.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x900.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x900.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x901.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x901.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/x999.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/x999.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/bgpic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/bgpic1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/bgpic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/bgpic2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/bgpic3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/bgpic3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/bgpic4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/bgpic4.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/desktop.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/add_city.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/add_city.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/add_city1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/add_city1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/add_city2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/add_city2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/background.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/desktop1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/drawable/desktop1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/libs/sdk_HeWeather_Public_Android_V2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/libs/sdk_HeWeather_Public_Android_V2.0.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_my_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_my_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_my_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_my_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_better_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_better_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_better_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_better_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_channel_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_channel_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_message_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_message_normal.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_channel_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_channel_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_message_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xhdpi/tab_message_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwda/Project_EndofTerm/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/id.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_setting.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_better.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_channel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_message.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/dotted_line.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/diag.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/tab_menu_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_circle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 内测版 3 | 4 | 5 | Hello blank fragment 6 | 7 | 提醒 8 | 信息 9 | 我的 10 | 设置 11 | 40dp 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/app_list_corner_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/a19093/project_endofterm/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/a19093/project_endofterm/VariableApp.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.example.a19093.project_endofterm.Request.HourlyWeatherForecast; 7 | import com.example.a19093.project_endofterm.Request.WeeklyWeatherForecast; 8 | 9 | import java.util.List; 10 | 11 | public class VariableApp extends Application { 12 | private static VariableApp instance = null; 13 | public static VariableApp getInstance(){ 14 | return instance; 15 | } 16 | @Override 17 | public void onCreate(){ 18 | super.onCreate(); 19 | instance = this; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/a19093/project_endofterm/StreamTool.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.InputStream; 5 | 6 | public class StreamTool { 7 | public static byte[] read(InputStream inStream) throws Exception{ 8 | ByteArrayOutputStream outStream = new ByteArrayOutputStream(); 9 | byte[] buffer = new byte[1024]; 10 | int len = 0; 11 | while((len = inStream.read(buffer)) != -1) 12 | { 13 | outStream.write(buffer,0,len); 14 | } 15 | inStream.close(); 16 | byte[] out = outStream.toByteArray(); 17 | outStream.close(); 18 | return out; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/a19093/project_endofterm/GetData.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import java.io.InputStream; 4 | import java.net.HttpURLConnection; 5 | import java.net.URL; 6 | 7 | public class GetData { 8 | public static String getJson(String path) throws Exception { 9 | URL url = new URL(path); 10 | HttpURLConnection conn = (HttpURLConnection) url.openConnection(); 11 | conn.setConnectTimeout(5000); 12 | conn.setRequestMethod("GET"); 13 | if (conn.getResponseCode() == 200) { 14 | InputStream in = conn.getInputStream(); 15 | byte[] data = StreamTool.read(in); 16 | return new String(data, "UTF-8"); 17 | } 18 | return null; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/a19093/project_endofterm/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.a19093.project_endofterm", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/a19093/project_endofterm/City.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | public class City { 4 | private String name; 5 | private String isSelect; 6 | City(){ 7 | } 8 | 9 | City(String name){ 10 | this.name = name; 11 | this.isSelect= "否"; 12 | } 13 | 14 | City(String name, String isSelect){ 15 | this.name = name; 16 | this.isSelect= isSelect; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public String getIsSelect() { 24 | return isSelect; 25 | } 26 | 27 | public void setName(String name){ 28 | this.name = name; 29 | } 30 | 31 | public void setIsSelect(String isSelect){ 32 | this.isSelect = isSelect; 33 | } 34 | 35 | public String toString2(){ 36 | String[] s; 37 | s = name.split(" "); 38 | return s[0] + "," + s[1]; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project_EndofTerm 2 | 这是我大三上学期安卓的期末大作业,做的是一个天气预报app 3 | 4 | 天气预报 5 | 一、 课题内容和要求 6 | 1. 从api中正确获取天气信息 7 | 2. 主界面上展示天气信息变化 8 | 3. 可以切换地理位置 9 | 4. 可以预报一周内天气 10 | 二、需求分析 11 | 1. 获取天气信息 12 | 2. 可以切换地理位置 13 | 3. 使用折线图展示温度变化 14 | 4. 可以根据输入提示城市 15 | 5. 记录添加的城市显示在列表,方便城市切换及供下次使用 16 | 6. 添加下拉刷新操作,在刷新失败的时候,给出相关提示。 17 | 18 | 实验相关截图如下: 19 | ![image style="zoom:50%;"](https://user-images.githubusercontent.com/45311590/116184906-33e98c00-a753-11eb-81c9-9498f1443ffb.png) 20 | ![image style="zoom:50%;"](https://user-images.githubusercontent.com/45311590/116184876-26340680-a753-11eb-8959-e9748ea68e4d.png) 21 | ![image style="zoom:50%;"](https://user-images.githubusercontent.com/45311590/116184829-15839080-a753-11eb-9959-5d7bcf89540a.png) 22 | ![image style="zoom:80%;"](https://user-images.githubusercontent.com/45311590/116184799-0a306500-a753-11eb-99d3-d3e093926303.png) 23 | ![image style="zoom:80%;"](https://user-images.githubusercontent.com/45311590/116184764-fdac0c80-a752-11eb-94ad-b9119fa5002d.png) 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/a19093/project_endofterm/MySQHelper.java: -------------------------------------------------------------------------------- 1 | package com.example.a19093.project_endofterm; 2 | 3 | import android.content.Context; 4 | import android.database.sqlite.SQLiteDatabase; 5 | import android.database.sqlite.SQLiteDatabase.CursorFactory; 6 | import android.database.sqlite.SQLiteOpenHelper; 7 | 8 | public class MySQHelper extends SQLiteOpenHelper { 9 | public static final String CREATE_USERDATA = "create table if not exists CitySQ(name varchar(80) primary key, isSelect varchar(8))"; 10 | private Context mContext; 11 | 12 | public MySQHelper(Context context, String name, CursorFactory factory, int version) { 13 | super(context, name, factory, version); 14 | mContext = context; 15 | } 16 | 17 | @Override 18 | public void onCreate(SQLiteDatabase db) { 19 | db.execSQL(CREATE_USERDATA); 20 | } 21 | 22 | @Override 23 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 24 | } 25 | 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #104E8B 5 | #ffffff 6 | 7 | #000000 8 | #FFFFFF 9 | #FCFCFC 10 | #00F1F1F1 11 | #104E8B 12 | 13 | #FFFFFF 14 | #FFFFFF 15 | #696969 16 | 17 | #8D7A71 18 | #FFFFFF 19 | #008577 20 | #FFC800 21 | #694E42 22 | #E5E5E5 23 | 24 | #EEEE00 25 | #87CEFA 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/city_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 15 | 22 | 29 | 30 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | 23 | #下面两段是和风天气的混淆代码 24 | #排除okhttp 25 | -dontwarn com.squareup.** 26 | -dontwarn okio.** 27 | -keep public class org.codehaus.* { *; } 28 | -keep public class java.nio.* { *; } 29 | 30 | #排除HeWeather 31 | -dontwarn interfaces.heweather.com.interfacesmodule.** 32 | -keep class interfaces.heweather.com.interfacesmodule.** { *;} 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.example.a19093.project_endofterm" 7 | minSdkVersion 23 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | true 16 | minifyEnabled 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | 24 | implementation 'com.github.lecho:hellocharts-library:1.5.8@aar' 25 | 26 | implementation fileTree(include: ['*.jar'], dir: 'libs') 27 | implementation 'com.android.support:appcompat-v7:28.0.0' 28 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 29 | 30 | //下面两行和风天气独有的 31 | implementation 'com.squareup.okhttp3:okhttp:3.9.0' 32 | implementation 'com.google.code.gson:gson:2.6.2' 33 | 34 | implementation 'com.google.code.gson:gson:2.2.+' 35 | 36 | //用Gson框架技术解析JSON 37 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.0' 38 | 39 | implementation 'com.android.support:support-v4:28.0.0' 40 | testImplementation 'junit:junit:4.12' 41 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 42 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 43 | implementation files('libs/sdk_HeWeather_Public_Android_V2.0.jar') 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment3.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 13 | 17 | 22 | 23 | 27 |