├── app ├── google-services.json ├── .gitignore ├── web_hi_res_512.png ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── medium.png │ │ │ │ └── app_icon.png │ │ │ ├── drawable-mdpi │ │ │ │ └── app_icon.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── app_icon.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── app_icon.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── app_icon.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-nodpi │ │ │ │ ├── placeholder.9.png │ │ │ │ └── web_hi_res_512.png │ │ │ ├── values-land │ │ │ │ └── integers.xml │ │ │ ├── drawable │ │ │ │ ├── source_ripple.xml │ │ │ │ ├── ic_add_wrap.xml │ │ │ │ ├── ic_location_wrap.xml │ │ │ │ ├── ic_search_wrap.xml │ │ │ │ ├── ic_holder.xml │ │ │ │ ├── ic_action_share_wrap.xml │ │ │ │ ├── ic_collections_black_wrap.xml │ │ │ │ ├── ic_upvote_filled_wrap.xml │ │ │ │ ├── ic_upvote.xml │ │ │ │ ├── side_nav_bar.xml │ │ │ │ ├── circle_ripple.xml │ │ │ │ ├── ic_arrow_drop_down_white_18px.xml │ │ │ │ ├── ic_menu_send.xml │ │ │ │ ├── launch_bg.xml │ │ │ │ ├── gif_indicator_bg.xml │ │ │ │ ├── ic_arrow_drop_up.xml │ │ │ │ ├── ic_home_black.xml │ │ │ │ ├── ic_menu_slideshow.xml │ │ │ │ ├── ic_menu_gallery.xml │ │ │ │ ├── ic_store_black.xml │ │ │ │ ├── ic_menu_manage.xml │ │ │ │ ├── ic_menu_feedback.xml │ │ │ │ ├── bg_circle.xml │ │ │ │ ├── ic_save_black.xml │ │ │ │ ├── ic_about.xml │ │ │ │ ├── ic_collections_black.xml │ │ │ │ ├── ic_app.xml │ │ │ │ ├── ic_location.xml │ │ │ │ ├── ic_build_black.xml │ │ │ │ ├── ic_refresh_white.xml │ │ │ │ ├── ic_menu_camera.xml │ │ │ │ ├── ic_add_24dp.xml │ │ │ │ ├── ic_app_icon.xml │ │ │ │ ├── ic_menu_share.xml │ │ │ │ ├── ic_flare_black.xml │ │ │ │ ├── ic_upvote_filled_24dp_dark.xml │ │ │ │ ├── vimeo.xml │ │ │ │ ├── gplus.xml │ │ │ │ ├── mid_grey_ripple.xml │ │ │ │ ├── ic_action_share_24dp.xml │ │ │ │ ├── ic_arrow_back_padded.xml │ │ │ │ ├── ic_card_giftcard_black.xml │ │ │ │ ├── avatar_placeholder.xml │ │ │ │ ├── person_image_empty.xml │ │ │ │ ├── mid_grey_bounded_ripple.xml │ │ │ │ ├── avd_heart_fill.xml │ │ │ │ ├── fab_dribbble_fav.xml │ │ │ │ ├── ic_add_comment_state.xml │ │ │ │ ├── comment_heart.xml │ │ │ │ ├── comment_background.xml │ │ │ │ ├── blogger1.xml │ │ │ │ ├── ic_reply.xml │ │ │ │ ├── ic_arrow_back.xml │ │ │ │ ├── ic_upvote_empty_24dp_grey.xml │ │ │ │ ├── list_divider.xml │ │ │ │ ├── twitter.xml │ │ │ │ ├── ic_comment_dark.xml │ │ │ │ ├── ic_comment_light.xml │ │ │ │ ├── ic_upvote_filled_24dp_white.xml │ │ │ │ ├── ic_upvote_filled_24dp_blue.xml │ │ │ │ ├── github.xml │ │ │ │ ├── avd_no_connection.xml │ │ │ │ ├── pinterest.xml │ │ │ │ ├── ic_heart_full_24dp_grey.xml │ │ │ │ ├── ic_heart_full_24dp_pink.xml │ │ │ │ ├── behance.xml │ │ │ │ ├── ic_heart_full_56dp.xml │ │ │ │ └── blogger.xml │ │ │ ├── values-v21 │ │ │ │ └── dimens.xml │ │ │ ├── values │ │ │ │ ├── others.xml │ │ │ │ ├── arrays.xml │ │ │ │ ├── attrs_paging_indicator.xml │ │ │ │ ├── attrs_pinnable.xml │ │ │ │ ├── attrs_author_text_view.xml │ │ │ │ ├── attrs_font_text_view.xml │ │ │ │ ├── attrs_cutout_text_view.xml │ │ │ │ ├── integers.xml │ │ │ │ ├── attrs_foreground_view.xml │ │ │ │ ├── attrs_dynamic_text_view.xml │ │ │ │ ├── attrs_parallax_scrimage_view.xml │ │ │ │ ├── attrs.xml │ │ │ │ ├── attrs_font.xml │ │ │ │ ├── attrs_baseline_grid_text_view.xml │ │ │ │ ├── transition_names.xml │ │ │ │ ├── no_connection.xml │ │ │ │ └── attrs_drag_dismissables.xml │ │ │ ├── values-v23 │ │ │ │ └── styles.xml │ │ │ ├── drawable-v21 │ │ │ │ ├── animated_logo.xml │ │ │ │ └── medium.xml │ │ │ ├── anim │ │ │ │ ├── grid_layout_animation.xml │ │ │ │ ├── slide_in_right.xml │ │ │ │ ├── slide_out_left.xml │ │ │ │ ├── fade_out_rapidly.xml │ │ │ │ └── slide_in_bottom.xml │ │ │ ├── menu │ │ │ │ ├── main.xml │ │ │ │ ├── menu_user.xml │ │ │ │ ├── menu_create.xml │ │ │ │ ├── menu_collections.xml │ │ │ │ └── menu_select_collection.xml │ │ │ ├── animator-v21 │ │ │ │ ├── show_logo.xml │ │ │ │ ├── upvote.xml │ │ │ │ ├── heart_break_left_rotate.xml │ │ │ │ ├── heart_break_right_rotate.xml │ │ │ │ ├── comment_fade_empty_heart.xml │ │ │ │ ├── comment_lines_add_rotate.xml │ │ │ │ ├── heart_fill.xml │ │ │ │ ├── button_frown.xml │ │ │ │ ├── comment_add_lines_1.xml │ │ │ │ ├── comment_add_lines_2.xml │ │ │ │ ├── comment_add_lines_3.xml │ │ │ │ ├── comment_lines_add_1.xml │ │ │ │ ├── comment_lines_add_2.xml │ │ │ │ ├── comment_lines_add_3.xml │ │ │ │ ├── searchback_hide_circle.xml │ │ │ │ ├── show_connection_line.xml │ │ │ │ ├── searchback_hide_arrow_head.xml │ │ │ │ ├── heart_break_fade_out.xml │ │ │ │ └── raise.xml │ │ │ ├── xml │ │ │ │ ├── fresco_disk_cache_path.xml │ │ │ │ └── searchable.xml │ │ │ ├── layout │ │ │ │ ├── content_collections.xml │ │ │ │ ├── grid_view.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── toolbar_spinner_item_actionbar.xml │ │ │ │ ├── fragment_collections.xml │ │ │ │ ├── toolbar_spinner_item_dropdown.xml │ │ │ │ ├── upvoter_item.xml │ │ │ │ ├── fragment_user.xml │ │ │ │ ├── posts_fragment.xml │ │ │ │ ├── dribbble_no_comments.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── loading.xml │ │ │ │ ├── activity_drawer_design_layout.xml │ │ │ │ ├── infinite_loading.xml │ │ │ │ ├── select_collection_item.xml │ │ │ │ ├── account_dropdown_item.xml │ │ │ │ ├── about_lib_intro.xml │ │ │ │ └── no_search_results.xml │ │ │ ├── values-sw360dp │ │ │ │ └── integers.xml │ │ │ ├── values-w600dp │ │ │ │ └── integers.xml │ │ │ ├── values-w360dp │ │ │ │ └── dimens.xml │ │ │ ├── values-w540dp │ │ │ │ └── dimens.xml │ │ │ ├── values-w480dp │ │ │ │ └── dimens.xml │ │ │ ├── values-sw360dp-land │ │ │ │ └── integers.xml │ │ │ ├── values-sw600dp │ │ │ │ ├── integers.xml │ │ │ │ └── dimens.xml │ │ │ ├── transition-v21 │ │ │ │ ├── auto.xml │ │ │ │ ├── search_enter.xml │ │ │ │ ├── home_content_item_exit.xml │ │ │ │ ├── home_content_item_reenter.xml │ │ │ │ ├── dribbble_shot_return.xml │ │ │ │ ├── home_enter.xml │ │ │ │ ├── transitions.xml │ │ │ │ └── dribbble_shot_shared_enter.xml │ │ │ ├── values-sw600dp-land │ │ │ │ └── integers.xml │ │ │ ├── color │ │ │ │ ├── dribbble_links.xml │ │ │ │ ├── plaid_links.xml │ │ │ │ ├── designer_news_links.xml │ │ │ │ ├── designer_news_button.xml │ │ │ │ ├── dribble_comment_author.xml │ │ │ │ ├── designer_news_author.xml │ │ │ │ └── filter_text.xml │ │ │ ├── animator │ │ │ │ ├── upvote.xml │ │ │ │ ├── heart_break_left_rotate.xml │ │ │ │ ├── heart_break_right_rotate.xml │ │ │ │ ├── comment_fade_empty_heart.xml │ │ │ │ ├── comment_lines_add_rotate.xml │ │ │ │ ├── heart_fill.xml │ │ │ │ ├── button_frown.xml │ │ │ │ ├── comment_add_lines_1.xml │ │ │ │ ├── comment_add_lines_2.xml │ │ │ │ ├── comment_add_lines_3.xml │ │ │ │ ├── comment_lines_add_1.xml │ │ │ │ ├── comment_lines_add_2.xml │ │ │ │ ├── comment_lines_add_3.xml │ │ │ │ ├── show_connection_line.xml │ │ │ │ ├── searchback_hide_circle.xml │ │ │ │ ├── searchback_hide_arrow_head.xml │ │ │ │ ├── comment_expand_full_heart.xml │ │ │ │ ├── heart_break_fade_out.xml │ │ │ │ └── raise.xml │ │ │ ├── values-h500dp │ │ │ │ └── dimens.xml │ │ │ └── values-w820dp │ │ │ │ └── dimens.xml │ │ ├── assets │ │ │ ├── fonts │ │ │ │ └── roboto-mono-regular.ttf │ │ │ └── t.json │ │ └── java │ │ │ └── org │ │ │ └── goodev │ │ │ └── material │ │ │ ├── ui │ │ │ ├── OnReloadListener.java │ │ │ ├── BasePagerAdapter.java │ │ │ └── SortPagerAdapter.java │ │ │ ├── model │ │ │ ├── Pair.java │ │ │ ├── MuResponse.java │ │ │ ├── Collect.java │ │ │ ├── Follow.java │ │ │ ├── Upvote.java │ │ │ ├── SearchRes.java │ │ │ └── Create.java │ │ │ ├── util │ │ │ ├── FileUtil.java │ │ │ ├── MathUtils.java │ │ │ └── customtabs │ │ │ │ └── KeepAliveService.java │ │ │ ├── api │ │ │ ├── DataLoadingSubject.java │ │ │ ├── SucessCallback.java │ │ │ └── ErrorCallback.java │ │ │ ├── SelectCollectionActivity.java │ │ │ └── CollectionsActivity.java │ ├── china │ │ └── java │ │ │ └── org │ │ │ └── goodev │ │ │ └── ui │ │ │ └── StatFragment.java │ ├── test │ │ └── java │ │ │ └── org │ │ │ └── goode │ │ │ └── material │ │ │ └── ExampleUnitTest.java │ ├── androidTest │ │ └── java │ │ │ └── org │ │ │ └── goode │ │ │ └── material │ │ │ └── ApplicationTest.java │ └── play │ │ └── java │ │ └── org │ │ └── goodev │ │ └── ui │ │ └── StatFragment.java └── libs │ └── play │ └── AdxmiCustomizedSdk_v1.4.0_2016-01-07.jar ├── bypass ├── .gitignore ├── libs │ └── bypass-native-libs.jar ├── src │ └── main │ │ ├── jniLibs │ │ ├── x86 │ │ │ └── libbypass.so │ │ ├── mips │ │ │ └── libbypass.so │ │ ├── armeabi │ │ │ └── libbypass.so │ │ ├── mips64 │ │ │ └── libbypass.so │ │ ├── x86_64 │ │ │ └── libbypass.so │ │ ├── arm64-v8a │ │ │ └── libbypass.so │ │ └── armeabi-v7a │ │ │ └── libbypass.so │ │ ├── res │ │ └── values │ │ │ └── strings.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── in │ │ └── uncod │ │ └── android │ │ └── bypass │ │ ├── Document.java │ │ └── style │ │ └── ImageLoadingSpan.java ├── build.gradle └── proguard-rules.pro ├── endlessrecyclerview ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── attrs.xml │ │ │ └── layout │ │ │ │ └── loading_view.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── org │ │ │ └── goodev │ │ │ └── widget │ │ │ ├── GridSpanSizeLookup.java │ │ │ └── SquareTextView.java │ ├── test │ │ └── java │ │ │ └── org │ │ │ └── goode │ │ │ └── endlessrecyclerview │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── org │ │ └── goode │ │ └── endlessrecyclerview │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── lint.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md ├── .gitignore └── gradle.properties /app/google-services.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bypass/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /endlessrecyclerview/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | *.apk 3 | *.keystore 4 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':bypass', ":endlessrecyclerview" 2 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/web_hi_res_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/web_hi_res_512.png -------------------------------------------------------------------------------- /lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bypass/libs/bypass-native-libs.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/libs/bypass-native-libs.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # materialup 2 | MaterialUp Android app https://play.google.com/store/apps/details?id=org.goodev.material 3 | 4 | -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/x86/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/x86/libbypass.so -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/medium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-hdpi/medium.png -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/mips/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/mips/libbypass.so -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-hdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-mdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-xhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-xxhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/armeabi/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/armeabi/libbypass.so -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/mips64/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/mips64/libbypass.so -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/x86_64/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/x86_64/libbypass.so -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-xxxhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/arm64-v8a/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/arm64-v8a/libbypass.so -------------------------------------------------------------------------------- /app/src/main/assets/fonts/roboto-mono-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/assets/fonts/roboto-mono-regular.ttf -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/placeholder.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-nodpi/placeholder.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/web_hi_res_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/src/main/res/drawable-nodpi/web_hi_res_512.png -------------------------------------------------------------------------------- /bypass/src/main/jniLibs/armeabi-v7a/libbypass.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/bypass/src/main/jniLibs/armeabi-v7a/libbypass.so -------------------------------------------------------------------------------- /app/libs/play/AdxmiCustomizedSdk_v1.4.0_2016-01-07.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goodev/materialup/HEAD/app/libs/play/AdxmiCustomizedSdk_v1.4.0_2016-01-07.jar -------------------------------------------------------------------------------- /bypass/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Bypass 4 | 5 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | -------------------------------------------------------------------------------- /app/src/main/res/values-land/integers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 96dp 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/source_ripple.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/ 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | keystore.properties 11 | *.keystore 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 32dp 4 | 0dp 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/ui/OnReloadListener.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.ui; 2 | 3 | /** 4 | * Created by ADMIN on 2015/12/7. 5 | */ 6 | public interface OnReloadListener { 7 | void onReload(); 8 | } 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_location_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_holder.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_action_share_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/others.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.goodev.material.fileprovider 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_collections_black_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/Pair.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | /** 4 | * Created by yfcheng on 2016/1/4. 5 | */ 6 | public class Pair { 7 | public String key; 8 | public String name; 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote_filled_wrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 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.8-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-v23/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/MuResponse.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | import org.parceler.Parcel; 4 | 5 | /** 6 | * Created by yfcheng on 2015/11/26. 7 | */ 8 | @Parcel 9 | public class MuResponse { 10 | public String content; 11 | public String status; 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/animated_logo.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/anim/grid_layout_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/china/java/org/goodev/ui/StatFragment.java: -------------------------------------------------------------------------------- 1 | package org.goodev.ui; 2 | 3 | import android.support.v4.app.Fragment; 4 | 5 | public class StatFragment extends Fragment { 6 | @Override 7 | public void onResume() { 8 | super.onResume(); 9 | } 10 | 11 | @Override 12 | public void onPause() { 13 | super.onPause(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/circle_ripple.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow_drop_down_white_18px.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_send.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/Collect.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | /** 4 | * Created by yfcheng on 2015/12/9. 5 | */ 6 | public class Collect { 7 | public String status; 8 | 9 | public String getStatus() { 10 | return status; 11 | } 12 | 13 | public void setStatus(String status) { 14 | this.status = status; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/launch_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Latest 5 | Popular 6 | 7 | 8 | Materialup 9 | Siteup 10 | iOSup 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gif_indicator_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/show_logo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/Follow.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | /** 4 | * Created by yfcheng on 2015/12/10. 5 | */ 6 | public class Follow { 7 | public boolean following; 8 | 9 | public boolean isFollowing() { 10 | return following; 11 | } 12 | 13 | public void setFollowing(boolean following) { 14 | this.following = following; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/test/java/org/goode/material/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package org.goode.material; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /bypass/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /bypass/src/main/java/in/uncod/android/bypass/Document.java: -------------------------------------------------------------------------------- 1 | package in.uncod.android.bypass; 2 | 3 | public class Document { 4 | 5 | Element[] elements; 6 | 7 | public Document(Element[] elements) { 8 | this.elements = elements; 9 | } 10 | 11 | public int getElementCount() { 12 | return elements.length; 13 | } 14 | 15 | public Element getElement(int pos) { 16 | return elements[pos]; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow_drop_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_paging_indicator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/xml/fresco_disk_cache_path.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/androidTest/java/org/goode/material/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package org.goode.material; 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 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/test/java/org/goode/endlessrecyclerview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package org.goode.endlessrecyclerview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_user.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_create.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_collections.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_store_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 12 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/androidTest/java/org/goode/endlessrecyclerview/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package org.goode.endlessrecyclerview; 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 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_select_collection.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_manage.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_feedback.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_collections.xml: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/grid_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/Upvote.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | /** 4 | * Created by yfcheng on 2015/12/2. 5 | */ 6 | public class Upvote { 7 | public int count; 8 | 9 | public int getCount() { 10 | return count; 11 | } 12 | 13 | public void setCount(int count) { 14 | this.count = count; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "Upvote{" + 20 | "count=" + count + 21 | '}'; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_circle.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_save_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /bypass/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 8 9 | targetSdkVersion 16 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | } 17 | } 18 | } 19 | 20 | dependencies { 21 | // compile fileTree(include: ['*.jar'], dir: 'libs') 22 | compile 'com.android.support:support-annotations:23.2.0' 23 | } 24 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/res/layout/loading_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/ui/BasePagerAdapter.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.ui; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentStatePagerAdapter; 6 | 7 | /** 8 | * Created by ADMIN on 2015/12/7. 9 | */ 10 | public abstract class BasePagerAdapter extends FragmentStatePagerAdapter { 11 | Fragment[] mFragment; 12 | 13 | public BasePagerAdapter(FragmentManager fm) { 14 | super(fm); 15 | mFragment = new Fragment[getCount()]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_about.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_collections_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/play/java/org/goodev/ui/StatFragment.java: -------------------------------------------------------------------------------- 1 | package org.goodev.ui; 2 | 3 | import android.support.v4.app.Fragment; 4 | 5 | import org.goodev.material.App; 6 | 7 | public class StatFragment extends Fragment { 8 | @Override 9 | public void onResume() { 10 | super.onResume(); 11 | App app = (App) getContext().getApplicationContext(); 12 | Stats stats = app.getStats(); 13 | stats.track(getClass().getSimpleName()); 14 | } 15 | 16 | @Override 17 | public void onPause() { 18 | super.onPause(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_app.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_location.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_build_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_refresh_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/SearchRes.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by yfcheng on 2015/12/15. 7 | */ 8 | public class SearchRes { 9 | public List results; 10 | 11 | public List getResults() { 12 | return results; 13 | } 14 | 15 | public void setResults(List results) { 16 | this.results = results; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "SearchRes{" + 22 | "results=" + results.size() + 23 | '}'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar_spinner_item_actionbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_collections.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar_spinner_item_dropdown.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/upvoter_item.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/assets/t.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 1286, 3 | "body": "I love it!", 4 | "html_body": "\u003cp\u003eI love it!\u003c/p\u003e", 5 | "user": { 6 | "id": 7502, 7 | "avatar_url": "https://pbs.twimg.com/profile_images/2483505960/mktodg2ad384exggwq11_normal.jpeg", 8 | "full_name": "Federico Ponzi", 9 | "twitter_username": "@federico_ponzi", 10 | "verified": false, 11 | "path": "/federico_ponzi", 12 | "moderator": false, 13 | "admin": false 14 | }, 15 | "created_at": "2015-05-26T01:50:10.090-07:00", 16 | "relative_created_at": "7 months", 17 | "persisted": true, 18 | "comment_likes_count": 1, 19 | "post_id": 2778, 20 | "liked": true, 21 | "deleted": false 22 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_24dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_app_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 14 | 17 | -------------------------------------------------------------------------------- /bypass/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 F:\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 | -------------------------------------------------------------------------------- /endlessrecyclerview/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 F:\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 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_flare_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote_filled_24dp_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/vimeo.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/ui/SortPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.ui; 2 | 3 | import android.support.v4.app.FragmentManager; 4 | import android.support.v4.app.FragmentStatePagerAdapter; 5 | 6 | import org.goodev.material.util.L; 7 | 8 | /** 9 | * Created by yfcheng on 2015/12/14. 10 | */ 11 | public abstract class SortPagerAdapter extends FragmentStatePagerAdapter { 12 | String mSort; 13 | 14 | public SortPagerAdapter(FragmentManager fm) { 15 | super(fm); 16 | } 17 | 18 | public void setSort(String sort) { 19 | if ((sort == null && mSort == null) || (sort != null && sort.equals(mSort))) { 20 | return; 21 | } 22 | mSort = sort; 23 | notifyDataSetChanged(); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw360dp/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 1 19 | -------------------------------------------------------------------------------- /app/src/main/res/values-w600dp/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 2 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gplus.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/mid_grey_ripple.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/values-w360dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 304dp 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values-w540dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 3 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_pinnable.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_action_share_24dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_user.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/values-w480dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 480dp 21 | 22 | 23 | -------------------------------------------------------------------------------- /endlessrecyclerview/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 17 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:recyclerview-v7:23.1.1' 26 | compile 'com.android.support:palette-v7:23.1.1' 27 | compile 'com.android.support:appcompat-v7:23.1.1' 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw360dp-land/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 2 19 | 2 20 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/util/FileUtil.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.util; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.FileOutputStream; 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * Created by yfcheng on 2015/12/9. 12 | */ 13 | public class FileUtil { 14 | public static void copy(File src, File dst) throws IOException { 15 | InputStream in = new FileInputStream(src); 16 | OutputStream out = new FileOutputStream(dst); 17 | 18 | // Transfer bytes from in to out 19 | byte[] buf = new byte[10240]; 20 | int len; 21 | while ((len = in.read(buf)) > 0) { 22 | out.write(buf, 0, len); 23 | } 24 | in.close(); 25 | out.close(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_author_text_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow_back_padded.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_font_text_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw600dp/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 2 19 | 20 | 21 | 128dp 22 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/auto.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/java/org/goodev/widget/GridSpanSizeLookup.java: -------------------------------------------------------------------------------- 1 | package org.goodev.widget; 2 | 3 | import android.support.v7.widget.GridLayoutManager; 4 | 5 | /** 6 | * Created by goodev on 2015/1/21. 7 | */ 8 | public class GridSpanSizeLookup extends GridLayoutManager.SpanSizeLookup { 9 | 10 | BaseAdapter mAdapter; 11 | int mCount; 12 | 13 | public GridSpanSizeLookup(BaseAdapter adapter, int count) { 14 | mAdapter = adapter; 15 | mCount = count; 16 | } 17 | 18 | @Override 19 | public int getSpanSize(int position) { 20 | if (mAdapter.getItemViewType(position) == BaseAdapter.TYPE_LOADING) { 21 | return mCount; 22 | } 23 | return 1; 24 | } 25 | 26 | @Override 27 | public int getSpanIndex(int position, int spanCount) { 28 | return position % spanCount; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_card_giftcard_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/avatar_placeholder.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/person_image_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw600dp-land/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 3 19 | 3 20 | 21 | 22 | 128dp 23 | -------------------------------------------------------------------------------- /app/src/main/res/color/dribbble_links.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/color/plaid_links.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/color/designer_news_links.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/api/DataLoadingSubject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.goodev.material.api; 18 | 19 | /** 20 | * An interface for classes offering data loading state to be observed 21 | */ 22 | public interface DataLoadingSubject { 23 | boolean isDataLoading(); 24 | 25 | boolean hasMore(); 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_cutout_text_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/mid_grey_bounded_ripple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/color/designer_news_button.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/avd_heart_fill.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_right.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_out_left.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/xml/searchable.xml: -------------------------------------------------------------------------------- 1 | 16 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/upvote.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/upvote.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/medium.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/values/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 120 19 | 368 20 | 21 | 1 22 | 23 | 24 | 112dp 25 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_foreground_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /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 19 | 20 | org.gradle.java.home=D:/ProgramFiles/Java/jdk1.8.0_25 -------------------------------------------------------------------------------- /app/src/main/res/drawable/fab_dribbble_fav.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/heart_break_left_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/heart_break_right_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/heart_break_left_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/heart_break_right_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/color/dribble_comment_author.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_dynamic_text_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/api/SucessCallback.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.api; 2 | 3 | import android.app.Dialog; 4 | import android.content.Context; 5 | import android.widget.Toast; 6 | 7 | import org.goodev.material.util.UI; 8 | 9 | import rx.functions.Action1; 10 | 11 | /** 12 | * Created by ADMIN on 2015/1/1. 13 | */ 14 | public class SucessCallback implements Action1 { 15 | private Context mContext; 16 | private int mResId; 17 | private Dialog mDialog; 18 | 19 | public SucessCallback(Context context, int res) { 20 | mContext = context; 21 | mResId = res; 22 | } 23 | 24 | public SucessCallback(Context context, int res, Dialog dialog) { 25 | mContext = context; 26 | mResId = res; 27 | mDialog = dialog; 28 | } 29 | 30 | @Override 31 | public void call(E o) { 32 | UI.dismissDialog(mDialog); 33 | Toast.makeText(mContext, mResId, Toast.LENGTH_LONG).show(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/res/color/designer_news_author.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_fade_empty_heart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_fade_empty_heart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/values-h500dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 400dp 21 | 168dp 22 | 23 | @dimen/spacing_large 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/posts_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 18 | 19 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_comment_state.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_parallax_scrimage_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/util/MathUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.goodev.material.util; 18 | 19 | /** 20 | * Borrowed from github.com/romannurik/muzei 21 | */ 22 | public class MathUtils { 23 | 24 | private MathUtils() { 25 | } 26 | 27 | public static float constrain(float min, float max, float v) { 28 | return Math.max(min, Math.min(max, v)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_lines_add_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_lines_add_rotate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/comment_heart.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/dribbble_no_comments.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 21 | 64dp 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_font.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/api/ErrorCallback.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.api; 2 | 3 | import android.app.Dialog; 4 | import android.content.Context; 5 | import android.util.Log; 6 | 7 | import org.goodev.material.util.UI; 8 | 9 | import rx.functions.Action1; 10 | 11 | /** 12 | * Created by ADMIN on 2015/1/1. 13 | */ 14 | public class ErrorCallback implements Action1 { 15 | private Context mContext; 16 | private Dialog mDialog; 17 | 18 | public ErrorCallback(Context context) { 19 | mContext = context; 20 | } 21 | 22 | public ErrorCallback(Context context, Dialog dialog) { 23 | mContext = context; 24 | mDialog = dialog; 25 | } 26 | 27 | @Override 28 | public void call(Throwable throwable) { 29 | Log.e("err", "error" + throwable); 30 | if (mContext != null) { 31 | UI.toastError(mContext, throwable); 32 | } 33 | if (mDialog != null) { 34 | UI.dismissDialog(mDialog); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/search_enter.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/anim/fade_out_rapidly.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/comment_background.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/blogger1.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/heart_fill.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/heart_fill.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_reply.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 24 | 25 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow_back.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 24 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/button_frown.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/animator/button_frown.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/model/Create.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material.model; 2 | 3 | /** 4 | * Created by yfcheng on 2016/1/4. 5 | */ 6 | public class Create { 7 | public boolean ok; 8 | public String reason; 9 | public Pair[] possibleFormats; 10 | 11 | public boolean embeddable; 12 | public String description; 13 | public String[] designTools; 14 | public String[] developmentTools; 15 | public String industry; 16 | public String label; 17 | public String makerName; 18 | public String makerTwitter; 19 | public String name; 20 | public String pattern; 21 | public String platform; 22 | public boolean postUpdate; 23 | public String[] previewUrls; 24 | public String[] prototypingTools; 25 | public String sourceFormat; 26 | public String sourceId; 27 | public String sourceName; 28 | public String sourceVersion; 29 | public String suggestedPreviewUrl; 30 | public String suggestedSubcategory; 31 | public String tags; 32 | public String url; 33 | public String youtubeVideoId; 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_baseline_grid_text_view.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_add_lines_1.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_add_lines_2.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_add_lines_3.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_lines_add_1.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_lines_add_2.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/comment_lines_add_3.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/searchback_hide_circle.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_add_lines_1.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_add_lines_2.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_add_lines_3.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_lines_add_1.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_lines_add_2.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_lines_add_3.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/animator/show_connection_line.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/show_connection_line.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/animator/searchback_hide_circle.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/loading.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/home_content_item_exit.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/home_content_item_reenter.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/color/filter_text.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/searchback_hide_arrow_head.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator/searchback_hide_arrow_head.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote_empty_24dp_grey.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/twitter.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/SelectCollectionActivity.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.support.v7.widget.Toolbar; 6 | 7 | import org.goodev.material.ui.SelectCollectionFragment; 8 | import org.goodev.material.util.Launcher; 9 | 10 | public class SelectCollectionActivity extends AppCompatActivity { 11 | 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(R.layout.activity_select_collection); 16 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 17 | setSupportActionBar(toolbar); 18 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 19 | 20 | long id = getIntent().getLongExtra(Launcher.EXTRA_ID, -1); 21 | if (savedInstanceState == null) { 22 | SelectCollectionFragment fragment = SelectCollectionFragment.newIns(id); 23 | getSupportFragmentManager().beginTransaction().add(R.id.fragment, fragment).commit(); 24 | } 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 16dp 20 | 8dp 21 | 24dp 22 | 80dp 23 | 9dp 24 | 25 | 26 | 56dp 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_comment_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 24 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_drawer_design_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_comment_light.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/values/transition_names.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | shot 5 | user 6 | user_avatar 7 | shot_title 8 | shot_background 9 | story_title 10 | story_title_background 11 | transition_story_background 12 | dribbble_login 13 | transition_designer_news_login 14 | new_designer_news_post 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote_filled_24dp_white.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/infinite_loading.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_upvote_filled_24dp_blue.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bypass/src/main/java/in/uncod/android/bypass/style/ImageLoadingSpan.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package in.uncod.android.bypass.style; 18 | 19 | import android.text.TextPaint; 20 | import android.text.style.CharacterStyle; 21 | 22 | /** 23 | * A simple text span used to mark text that will be replaced by an image once it has been 24 | * downloaded. See {@link in.uncod.android.bypass.Bypass.LoadImageCallback} 25 | */ 26 | public class ImageLoadingSpan extends CharacterStyle { 27 | @Override 28 | public void updateDrawState(TextPaint textPaint) { 29 | // no-op 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/github.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/dribbble_shot_return.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/avd_no_connection.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 23 | 24 | 27 | 28 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/values/no_connection.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | M26,159 L26,159 L32,159 L32,159 Z 19 | M26,67 L26,159 L32,159 L32,67 Z 20 | M24,206.5 C24,206.5 27.6392462,206.449997 28,206.449997 C28.3607538,206.449997 32,206.5 32,206.5 21 | M23.6061137,207.020699 C23.6061137,207.020699 26.2397148,206 28.494994,206 C30.7502732,206 32.753258,207.020699 32.753258,207.020699 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/select_collection_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/home_enter.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /endlessrecyclerview/src/main/java/org/goodev/widget/SquareTextView.java: -------------------------------------------------------------------------------- 1 | package org.goodev.widget; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.widget.TextView; 6 | 7 | /** 8 | * Created by ADMIN on 2015/11/27. 9 | */ 10 | public class SquareTextView extends TextView { 11 | public SquareTextView(Context context) { 12 | super(context); 13 | } 14 | 15 | public SquareTextView(Context context, AttributeSet attrs) { 16 | super(context, attrs); 17 | } 18 | 19 | public SquareTextView(Context context, AttributeSet attrs, int defStyleAttr) { 20 | super(context, attrs, defStyleAttr); 21 | } 22 | 23 | public SquareTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { 24 | super(context, attrs, defStyleAttr, defStyleRes); 25 | } 26 | 27 | @Override 28 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 29 | super.onMeasure(widthMeasureSpec, heightMeasureSpec); 30 | int width = getMeasuredWidth(); 31 | int height = getMeasuredHeight(); 32 | int size = Math.max(width, height); 33 | 34 | setMeasuredDimension(size,size); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/res/layout/account_dropdown_item.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/pinterest.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/about_lib_intro.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/no_search_results.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 28 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/CollectionsActivity.java: -------------------------------------------------------------------------------- 1 | package org.goodev.material; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.support.v7.widget.Toolbar; 6 | 7 | import org.goodev.material.ui.CollectionPostsFragment; 8 | import org.goodev.material.util.Launcher; 9 | 10 | public class CollectionsActivity extends AppCompatActivity { 11 | 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(R.layout.activity_collections); 16 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 17 | setSupportActionBar(toolbar); 18 | 19 | String path = getIntent().getStringExtra(Launcher.EXTRA_ID); 20 | String title = getIntent().getStringExtra(Launcher.EXTRA_TITLE); 21 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 22 | getSupportActionBar().setTitle(title); 23 | if (savedInstanceState == null) { 24 | CollectionPostsFragment fragment = CollectionPostsFragment.newIns(path); 25 | getSupportFragmentManager().beginTransaction() 26 | .add(R.id.fragment, fragment) 27 | .commit(); 28 | } 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/transitions.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/java/org/goodev/material/util/customtabs/KeepAliveService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 Google Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.goodev.material.util.customtabs; 18 | 19 | import android.app.Service; 20 | import android.content.Intent; 21 | import android.os.Binder; 22 | import android.os.IBinder; 23 | 24 | /** 25 | * Empty service used by the custom tab to bind to, raising the application's importance. 26 | *

27 | * Adapted from github.com/GoogleChrome/custom-tabs-client 28 | */ 29 | public class KeepAliveService extends Service { 30 | private static final Binder sBinder = new Binder(); 31 | 32 | @Override 33 | public IBinder onBind(Intent intent) { 34 | return sBinder; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_in_bottom.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 23 | 27 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_heart_full_24dp_grey.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_heart_full_24dp_pink.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 24 | 25 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/behance.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | 21 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_heart_full_56dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 24 | 25 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/transition-v21/dribbble_shot_shared_enter.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs_drag_dismissables.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/res/animator/comment_expand_full_heart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 21 | 22 | 28 | 29 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/blogger.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/heart_break_fade_out.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 21 | 26 | 27 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/animator-v21/raise.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 23 | 27 | 28 | 29 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/animator/heart_break_fade_out.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 20 | 21 | 26 | 27 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/animator/raise.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 23 | 27 | 28 | 29 | 33 | 34 | 35 | --------------------------------------------------------------------------------