├── .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 |
13 |
14 |
--------------------------------------------------------------------------------
/HxBehavior/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxChinaMapView/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxChinaMapView/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxDouYin/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxDouYin/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/HxQQRedPoint/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/HxQQRedPoint/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/HxQQRedPoint/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxQQRedPoint/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
12 |
13 |
18 |
19 |
25 |
26 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/layout/activity_second.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HxQQRedPoint
3 |
4 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxQQRedPoint/app/src/test/java/com/hongx/qqredpoint/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.qqredpoint;
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 | }
--------------------------------------------------------------------------------
/HxQQRedPoint/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.4.1'
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 |
--------------------------------------------------------------------------------
/HxQQRedPoint/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxQQRedPoint/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQRedPoint/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HxQQRedPoint/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Jul 15 07:54:33 CST 2019
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.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/HxQQRedPoint/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/HxQQZone/.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 |
--------------------------------------------------------------------------------
/HxQQZone/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxQQZone/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxQQZone/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxQQZone/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HxQQZone/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.qqzone"
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.1.0'
25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
29 | }
30 |
--------------------------------------------------------------------------------
/HxQQZone/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 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/androidTest/java/com/hongx/qqzone/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.qqzone;
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.qqzone", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/java/com/hongx/qqzone/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hongx.qqzone;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.ArrayAdapter;
8 | import android.widget.ImageView;
9 |
10 | public class MainActivity extends AppCompatActivity {
11 |
12 | private QQHeaderSrollView qqHeaderSrollView;
13 | private ImageView iv;
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_main);
19 |
20 | qqHeaderSrollView = findViewById(R.id.lv);
21 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1,
22 | new String[]{
23 | "星期一 和马云洽谈",
24 | "星期二 约见李彦宏",
25 | "星期三 约见乔布斯",
26 | "星期四 和Lance钓鱼",
27 | "星期五 和Jett洽谈",
28 | "星期六 和Jason洽谈",
29 | "星期日 和MZ洽谈",
30 | "星期一 和马云洽谈",
31 | "星期二 约见李彦宏",
32 | "星期三 约见乔布斯",
33 | "星期四 和Ricky钓鱼",
34 | "星期五 和David洽谈",
35 | "星期六 和Jason洽谈",
36 | "星期日 和MZ洽谈",
37 | "……"
38 | }
39 | );
40 | //获取到头部的View
41 | View header = View.inflate(this, R.layout.listview_header, null);
42 | //获取到头部的View的图片控件
43 | iv = header.findViewById(R.id.layout_header_image);
44 | //将imageView传入到ListView中
45 | qqHeaderSrollView.setZoomImageView(iv);
46 | //将头部的View设置给ListView的HeaderView
47 | qqHeaderSrollView.addHeaderView(header);
48 | //设置适配器
49 | qqHeaderSrollView.setAdapter(adapter);
50 |
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/drawable-v24/head.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/drawable-v24/head.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/drawable-v24/img_header4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/drawable-v24/img_header4.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/drawable/head.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/drawable/head.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/drawable/img_header4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/drawable/img_header4.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/layout/listview_header.xml:
--------------------------------------------------------------------------------
1 |
4 |
10 |
11 |
20 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 | 160dp
9 |
10 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HxQQZone
3 |
4 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxQQZone/app/src/test/java/com/hongx/qqzone/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.qqzone;
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 | }
--------------------------------------------------------------------------------
/HxQQZone/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 |
--------------------------------------------------------------------------------
/HxQQZone/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 |
--------------------------------------------------------------------------------
/HxQQZone/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxQQZone/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HxQQZone/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Jan 30 14:31:21 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 |
--------------------------------------------------------------------------------
/HxQQZone/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 |
--------------------------------------------------------------------------------
/HxQQZone/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='HxQQZone'
3 |
--------------------------------------------------------------------------------
/HxSplashView/.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 |
--------------------------------------------------------------------------------
/HxSplashView/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxSplashView/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxSplashView/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxSplashView/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HxSplashView/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.splashview"
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 |
--------------------------------------------------------------------------------
/HxSplashView/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 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/androidTest/java/com/hongx/splashview/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.splashview;
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.splashview", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/java/com/hongx/splashview/ContentView.java:
--------------------------------------------------------------------------------
1 | package com.hongx.splashview;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.appcompat.widget.AppCompatImageView;
6 |
7 |
8 | public class ContentView extends AppCompatImageView {
9 | public ContentView(Context context) {
10 | super(context);
11 | setImageResource(R.mipmap.content);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/java/com/hongx/splashview/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hongx.splashview;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 | import android.os.Handler;
7 | import android.widget.FrameLayout;
8 |
9 | public class MainActivity extends AppCompatActivity {
10 |
11 | private SplashView splashView;
12 | private FrameLayout mMainView;
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | mMainView = new FrameLayout(this);
18 | ContentView contentView = new ContentView(this);
19 | mMainView.addView(contentView);
20 | splashView = new SplashView(this);
21 | mMainView.addView(splashView);
22 | setContentView(mMainView);
23 | startLoaddData();
24 | }
25 |
26 | private void startLoaddData() {
27 | new Handler().postDelayed(new Runnable() {
28 | @Override
29 | public void run() {
30 | //表示数据加载完毕,进入第二个状态
31 | splashView.splashDisappear();
32 | }
33 | }, 3000);//延时时间
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xxhdpi/content.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xxhdpi/content.jpg
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
8 | #F8F6EC
9 | #FF9600
10 | #02D1AC
11 | #FFD200
12 | #00C6FF
13 | #00E099
14 | #FF3892
15 |
16 |
17 | - @color/blue
18 | - @color/green
19 | - @color/pink
20 | - @color/orange
21 | - @color/aqua
22 | - @color/yellow
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HxSplashView
3 |
4 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxSplashView/app/src/test/java/com/hongx/splashview/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.splashview;
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 | }
--------------------------------------------------------------------------------
/HxSplashView/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 |
--------------------------------------------------------------------------------
/HxSplashView/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 |
--------------------------------------------------------------------------------
/HxSplashView/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSplashView/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HxSplashView/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jan 17 08:26:34 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 |
--------------------------------------------------------------------------------
/HxSplashView/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='HxSplashView'
3 |
--------------------------------------------------------------------------------
/HxSvg/.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 |
--------------------------------------------------------------------------------
/HxSvg/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxSvg/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxSvg/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxSvg/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HxSvg/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.svg"
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.1.0'
25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
29 | }
30 |
--------------------------------------------------------------------------------
/HxSvg/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 |
--------------------------------------------------------------------------------
/HxSvg/app/src/androidTest/java/com/hongx/svg/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.svg;
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.svg", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/java/com/hongx/svg/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hongx.svg;
2 |
3 | import androidx.annotation.RequiresApi;
4 | import androidx.appcompat.app.AppCompatActivity;
5 |
6 | import android.annotation.TargetApi;
7 | import android.graphics.drawable.Animatable2;
8 | import android.graphics.drawable.AnimatedVectorDrawable;
9 | import android.graphics.drawable.Drawable;
10 | import android.media.Image;
11 | import android.os.Build;
12 | import android.os.Bundle;
13 | import android.util.Log;
14 | import android.view.View;
15 | import android.widget.ImageView;
16 |
17 | public class MainActivity extends AppCompatActivity {
18 |
19 | private ImageView imageView;
20 | // private ImageView imageView_1;
21 |
22 | @Override
23 | protected void onCreate(Bundle savedInstanceState) {
24 | super.onCreate(savedInstanceState);
25 | setContentView(R.layout.activity_main);
26 | imageView = findViewById(R.id.imageView);
27 | // imageView_1 = findViewById(R.id.imageView_1);
28 | imageView.setOnClickListener(new View.OnClickListener() {
29 | // @TargetApi(Build.VERSION_CODES.M)
30 | // @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
31 | @Override
32 | public void onClick(View v) {
33 | AnimatedVectorDrawable animatedVectorDrawable
34 | = (AnimatedVectorDrawable) imageView.getDrawable();
35 | animatedVectorDrawable.start();
36 | // animatedVectorDrawable.registerAnimationCallback(new Animatable2.AnimationCallback() {
37 | // @Override
38 | // public void onAnimationEnd(Drawable drawable) {
39 | // super.onAnimationEnd(drawable);
40 | // AnimatedVectorDrawable animatedVectorDrawable
41 | // = (AnimatedVectorDrawable) imageView_1.getDrawable();
42 | // animatedVectorDrawable.start();
43 | // }
44 | //
45 | // @Override
46 | // public void onAnimationStart(Drawable drawable) {
47 | // super.onAnimationStart(drawable);
48 | // Log.e("DONGNAO", "222222222222222222222222");
49 | // }
50 | // });
51 | }
52 | });
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/animator/anim_searchbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/drawable/ic_heart.xml:
--------------------------------------------------------------------------------
1 |
6 |
12 |
18 |
24 |
25 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/drawable/ic_heat.xml:
--------------------------------------------------------------------------------
1 |
6 |
12 |
18 |
19 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/drawable/xl_anim.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
13 |
14 |
17 |
18 |
21 |
22 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/drawable/xl_anim_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HxSvg
3 |
4 |
--------------------------------------------------------------------------------
/HxSvg/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxSvg/app/src/test/java/com/hongx/svg/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.svg;
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 | }
--------------------------------------------------------------------------------
/HxSvg/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 |
--------------------------------------------------------------------------------
/HxSvg/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 |
--------------------------------------------------------------------------------
/HxSvg/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxSvg/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HxSvg/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Jan 30 10:58:05 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 |
--------------------------------------------------------------------------------
/HxSvg/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 |
--------------------------------------------------------------------------------
/HxSvg/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='HxSvg'
3 |
--------------------------------------------------------------------------------
/HxZhibo/.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 |
--------------------------------------------------------------------------------
/HxZhibo/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HxZhibo/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxZhibo/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HxZhibo/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/HxZhibo/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.zhibo"
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.1.0'
25 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
28 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
29 | }
30 |
--------------------------------------------------------------------------------
/HxZhibo/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 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/androidTest/java/com/hongx/zhibo/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
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.zhibo", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/AudienceAdapter.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 |
4 | import android.annotation.SuppressLint;
5 | import android.content.Context;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.BaseAdapter;
9 |
10 | /**
11 | * 观众列表适配器
12 | *
13 | */
14 | public class AudienceAdapter extends BaseAdapter {
15 |
16 | private Context mContext;
17 |
18 | public AudienceAdapter(Context context) {
19 | this.mContext = context;
20 | }
21 |
22 | @Override
23 | public int getCount() {
24 | return 1000;
25 | }
26 |
27 | @Override
28 | public Object getItem(int position) {
29 | return null;
30 | }
31 |
32 | @Override
33 | public long getItemId(int position) {
34 | return position;
35 | }
36 |
37 | @SuppressLint("ViewHolder") @Override
38 | public View getView(int position, View convertView, ViewGroup parent) {
39 |
40 | return View.inflate(mContext, R.layout.item_audienceadapter, null);
41 | }
42 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/EmptyFrag.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 |
4 | import android.os.Bundle;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import androidx.annotation.NonNull;
10 | import androidx.annotation.Nullable;
11 | import androidx.fragment.app.Fragment;
12 |
13 | /**
14 | * 空的fragment
15 | */
16 | public class EmptyFrag extends Fragment {
17 |
18 | @Nullable
19 | @Override
20 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
21 | return inflater.inflate(R.layout.frag_empty, null);
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/LiveFrag.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 |
4 | import android.media.MediaPlayer;
5 | import android.net.Uri;
6 | import android.os.Bundle;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.ImageView;
11 | import android.widget.VideoView;
12 |
13 | import androidx.annotation.NonNull;
14 | import androidx.annotation.Nullable;
15 | import androidx.fragment.app.Fragment;
16 |
17 | /**
18 | * 直播界面,用于对接直播功能
19 | */
20 | public class LiveFrag extends Fragment {
21 |
22 | private ImageView img_thumb;
23 | private VideoView video_view;
24 |
25 | @Nullable
26 | @Override
27 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
28 | View view = inflater.inflate(R.layout.frag_live, null);
29 | img_thumb = view.findViewById(R.id.img_thumb);
30 | img_thumb.setVisibility(View.GONE);
31 | video_view = view.findViewById(R.id.video_view);
32 | video_view.setVisibility(View.VISIBLE);
33 | video_view.setVideoURI(Uri.parse("android.resource://" + getActivity().getPackageName() + "/" + R.raw.video_1));
34 | video_view.start();
35 | video_view.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
36 |
37 | @Override
38 | public void onCompletion(MediaPlayer mp) {
39 | video_view.setVideoURI(Uri.parse("android.resource://" + getActivity().getPackageName() + "/" + R.raw.video_1));
40 | //或 //mVideoView.setVideoPath(Uri.parse(_filePath));
41 | video_view.start();
42 | }
43 | });
44 | return view;
45 | }
46 |
47 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/MagicTextViewActivity.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 | import android.animation.Animator;
4 | import android.animation.AnimatorSet;
5 | import android.animation.ObjectAnimator;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.view.animation.AnimationUtils;
9 | import android.view.animation.TranslateAnimation;
10 |
11 | import androidx.annotation.Nullable;
12 | import androidx.appcompat.app.AppCompatActivity;
13 |
14 | import com.hongx.zhibo.utils.MagicTextView;
15 |
16 | /**
17 | * @author: fuchenming
18 | * @create: 2020-02-02 10:39
19 | */
20 | public class MagicTextViewActivity extends AppCompatActivity {
21 |
22 |
23 | private TranslateAnimation inAnim;
24 | private NumberAnim giftNumberAnim;
25 | private MagicTextView mtv_giftNum;
26 | int count = 1;
27 | @Override
28 | protected void onCreate(@Nullable Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.activity_magic);
31 |
32 | inAnim = (TranslateAnimation) AnimationUtils.loadAnimation(this, R.anim.gift_in); // 礼物进入时动画
33 |
34 |
35 | mtv_giftNum = findViewById(R.id.mtv_giftNum);
36 | // int giftCount = (int) mtv_giftNum.getTag() + 1; // 递增
37 |
38 | mtv_giftNum.setText("x" + count);
39 |
40 | giftNumberAnim = new NumberAnim(); // 初始化数字动画
41 |
42 | mtv_giftNum.setOnClickListener(new View.OnClickListener() {
43 | @Override
44 | public void onClick(View v) {
45 | count++;
46 | mtv_giftNum.setText("x" + count);
47 | giftNumberAnim.showAnimator(mtv_giftNum);
48 | }
49 | });
50 |
51 | }
52 |
53 |
54 | public class NumberAnim {
55 | private Animator lastAnimator;
56 |
57 | public void showAnimator(View v) {
58 |
59 | if (lastAnimator != null) {
60 | lastAnimator.removeAllListeners();
61 | lastAnimator.cancel();
62 | lastAnimator.end();
63 | }
64 | ObjectAnimator animScaleX = ObjectAnimator.ofFloat(v, "scaleX", 1.3f, 1.0f);
65 | ObjectAnimator animScaleY = ObjectAnimator.ofFloat(v, "scaleY", 1.3f, 1.0f);
66 | AnimatorSet animSet = new AnimatorSet();
67 | animSet.playTogether(animScaleX, animScaleY);
68 | animSet.setDuration(200);
69 | lastAnimator = animSet;
70 | animSet.start();
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.TextView;
9 |
10 | import com.hongx.zhibo.utils.MagicTextView;
11 |
12 | public class MainActivity extends AppCompatActivity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_main);
18 |
19 | // 加载直播fragment
20 | LiveFrag liveFrag = new LiveFrag();
21 | getSupportFragmentManager().beginTransaction().add(R.id.fl_root, liveFrag).commit();
22 | // 加载
23 | new InteractiveFrag().show(getSupportFragmentManager(), "InteractiveFrag");
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/MessageAdapter.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
2 |
3 | import android.content.Context;
4 | import android.view.View;
5 | import android.view.ViewGroup;
6 | import android.widget.BaseAdapter;
7 | import android.widget.TextView;
8 |
9 | import com.hongx.zhibo.utils.ViewHolderUtil;
10 |
11 | import java.util.List;
12 |
13 | /**
14 | * 评论列表适配器
15 | */
16 | public class MessageAdapter extends BaseAdapter {
17 |
18 | private Context mContext;
19 | private List data;
20 |
21 | public MessageAdapter(Context context, List data) {
22 |
23 | this.mContext = context;
24 | this.data = data;
25 | }
26 |
27 | @Override
28 | public int getCount() {
29 |
30 | return data == null ? 0 : data.size();
31 | }
32 |
33 | @Override
34 | public String getItem(int position) {
35 |
36 | return data.get(position);
37 | }
38 |
39 | @Override
40 | public long getItemId(int position) {
41 |
42 | return position;
43 | }
44 |
45 | public void NotifyAdapter(List data) {
46 |
47 | this.data = data;
48 | notifyDataSetChanged();
49 | }
50 |
51 | @Override
52 | public View getView(int position, View convertView, ViewGroup parent) {
53 |
54 | if (convertView == null) {
55 |
56 | convertView = View.inflate(mContext, R.layout.item_messageadapter, null);
57 | }
58 |
59 | // 评论
60 | TextView tv_msg = ViewHolderUtil.getView(convertView, R.id.tv_msg);
61 | tv_msg.setText(data.get(position));
62 |
63 | return convertView;
64 | }
65 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/utils/DisplayUtil.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo.utils;
2 |
3 | import android.content.Context;
4 |
5 | /**
6 | * dp、sp 转换为 px 的工具类
7 | *
8 | */
9 | public class DisplayUtil {
10 |
11 | /**
12 | * 将px值转换为dip或dp值,保证尺寸大小不变
13 | */
14 | public static int px2dip(Context context, float pxValue) {
15 | final float scale = context.getResources().getDisplayMetrics().density;
16 | return (int) (pxValue / scale + 0.5f);
17 | }
18 |
19 | /**
20 | * 将dip或dp值转换为px值,保证尺寸大小不变
21 | */
22 | public static int dip2px(Context context, float dipValue) {
23 | final float scale = context.getResources().getDisplayMetrics().density;
24 | return (int) (dipValue * scale + 0.5f);
25 | }
26 |
27 | /**
28 | * 将px值转换为sp值,保证文字大小不变
29 | */
30 | public static int px2sp(Context context, float pxValue) {
31 | final float fontScale = context.getResources().getDisplayMetrics().scaledDensity;
32 | return (int) (pxValue / fontScale + 0.5f);
33 | }
34 |
35 | /**
36 | * 将sp值转换为px值,保证文字大小不变
37 | */
38 | public static int sp2px(Context context, float spValue) {
39 | final float fontScale = context.getResources().getDisplayMetrics().scaledDensity;
40 | return (int) (spValue * fontScale + 0.5f);
41 | }
42 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/java/com/hongx/zhibo/utils/ViewHolderUtil.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo.utils;
2 |
3 | import android.util.SparseArray;
4 | import android.view.View;
5 |
6 | /**
7 | * 稀疏数组
8 | */
9 | public class ViewHolderUtil {
10 |
11 | public static T getView(View convertView, int id) {
12 | SparseArray holder = (SparseArray) convertView.getTag();
13 | if (null == holder) {
14 | holder = new SparseArray();
15 | convertView.setTag(holder);
16 | }
17 | View view = holder.get(id);
18 | if (null == view) {
19 | view = convertView.findViewById(id);
20 | holder.put(id, view);
21 | }
22 | return (T) view;
23 | }
24 | }
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/anim/gift_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/anim/gift_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/aaaa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/aaaa.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/bg_radius_bottom_pink.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/bg_radius_bottom_white.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/bg_radius_gift_black.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/bg_radius_top_black.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/hani_icon_tag_exp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/hani_icon_tag_exp.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/ic_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/ic_bg.jpg
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/ic_headpic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/ic_headpic.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/ml_w_lv_8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/ml_w_lv_8.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/molive_icon_charm_lv_20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/molive_icon_charm_lv_20.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/zem63.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/zem63.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/zem68.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/zem68.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/zem70.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/zem70.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/zem72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/zem72.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/drawable/zf.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/drawable/zf.jpg
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/activity_magic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
23 |
24 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/frag_empty.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/frag_interactive.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/frag_live.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
24 |
25 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/item_audienceadapter.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/layout/item_messageadapter.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
23 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxhdpi/img_video_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxhdpi/img_video_1.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxhdpi/img_video_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxhdpi/img_video_2.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/raw/video_1.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/raw/video_1.mp4
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/raw/video_2.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/app/src/main/res/raw/video_2.mp4
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 | #ffffff
8 |
9 |
10 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | HxZhibo
3 |
4 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/HxZhibo/app/src/test/java/com/hongx/zhibo/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.hongx.zhibo;
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 | }
--------------------------------------------------------------------------------
/HxZhibo/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 |
--------------------------------------------------------------------------------
/HxZhibo/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 |
--------------------------------------------------------------------------------
/HxZhibo/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/345166018/AndroidUI/eed56b02f8b02236c9b3f13e234c57b4fe481f0f/HxZhibo/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HxZhibo/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Feb 01 15:38:42 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 |
--------------------------------------------------------------------------------
/HxZhibo/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='HxZhibo'
3 |
--------------------------------------------------------------------------------