├── gradlew ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── layout │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── activity_demo.xml │ │ │ │ └── fragment.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── ray │ │ │ │ └── projectframe │ │ │ │ ├── common │ │ │ │ └── Const.java │ │ │ │ ├── mvp │ │ │ │ ├── view │ │ │ │ │ └── DemoIView.java │ │ │ │ └── presenter │ │ │ │ │ └── DemoEntry.java │ │ │ │ ├── api │ │ │ │ ├── ApiService.java │ │ │ │ └── Api.java │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── Fragment2.java │ │ │ │ ├── Fragment3.java │ │ │ │ ├── Fragment4.java │ │ │ │ ├── FrameApplication.java │ │ │ │ ├── demo │ │ │ │ └── DemoActivity.java │ │ │ │ └── Fragment1.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── frame │ │ │ └── project │ │ │ └── ray │ │ │ └── projectframe │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── frame │ │ └── project │ │ └── ray │ │ └── projectframe │ │ └── ExampleInstrumentedTest.java ├── findbugs-android-exclude.xml └── build.gradle ├── library ├── .gitignore └── src │ ├── main │ ├── res │ │ ├── mipmap-nodpi │ │ │ ├── back.png │ │ │ ├── avatar.png │ │ │ ├── user1.png │ │ │ ├── user2.png │ │ │ ├── empty_image.png │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_round.png │ │ │ ├── placeholder_big.png │ │ │ ├── network_error_image.png │ │ │ └── placeholder_normal.png │ │ ├── drawable │ │ │ ├── update_logo.png │ │ │ ├── switch_btn_green.9.png │ │ │ ├── switch_btn_normal.png │ │ │ ├── switch_btn_pressed.png │ │ │ ├── switch_btn_bg_green.9.png │ │ │ ├── switch_btn_bg_white.9.png │ │ │ ├── bg_dialog_confirm.xml │ │ │ ├── shape_tag_cyan.xml │ │ │ ├── shape_tag_pink.xml │ │ │ ├── bg_dialog_top.xml │ │ │ ├── white_item_press.xml │ │ │ ├── seletor_btn_press.xml │ │ │ ├── sample_footer_loading_progress.xml │ │ │ ├── red_stoken_point.xml │ │ │ ├── btn_cancle.xml │ │ │ ├── btn_action.xml │ │ │ └── mis_action_btn.xml │ │ ├── drawable-xhdpi │ │ │ ├── ic_down.png │ │ │ ├── loading.png │ │ │ ├── ic_default.png │ │ │ ├── refreshing.png │ │ │ ├── ic_refresh2.png │ │ │ ├── load_failed.png │ │ │ ├── load_succeed.png │ │ │ ├── mis_btn_back.png │ │ │ ├── refresh_failed.png │ │ │ ├── refresh_succeed.png │ │ │ ├── mis_ic_menu_back.png │ │ │ ├── mis_default_check_s.png │ │ │ ├── mis_selector_indicator.png │ │ │ └── sample_footer_loading.png │ │ ├── drawable-xxhdpi │ │ │ ├── mis_asv.png │ │ │ ├── mis_asy.png │ │ │ ├── mis_btn_selected.png │ │ │ ├── mis_btn_unselected.png │ │ │ ├── mis_default_check.png │ │ │ ├── mis_default_error.png │ │ │ └── mis_text_indicator.png │ │ ├── values │ │ │ ├── public.xml │ │ │ ├── style.xml │ │ │ ├── ids.xml │ │ │ ├── styles.xml │ │ │ ├── dimens.xml │ │ │ └── colors.xml │ │ ├── drawable-v21 │ │ │ ├── white_item_press.xml │ │ │ └── seletor_btn_press.xml │ │ ├── layout │ │ │ ├── include_line_view.xml │ │ │ ├── mis_gvc_layout.xml │ │ │ ├── activity_look_big_pic.xml │ │ │ ├── activity_web_view.xml │ │ │ ├── photo_view_zoom_progress.xml │ │ │ ├── item_listview.xml │ │ │ ├── activity_touch_gallery.xml │ │ │ ├── pager_navigator_layout_no_scroll.xml │ │ │ ├── view_loading.xml │ │ │ ├── mis_list_item_camera.xml │ │ │ ├── activity_test.xml │ │ │ ├── image_corner.xml │ │ │ ├── pager_navigator_layout.xml │ │ │ ├── activity_base_bottom_tab.xml │ │ │ ├── def_loading.xml │ │ │ ├── activity_base_top_bar.xml │ │ │ ├── mis_list_item_image.xml │ │ │ ├── mis_activity_default.xml │ │ │ ├── mis_cmp_customer_actionbar.xml │ │ │ ├── common_title.xml │ │ │ ├── mis_fragment_multi_image.xml │ │ │ ├── view_empty.xml │ │ │ └── view_tab_item.xml │ │ ├── anim │ │ │ ├── fade_out.xml │ │ │ ├── fade_in.xml │ │ │ ├── reverse_anim.xml │ │ │ └── rotating.xml │ │ ├── menu │ │ │ └── menu_activity_base_top_right.xml │ │ └── color │ │ │ ├── mis_folder_text_color.xml │ │ │ └── mis_default_text_color.xml │ ├── java │ │ ├── update │ │ │ ├── feature │ │ │ │ └── Callback.java │ │ │ └── fileload │ │ │ │ ├── FileLoadingBean.java │ │ │ │ ├── RxBus.java │ │ │ │ └── FileResponseBody.java │ │ ├── multiitem │ │ │ ├── common │ │ │ │ └── Const.java │ │ │ ├── listener │ │ │ │ ├── OnLoadMoreListener.java │ │ │ │ ├── OnStateClickListener.java │ │ │ │ ├── OnItemClickListener.java │ │ │ │ ├── OnItemLongClickListener.java │ │ │ │ └── ListenerUtil.java │ │ │ ├── animation │ │ │ │ ├── BaseAnimation.java │ │ │ │ ├── SlideInLeftAnimation.java │ │ │ │ ├── SlideInTopAnimation.java │ │ │ │ ├── SlideInBottomAnimation.java │ │ │ │ ├── SlideInRightAnimation.java │ │ │ │ ├── AlphaInAnimation.java │ │ │ │ └── ScaleInAnimation.java │ │ │ ├── item │ │ │ │ ├── ItemInput.java │ │ │ │ ├── BaseItemData.java │ │ │ │ ├── ItemData.java │ │ │ │ ├── ItemDrag.java │ │ │ │ ├── ItemManager.java │ │ │ │ ├── BaseItemInput.java │ │ │ │ ├── UniqueItemManager.java │ │ │ │ ├── HiddenItemInput.java │ │ │ │ ├── DataBindItemInput.java │ │ │ │ └── BaseItemState.java │ │ │ ├── adapter │ │ │ │ └── holder │ │ │ │ │ ├── BaseViewHolderManager.java │ │ │ │ │ ├── BaseViewHolder.java │ │ │ │ │ ├── BindViewHolderManager.java │ │ │ │ │ ├── HeadFootHolderManager.java │ │ │ │ │ ├── ViewHolderParams.java │ │ │ │ │ ├── DataBindViewHolderManager.java │ │ │ │ │ └── ViewHolderManagerGroup.java │ │ │ └── helper │ │ │ │ └── StateViewHelper.java │ │ ├── com │ │ │ └── ray │ │ │ │ ├── library │ │ │ │ ├── bean │ │ │ │ │ ├── Demo.java │ │ │ │ │ ├── BaseModel.java │ │ │ │ │ └── DemoUser.java │ │ │ │ ├── rxjava │ │ │ │ │ ├── RxNextListener.java │ │ │ │ │ └── util │ │ │ │ │ │ └── RxInterface.java │ │ │ │ ├── retrofit │ │ │ │ │ ├── ServerException.java │ │ │ │ │ ├── BaseApiService.java │ │ │ │ │ └── BaseApiManager.java │ │ │ │ ├── rxbus │ │ │ │ │ ├── Event.java │ │ │ │ │ └── RxBus.java │ │ │ │ ├── common │ │ │ │ │ └── adapter │ │ │ │ │ │ ├── base │ │ │ │ │ │ └── MultiItemTypeSupport.java │ │ │ │ │ │ ├── PagerViewAdapter.java │ │ │ │ │ │ ├── PagerFragmentAdapter.java │ │ │ │ │ │ └── RecyleAdapter.java │ │ │ │ ├── view │ │ │ │ │ ├── view │ │ │ │ │ │ ├── baseadapter │ │ │ │ │ │ │ ├── animation │ │ │ │ │ │ │ │ ├── BaseAnimation.java │ │ │ │ │ │ │ │ ├── SlideInLeftAnimation.java │ │ │ │ │ │ │ │ ├── SlideInRightAnimation.java │ │ │ │ │ │ │ │ ├── SlideInBottomAnimation.java │ │ │ │ │ │ │ │ ├── AlphaInAnimation.java │ │ │ │ │ │ │ │ └── ScaleInAnimation.java │ │ │ │ │ │ │ ├── entity │ │ │ │ │ │ │ │ ├── MultiItemEntity.java │ │ │ │ │ │ │ │ └── SectionEntity.java │ │ │ │ │ │ │ ├── listener │ │ │ │ │ │ │ │ ├── OnItemDragListener.java │ │ │ │ │ │ │ │ └── OnItemSwipeListener.java │ │ │ │ │ │ │ └── BaseMultiItemQuickAdapter.java │ │ │ │ │ │ ├── pulltorefreshview │ │ │ │ │ │ │ └── Pullable.java │ │ │ │ │ │ ├── viewpager │ │ │ │ │ │ │ ├── tabviewpager │ │ │ │ │ │ │ │ └── Tool.java │ │ │ │ │ │ │ ├── LimitViewPager.java │ │ │ │ │ │ │ └── CustomViewPager.java │ │ │ │ │ │ ├── imageview │ │ │ │ │ │ │ ├── ColorFilterImageView.java │ │ │ │ │ │ │ ├── GlideCircleTransform.java │ │ │ │ │ │ │ ├── RoundImageView.java │ │ │ │ │ │ │ └── GlideRoundTransform.java │ │ │ │ │ │ ├── textview │ │ │ │ │ │ │ ├── CircleTextView.java │ │ │ │ │ │ │ ├── LeanTextView.java │ │ │ │ │ │ │ └── FontTextView.java │ │ │ │ │ │ ├── button │ │ │ │ │ │ │ ├── DrawableImgCenterView.java │ │ │ │ │ │ │ └── MyRadioButton.java │ │ │ │ │ │ ├── recyclerviewHelper │ │ │ │ │ │ │ ├── DiffCallback.java │ │ │ │ │ │ │ └── GridSpacingItemDecoration.java │ │ │ │ │ │ └── photoview │ │ │ │ │ │ │ └── PhotoViewAdapter.java │ │ │ │ │ └── viewhelper │ │ │ │ │ │ ├── NetWorkErrorView.java │ │ │ │ │ │ └── ICaseViewHelper.java │ │ │ │ ├── base │ │ │ │ │ ├── BaseException.java │ │ │ │ │ └── mvp │ │ │ │ │ │ ├── BaseIView.java │ │ │ │ │ │ └── BasePresenter.java │ │ │ │ ├── utils │ │ │ │ │ ├── SimpleTextWatcher.java │ │ │ │ │ ├── WebViewUtil.java │ │ │ │ │ ├── TimeCutTask.java │ │ │ │ │ ├── GsonUtil.java │ │ │ │ │ ├── T.java │ │ │ │ │ ├── LocationUtil.java │ │ │ │ │ ├── ImageUtil.java │ │ │ │ │ ├── StringUtil.java │ │ │ │ │ ├── VersionInfoUtil.java │ │ │ │ │ ├── L.java │ │ │ │ │ ├── SeviceUtils.java │ │ │ │ │ ├── DensityUtils.java │ │ │ │ │ └── ScreenUtils.java │ │ │ │ ├── BaseApplication.java │ │ │ │ ├── imgseletor │ │ │ │ │ ├── bean │ │ │ │ │ │ ├── Folder.java │ │ │ │ │ │ └── Image.java │ │ │ │ │ ├── view │ │ │ │ │ │ ├── SquaredImageView.java │ │ │ │ │ │ └── SquareFrameLayout.java │ │ │ │ │ └── utils │ │ │ │ │ │ ├── TimeUtils.java │ │ │ │ │ │ └── ScreenUtils.java │ │ │ │ └── greendao │ │ │ │ │ └── MyDaoMaster.java │ │ │ │ └── gen │ │ │ │ └── DaoSession.java │ │ └── magicindicator │ │ │ ├── ScrollState.java │ │ │ ├── buildins │ │ │ ├── commonnavigator │ │ │ │ ├── abs │ │ │ │ │ ├── IMeasurablePagerTitleView.java │ │ │ │ │ ├── IPagerIndicator.java │ │ │ │ │ ├── IPagerTitleView.java │ │ │ │ │ └── CommonNavigatorAdapter.java │ │ │ │ ├── titles │ │ │ │ │ ├── badge │ │ │ │ │ │ ├── BadgeAnchor.java │ │ │ │ │ │ └── BadgeRule.java │ │ │ │ │ ├── DummyPagerTitleView.java │ │ │ │ │ └── ColorTransitionPagerTitleView.java │ │ │ │ └── model │ │ │ │ │ └── PositionData.java │ │ │ ├── UIUtil.java │ │ │ └── ArgbEvaluatorHolder.java │ │ │ ├── abs │ │ │ └── IPagerNavigator.java │ │ │ ├── ViewPagerHelper.java │ │ │ └── MagicIndicator.java │ └── AndroidManifest.xml │ ├── test │ └── java │ │ └── com │ │ └── example │ │ └── library │ │ ├── RxJavaTest.java │ │ └── ExampleUnitTest.java │ └── androidTest │ └── java │ └── com │ └── example │ └── library │ └── ExampleInstrumentedTest.java ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml └── compiler.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore └── gradle.properties /gradlew: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RayFrame 3 | 4 | 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/back.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/update_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/update_logo.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/avatar.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/user1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/user1.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/user2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/user2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/ic_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/ic_down.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/loading.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/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/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/ic_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/ic_default.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/refreshing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/refreshing.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_asv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_asv.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_asy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_asy.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/empty_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/empty_image.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/ic_refresh2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/ic_refresh2.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/load_failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/load_failed.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/load_succeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/load_succeed.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/mis_btn_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/mis_btn_back.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/switch_btn_green.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/switch_btn_green.9.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/switch_btn_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/switch_btn_normal.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/switch_btn_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/switch_btn_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/refresh_failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/refresh_failed.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/refresh_succeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/refresh_succeed.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/switch_btn_bg_green.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/switch_btn_bg_green.9.png -------------------------------------------------------------------------------- /library/src/main/res/drawable/switch_btn_bg_white.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable/switch_btn_bg_white.9.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/ic_launcher_round.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/placeholder_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/placeholder_big.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/mis_ic_menu_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/mis_ic_menu_back.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_btn_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_btn_selected.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/network_error_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/network_error_image.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-nodpi/placeholder_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/mipmap-nodpi/placeholder_normal.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/mis_default_check_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/mis_default_check_s.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_btn_unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_btn_unselected.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_default_check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_default_check.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_default_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_default_error.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/mis_text_indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xxhdpi/mis_text_indicator.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/mis_selector_indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/mis_selector_indicator.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/sample_footer_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ray512512/ProjectFrame/HEAD/library/src/main/res/drawable-xhdpi/sample_footer_loading.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /.idea 9 | /captures 10 | .externalNativeBuild 11 | .idea 12 | gradle -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/java/update/feature/Callback.java: -------------------------------------------------------------------------------- 1 | package update.feature; 2 | 3 | /** 4 | * Created by sanmu on 2016/10/13 0013. 5 | */ 6 | public interface Callback { 7 | public void callback(int position); 8 | } 9 | -------------------------------------------------------------------------------- /library/src/main/res/values/public.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/java/com/ray/projectframe/common/Const.java: -------------------------------------------------------------------------------- 1 | package com.ray.projectframe.common; 2 | 3 | /** 4 | * Created by Ray on 2018/5/22. 5 | */ 6 | 7 | public class Const { 8 | public static final String DB_NAME = "demo.db"; 9 | } 10 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/common/Const.java: -------------------------------------------------------------------------------- 1 | package multiitem.common; 2 | 3 | /** 4 | * 一些常量类 5 | * 6 | * @author free46000 2017/03/16 7 | * @version v1.0 8 | */ 9 | public class Const { 10 | public static final int VIEW_HOLDER_TAG = -121; 11 | } 12 | -------------------------------------------------------------------------------- /library/src/main/res/drawable-v21/white_item_press.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /library/src/main/res/drawable-v21/seletor_btn_press.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /library/src/main/res/layout/include_line_view.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /library/src/main/res/values/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/view/view/baseadapter/animation/SlideInRightAnimation.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.view.view.baseadapter.animation; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ObjectAnimator; 5 | import android.view.View; 6 | 7 | 8 | /** 9 | * https://github.com/CymChad/BaseRecyclerViewAdapterHelper 10 | */ 11 | public class SlideInRightAnimation implements BaseAnimation { 12 | 13 | 14 | @Override 15 | public Animator[] getAnimators(View view) { 16 | return new Animator[]{ 17 | ObjectAnimator.ofFloat(view, "translationX", view.getRootView().getWidth(), 0) 18 | }; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/view/view/baseadapter/animation/SlideInBottomAnimation.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.view.view.baseadapter.animation; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ObjectAnimator; 5 | import android.view.View; 6 | 7 | 8 | /** 9 | * https://github.com/CymChad/BaseRecyclerViewAdapterHelper 10 | */ 11 | public class SlideInBottomAnimation implements BaseAnimation { 12 | 13 | 14 | 15 | @Override 16 | public Animator[] getAnimators(View view) { 17 | return new Animator[]{ 18 | ObjectAnimator.ofFloat(view, "translationY", view.getMeasuredHeight(), 0) 19 | }; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/view/view/baseadapter/entity/SectionEntity.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.view.view.baseadapter.entity; 2 | 3 | /** 4 | * https://github.com/CymChad/BaseRecyclerViewAdapterHelper 5 | */ 6 | public abstract class SectionEntity { 7 | public boolean isHeader; 8 | public T t; 9 | public String header; 10 | 11 | public SectionEntity(boolean isHeader, String header) { 12 | this.isHeader = isHeader; 13 | this.header = header; 14 | this.t = null; 15 | } 16 | 17 | public SectionEntity(T t) { 18 | this.isHeader = false; 19 | this.header = null; 20 | this.t = t; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /library/src/main/res/layout/item_listview.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 16 | -------------------------------------------------------------------------------- /library/src/main/java/magicindicator/buildins/commonnavigator/abs/IPagerIndicator.java: -------------------------------------------------------------------------------- 1 | package magicindicator.buildins.commonnavigator.abs; 2 | 3 | 4 | import java.util.List; 5 | 6 | import magicindicator.buildins.commonnavigator.model.PositionData; 7 | 8 | /** 9 | * 抽象的viewpager指示器,适用于CommonNavigator 10 | * 博客: http://hackware.lucode.net 11 | * Created by hackware on 2016/6/26. 12 | */ 13 | public interface IPagerIndicator { 14 | void onPageScrolled(int position, float positionOffset, int positionOffsetPixels); 15 | 16 | void onPageSelected(int position); 17 | 18 | void onPageScrollStateChanged(int state); 19 | 20 | void onPositionDataProvide(List dataList); 21 | } 22 | -------------------------------------------------------------------------------- /library/src/main/res/layout/activity_touch_gallery.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 17 | 18 | -------------------------------------------------------------------------------- /library/src/main/res/layout/pager_navigator_layout_no_scroll.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/imgseletor/bean/Folder.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.imgseletor.bean; 2 | 3 | import android.text.TextUtils; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * 文件夹 9 | * Created by Nereo on 2015/4/7. 10 | */ 11 | public class Folder { 12 | public String name; 13 | public String path; 14 | public Image cover; 15 | public List images; 16 | 17 | @Override 18 | public boolean equals(Object o) { 19 | try { 20 | if(o==null)return false; 21 | Folder other = (Folder) o; 22 | return TextUtils.equals(other.path, path); 23 | }catch (ClassCastException e){ 24 | e.printStackTrace(); 25 | } 26 | return super.equals(o); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/base/mvp/BasePresenter.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.base.mvp; 2 | 3 | import android.app.Activity; 4 | import android.widget.Toast; 5 | 6 | import com.ray.library.retrofit.BaseApiManager; 7 | 8 | 9 | /** 10 | * Created by ray on 17/5/11. 11 | */ 12 | public abstract class BasePresenter { 13 | private static final String TAG = "BasePresenter"; 14 | protected I mView;//view接口 15 | protected Activity mContext; 16 | 17 | public BasePresenter(Activity mContext, I mView) { 18 | this.mContext = mContext; 19 | this.mView = mView; 20 | } 21 | 22 | public void onDetachView() { //销毁的时候 23 | if (mView != null) { 24 | mView = null; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/listener/OnItemClickListener.java: -------------------------------------------------------------------------------- 1 | package multiitem.listener; 2 | 3 | import android.view.View; 4 | 5 | import multiitem.adapter.holder.BaseViewHolder; 6 | 7 | 8 | /** 9 | * Item点击监听类 10 | * 11 | * @author free46000 12 | */ 13 | public abstract class OnItemClickListener implements View.OnClickListener { 14 | 15 | @Override 16 | public void onClick(View v) { 17 | BaseViewHolder viewHolder = ListenerUtil.getViewHolderByItemView(v); 18 | if (viewHolder == null) { 19 | return; 20 | } 21 | 22 | onItemClick(viewHolder); 23 | } 24 | 25 | /** 26 | * 点击回调 可以通过viewHolder get到需要的数据 27 | */ 28 | public abstract void onItemClick(BaseViewHolder viewHolder); 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/utils/WebViewUtil.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.utils; 2 | 3 | import android.webkit.WebChromeClient; 4 | import android.webkit.WebSettings; 5 | import android.webkit.WebView; 6 | import android.webkit.WebViewClient; 7 | 8 | /** 9 | * Created by Ray on 2017/12/29. 10 | */ 11 | 12 | public class WebViewUtil { 13 | 14 | public static void setWebViewSetting(WebView webView){ 15 | webView.setWebViewClient(new WebViewClient()); 16 | webView.setWebChromeClient(new WebChromeClient()); 17 | WebSettings msetting = webView.getSettings(); 18 | msetting.setJavaScriptEnabled(true); 19 | // msetting.setAllowFileAccessFromFileURLs(true); 20 | // msetting.setAllowUniversalAccessFromFileURLs(true); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /library/src/main/res/layout/view_loading.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/view/viewhelper/NetWorkErrorView.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.view.viewhelper; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.widget.LinearLayout; 7 | 8 | import com.ray.library.R; 9 | 10 | import butterknife.ButterKnife; 11 | 12 | /** 13 | * Created by wxy on 16/8/15. 14 | * 网络错误页 15 | */ 16 | public class NetWorkErrorView extends LinearLayout { 17 | public NetWorkErrorView(Context context) { 18 | super(context); 19 | initView(context); 20 | } 21 | 22 | private void initView(Context context) { 23 | View view = LayoutInflater.from(context).inflate(R.layout.view_empty, this); 24 | ButterKnife.bind(this, view); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 | org.gradle.jvmargs=-Xmx1024m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/imgseletor/view/SquaredImageView.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.imgseletor.view; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.widget.ImageView; 6 | 7 | /** An image view which always remains square with respect to its width. */ 8 | public class SquaredImageView extends ImageView { 9 | public SquaredImageView(Context context) { 10 | super(context); 11 | } 12 | 13 | public SquaredImageView(Context context, AttributeSet attrs) { 14 | super(context, attrs); 15 | } 16 | 17 | @Override 18 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 19 | super.onMeasure(widthMeasureSpec, heightMeasureSpec); 20 | setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth()); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/animation/AlphaInAnimation.java: -------------------------------------------------------------------------------- 1 | package multiitem.animation; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ObjectAnimator; 5 | import android.view.View; 6 | 7 | 8 | /** 9 | * alpha 动画 10 | * Created by free46000 on 2017/5/22. 11 | */ 12 | public class AlphaInAnimation implements BaseAnimation { 13 | 14 | private static final float DEFAULT_ALPHA_FROM = 0f; 15 | private final float mFrom; 16 | 17 | public AlphaInAnimation() { 18 | this(DEFAULT_ALPHA_FROM); 19 | } 20 | 21 | public AlphaInAnimation(float from) { 22 | mFrom = from; 23 | } 24 | 25 | @Override 26 | public Animator[] getAnimators(View view) { 27 | return new Animator[]{ObjectAnimator.ofFloat(view, "alpha", mFrom, 1f)}; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /library/src/main/java/magicindicator/buildins/commonnavigator/titles/badge/BadgeRule.java: -------------------------------------------------------------------------------- 1 | package magicindicator.buildins.commonnavigator.titles.badge; 2 | 3 | /** 4 | * 角标的定位规则 5 | * Created by hackware on 2016/7/19. 6 | */ 7 | public class BadgeRule { 8 | private BadgeAnchor mAnchor; 9 | private int mOffset; 10 | 11 | public BadgeRule(BadgeAnchor anchor, int offset) { 12 | mAnchor = anchor; 13 | mOffset = offset; 14 | } 15 | 16 | public BadgeAnchor getAnchor() { 17 | return mAnchor; 18 | } 19 | 20 | public void setAnchor(BadgeAnchor anchor) { 21 | mAnchor = anchor; 22 | } 23 | 24 | public int getOffset() { 25 | return mOffset; 26 | } 27 | 28 | public void setOffset(int offset) { 29 | mOffset = offset; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/imgseletor/view/SquareFrameLayout.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.imgseletor.view; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.widget.FrameLayout; 6 | 7 | /** 8 | * Created by nereo on 15/11/10. 9 | */ 10 | public class SquareFrameLayout extends FrameLayout { 11 | public SquareFrameLayout(Context context) { 12 | super(context); 13 | } 14 | 15 | public SquareFrameLayout(Context context, AttributeSet attrs) { 16 | super(context, attrs); 17 | } 18 | 19 | @Override 20 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 21 | super.onMeasure(widthMeasureSpec, heightMeasureSpec); 22 | setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/listener/OnItemLongClickListener.java: -------------------------------------------------------------------------------- 1 | package multiitem.listener; 2 | 3 | import android.view.View; 4 | 5 | import multiitem.adapter.holder.BaseViewHolder; 6 | 7 | 8 | /** 9 | * Item长按监听类 10 | * 11 | * @author free46000 12 | */ 13 | public abstract class OnItemLongClickListener implements View.OnLongClickListener { 14 | 15 | @Override 16 | public boolean onLongClick(View v) { 17 | BaseViewHolder viewHolder = ListenerUtil.getViewHolderByItemView(v); 18 | if (viewHolder == null) { 19 | return false; 20 | } 21 | 22 | onItemLongClick(viewHolder); 23 | return true; 24 | } 25 | 26 | /** 27 | * 点击回调 可以通过viewHolder get到需要的数据 28 | */ 29 | protected abstract void onItemLongClick(BaseViewHolder viewHolder); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /library/src/main/res/layout/mis_list_item_camera.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 18 | 19 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/listener/ListenerUtil.java: -------------------------------------------------------------------------------- 1 | package multiitem.listener; 2 | 3 | import android.util.Log; 4 | import android.view.View; 5 | 6 | import multiitem.adapter.holder.BaseViewHolder; 7 | import multiitem.common.Const; 8 | 9 | /** 10 | * @author free46000 2017/03/16 11 | * @version v1.0 12 | */ 13 | public class ListenerUtil { 14 | /** 15 | * 通过点击的item view获取到BaseViewHolder 16 | * 17 | * @return BaseViewHolder 18 | */ 19 | public static BaseViewHolder getViewHolderByItemView(View view) { 20 | Object tag = view.getTag(Const.VIEW_HOLDER_TAG); 21 | if (tag == null || !(tag instanceof BaseViewHolder)) { 22 | Log.e("BaseViewHolder", "没有通过item view的tag没获取到ViewHolder"); 23 | return null; 24 | } 25 | return (BaseViewHolder) tag; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/view/view/baseadapter/animation/AlphaInAnimation.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.view.view.baseadapter.animation; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ObjectAnimator; 5 | import android.view.View; 6 | 7 | 8 | /** 9 | * https://github.com/CymChad/BaseRecyclerViewAdapterHelper 10 | */ 11 | public class AlphaInAnimation implements BaseAnimation { 12 | 13 | private static final float DEFAULT_ALPHA_FROM = 0f; 14 | private final float mFrom; 15 | 16 | public AlphaInAnimation() { 17 | this(DEFAULT_ALPHA_FROM); 18 | } 19 | 20 | public AlphaInAnimation(float from) { 21 | mFrom = from; 22 | } 23 | 24 | @Override 25 | public Animator[] getAnimators(View view) { 26 | return new Animator[]{ObjectAnimator.ofFloat(view, "alpha", mFrom, 1f)}; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/rxjava/util/RxInterface.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.rxjava.util; 2 | 3 | /** 4 | * Created by Ray on 2018/3/7. 5 | * RX回调接口 6 | */ 7 | 8 | public class RxInterface { 9 | 10 | public interface simple { 11 | void action(); 12 | } 13 | 14 | //无条件轮训 15 | public interface intervalInterface1 { 16 | void action(long time); 17 | } 18 | 19 | //延时执行 20 | public interface delayed{ 21 | void action(); 22 | } 23 | 24 | //有条件轮训 25 | public interface intervalInterface2{ 26 | boolean isStop(); 27 | void action(long time); 28 | } 29 | 30 | //联合判断 31 | public interface combineLatest { 32 | boolean getResult(); 33 | void action(boolean b); 34 | } 35 | 36 | public interface reTryWhen{ 37 | boolean isRetry(Throwable throwable); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/item/BaseItemInput.java: -------------------------------------------------------------------------------- 1 | package multiitem.item; 2 | 3 | import android.support.annotation.NonNull; 4 | 5 | import multiitem.adapter.holder.InputHolderManager; 6 | 7 | /** 8 | * Created by free46000 on 2017/4/10. 9 | */ 10 | public abstract class BaseItemInput extends InputHolderManager implements ItemInput { 11 | protected String key; 12 | 13 | /** 14 | * @param key 录入对应key 15 | */ 16 | public BaseItemInput(String key) { 17 | this.key = key; 18 | } 19 | 20 | 21 | @NonNull 22 | @Override 23 | public String getItemTypeName() { 24 | return toString(); 25 | } 26 | 27 | @Override 28 | public InputHolderManager getViewHolderManager() { 29 | return this; 30 | } 31 | 32 | @Override 33 | public String getKey() { 34 | return key; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/rxbus/RxBus.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.rxbus; 2 | 3 | import com.hwangjr.rxbus.Bus; 4 | import com.hwangjr.rxbus.thread.ThreadEnforcer; 5 | 6 | public final class RxBus { 7 | private static Bus sBus; //主线程post 8 | private static Bus ioBus; //子线程post 9 | 10 | public static synchronized Bus get() { 11 | if (sBus == null) { 12 | sBus = new Bus(); 13 | } 14 | return sBus; 15 | } 16 | public static synchronized Bus getIO() { 17 | if (ioBus == null) { 18 | ioBus = new Bus(ThreadEnforcer.ANY); 19 | } 20 | return ioBus; 21 | } 22 | public static void register(Object o){ 23 | get().register(o); 24 | getIO().register(o); 25 | } 26 | public static void unregister(Object o){ 27 | get().unregister(o); 28 | getIO().unregister(o); 29 | } 30 | } -------------------------------------------------------------------------------- /library/src/main/java/magicindicator/abs/IPagerNavigator.java: -------------------------------------------------------------------------------- 1 | package magicindicator.abs; 2 | 3 | /** 4 | * 抽象的ViewPager导航器 5 | * 博客: http://hackware.lucode.net 6 | * Created by hackware on 2016/6/26. 7 | */ 8 | public interface IPagerNavigator { 9 | 10 | ///////////////////////// ViewPager的3个回调 11 | void onPageScrolled(int position, float positionOffset, int positionOffsetPixels); 12 | 13 | void onPageSelected(int position); 14 | 15 | void onPageScrollStateChanged(int state); 16 | ///////////////////////// 17 | 18 | /** 19 | * 当IPagerNavigator被添加到MagicIndicator时调用 20 | */ 21 | void onAttachToMagicIndicator(); 22 | 23 | /** 24 | * 当IPagerNavigator从MagicIndicator上移除时调用 25 | */ 26 | void onDetachFromMagicIndicator(); 27 | 28 | /** 29 | * ViewPager内容改变时需要先调用此方法,自定义的IPagerNavigator应当遵守此约定 30 | */ 31 | void notifyDataSetChanged(); 32 | } 33 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/item/UniqueItemManager.java: -------------------------------------------------------------------------------- 1 | package multiitem.item; 2 | 3 | import multiitem.adapter.holder.BaseViewHolder; 4 | import multiitem.adapter.holder.ViewHolderManager; 5 | 6 | /** 7 | * 唯一Item 8 | *

9 | * getItemTypeName时返回toString作为唯一标示,使得本item对应的ViewHolderManager不可复用 10 | * Created by free46000 on 2017/3/26. 11 | */ 12 | public class UniqueItemManager implements ItemManager { 13 | private ViewHolderManager manager; 14 | 15 | public UniqueItemManager(ViewHolderManager manager) { 16 | this.manager = manager; 17 | } 18 | 19 | @Override 20 | public String getItemTypeName() { 21 | return toString(); 22 | } 23 | 24 | @Override 25 | public ViewHolderManager getViewHolderManager() { 26 | return manager; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /library/src/androidTest/java/com/example/library/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.library; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.library.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /library/src/main/java/multiitem/animation/ScaleInAnimation.java: -------------------------------------------------------------------------------- 1 | package multiitem.animation; 2 | 3 | import android.animation.Animator; 4 | import android.animation.ObjectAnimator; 5 | import android.view.View; 6 | 7 | /** 8 | * scale 动画 9 | * Created by free46000 on 2017/5/22. 10 | */ 11 | public class ScaleInAnimation implements BaseAnimation { 12 | 13 | private static final float DEFAULT_SCALE_FROM = .5f; 14 | private final float mFrom; 15 | 16 | public ScaleInAnimation() { 17 | this(DEFAULT_SCALE_FROM); 18 | } 19 | 20 | public ScaleInAnimation(float from) { 21 | mFrom = from; 22 | } 23 | 24 | @Override 25 | public Animator[] getAnimators(View view) { 26 | ObjectAnimator scaleX = ObjectAnimator.ofFloat(view, "scaleX", mFrom, 1f); 27 | ObjectAnimator scaleY = ObjectAnimator.ofFloat(view, "scaleY", mFrom, 1f); 28 | return new ObjectAnimator[] { scaleX, scaleY }; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /library/src/main/java/com/ray/library/imgseletor/bean/Image.java: -------------------------------------------------------------------------------- 1 | package com.ray.library.imgseletor.bean; 2 | 3 | import android.text.TextUtils; 4 | import android.widget.ImageView; 5 | 6 | /** 7 | * 图片实体 8 | * Created by Nereo on 2015/4/7. 9 | */ 10 | public class Image { 11 | public String path; 12 | public String name; 13 | public long time; 14 | public ImageView imageView; 15 | 16 | public Image(String path, String name, long time){ 17 | this.path = path; 18 | this.name = name; 19 | this.time = time; 20 | } 21 | 22 | @Override 23 | public boolean equals(Object o) { 24 | try { 25 | if(o==null)return false; 26 | Image other = (Image) o; 27 | return TextUtils.equals(this.path, other.path); 28 | }catch (ClassCastException e){ 29 | e.printStackTrace(); 30 | } 31 | return super.equals(o); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /library/src/main/res/layout/activity_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 14 | 17 | 18 |