├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── profile │ │ │ │ ├── p1.jpg │ │ │ │ ├── p2.jpg │ │ │ │ ├── p3.jpg │ │ │ │ ├── p4.jpg │ │ │ │ ├── p5.jpg │ │ │ │ ├── p6.jpg │ │ │ │ ├── p7.jpg │ │ │ │ ├── p8.jpg │ │ │ │ ├── p9.jpg │ │ │ │ ├── p10.jpg │ │ │ │ ├── p11.jpg │ │ │ │ ├── p12.jpg │ │ │ │ ├── p13.jpg │ │ │ │ ├── p14.jpg │ │ │ │ └── p15.jpg │ │ │ ├── drawable │ │ │ │ ├── app.png │ │ │ │ ├── p1.jpg │ │ │ │ ├── p10.jpg │ │ │ │ ├── p11.jpg │ │ │ │ ├── p12.jpg │ │ │ │ ├── p13.jpg │ │ │ │ ├── p14.jpg │ │ │ │ ├── p15.jpg │ │ │ │ ├── p16.jpg │ │ │ │ ├── p17.jpg │ │ │ │ ├── p18.jpg │ │ │ │ ├── p2.jpg │ │ │ │ ├── p3.jpg │ │ │ │ ├── p4.jpg │ │ │ │ ├── p5.jpg │ │ │ │ ├── p6.jpg │ │ │ │ ├── p7.jpg │ │ │ │ ├── p8.jpg │ │ │ │ ├── p9.jpg │ │ │ │ ├── sex.png │ │ │ │ ├── addbtn.png │ │ │ │ ├── album.png │ │ │ │ ├── back.png │ │ │ │ ├── camera.png │ │ │ │ ├── cards.png │ │ │ │ ├── help.png │ │ │ │ ├── mine.png │ │ │ │ ├── news.png │ │ │ │ ├── pyq1.jpg │ │ │ │ ├── pyq2_1.jpg │ │ │ │ ├── pyq2_2.jpg │ │ │ │ ├── pyq3_1.PNG │ │ │ │ ├── pyq3_2.PNG │ │ │ │ ├── pyq4_1.jpg │ │ │ │ ├── pyq4_2.jpg │ │ │ │ ├── pyq4_3.jpg │ │ │ │ ├── pyq5_1.jpg │ │ │ │ ├── pyq5_2.jpg │ │ │ │ ├── pyq6.jpg │ │ │ │ ├── pyq7.jpg │ │ │ │ ├── pyq8_1.jpg │ │ │ │ ├── pyq8_2.jpg │ │ │ │ ├── star.png │ │ │ │ ├── star1.png │ │ │ │ ├── star2.png │ │ │ │ ├── address.png │ │ │ │ ├── friends.png │ │ │ │ ├── message.png │ │ │ │ ├── notfound.png │ │ │ │ ├── addfriend.png │ │ │ │ ├── username_pic.png │ │ │ │ ├── login_background.jpg │ │ │ │ ├── news_background.jpg │ │ │ │ ├── inputbackground.xml │ │ │ │ ├── ic_home_black_24dp.xml │ │ │ │ ├── dialog_left.xml │ │ │ │ ├── dialog_right.xml │ │ │ │ ├── ic_dashboard_black_24dp.xml │ │ │ │ ├── buttonbackground.xml │ │ │ │ ├── rounded_edittext.xml │ │ │ │ ├── ic_notifications_black_24dp.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 │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── attrs.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── themes.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── fragment_index.xml │ │ │ │ ├── fragment_friends.xml │ │ │ │ ├── item.xml │ │ │ │ ├── make_moment_page.xml │ │ │ │ ├── empty_content_page.xml │ │ │ │ ├── message_item.xml │ │ │ │ ├── activity_index.xml │ │ │ │ ├── msg_item.xml │ │ │ │ ├── friends_item.xml │ │ │ │ ├── login.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── regist.xml │ │ │ │ ├── fragment_news.xml │ │ │ │ ├── news_item.xml │ │ │ │ ├── chat_page.xml │ │ │ │ ├── add_friend_page.xml │ │ │ │ └── fragment_mine.xml │ │ │ ├── menu │ │ │ │ ├── popumenu.xml │ │ │ │ └── bottom_nav_menu.xml │ │ │ ├── values-night │ │ │ │ └── themes.xml │ │ │ ├── navigation │ │ │ │ └── mobile_navigation.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── assets │ │ │ └── litePal.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── wechating │ │ │ │ ├── EmptyContentPage.java │ │ │ │ ├── ui │ │ │ │ ├── index │ │ │ │ │ ├── IndexViewModel.java │ │ │ │ │ └── IndexFragment.java │ │ │ │ ├── mine │ │ │ │ │ ├── MineViewModel.java │ │ │ │ │ └── MineFragment.java │ │ │ │ ├── news │ │ │ │ │ ├── NewsViewModel.java │ │ │ │ │ └── NewsFragment.java │ │ │ │ └── friends │ │ │ │ │ ├── FriendsViewModel.java │ │ │ │ │ └── FriendsFragment.java │ │ │ │ ├── domain │ │ │ │ ├── Msg.java │ │ │ │ ├── User.java │ │ │ │ └── Friends.java │ │ │ │ ├── MakeMomentPage.java │ │ │ │ ├── utils │ │ │ │ ├── UserUtil.java │ │ │ │ ├── FriendsUtil.java │ │ │ │ └── JDBCUtils.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── LoginActivity.java │ │ │ │ ├── AddFriendPage.java │ │ │ │ ├── Index.java │ │ │ │ ├── RegistActivity.java │ │ │ │ ├── component │ │ │ │ ├── SortAdapter.java │ │ │ │ ├── MsgAdapter.java │ │ │ │ ├── Cn2Spell.java │ │ │ │ ├── NewsAdapter.java │ │ │ │ ├── MessageSlideLayout.java │ │ │ │ ├── FriendsSlideLayout.java │ │ │ │ └── SideBar.java │ │ │ │ └── ChatPage.java │ │ └── AndroidManifest.xml │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── wechating │ │ │ └── ExampleInstrumentedTest.java │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── wechating │ │ └── ExampleUnitTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── .gitignore ├── compiler.xml ├── misc.xml ├── gradle.xml └── jarRepositories.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "WeChating" -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /app/src/main/res/profile/p1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p1.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p2.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p3.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p4.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p5.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p6.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p7.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p8.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p9.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/app.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/p1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p10.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p11.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p12.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p13.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p14.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p15.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p16.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p17.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p18.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p4.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p5.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p6.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p7.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p8.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/p9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/p9.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/sex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/sex.png -------------------------------------------------------------------------------- /app/src/main/res/profile/p10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p10.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p11.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p12.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p13.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p14.jpg -------------------------------------------------------------------------------- /app/src/main/res/profile/p15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/profile/p15.jpg -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/addbtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/addbtn.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/album.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/album.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/camera.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/cards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/cards.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/help.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/mine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/mine.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/news.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/news.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq2_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq2_1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq2_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq2_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq3_1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq3_1.PNG -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq3_2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq3_2.PNG -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq4_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq4_1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq4_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq4_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq4_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq4_3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq5_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq5_1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq5_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq5_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq6.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq7.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq8_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq8_1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/pyq8_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/pyq8_2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/star.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/star1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/star1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/star2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/star2.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WeChating 2 | Android期末大作业,仿微信小应用 3 | 主要功能展示可到此博客查看:https://blog.csdn.net/qq_43553929/article/details/111411856 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/address.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/friends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/friends.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/message.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/notfound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/notfound.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/addfriend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/addfriend.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/username_pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/username_pic.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/login_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/login_background.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/news_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/drawable/news_background.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/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/txllg/WeChating/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/txllg/WeChating/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/inputbackground.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Nov 30 20:06:09 CST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/assets/litePal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/dialog_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/dialog_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_dashboard_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/wechating/EmptyContentPage.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | 5 | import android.os.Bundle; 6 | 7 | 8 | public class EmptyContentPage extends AppCompatActivity { 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.empty_content_page); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/buttonbackground.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WeChating 3 | MainActivity 4 | 消息 5 | 通讯录 6 | 朋友圈 7 | 我的 8 | 删除好友 9 | 删除 10 | 添加朋友 11 | 帮助与反馈 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/wechating/ui/index/IndexViewModel.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating.ui.index; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class IndexViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public IndexViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is dashboard fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/wechating/ui/mine/MineViewModel.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating.ui.mine; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class MineViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public MineViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is notifications fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/java/com/example/wechating/ui/news/NewsViewModel.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating.ui.news; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class NewsViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public NewsViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is notifications fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_index.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/wechating/ui/friends/FriendsViewModel.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating.ui.friends; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class FriendsViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public FriendsViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is home fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/popumenu.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | #12de20 11 | #12de20 12 | #bfbfbf 13 | #ECE9E9 14 | #F3F3F3 15 | -------------------------------------------------------------------------------- /app/src/main/res/menu/bottom_nav_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 12 | 13 | 17 | 18 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/wechating/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.wechating; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.ext.junit.runners.AndroidJUnit4; 6 | 7 | import com.example.wechating.domain.User; 8 | import com.example.wechating.utils.JDBCUtils; 9 | 10 | import org.junit.Test; 11 | import org.junit.runner.RunWith; 12 | 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | import static com.example.wechating.utils.JDBCUtils.findAll; 18 | import static org.junit.Assert.*; 19 | 20 | /** 21 | * Instrumented test, which will execute on an Android device. 22 | * 23 | * @see Testing documentation 24 | */ 25 | @RunWith(AndroidJUnit4.class) 26 | public class ExampleInstrumentedTest { 27 | 28 | 29 | } -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_friends.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | 17 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/make_moment_page.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 |