├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── header.png │ │ │ │ ├── nav_back.png │ │ │ │ ├── pull_back.png │ │ │ │ ├── pull_rider.png │ │ │ │ ├── pull_sun.png │ │ │ │ ├── pull_wheel.png │ │ │ │ ├── ic_back_btn.png │ │ │ │ ├── ic_baseadapter.png │ │ │ │ ├── icon_collection.png │ │ │ │ ├── tab_home_select.png │ │ │ │ ├── tab_home_unselect.png │ │ │ │ ├── ic_bttom_loading_01.png │ │ │ │ ├── ic_bttom_loading_02.png │ │ │ │ ├── icon_network_header.png │ │ │ │ ├── ic_discover_white_24dp.png │ │ │ │ └── ic_message_white_24dp.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── anim │ │ │ │ ├── slide_bottom_out.xml │ │ │ │ ├── slide_bottom_in.xml │ │ │ │ ├── scale_tip_in.xml │ │ │ │ ├── scale_tip_out.xml │ │ │ │ ├── back_animation_one.xml │ │ │ │ ├── back_animation_two.xml │ │ │ │ ├── sun_animation.xml │ │ │ │ └── wheel_animation.xml │ │ │ ├── layout │ │ │ │ ├── layout_base.xml │ │ │ │ ├── activity_use_fragment.xml │ │ │ │ ├── layout_state.xml │ │ │ │ ├── layout_test.xml │ │ │ │ ├── layout_main_header.xml │ │ │ │ ├── layout_base_adapter_header.xml │ │ │ │ ├── layout_network_header.xml │ │ │ │ ├── item_popup.xml │ │ │ │ ├── activity_tagview.xml │ │ │ │ ├── activity_complex_drag.xml │ │ │ │ ├── fragment_t.xml │ │ │ │ ├── activity_permission.xml │ │ │ │ ├── fragment_child.xml │ │ │ │ ├── activity_color_statusbar.xml │ │ │ │ ├── layout_recyclerview.xml │ │ │ │ ├── fragment_nomore_auto.xml │ │ │ │ ├── fragment_addheader_empty.xml │ │ │ │ ├── fragment_transparent_blackfont_statusbar.xml │ │ │ │ ├── fragment_default_refresh.xml │ │ │ │ ├── activity_pull_refresh.xml │ │ │ │ ├── activity_state_view.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── item_img.xml │ │ │ │ ├── activity_wechat_featured.xml │ │ │ │ ├── popup_menu_list.xml │ │ │ │ ├── fragment_wechat_news.xml │ │ │ │ ├── item_layout.xml │ │ │ │ ├── activity_popup_list.xml │ │ │ │ ├── fragment_root.xml │ │ │ │ ├── dialog_list.xml │ │ │ │ ├── fragment_google_refresh.xml │ │ │ │ ├── activity_custom_tablayout_one.xml │ │ │ │ ├── activity_custom_tablayout_seven.xml │ │ │ │ ├── fragment_wechat_news1.xml │ │ │ │ ├── activity_data_manager.xml │ │ │ │ ├── activity_custom_tablayout_two.xml │ │ │ │ ├── custom_tab_view.xml │ │ │ │ ├── activity_transparent_statusbar.xml │ │ │ │ ├── item_main.xml │ │ │ │ ├── activity_custom_outsideframetablayout_one.xml │ │ │ │ ├── popup_tip.xml │ │ │ │ ├── layout_transprent_statusbar_header.xml │ │ │ │ ├── activity_custom_tablayout_three.xml │ │ │ │ ├── activity_refresh.xml │ │ │ │ ├── activity_wrap_linear.xml │ │ │ │ ├── activity_custom_tablayout_four.xml │ │ │ │ ├── activity_custom_tablayout_six.xml │ │ │ │ ├── layout_empty.xml │ │ │ │ ├── activity_custom_tablayout_five.xml │ │ │ │ ├── item_pull_refresh.xml │ │ │ │ ├── activity_downlaod.xml │ │ │ │ ├── fragment_sharepreference.xml │ │ │ │ ├── activity_custom_outsideframetablayout_two.xml │ │ │ │ ├── popup_slide_bottom.xml │ │ │ │ ├── activity_popupwindow.xml │ │ │ │ ├── popup_slide_button.xml │ │ │ │ ├── activity_change_statusbar.xml │ │ │ │ ├── layout_definition_animation_loading_more.xml │ │ │ │ └── item_click.xml │ │ │ └── drawable │ │ │ │ ├── shape_item_click.xml │ │ │ │ ├── selector_tab_home.xml │ │ │ │ ├── selector_complex_item.xml │ │ │ │ └── loading_bottom.xml │ │ └── java │ │ │ └── com │ │ │ └── youngmanster │ │ │ └── collection │ │ │ ├── mvp │ │ │ ├── view │ │ │ │ ├── IDownloadFileView.java │ │ │ │ ├── IWeChatFeaturedView.java │ │ │ │ ├── IWeChatWorldNewsView.java │ │ │ │ ├── IWeChatChinaNewsDefinitionView.java │ │ │ │ ├── IWeChatFeaturedNoCommonClassView.java │ │ │ │ └── IWeChatWorldNewsDefinitionView.java │ │ │ ├── presenter │ │ │ │ ├── WeChatFeaturedNoCommonClassPresenter.java │ │ │ │ ├── WeChatFeaturedPresenter.java │ │ │ │ └── WeChatWorldNewsPresenter.java │ │ │ └── ui │ │ │ │ └── wechat │ │ │ │ └── adapter │ │ │ │ └── WeChatFeaturedAdapter.java │ │ │ ├── http │ │ │ └── ApiUrl.java │ │ │ ├── common │ │ │ └── AppConfig.java │ │ │ ├── been │ │ │ ├── ClickItem.java │ │ │ ├── Result.java │ │ │ ├── WeChatNewsResult.java │ │ │ ├── MultiItem.java │ │ │ └── User.java │ │ │ ├── customview │ │ │ ├── activity │ │ │ │ ├── WrapLinearLayoutActivity.java │ │ │ │ └── TagViewActivity.java │ │ │ └── fragment │ │ │ │ └── ChildFragment.java │ │ │ ├── activity │ │ │ └── base │ │ │ │ ├── popupwindow │ │ │ │ ├── PopupSlideBottom.java │ │ │ │ ├── PopupTip.java │ │ │ │ ├── PopupSlideButton.java │ │ │ │ ├── PopupMenuList.java │ │ │ │ └── PopupWindowDemoActivity.java │ │ │ │ ├── adapter │ │ │ │ ├── PopupMenuListAdapter.java │ │ │ │ └── ItemRecycleAdapter.java │ │ │ │ ├── activity │ │ │ │ ├── UseFragmentActivity.java │ │ │ │ ├── PopupMenuActivity.java │ │ │ │ ├── ChangeStatusBarActivity.java │ │ │ │ └── TransparentStatusBarActivity.java │ │ │ │ └── fragment │ │ │ │ ├── FragmentT.java │ │ │ │ └── FragmentRoot.java │ │ │ ├── adapter │ │ │ ├── baseadapter │ │ │ │ ├── DragAndDeleteAdapter.java │ │ │ │ └── ItemClickAdapter.java │ │ │ ├── recyclerview │ │ │ │ ├── DefinitionRecyclerAdapter.java │ │ │ │ ├── PullToRecyclerViewAdapter.java │ │ │ │ ├── GoogleRefreshAdapter.java │ │ │ │ └── DefaultRecyclerAdapter.java │ │ │ ├── CollectionFragmentAdapter.java │ │ │ └── MainViewAdapter.java │ │ │ ├── data │ │ │ └── fragment │ │ │ │ └── FragmentSharePreference.java │ │ │ └── base │ │ │ └── BaseActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── youngmanster │ │ │ └── collection │ │ │ ├── ExampleUnitTest.java │ │ │ └── activity │ │ │ └── MainActivityTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── youngmanster │ │ └── collection │ │ └── ExampleInstrumentedTest.java ├── local.properties ├── config.gradle ├── proguard-rules.pro └── jacoco.gradle ├── collectionlibrary ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── anim │ │ │ │ ├── no_anim.xml │ │ │ │ ├── alpha_out.xml │ │ │ │ ├── alpha_in.xml │ │ │ │ ├── push_right_out.xml │ │ │ │ ├── push_left_in.xml │ │ │ │ ├── slide_left_in.xml │ │ │ │ ├── slide_left_out.xml │ │ │ │ ├── slide_right_in.xml │ │ │ │ └── slide_right_out.xml │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── icon_disconnect.png │ │ │ │ ├── fragmentation_help.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ ├── icon_refresh_arrow.png │ │ │ │ ├── ic_bttom_loading_01.png │ │ │ │ ├── fragmentation_ic_right.png │ │ │ │ ├── fragmentation_ic_stack.png │ │ │ │ └── fragmentation_ic_expandable.png │ │ │ ├── xml │ │ │ │ └── network_security_config.xml │ │ │ ├── values │ │ │ │ ├── ids.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── drawable │ │ │ │ ├── collection_library_shape_tagview_slector.xml │ │ │ │ ├── collection_library_shape_tagview.xml │ │ │ │ ├── collection_library_selector_tagview.xml │ │ │ │ └── lift_on_touch.xml │ │ │ ├── drawable-v21 │ │ │ │ └── ripple_bg.xml │ │ │ ├── layout │ │ │ │ ├── collection_library_design_layout_tab_icon.xml │ │ │ │ ├── collection_library_design_layout_tab_text.xml │ │ │ │ ├── collection_library_default_base_activity.xml │ │ │ │ ├── collection_library_default_base_fragment.xml │ │ │ │ ├── collection_library_dialog_title_text_two_button.xml │ │ │ │ ├── collection_library_view_empty.xml │ │ │ │ ├── collection_library_view_disconnect.xml │ │ │ │ ├── collection_library_dialog_progress.xml │ │ │ │ ├── collection_library_view_loading.xml │ │ │ │ └── collection_library_layout_default_loading_more.xml │ │ │ ├── values-zh-rTW │ │ │ │ └── strings.xml │ │ │ └── values-en │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── youngmanster │ │ │ │ └── collectionlibrary │ │ │ │ ├── customview │ │ │ │ ├── tablayout │ │ │ │ │ └── OnTabSelectListener.java │ │ │ │ ├── tagview │ │ │ │ │ └── layout │ │ │ │ │ │ ├── FlexWrap.java │ │ │ │ │ │ ├── AlignItems.java │ │ │ │ │ │ ├── AlignSelf.java │ │ │ │ │ │ ├── FlexDirection.java │ │ │ │ │ │ ├── AlignContent.java │ │ │ │ │ │ └── JustifyContent.java │ │ │ │ └── CollectionViewPager.java │ │ │ │ ├── mvp │ │ │ │ ├── BaseView.java │ │ │ │ ├── BasePresenter.java │ │ │ │ └── ClassGetUtil.java │ │ │ │ ├── refreshrecyclerview │ │ │ │ └── base │ │ │ │ │ ├── adapter │ │ │ │ │ └── BaseMultiItemEntity.java │ │ │ │ │ └── refreshview │ │ │ │ │ └── BaseLoadMoreView.java │ │ │ │ ├── network │ │ │ │ ├── rx │ │ │ │ │ ├── utils │ │ │ │ │ │ ├── SchedulerType.java │ │ │ │ │ │ ├── IRxUITask.java │ │ │ │ │ │ ├── IRxIOTask.java │ │ │ │ │ │ ├── IExceptionHandler.java │ │ │ │ │ │ ├── SimpleThrowableAction.java │ │ │ │ │ │ ├── RxUITask.java │ │ │ │ │ │ ├── RxIOTask.java │ │ │ │ │ │ ├── RxTaskOnSubscribe.java │ │ │ │ │ │ ├── RxAsyncTask.java │ │ │ │ │ │ └── RxExceptionHandler.java │ │ │ │ │ ├── ObservableListener.java │ │ │ │ │ ├── RxObservableListener.java │ │ │ │ │ ├── RxManager.java │ │ │ │ │ ├── RxSchedulers.java │ │ │ │ │ └── RxSubscriber.java │ │ │ │ ├── convert │ │ │ │ │ ├── ParameterizedTypeImpl.java │ │ │ │ │ └── SetterExclusionStrategy.java │ │ │ │ ├── RequestManager.java │ │ │ │ └── download │ │ │ │ │ └── DownloadInfo.java │ │ │ │ ├── data │ │ │ │ └── database │ │ │ │ │ ├── Column.java │ │ │ │ │ ├── PagingList.java │ │ │ │ │ ├── DBTransaction.java │ │ │ │ │ ├── DateUtils.java │ │ │ │ │ ├── SQLiteVersionMigrate.java │ │ │ │ │ └── ColumnInfo.java │ │ │ │ ├── utils │ │ │ │ ├── ColorUtils.java │ │ │ │ ├── SoftInputUtils.java │ │ │ │ └── GetPermissionsUtils.java │ │ │ │ ├── base │ │ │ │ └── activity │ │ │ │ │ └── ResultCode.java │ │ │ │ └── config │ │ │ │ └── Config.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── youngmanster │ │ │ └── collectionlibrary │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── youngmanster │ │ └── collectionlibrary │ │ └── ExampleInstrumentedTest.java └── config.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── caches │ └── build_file_checksums.ser ├── vcs.xml ├── encodings.xml ├── inspectionProfiles │ └── Project_Default.xml ├── runConfigurations.xml ├── gradle.xml └── modules.xml ├── .gitignore ├── gradle.properties └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /collectionlibrary/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':collectionlibrary' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/header.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/nav_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/nav_back.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/pull_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/pull_back.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/pull_rider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/pull_rider.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/pull_sun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/pull_sun.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/pull_wheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/pull_wheel.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_back_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_back_btn.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_baseadapter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_baseadapter.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/icon_collection.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_home_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/tab_home_select.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/tab_home_unselect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/tab_home_unselect.png -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 20sp 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_bttom_loading_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_bttom_loading_01.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_bttom_loading_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_bttom_loading_02.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_network_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/icon_network_header.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_discover_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_discover_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_message_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_message_white_24dp.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/no_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/icon_disconnect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/icon_disconnect.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_help.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/icon_refresh_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/icon_refresh_arrow.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/ic_bttom_loading_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/ic_bttom_loading_01.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_right.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_stack.png -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_expandable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usernameyangyan/Collection-Android/HEAD/collectionlibrary/src/main/res/mipmap-xhdpi/fragmentation_ic_expandable.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_bottom_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_base.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/customview/tablayout/OnTabSelectListener.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.customview.tablayout; 2 | 3 | public interface OnTabSelectListener { 4 | void onTabSelect(int position); 5 | } -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_bottom_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/alpha_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_item_click.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/mvp/BaseView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.mvp; 2 | 3 | /** 4 | * Created by yangyan 5 | * on 2018/3/17. 6 | */ 7 | 8 | public interface BaseView { 9 | void onError(String errorMsg); 10 | } 11 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/alpha_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IDownloadFileView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collectionlibrary.mvp.BaseView; 4 | 5 | public interface IDownloadFileView extends BaseView{ 6 | void updateProgress(float progress); 7 | } -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/push_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/drawable/collection_library_shape_tagview_slector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_use_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/drawable-v21/ripple_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/drawable/collection_library_shape_tagview.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/layout/collection_library_design_layout_tab_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_tab_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_complex_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/http/ApiUrl.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.http; 2 | 3 | /** 4 | * Created by yangyan 5 | * on 2018/3/21. 6 | */ 7 | 8 | public class ApiUrl { 9 | 10 | /** 11 | * 微信精选 12 | */ 13 | public static final String URL_WETCHAT_FEATURED="getJoke"; 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/res/anim/scale_tip_in.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/anim/scale_tip_out.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/refreshrecyclerview/base/adapter/BaseMultiItemEntity.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.refreshrecyclerview.base.adapter; 2 | 3 | /** 4 | * 多布局需要实现这个类,通过该类来设置多布局的type 5 | * Created by yangyan 6 | * on 2018/3/14. 7 | */ 8 | 9 | public interface BaseMultiItemEntity { 10 | int getItemViewType(); 11 | } 12 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/drawable/collection_library_selector_tagview.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #66ccf5 4 | #ffffff 5 | #000000 6 | 7 | #3F51B5 8 | #3F51B5 9 | #FF4081 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IWeChatFeaturedView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collection.been.wechat.WeChatNews; 4 | import com.youngmanster.collectionlibrary.mvp.BaseView; 5 | 6 | import java.util.List; 7 | 8 | public interface IWeChatFeaturedView extends BaseView{ 9 | void refreshUI(List newsList); 10 | } -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/layout/collection_library_design_layout_tab_text.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IWeChatWorldNewsView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collection.been.wechat.WeChatNews; 4 | import com.youngmanster.collectionlibrary.mvp.BaseView; 5 | 6 | import java.util.List; 7 | 8 | public interface IWeChatWorldNewsView extends BaseView{ 9 | void refreshUI(List weChatNews); 10 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/loading_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IWeChatChinaNewsDefinitionView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collection.been.wechat.WeChatNews; 4 | import com.youngmanster.collectionlibrary.mvp.BaseView; 5 | 6 | import java.util.List; 7 | 8 | public interface IWeChatChinaNewsDefinitionView extends BaseView{ 9 | void refreshUI(List weChatNews); 10 | } -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IWeChatFeaturedNoCommonClassView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collection.been.wechat.WeChatNews; 4 | import com.youngmanster.collectionlibrary.mvp.BaseView; 5 | 6 | import java.util.List; 7 | 8 | public interface IWeChatFeaturedNoCommonClassView extends BaseView{ 9 | void refreshUI(List newsList); 10 | } -------------------------------------------------------------------------------- /app/src/main/res/anim/back_animation_one.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/anim/back_animation_two.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Tue Aug 27 16:27:31 CST 2019 8 | ndk.dir=E\:\\Android\\androidSdk\\ndk-bundle 9 | sdk.dir=E\:\\Android\\androidSdk 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/mvp/view/IWeChatWorldNewsDefinitionView.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.mvp.view; 2 | 3 | import com.youngmanster.collection.been.wechat.WeChatNews; 4 | import com.youngmanster.collectionlibrary.mvp.BaseView; 5 | 6 | import java.util.List; 7 | 8 | public interface IWeChatWorldNewsDefinitionView extends BaseView{ 9 | void refreshUI(List weChatNews); 10 | 11 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_state.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/push_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/anim/sun_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/wheel_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/slide_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/slide_left_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/slide_right_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/res/anim/slide_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/common/AppConfig.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.common; 2 | 3 | import android.os.Environment; 4 | 5 | /** 6 | * Created by yangyan 7 | * on 2018/3/25. 8 | */ 9 | 10 | public class AppConfig { 11 | public final static String STORAGE_DIR= Environment.getExternalStorageDirectory().getAbsolutePath()+"/Collection/"; 12 | public final static String URL_CACHE=STORAGE_DIR+"url/cache/"; 13 | } 14 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #3F51B5 5 | #FF4081 6 | #ffffff 7 | #eeeeee 8 | #eeeeee 9 | #8f000000 10 | #FF000000 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_main_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_base_adapter_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_network_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_popup.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_tagview.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/youngmanster/collection/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /collectionlibrary/src/test/java/com/youngmanster/collectionlibrary/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_complex_drag.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/network/rx/utils/SchedulerType.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.network.rx.utils; 2 | 3 | /** 4 | * 线程类型 5 | */ 6 | public enum SchedulerType { 7 | 8 | /** 9 | * 订阅发生在主线程 ( -> -> main) 10 | */ 11 | _main, 12 | /** 13 | * 订阅发生在io线程 ( -> -> io) 14 | */ 15 | _io, 16 | /** 17 | * 处理在io线程,订阅发生在主线程( -> io -> main) 18 | */ 19 | _io_main, 20 | /** 21 | * 处理在io线程,订阅也发生在io线程( -> io -> io) 22 | */ 23 | _io_io, 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/com/youngmanster/collection/been/ClickItem.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collection.been; 2 | 3 | /** 4 | * Created by yangyan 5 | * on 2018/3/20. 6 | */ 7 | 8 | public class ClickItem { 9 | private String title; 10 | private int res; 11 | 12 | public String getTitle() { 13 | return title; 14 | } 15 | 16 | public void setTitle(String title) { 17 | this.title = title; 18 | } 19 | 20 | public int getRes() { 21 | return res; 22 | } 23 | 24 | public void setRes(int res) { 25 | this.res = res; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_t.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/network/rx/ObservableListener.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.network.rx; 2 | 3 | import com.youngmanster.collectionlibrary.network.NetWorkCodeException; 4 | 5 | /** 6 | * Created by yangyan 7 | * on 2018/3/28. 8 | */ 9 | 10 | public interface ObservableListener { 11 | void onNext(T result); 12 | void onError(NetWorkCodeException.ResponseThrowable e); 13 | void onDownloadProgress(long total,long currentLength,float progress); 14 | void onUploadProgress(long total,float progress); 15 | } 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_permission.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_child.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 16 | -------------------------------------------------------------------------------- /collectionlibrary/src/main/java/com/youngmanster/collectionlibrary/mvp/BasePresenter.java: -------------------------------------------------------------------------------- 1 | package com.youngmanster.collectionlibrary.mvp; 2 | 3 | import com.youngmanster.collectionlibrary.network.rx.RxManager; 4 | /** 5 | * Created by yangyan 6 | * on 2018/3/18. 7 | */ 8 | 9 | public abstract class BasePresenter { 10 | public T mView; 11 | 12 | public RxManager rxManager=new RxManager(); 13 | 14 | public void setV(T v){ 15 | this.mView=v; 16 | } 17 | 18 | public void onDestroy(){ 19 | this.mView=null; 20 | rxManager.clear(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_color_statusbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |