├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── dictionaries │ └── miraclewong.xml ├── vcs.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml ├── modules.xml └── misc.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── miraclewong │ │ │ └── androidheros │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── androidheros │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── android2048 ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── rushapp │ │ │ └── android2048 │ │ │ ├── Card.java │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── rushapp │ │ └── android2048 │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── game2048 ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── miraclewong │ │ │ └── game2048 │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── game2048 │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── imageshape ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── drawable │ │ │ │ ├── layer.xml │ │ │ │ ├── button.xml │ │ │ │ └── button_selector.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── miraclewong │ │ │ └── imageshape │ │ │ ├── MainActivity.java │ │ │ └── Clock.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── imageshape │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── mylistview ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── in_icon.png │ │ │ │ ├── chatitem_in_bg.9.png │ │ │ │ └── chatitem_out_bg.9.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── focus.xml │ │ │ │ ├── flexible.xml │ │ │ │ ├── chat_item_main.xml │ │ │ │ ├── notify_item.xml │ │ │ │ ├── scroll_hide.xml │ │ │ │ ├── chat_item_itemin.xml │ │ │ │ ├── chat_item_itemout.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── notify.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── miraclewong │ │ │ │ └── mylistview │ │ │ │ ├── ChatItemListViewBean.java │ │ │ │ ├── FlexibleListViewTest.java │ │ │ │ ├── FocusListViewTest.java │ │ │ │ ├── FlexibleListView.java │ │ │ │ ├── NotifyTest.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── NotifyAdapter.java │ │ │ │ ├── ChatItemListViewTest.java │ │ │ │ ├── FocusListViewAdapter.java │ │ │ │ ├── ChatItemListViewAdapter.java │ │ │ │ └── ScrollHideListView.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── mylistview │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── notificationdemo ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── robot.png │ │ │ │ ├── ic_public.png │ │ │ │ ├── ic_secret.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_private.png │ │ │ │ └── robot_expanded.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── notification.xml │ │ │ │ ├── notification_expanded.xml │ │ │ │ └── activity_main.xml │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── notificationdemo │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── recyclerviewtest ├── .gitignore ├── .idea │ ├── .name │ ├── copyright │ │ └── profiles_settings.xml │ ├── vcs.xml │ ├── libraries │ │ ├── support_annotations_22_2_1.xml │ │ ├── palette_v7_22_2_1.xml │ │ ├── cardview_v7_22_2_1.xml │ │ ├── recyclerview_v7_22_2_1.xml │ │ ├── appcompat_v7_22_2_1.xml │ │ ├── support_v13_22_2_1.xml │ │ └── support_v4_22_2_1.xml │ ├── runConfigurations.xml │ ├── compiler.xml │ ├── gradle.xml │ ├── modules.xml │ └── misc.xml ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── rc_item.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── cardview.xml │ │ │ │ └── recycler.xml │ │ │ └── values-w820dp │ │ │ │ └── dimens.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── miraclewong │ │ │ └── recyclerviewtest │ │ │ ├── RecyclerTest2.java │ │ │ ├── MainActivity.java │ │ │ ├── RecyclerTest3.java │ │ │ ├── RecyView.java │ │ │ ├── RecyclerAdapter.java │ │ │ └── RecyclerTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── recyclerviewtest │ │ └── ApplicationTest.java ├── local.properties ├── proguard-rules.pro ├── build.gradle └── gradlew.bat ├── systemwidget ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── test1.png │ │ │ │ ├── test2.png │ │ │ │ ├── test3.png │ │ │ │ └── test4.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── attrs.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── volume.xml │ │ │ │ ├── circle_progress.xml │ │ │ │ ├── shine_textview.xml │ │ │ │ ├── my_textview.xml │ │ │ │ ├── teaching.xml │ │ │ │ ├── topbar.xml │ │ │ │ ├── topbar_test.xml │ │ │ │ ├── activity_event.xml │ │ │ │ ├── my_scrollview.xml │ │ │ │ └── activity_main.xml │ │ │ └── drawable │ │ │ │ └── blue_button.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── miraclewong │ │ │ │ └── systemwidget │ │ │ │ ├── EventActivity.java │ │ │ │ ├── view │ │ │ │ ├── MyView.java │ │ │ │ ├── MyViewGroupB.java │ │ │ │ └── MyViewGroupA.java │ │ │ │ ├── MyViewTest.java │ │ │ │ ├── TopBarTest.java │ │ │ │ ├── MyTextView.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── ShineTextView.java │ │ │ │ ├── VolumeView.java │ │ │ │ ├── TeachingView.java │ │ │ │ ├── CircleProgressView.java │ │ │ │ └── MyScrollView.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── systemwidget │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── viewanimationdemo ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── animator │ │ │ │ └── scalex.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── miraclewong │ │ │ └── viewanimationdemo │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── miraclewong │ │ └── viewanimationdemo │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── settings.gradle ├── README.md ├── .gitignore ├── gradle.properties ├── AndroidHeros.iml ├── LICENSE └── gradlew.bat /.idea/.name: -------------------------------------------------------------------------------- 1 | AndroidHeros -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android2048/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /game2048/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /imageshape/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /mylistview/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /notificationdemo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /recyclerviewtest/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /systemwidget/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /viewanimationdemo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/.name: -------------------------------------------------------------------------------- 1 | recyclerviewtest -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/dictionaries/miraclewong.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mylistview/src/main/res/drawable/in_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/drawable/in_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /game2048/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/game2048/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /game2048/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/game2048/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/drawable-hdpi/test1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/drawable-hdpi/test1.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/drawable-hdpi/test2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/drawable-hdpi/test2.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/drawable-hdpi/test3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/drawable-hdpi/test3.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/drawable-hdpi/test4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/drawable-hdpi/test4.png -------------------------------------------------------------------------------- /game2048/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/game2048/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /game2048/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/game2048/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /imageshape/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/imageshape/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /imageshape/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/imageshape/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mylistview/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /mylistview/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/recyclerviewtest/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android2048/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/android2048/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android2048/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/android2048/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android2048/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/android2048/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android2048/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/android2048/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /imageshape/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/imageshape/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /imageshape/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/imageshape/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mylistview/src/main/res/drawable/chatitem_in_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/drawable/chatitem_in_bg.9.png -------------------------------------------------------------------------------- /mylistview/src/main/res/drawable/chatitem_out_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/drawable/chatitem_out_bg.9.png -------------------------------------------------------------------------------- /mylistview/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mylistview/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/mylistview/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/robot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/robot.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/ic_public.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/ic_public.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/ic_secret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/ic_secret.png -------------------------------------------------------------------------------- /systemwidget/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/systemwidget/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/ic_private.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/ic_private.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/recyclerviewtest/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/recyclerviewtest/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/recyclerviewtest/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/recyclerviewtest/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':mylistview', ':recyclerviewtest', ':game2048', ':systemwidget', ':android2048', ':imageshape', ':notificationdemo', ':viewanimationdemo' 2 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/viewanimationdemo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/viewanimationdemo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/viewanimationdemo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /notificationdemo/src/main/res/mipmap-xhdpi/robot_expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/notificationdemo/src/main/res/mipmap-xhdpi/robot_expanded.png -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MiracleWong/AndroidHeros/HEAD/viewanimationdemo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #48bafe 4 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /android2048/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /game2048/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /imageshape/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AndroidHeros 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /game2048/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Game2048 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /imageshape/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ImageShape 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /mylistview/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MyListView 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SystemWidget 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | NotificationDemo 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ViewAnimationDemo 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /game2048/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android2048/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /android2048/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /game2048/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /imageshape/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /imageshape/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mylistview/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AndroidHeros 2 | [@xuyisheng](https://github.com/xuyisheng) 的新书《Android群侠传》的代码。通过敲写代码的方式进行学习。可能会和官方提供的代码不一样。 3 | 官方的源代码的地址:[《Android 群英传》源代码](https://github.com/xuyisheng/AndroidHeroes) 4 | 5 | 今天才发现,Repository的名称居然写错了,应该是Android Heroes,请大家不要在乎这些。 6 | 7 | 8 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /android2048/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Android2048 3 | 4 | Hello world! 5 | Settings 6 | Score 7 | 8 | -------------------------------------------------------------------------------- /mylistview/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Sep 19 10:12:27 CST 2015 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-2.4-all.zip 7 | -------------------------------------------------------------------------------- /recyclerviewtest/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 14:06:40 CST 2015 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-2.4-all.zip 7 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 10dp 6 | 7 | -------------------------------------------------------------------------------- /android2048/src/main/res/values-v21/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Android2048 4 | 5 | Hello world! 6 | Settings 7 | Score 8 | -------------------------------------------------------------------------------- /mylistview/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | ======= 9 | # Built application files 10 | *.apk 11 | *.ap_ 12 | 13 | # Files for the Dalvik VM 14 | *.dex 15 | /*/build/ 16 | 17 | # Proguard folder generated by Eclipse 18 | proguard/ 19 | 20 | # Log Files 21 | *.log 22 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /android2048/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /game2048/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /imageshape/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /mylistview/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/animator/scalex.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /game2048/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /android2048/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /imageshape/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /mylistview/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RecyclerViewTest 3 | 4 | Hello world! 5 | Settings 6 | 7 | 8 | LinearLayoutManager 9 | GridLayoutManager 10 | 11 | 12 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /imageshape/src/main/res/drawable/layer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 12 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/volume.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/layout/rc_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 10dp 7 | 8 | -------------------------------------------------------------------------------- /android2048/src/androidTest/java/com/rushapp/android2048/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.rushapp.android2048; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /game2048/src/androidTest/java/com/miraclewong/game2048/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.game2048; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/focus.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/miraclewong/androidheros/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.androidheros; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /imageshape/src/androidTest/java/com/miraclewong/imageshape/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.imageshape; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /mylistview/src/androidTest/java/com/miraclewong/mylistview/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.mylistview; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /systemwidget/src/androidTest/java/com/miraclewong/systemwidget/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.systemwidget; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /imageshape/src/main/res/drawable/button.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | --> 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /notificationdemo/src/androidTest/java/com/miraclewong/notificationdemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.notificationdemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /recyclerviewtest/src/androidTest/java/com/miraclewong/recyclerviewtest/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.recyclerviewtest; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /systemwidget/src/main/java/com/miraclewong/systemwidget/EventActivity.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.systemwidget; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | 6 | /** 7 | * Created by miraclewong on 16/1/23. 8 | */ 9 | public class EventActivity extends Activity { 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_event); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /viewanimationdemo/src/androidTest/java/com/miraclewong/viewanimationdemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.viewanimationdemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/flexible.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/circle_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | -------------------------------------------------------------------------------- /recyclerviewtest/local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Mon Oct 26 14:06:41 CST 2015 11 | sdk.dir=/Users/miraclewong/Android/sdk 12 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/shine_textview.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/my_textview.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/teaching.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/support_annotations_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/chat_item_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.androidheros" 9 | minSdkVersion 22 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /game2048/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.game2048" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/palette_v7_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android2048/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.rushapp.android2048" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /imageshape/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.imageshape" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/cardview_v7_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/drawable/blue_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /systemwidget/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.systemwidget" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /notificationdemo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.notificationdemo" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /viewanimationdemo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.viewanimationdemo" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | } 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/recyclerview_v7_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /game2048/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/topbar.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android2048/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /game2048/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /imageshape/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /mylistview/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /systemwidget/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /notificationdemo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /recyclerviewtest/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /viewanimationdemo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/miraclewong/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /notificationdemo/src/main/res/layout/notification.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/notify_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 19 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /game2048/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android2048/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /imageshape/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/scroll_hide.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /notificationdemo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /viewanimationdemo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /mylistview/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.mylistview" 9 | minSdkVersion 22 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:support-v4:22.2.1' 25 | compile 'com.android.support:support-v13:22.2.1' 26 | compile 'com.android.support:appcompat-v7:22.2.1' 27 | } 28 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/appcompat_v7_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/support_v13_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /mylistview/src/main/java/com/miraclewong/mylistview/ChatItemListViewBean.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.mylistview; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | public class ChatItemListViewBean { 6 | 7 | private int type; 8 | private String text; 9 | private Bitmap icon; 10 | 11 | public ChatItemListViewBean() { 12 | } 13 | 14 | public int getType() { 15 | return type; 16 | } 17 | 18 | public void setType(int type) { 19 | this.type = type; 20 | } 21 | 22 | public String getText() { 23 | return text; 24 | } 25 | 26 | public void setText(String text) { 27 | this.text = text; 28 | } 29 | 30 | public Bitmap getIcon() { 31 | return icon; 32 | } 33 | 34 | public void setIcon(Bitmap icon) { 35 | this.icon = icon; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /recyclerviewtest/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.miraclewong.recyclerviewtest" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:cardview-v7:22.2.1' 25 | compile 'com.android.support:palette-v7:22.2.1' 26 | compile 'com.android.support:recyclerview-v7:22.2.1' 27 | compile 'com.android.support:appcompat-v7:22.2.1' 28 | } 29 | -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/chat_item_itemin.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 22 | 23 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /mylistview/src/main/res/layout/chat_item_itemout.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /mylistview/src/main/java/com/miraclewong/mylistview/FlexibleListViewTest.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.mylistview; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.ArrayAdapter; 6 | 7 | public class FlexibleListViewTest extends Activity { 8 | 9 | private FlexibleListView mFlexibleListView; 10 | private String[] data = new String[30]; 11 | 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(R.layout.flexible); 16 | for (int i = 0; i < 30; i++) { 17 | data[i] = "" + i; 18 | } 19 | mFlexibleListView = (FlexibleListView) findViewById(R.id.flexible_listview); 20 | mFlexibleListView.setAdapter(new ArrayAdapter(this, 21 | android.R.layout.simple_list_item_1, 22 | data)); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/libraries/support_v4_22_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /systemwidget/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | -------------------------------------------------------------------------------- /AndroidHeros.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/res/layout/cardview.xml: -------------------------------------------------------------------------------- 1 | 13 | 22 | -------------------------------------------------------------------------------- /recyclerviewtest/src/main/java/com/miraclewong/recyclerviewtest/RecyclerTest2.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.recyclerviewtest; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | 6 | import java.util.ArrayList; 7 | import java.util.List; 8 | 9 | public class RecyclerTest2 extends Activity { 10 | 11 | private RecyView mRcList; 12 | private List mData = new ArrayList(); 13 | 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | super.onCreate(savedInstanceState); 17 | mData.add("Recycler"); 18 | mData.add("Recycler"); 19 | mData.add("Recycler"); 20 | mRcList = new RecyView(RecyclerTest2.this); 21 | mRcList.setmData(mData); 22 | // FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT); 23 | // mRcList.setLayoutParams(params); 24 | mRcList.init(getBaseContext()); 25 | 26 | setContentView(mRcList); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/topbar_test.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 24 | 25 | -------------------------------------------------------------------------------- /recyclerviewtest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /systemwidget/src/main/java/com/miraclewong/systemwidget/view/MyView.java: -------------------------------------------------------------------------------- 1 | package com.miraclewong.systemwidget.view; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.util.Log; 6 | import android.view.MotionEvent; 7 | import android.view.View; 8 | 9 | public class MyView extends View { 10 | 11 | public MyView(Context context) { 12 | super(context); 13 | } 14 | 15 | public MyView(Context context, AttributeSet attrs) { 16 | super(context, attrs); 17 | } 18 | 19 | public MyView(Context context, AttributeSet attrs, 20 | int defStyleAttr) { 21 | super(context, attrs, defStyleAttr); 22 | } 23 | 24 | @Override 25 | public boolean onTouchEvent(MotionEvent event) { 26 | Log.d("wr", "View onTouchEvent" + event.getAction()); 27 | return super.onTouchEvent(event); 28 | } 29 | 30 | @Override 31 | public boolean dispatchTouchEvent(MotionEvent event) { 32 | Log.d("wr", "View dispatchTouchEvent" + event.getAction()); 33 | return super.dispatchTouchEvent(event); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 MiracleWong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /mylistview/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /systemwidget/src/main/res/layout/activity_event.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /android2048/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 8 | 12 | 16 | 20 | 21 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 26 | 27 | -------------------------------------------------------------------------------- /imageshape/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 17 | 18 |