├── .DS_Store ├── HxBehavior ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── behavior │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── behavior │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MyBehavior.java │ │ │ │ ├── MyNestedLinearLayout.java │ │ │ │ └── TextViewBehavior.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── attrs.xml │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── behavior │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxChinaMapView ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── chinamap │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── chinamap │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MapView.java │ │ │ │ ├── PathParser.java │ │ │ │ └── ProviceItem.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── raw │ │ │ └── china.svg │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── chinamap │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxDouYin ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── douyin │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── douyin │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MyLayoutManager.java │ │ │ │ └── OnViewPagerListener.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ ├── circle_big_red.xml │ │ │ ├── circle_red.xml │ │ │ ├── cirque_gray.xml │ │ │ ├── echelon_bg.xml │ │ │ ├── ic_launcher_background.xml │ │ │ └── play_arrow.xml │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── item_view_pager.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── add_bg.png │ │ │ ├── add_icon.png │ │ │ ├── header_icon_1.jpg │ │ │ ├── header_icon_2.jpeg │ │ │ ├── header_icon_3.jpeg │ │ │ ├── header_icon_4.jpg │ │ │ ├── heart_icon.png │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_round.png │ │ │ ├── img_video_1.png │ │ │ ├── img_video_2.png │ │ │ ├── msg_icon.png │ │ │ ├── search_icon.png │ │ │ ├── share_icon.png │ │ │ └── three_pointer.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── raw │ │ │ ├── video_1.mp4 │ │ │ └── video_2.mp4 │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── douyin │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxQQRedPoint ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── encodings.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── qqredpoint │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── qqredpoint │ │ │ │ ├── MainActivity.java │ │ │ │ ├── RedPointControlVIew.java │ │ │ │ ├── RedPointView.java │ │ │ │ ├── RedPointViewCopy.java │ │ │ │ ├── SecondActivity.java │ │ │ │ ├── TestActivity.java │ │ │ │ └── WaterView.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable-xhdpi │ │ │ ├── idp.png │ │ │ ├── idq.png │ │ │ ├── idr.png │ │ │ ├── ids.png │ │ │ └── idt.png │ │ │ ├── drawable │ │ │ ├── ic_launcher_background.xml │ │ │ ├── tip_anim.xml │ │ │ └── tv_bg.xml │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── activity_second.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── qqredpoint │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxQQZone ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── qqzone │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── qqzone │ │ │ │ ├── MainActivity.java │ │ │ │ └── QQHeaderSrollView.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ ├── head.png │ │ │ ├── ic_launcher_foreground.xml │ │ │ └── img_header4.png │ │ │ ├── drawable │ │ │ ├── head.png │ │ │ ├── ic_launcher_background.xml │ │ │ └── img_header4.png │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── listview_header.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── qqzone │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxSplashView ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── splashview │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── splashview │ │ │ │ ├── ContentView.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── SplashView.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── content.jpg │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── splashview │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HxSvg ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── Project.xml │ ├── dbnavigator.xml │ ├── gradle.xml │ ├── misc.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── hongx │ │ │ └── svg │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hongx │ │ │ │ └── svg │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── animator │ │ │ └── anim_searchbar.xml │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ ├── ic_heart.xml │ │ │ ├── ic_heat.xml │ │ │ ├── ic_launcher_background.xml │ │ │ ├── xl_anim.xml │ │ │ └── xl_anim_2.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.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 │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── hongx │ │ └── svg │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle └── HxZhibo ├── .gitignore ├── .idea ├── codeStyles │ └── Project.xml ├── dbnavigator.xml ├── gradle.xml ├── misc.xml └── runConfigurations.xml ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── hongx │ │ └── zhibo │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── hongx │ │ │ └── zhibo │ │ │ ├── AudienceAdapter.java │ │ │ ├── EmptyFrag.java │ │ │ ├── InteractiveFrag.java │ │ │ ├── LayerFrag.java │ │ │ ├── LiveFrag.java │ │ │ ├── MagicTextViewActivity.java │ │ │ ├── MainActivity.java │ │ │ ├── MessageAdapter.java │ │ │ └── utils │ │ │ ├── CircleImageView.java │ │ │ ├── DisplayUtil.java │ │ │ ├── HorizontalListView.java │ │ │ ├── MagicTextView.java │ │ │ ├── SoftKeyBoardListener.java │ │ │ └── ViewHolderUtil.java │ └── res │ │ ├── anim │ │ ├── gift_in.xml │ │ └── gift_out.xml │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── aaaa.png │ │ ├── bg_radius_bottom_pink.xml │ │ ├── bg_radius_bottom_white.xml │ │ ├── bg_radius_gift_black.xml │ │ ├── bg_radius_top_black.xml │ │ ├── hani_icon_tag_exp.png │ │ ├── ic_bg.jpg │ │ ├── ic_headpic.png │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.xml │ │ ├── ml_w_lv_8.png │ │ ├── molive_icon_charm_lv_20.png │ │ ├── zem63.png │ │ ├── zem68.png │ │ ├── zem70.png │ │ ├── zem72.png │ │ └── zf.jpg │ │ ├── layout │ │ ├── activity_magic.xml │ │ ├── activity_main.xml │ │ ├── frag_empty.xml │ │ ├── frag_interactive.xml │ │ ├── frag_layer.xml │ │ ├── frag_live.xml │ │ ├── item_audienceadapter.xml │ │ ├── item_gift.xml │ │ └── item_messageadapter.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.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 │ │ ├── img_video_1.png │ │ └── img_video_2.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── raw │ │ ├── video_1.mp4 │ │ └── video_2.mp4 │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── hongx │ └── zhibo │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/.DS_Store -------------------------------------------------------------------------------- /HxBehavior/.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 | -------------------------------------------------------------------------------- /HxBehavior/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /HxBehavior/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /HxBehavior/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /HxBehavior/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /HxBehavior/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 29 5 | buildToolsVersion "29.0.1" 6 | defaultConfig { 7 | applicationId "com.hongx.behavior" 8 | minSdkVersion 21 9 | targetSdkVersion 29 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | implementation 'androidx.appcompat:appcompat:1.0.2' 25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 26 | testImplementation 'junit:junit:4.12' 27 | androidTestImplementation 'androidx.test.ext:junit:1.1.0' 28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 29 | implementation 'androidx.recyclerview:recyclerview:1.1.0' 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /HxBehavior/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 | -------------------------------------------------------------------------------- /HxBehavior/app/src/androidTest/java/com/hongx/behavior/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.behavior; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.hongx.behavior", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/java/com/hongx/behavior/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.hongx.behavior; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | import androidx.coordinatorlayout.widget.CoordinatorLayout; 5 | 6 | import android.os.Bundle; 7 | 8 | public class MainActivity extends AppCompatActivity { 9 | 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_main); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/java/com/hongx/behavior/TextViewBehavior.java: -------------------------------------------------------------------------------- 1 | package com.hongx.behavior; 2 | 3 | import android.content.Context; 4 | import android.view.View; 5 | import android.widget.ListView; 6 | import android.widget.TextView; 7 | 8 | import androidx.annotation.NonNull; 9 | import androidx.core.widget.NestedScrollView; 10 | import androidx.recyclerview.widget.RecyclerView; 11 | 12 | /** 13 | * @author: fuchenming 14 | * @create: 2020-01-19 13:17 15 | */ 16 | public class TextViewBehavior extends MyBehavior { 17 | 18 | public TextViewBehavior(Context context) { 19 | super(context); 20 | } 21 | 22 | @Override 23 | public boolean layoutDependsOn(@NonNull View parent, @NonNull View child, @NonNull View dependency) { 24 | return dependency instanceof RecyclerView; 25 | } 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HxBehavior 3 | 4 | -------------------------------------------------------------------------------- /HxBehavior/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /HxBehavior/app/src/test/java/com/hongx/behavior/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.behavior; 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 | } -------------------------------------------------------------------------------- /HxBehavior/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.5.3' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /HxBehavior/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 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | 21 | -------------------------------------------------------------------------------- /HxBehavior/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxBehavior/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /HxBehavior/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jan 19 09:01:48 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /HxBehavior/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='HxBehavior' 3 | -------------------------------------------------------------------------------- /HxChinaMapView/.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 | -------------------------------------------------------------------------------- /HxChinaMapView/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /HxChinaMapView/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /HxChinaMapView/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /HxChinaMapView/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /HxChinaMapView/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 29 5 | buildToolsVersion "29.0.1" 6 | defaultConfig { 7 | applicationId "com.hongx.chinamap" 8 | minSdkVersion 21 9 | targetSdkVersion 29 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | implementation 'androidx.appcompat:appcompat:1.0.2' 25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 26 | testImplementation 'junit:junit:4.12' 27 | androidTestImplementation 'androidx.test.ext:junit:1.1.0' 28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 29 | } 30 | -------------------------------------------------------------------------------- /HxChinaMapView/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 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/androidTest/java/com/hongx/chinamap/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.chinamap; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.hongx.chinamap", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/java/com/hongx/chinamap/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.hongx.chinamap; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | 5 | import android.os.Bundle; 6 | 7 | public class MainActivity extends AppCompatActivity { 8 | 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | setContentView(R.layout.activity_main); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/java/com/hongx/chinamap/ProviceItem.java: -------------------------------------------------------------------------------- 1 | package com.hongx.chinamap; 2 | 3 | import android.graphics.Canvas; 4 | import android.graphics.Color; 5 | import android.graphics.Paint; 6 | import android.graphics.Path; 7 | import android.graphics.RectF; 8 | import android.graphics.Region; 9 | 10 | /** 11 | * @author: fuchenming 12 | * @create: 2020-01-26 20:10 13 | */ 14 | public class ProviceItem { 15 | 16 | //path对象 17 | private Path path; 18 | //绘制的颜色 19 | private int drawColor; 20 | 21 | public ProviceItem(Path path) { 22 | this.path = path; 23 | } 24 | 25 | 26 | public void setDrawColor(int drawColor) { 27 | this.drawColor = drawColor; 28 | } 29 | 30 | void drawItem(Canvas canvas, Paint paint, boolean isSelect) { 31 | if (isSelect) { 32 | //选中时,绘制描边效果 33 | paint.clearShadowLayer(); 34 | paint.setStrokeWidth(1); 35 | paint.setStyle(Paint.Style.FILL); 36 | paint.setColor(drawColor); 37 | canvas.drawPath(path, paint); 38 | paint.setStyle(Paint.Style.STROKE); 39 | paint.setColor(Color.BLACK); 40 | canvas.drawPath(path, paint); 41 | } else { 42 | //这是不选中的情况下 设置边界 43 | paint.setStrokeWidth(2); 44 | paint.setColor(Color.BLACK); 45 | paint.setStyle(Paint.Style.FILL); 46 | paint.setShadowLayer(8, 0, 0, 0xffffff); 47 | canvas.drawPath(path, paint); 48 | //后面是填充 49 | paint.clearShadowLayer(); 50 | paint.setColor(drawColor); 51 | paint.setStyle(Paint.Style.FILL); 52 | paint.setStrokeWidth(2); 53 | canvas.drawPath(path, paint); 54 | } 55 | } 56 | 57 | public boolean isTouch(float x, float y) { 58 | //创建一个矩形 59 | RectF rectF = new RectF(); 60 | //获取到当前省份的矩形边界 61 | path.computeBounds(rectF, true); 62 | //创建一个区域对象 63 | Region region = new Region(); 64 | //将path对象放入到Region区域对象中 65 | region.setPath(path, new Region((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom)); 66 | //返回是否这个区域包含传进来的坐标 67 | return region.contains((int) x, (int) y); 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HxChinaMapView 3 | 4 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /HxChinaMapView/app/src/test/java/com/hongx/chinamap/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.chinamap; 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 | } -------------------------------------------------------------------------------- /HxChinaMapView/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.5.3' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /HxChinaMapView/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 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | 21 | -------------------------------------------------------------------------------- /HxChinaMapView/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxChinaMapView/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /HxChinaMapView/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jan 26 19:54:36 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /HxChinaMapView/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='HxChinaMapView' 3 | -------------------------------------------------------------------------------- /HxDouYin/.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 | -------------------------------------------------------------------------------- /HxDouYin/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /HxDouYin/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /HxDouYin/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /HxDouYin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /HxDouYin/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 29 5 | buildToolsVersion "29.0.1" 6 | defaultConfig { 7 | applicationId "com.hongx.douyin" 8 | minSdkVersion 21 9 | targetSdkVersion 29 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | implementation 'androidx.appcompat:appcompat:1.0.2' 25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 26 | testImplementation 'junit:junit:4.12' 27 | androidTestImplementation 'androidx.test.ext:junit:1.1.0' 28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 29 | 30 | implementation 'androidx.recyclerview:recyclerview:1.1.0' 31 | 32 | /*第三方库*/ 33 | implementation 'de.hdodenhof:circleimageview:2.2.0' 34 | } 35 | -------------------------------------------------------------------------------- /HxDouYin/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 | -------------------------------------------------------------------------------- /HxDouYin/app/src/androidTest/java/com/hongx/douyin/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.douyin; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.hongx.douyin", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/java/com/hongx/douyin/OnViewPagerListener.java: -------------------------------------------------------------------------------- 1 | package com.hongx.douyin; 2 | 3 | import android.view.View; 4 | 5 | public interface OnViewPagerListener { 6 | //停止播放的监听方法 7 | void onPageRelease(View itemView); 8 | 9 | //播放的监听方法 10 | void onPageSelected(View itemView); 11 | } 12 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable/circle_big_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable/circle_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable/cirque_gray.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable/echelon_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/drawable/play_arrow.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/add_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/add_bg.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/add_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/add_icon.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_1.jpg -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_2.jpeg -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_3.jpeg -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/header_icon_4.jpg -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/heart_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/heart_icon.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/img_video_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/img_video_1.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/img_video_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/img_video_2.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/msg_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/msg_icon.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/search_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/search_icon.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/share_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/share_icon.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxhdpi/three_pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxhdpi/three_pointer.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/raw/video_1.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/raw/video_1.mp4 -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/raw/video_2.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/app/src/main/res/raw/video_2.mp4 -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HxDouYin 3 | 4 | -------------------------------------------------------------------------------- /HxDouYin/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /HxDouYin/app/src/test/java/com/hongx/douyin/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.douyin; 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 | } -------------------------------------------------------------------------------- /HxDouYin/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.5.3' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /HxDouYin/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 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | 21 | -------------------------------------------------------------------------------- /HxDouYin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxDouYin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /HxDouYin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 28 19:04:00 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /HxDouYin/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /HxDouYin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='HxDouYin' 3 | -------------------------------------------------------------------------------- /HxQQRedPoint/.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 | -------------------------------------------------------------------------------- /HxQQRedPoint/.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 21 | 22 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /HxQQRedPoint/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /HxQQRedPoint/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | -------------------------------------------------------------------------------- /HxQQRedPoint/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /HxQQRedPoint/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /HxQQRedPoint/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.hongx.qqredpoint" 7 | minSdkVersion 15 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'com.android.support:appcompat-v7:28.0.0' 24 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 25 | testImplementation 'junit:junit:4.12' 26 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 27 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 28 | } 29 | -------------------------------------------------------------------------------- /HxQQRedPoint/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 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/androidTest/java/com/hongx/qqredpoint/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.hongx.qqredpoint; 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.hongx.qqredpoint", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/java/com/hongx/qqredpoint/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.hongx.qqredpoint; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.FrameLayout; 8 | 9 | public class MainActivity extends Activity { 10 | /** 11 | * Called when the activity is first created. 12 | */ 13 | @Override 14 | public void onCreate(Bundle savedInstanceState) { 15 | super.onCreate(savedInstanceState); 16 | setContentView(R.layout.activity_main); 17 | 18 | final FrameLayout containerView = (FrameLayout) findViewById(R.id.container); 19 | 20 | final FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT); 21 | 22 | findViewById(R.id.btn1).setOnClickListener(new View.OnClickListener() { 23 | @Override 24 | public void onClick(View v) { 25 | RedPointView redPointView = new RedPointView(MainActivity.this); 26 | redPointView.setLayoutParams(layoutParams); 27 | containerView.removeAllViews(); 28 | containerView.addView(redPointView); 29 | } 30 | }); 31 | 32 | findViewById(R.id.btn2).setOnClickListener(new View.OnClickListener() { 33 | @Override 34 | public void onClick(View v) { 35 | RedPointViewCopy redPointView = new RedPointViewCopy(MainActivity.this); 36 | redPointView.setLayoutParams(layoutParams); 37 | containerView.removeAllViews(); 38 | containerView.addView(redPointView); 39 | } 40 | }); 41 | 42 | findViewById(R.id.btn3).setOnClickListener(new View.OnClickListener() { 43 | @Override 44 | public void onClick(View v) { 45 | RedPointControlVIew redPointView = new RedPointControlVIew(MainActivity.this); 46 | redPointView.setLayoutParams(layoutParams); 47 | containerView.removeAllViews(); 48 | containerView.addView(redPointView); 49 | } 50 | }); 51 | } 52 | 53 | public void toNext(View view) { 54 | Intent intent = new Intent(MainActivity.this,SecondActivity.class); 55 | startActivity(intent); 56 | 57 | } 58 | } -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/java/com/hongx/qqredpoint/SecondActivity.java: -------------------------------------------------------------------------------- 1 | package com.hongx.qqredpoint; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.widget.FrameLayout; 7 | 8 | /** 9 | * @author: yaichain18 10 | * @create: 2019-07-15 08:32 11 | */ 12 | public class SecondActivity extends AppCompatActivity { 13 | 14 | WaterView waterView; 15 | FrameLayout frameLayout; 16 | FrameLayout.LayoutParams layoutParams; 17 | 18 | @Override 19 | protected void onCreate(@Nullable Bundle savedInstanceState) { 20 | super.onCreate(savedInstanceState); 21 | setContentView(R.layout.activity_second); 22 | initView(); 23 | } 24 | 25 | private void initView(){ 26 | frameLayout = findViewById(R.id.frameLayout); 27 | layoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, 28 | FrameLayout.LayoutParams.MATCH_PARENT); 29 | waterView = new WaterView(this); 30 | frameLayout.removeAllViews(); 31 | frameLayout.addView(waterView); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/java/com/hongx/qqredpoint/TestActivity.java: -------------------------------------------------------------------------------- 1 | package com.hongx.qqredpoint; 2 | 3 | /** 4 | * @author: fuchenming 5 | * @create: 2019-07-15 13:58 6 | */ 7 | public class TestActivity { 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-xhdpi/idp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/drawable-xhdpi/idp.png -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-xhdpi/idq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/drawable-xhdpi/idq.png -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-xhdpi/idr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/drawable-xhdpi/idr.png -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-xhdpi/ids.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/drawable-xhdpi/ids.png -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable-xhdpi/idt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/drawable-xhdpi/idt.png -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable/tip_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/drawable/tv_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HxQQRedPoint/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |