├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── runConfigurations.xml ├── modules.xml ├── compiler.xml └── gradle.xml ├── AndroidBase ├── .gitignore ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── android │ │ │ │ └── base │ │ │ │ ├── db │ │ │ │ ├── impl │ │ │ │ │ ├── DbCallBack.java │ │ │ │ │ └── DaoOperation.java │ │ │ │ ├── CollectionUtil.java │ │ │ │ └── ColumnStruct.java │ │ │ │ ├── frame │ │ │ │ ├── presenter │ │ │ │ │ ├── factory │ │ │ │ │ │ ├── PresenterFactory.java │ │ │ │ │ │ ├── RequiresPresenter.java │ │ │ │ │ │ ├── ReflectionPresenterFactory.java │ │ │ │ │ │ └── PresenterStorage.java │ │ │ │ │ ├── impl │ │ │ │ │ │ └── PresenterLifecycleImpl.java │ │ │ │ │ ├── XPresenter.java │ │ │ │ │ └── BasePresenter.java │ │ │ │ ├── ViewWithPresenter.java │ │ │ │ ├── Base.java │ │ │ │ └── fragment │ │ │ │ │ └── BaseFragment.java │ │ │ │ ├── util │ │ │ │ ├── adapter │ │ │ │ │ ├── MultiItemTypeSupport.java │ │ │ │ │ ├── CommonViewHolder.java │ │ │ │ │ └── WrapperUtils.java │ │ │ │ ├── ParcelFn.java │ │ │ │ ├── thread │ │ │ │ │ ├── SchedulePolicy.java │ │ │ │ │ ├── OverloadPolicy.java │ │ │ │ │ └── PriorityRunnable.java │ │ │ │ └── rxjava │ │ │ │ │ └── RxManager.java │ │ │ │ ├── http │ │ │ │ ├── impl │ │ │ │ │ └── IRetrofit.java │ │ │ │ └── BaseRestClient.java │ │ │ │ └── widget │ │ │ │ ├── pullloadmorerecyclerview │ │ │ │ └── SwipeRefreshLayoutOnRefresh.java │ │ │ │ ├── NoScrollGridView.java │ │ │ │ └── NoScrollListview.java │ │ ├── res │ │ │ ├── layout │ │ │ │ ├── empty_layout.xml │ │ │ │ └── pull_loadmore_layout.xml │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── base │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── AndroidTest ├── .gitignore ├── assets │ └── test.jpg ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── guide_1.png │ │ │ │ ├── guide_2.png │ │ │ │ ├── guide_3.png │ │ │ │ ├── guide_4.png │ │ │ │ ├── login_fanhui.png │ │ │ │ ├── login_miam.png │ │ │ │ ├── login_dengluhao.png │ │ │ │ ├── login_yanzhengma.png │ │ │ │ └── login_zaicishurumima.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_delete.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_game_detail.png │ │ │ ├── drawable-hdpi │ │ │ │ ├── error_photo.png │ │ │ │ ├── go_top_icon.png │ │ │ │ ├── login_miam.png │ │ │ │ ├── daili_yuanquan.png │ │ │ │ ├── login_fanhui.png │ │ │ │ ├── point_focused.png │ │ │ │ ├── daili_xuanzhong.png │ │ │ │ ├── default_head_pic.jpg │ │ │ │ ├── login_dengluhao.png │ │ │ │ ├── login_yanzhengma.png │ │ │ │ ├── point_unfocused.png │ │ │ │ ├── wode_weixinzhifu.png │ │ │ │ ├── wode_zijin_dise.png │ │ │ │ ├── widget_bar_me_nor.png │ │ │ │ ├── widget_bar_me_over.png │ │ │ │ ├── widget_bar_news_nor.png │ │ │ │ ├── wode_zhifubaozhifu.png │ │ │ │ ├── yidengl_jjtx_icon.png │ │ │ │ ├── yidengl_liszj_icon.png │ │ │ │ ├── yidengl_shez_icon.png │ │ │ │ ├── yidengl_shouc_icon.png │ │ │ │ ├── yidengl_yijfk_icon.png │ │ │ │ ├── yidengl_yonghm_bg.png │ │ │ │ ├── yidengl_yonghm_icon.png │ │ │ │ ├── default_viewpager_pic.png │ │ │ │ ├── login_zaicishurumima.png │ │ │ │ ├── widget_bar_news_over.png │ │ │ │ ├── widget_bar_tweet_nor.png │ │ │ │ ├── widget_bar_tweet_over.png │ │ │ │ ├── yidengl_lianxwm_icon.png │ │ │ │ ├── item_waterfall_icon_good.png │ │ │ │ ├── item_waterfall_icon_star.png │ │ │ │ ├── widget_bar_explore_nor.png │ │ │ │ ├── widget_bar_explore_over.png │ │ │ │ ├── drawer_menu_icon_blog_nor.png │ │ │ │ ├── drawer_menu_icon_quest_nor.png │ │ │ │ ├── drawer_menu_icon_gitapp_nor.png │ │ │ │ ├── drawer_menu_icon_opensoft_nor.png │ │ │ │ └── item_waterfall_icon_comments.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── login_miam.png │ │ │ │ ├── login_dengluhao.png │ │ │ │ ├── login_yanzhengma.png │ │ │ │ ├── tuijian_rexiaopin.png │ │ │ │ ├── tuijian_touxiang6.png │ │ │ │ ├── btn_quickoption_nor.png │ │ │ │ ├── login_zaicishurumima.png │ │ │ │ ├── tuijian_xinpintuijia.png │ │ │ │ ├── btn_quickoption_pressed.png │ │ │ │ ├── tuijian_pinpaituijian.png │ │ │ │ └── tuijian_dailishangpaihangbang.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── layout │ │ │ │ ├── activity_test_zhihu_main.xml │ │ │ │ ├── item_recyclerview_list.xml │ │ │ │ ├── activity_test_recyclerview.xml │ │ │ │ ├── layout_loading.xml │ │ │ │ ├── layout_empty.xml │ │ │ │ ├── item_default_loading.xml │ │ │ │ ├── activity_test_ormlite.xml │ │ │ │ ├── layout_error.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_test_retrofit.xml │ │ │ │ ├── activity_test_retrofit.xml │ │ │ │ └── base_nav_content.xml │ │ │ ├── drawable │ │ │ │ ├── selector_banner_point2.xml │ │ │ │ ├── selector_btn_stroke_orange.xml │ │ │ │ ├── shape_edit_stroke.xml │ │ │ │ ├── btn_quickoption_selector.xml │ │ │ │ ├── shape_btn_edge_orange.xml │ │ │ │ ├── shape_btn_edge_orange_pre.xml │ │ │ │ ├── divider_bg.xml │ │ │ │ ├── tab_icon_me.xml │ │ │ │ ├── tab_icon_new.xml │ │ │ │ ├── tab_icon_tweet.xml │ │ │ │ ├── tab_icon_explore.xml │ │ │ │ ├── selector_banner_point1.xml │ │ │ │ ├── selector_btn_orange.xml │ │ │ │ └── selector_pay_radio.xml │ │ │ ├── color │ │ │ │ └── tab_primarybar_txt.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── menu │ │ │ │ ├── menu_main.xml │ │ │ │ ├── menu_sample.xml │ │ │ │ └── menu_zhihu_nav.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── hwm │ │ │ │ └── test │ │ │ │ ├── http │ │ │ │ ├── model │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── ThemeDetail.java │ │ │ │ │ │ ├── AllThemes.java │ │ │ │ │ │ ├── ThemeItem.java │ │ │ │ │ │ ├── StartInfo.java │ │ │ │ │ │ ├── NewsDetail.java │ │ │ │ │ │ ├── News.java │ │ │ │ │ │ └── TopStories.java │ │ │ │ │ ├── http │ │ │ │ │ │ ├── ApiConstant.java │ │ │ │ │ │ ├── GeyeService.java │ │ │ │ │ │ ├── GeyeClient.java │ │ │ │ │ │ ├── ZhihuClient.java │ │ │ │ │ │ ├── RetrofitServiceFactory.java │ │ │ │ │ │ └── ZhihuService.java │ │ │ │ │ └── RetrofitModel.java │ │ │ │ └── presenter │ │ │ │ │ ├── RetrofitContract.java │ │ │ │ │ └── RetrofitPresenter.java │ │ │ │ ├── db │ │ │ │ ├── model │ │ │ │ │ ├── dao │ │ │ │ │ │ ├── CityDao.java │ │ │ │ │ │ ├── DeptDao.java │ │ │ │ │ │ └── UserDao.java │ │ │ │ │ ├── IOrmLiteTask.java │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── Dept.java │ │ │ │ │ │ ├── User.java │ │ │ │ │ │ └── City.java │ │ │ │ │ └── DatabaseHelper.java │ │ │ │ ├── presenter │ │ │ │ │ ├── OrmLiteContract.java │ │ │ │ │ └── OrmLitePresenter.java │ │ │ │ ├── view │ │ │ │ │ └── OrmLiteFragment.java │ │ │ │ └── OrmLiteActivity.java │ │ │ │ ├── recyclerview │ │ │ │ ├── adapter │ │ │ │ │ └── RecyclerViewAdapter.java │ │ │ │ ├── HeaderWrapper.java │ │ │ │ └── LoadMoreFooter.java │ │ │ │ ├── MyApplication.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── test │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── AndroidWidget ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── banner_ids.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── pull_refresh_ids.xml │ │ │ │ ├── pull_refresh_dimens.xml │ │ │ │ ├── pull_refresh_strings.xml │ │ │ │ ├── attrs.xml │ │ │ │ └── banner_attrs.xml │ │ │ ├── drawable-hdpi │ │ │ │ ├── default_ptr_flip.png │ │ │ │ ├── indicator_arrow.png │ │ │ │ └── default_ptr_rotate.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── default_ptr_flip.png │ │ │ │ ├── indicator_arrow.png │ │ │ │ └── default_ptr_rotate.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── default_ptr_flip.png │ │ │ │ ├── indicator_arrow.png │ │ │ │ └── default_ptr_rotate.png │ │ │ ├── drawable │ │ │ │ ├── background_tab.xml │ │ │ │ ├── selector_basebanner_point.xml │ │ │ │ ├── indicator_bg_top.xml │ │ │ │ └── indicator_bg_bottom.xml │ │ │ ├── anim │ │ │ │ ├── slide_in_from_bottom.xml │ │ │ │ ├── slide_in_from_top.xml │ │ │ │ ├── slide_out_to_bottom.xml │ │ │ │ └── slide_out_to_top.xml │ │ │ └── layout │ │ │ │ ├── pull_to_refresh_header_horizontal.xml │ │ │ │ └── pull_to_refresh_header_vertical.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── android │ │ │ └── base │ │ │ └── widget │ │ │ ├── pulltorefresh │ │ │ ├── internal │ │ │ │ ├── Utils.java │ │ │ │ ├── EmptyViewMethodAccessor.java │ │ │ │ └── ViewCompat.java │ │ │ ├── ILoadingLayout.java │ │ │ ├── LoadingLayoutProxy.java │ │ │ ├── PullToRefreshViewPager.java │ │ │ └── PullToRefreshRecyclerView.java │ │ │ ├── banner │ │ │ ├── transformer │ │ │ │ ├── DefaultPageTransformer.java │ │ │ │ ├── StackPageTransformer.java │ │ │ │ ├── AccordionPageTransformer.java │ │ │ │ ├── FadePageTransformer.java │ │ │ │ ├── AlphaPageTransformer.java │ │ │ │ ├── BGAPageTransformer.java │ │ │ │ ├── ZoomFadePageTransformer.java │ │ │ │ ├── FlipPageTransformer.java │ │ │ │ ├── RotatePageTransformer.java │ │ │ │ ├── DepthPageTransformer.java │ │ │ │ ├── CubePageTransformer.java │ │ │ │ ├── ZoomCenterPageTransformer.java │ │ │ │ ├── ZoomStackPageTransformer.java │ │ │ │ └── ZoomPageTransformer.java │ │ │ └── PageChangeDurationScroller.java │ │ │ ├── recyclerview │ │ │ ├── HeaderSpanSizeLookup.java │ │ │ └── layoutmanager │ │ │ │ └── ExStaggeredGridLayoutManager.java │ │ │ └── DynamicHeightImageView.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── base │ │ └── widget │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── huangwm.keystore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md ├── gradle.properties ├── MyAndroidBase.iml ├── .gitignore └── gradlew.bat /.idea/.name: -------------------------------------------------------------------------------- 1 | AndroidBase -------------------------------------------------------------------------------- /AndroidBase/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /AndroidTest/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /AndroidWidget/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':AndroidBase', ':AndroidWidget', ':AndroidTest' 2 | -------------------------------------------------------------------------------- /huangwm.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/huangwm.keystore -------------------------------------------------------------------------------- /AndroidTest/assets/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/assets/test.jpg -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/guide_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/guide_1.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/guide_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/guide_2.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/guide_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/guide_3.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/guide_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/guide_4.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-xxhdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-xxhdpi/ic_delete.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/error_photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/error_photo.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/go_top_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/go_top_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/login_miam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/login_miam.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/login_miam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/login_miam.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/daili_yuanquan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/daili_yuanquan.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/login_fanhui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/login_fanhui.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/point_focused.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/point_focused.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/login_fanhui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/login_fanhui.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/login_miam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/login_miam.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-xxhdpi/ic_game_detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-xxhdpi/ic_game_detail.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/daili_xuanzhong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/daili_xuanzhong.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/default_head_pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/default_head_pic.jpg -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/login_dengluhao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/login_dengluhao.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/login_yanzhengma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/login_yanzhengma.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/point_unfocused.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/point_unfocused.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/wode_weixinzhifu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/wode_weixinzhifu.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/wode_zijin_dise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/wode_zijin_dise.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/login_dengluhao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/login_dengluhao.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/banner_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #6633B5E5 4 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_me_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_me_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_me_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_me_over.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_news_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_news_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/wode_zhifubaozhifu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/wode_zhifubaozhifu.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_jjtx_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_jjtx_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_liszj_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_liszj_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_shez_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_shez_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_shouc_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_shouc_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_yijfk_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_yijfk_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_yonghm_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_yonghm_bg.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_yonghm_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_yonghm_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/login_yanzhengma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/login_yanzhengma.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/tuijian_rexiaopin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/tuijian_rexiaopin.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/tuijian_touxiang6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/tuijian_touxiang6.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/login_dengluhao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/login_dengluhao.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/login_yanzhengma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/login_yanzhengma.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-hdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-hdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-hdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-hdpi/indicator_arrow.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-mdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-mdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-mdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-mdpi/indicator_arrow.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-xhdpi/default_ptr_flip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-xhdpi/default_ptr_flip.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-xhdpi/indicator_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-xhdpi/indicator_arrow.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/default_viewpager_pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/default_viewpager_pic.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/login_zaicishurumima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/login_zaicishurumima.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_news_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_news_over.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_tweet_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_tweet_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_tweet_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_tweet_over.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/yidengl_lianxwm_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/yidengl_lianxwm_icon.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/btn_quickoption_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/btn_quickoption_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/login_zaicishurumima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/login_zaicishurumima.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/tuijian_xinpintuijia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/tuijian_xinpintuijia.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-hdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-hdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-mdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-mdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable-xhdpi/default_ptr_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidWidget/src/main/res/drawable-xhdpi/default_ptr_rotate.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_good.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_star.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_explore_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_explore_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/widget_bar_explore_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/widget_bar_explore_over.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/btn_quickoption_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/btn_quickoption_pressed.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/tuijian_pinpaituijian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/tuijian_pinpaituijian.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xxhdpi/login_zaicishurumima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xxhdpi/login_zaicishurumima.png -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AndroidWidget 3 | Unknown error 4 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_blog_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_blog_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_quest_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_quest_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_gitapp_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_gitapp_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_opensoft_nor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/drawer_menu_icon_opensoft_nor.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-hdpi/item_waterfall_icon_comments.png -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable-xhdpi/tuijian_dailishangpaihangbang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huangwm1984/AndroidBase/HEAD/AndroidTest/src/main/res/drawable-xhdpi/tuijian_dailishangpaihangbang.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/entity/ThemeDetail.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.entity; 2 | 3 | /** 4 | * Created by Administrator on 2016/5/23. 5 | */ 6 | public class ThemeDetail { 7 | 8 | 9 | 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/db/impl/DbCallBack.java: -------------------------------------------------------------------------------- 1 | package com.android.base.db.impl; 2 | 3 | /** 4 | * 数据库操作回调 5 | */ 6 | public interface DbCallBack { 7 | 8 | void onComplete(Object data); 9 | 10 | void onError(Object errorMsg); 11 | } 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 20 15:32:18 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/frame/presenter/factory/PresenterFactory.java: -------------------------------------------------------------------------------- 1 | package com.android.base.frame.presenter.factory; 2 | 3 | 4 | import com.android.base.frame.presenter.XPresenter; 5 | 6 | public interface PresenterFactory

{ 7 | P createPresenter(); 8 | } 9 | -------------------------------------------------------------------------------- /AndroidBase/src/main/res/layout/empty_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/activity_test_zhihu_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/selector_banner_point2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/db/impl/DaoOperation.java: -------------------------------------------------------------------------------- 1 | package com.android.base.db.impl; 2 | 3 | 4 | public interface DaoOperation { 5 | 6 | int INSERT = 1; 7 | int DELETE = 2; 8 | int UPDATE = 3; 9 | int SELECT = 4; 10 | int INSERT_BATCH = 5; 11 | int DELETE_BATCH = 6; 12 | int UPDATE_BATCH = 7; 13 | } 14 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/util/adapter/MultiItemTypeSupport.java: -------------------------------------------------------------------------------- 1 | package com.android.base.util.adapter; 2 | 3 | /** 4 | * Created by Administrator on 2016/9/22. 5 | */ 6 | public interface MultiItemTypeSupport { 7 | 8 | int getLayoutId(int viewType); 9 | 10 | int getItemViewType(int position, T t); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/color/tab_primarybar_txt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 10dp 7 | 8 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/pull_refresh_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/selector_btn_stroke_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /AndroidBase/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/http/ApiConstant.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.http; 2 | 3 | /** 4 | * Created by Administrator on 2016/4/27. 5 | */ 6 | public class ApiConstant { 7 | 8 | public static final String BASE_ZHIHU_URL = "http://news-at.zhihu.com/"; 9 | 10 | public static final String BASE_GEYE_URL = "http://110.84.128.74:8081/geyeapi/"; 11 | } 12 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/shape_edit_stroke.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/http/impl/IRetrofit.java: -------------------------------------------------------------------------------- 1 | package com.android.base.http.impl; 2 | 3 | import android.content.Context; 4 | 5 | /** 6 | * Created by Administrator on 2016/4/29. 7 | */ 8 | public interface IRetrofit { 9 | 10 | void attachBaseUrl(Context context, String baseUrl); 11 | 12 | T createService(Class clz); 13 | 14 | void destory(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/btn_quickoption_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/shape_btn_edge_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 采用谷歌官方MVP架构以及RxJava对项目进行封装重构,持续更新中... 2 | 3 | 1.网络请求框架:Retrofit 4 | 5 | 2.View依赖注入框架:ButterKnife 6 | 7 | 3.数据库框架:Ormlite 8 | 9 | 4.图片异步加载类库:Glide 10 | 11 | 5.事件总线:RxEventbus 12 | 13 | 6.Json解析工具:FastJson 14 | 15 | 7.ListView、GridView、RecyclerView快速开发适配器 16 | 17 | 8.GooleSamples 对 Android 6.0 Permission 封装 EasyPermissions 18 | 19 | 9.收集的各种便捷开发的工具类 20 | 21 | 最后感谢 github 上大神的开源框架和开源精神 (●'◡'●)ノ♥ 22 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/shape_btn_edge_orange_pre.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/item_recyclerview_list.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/divider_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/pull_refresh_dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10dp 5 | 12dp 6 | 4dp 7 | 24dp 8 | 12dp 9 | 10 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/frame/presenter/impl/PresenterLifecycleImpl.java: -------------------------------------------------------------------------------- 1 | package com.android.base.frame.presenter.impl; 2 | 3 | /** 4 | * Created by Administrator on 2016/9/19. 5 | */ 6 | public interface PresenterLifecycleImpl { 7 | 8 | void onCreated(Object view); 9 | 10 | void onStart(); 11 | 12 | void onResume(); 13 | 14 | void onPause(); 15 | 16 | void onStop(); 17 | 18 | void onDestroy(); 19 | } 20 | -------------------------------------------------------------------------------- /AndroidBase/src/androidTest/java/com/android/base/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.android.base; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /AndroidTest/src/androidTest/java/com/android/test/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.android.test; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /AndroidTest/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 |

5 | 9 | 10 | -------------------------------------------------------------------------------- /AndroidWidget/src/androidTest/java/com/android/base/widget/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.android.base.widget; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /AndroidWidget/src/main/java/com/android/base/widget/pulltorefresh/internal/Utils.java: -------------------------------------------------------------------------------- 1 | package com.android.base.widget.pulltorefresh.internal; 2 | 3 | import android.util.Log; 4 | 5 | public class Utils { 6 | 7 | static final String LOG_TAG = "PullToRefresh"; 8 | 9 | public static void warnDeprecation(String depreacted, String replacement) { 10 | Log.w(LOG_TAG, "You're using the deprecated " + depreacted + " attr, please switch over to " + replacement); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable/background_tab.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/tab_icon_me.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/tab_icon_new.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/tab_icon_tweet.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/tab_icon_explore.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/activity_test_recyclerview.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/http/GeyeService.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.http; 2 | 3 | import com.hwm.test.http.model.entity.Geye; 4 | 5 | import retrofit2.http.Field; 6 | import retrofit2.http.FormUrlEncoded; 7 | import retrofit2.http.POST; 8 | import rx.Observable; 9 | 10 | /** 11 | * Created by huangwm on 2016/4/30. 12 | */ 13 | public interface GeyeService { 14 | 15 | @FormUrlEncoded 16 | @POST("geye/getRtsp") 17 | Observable getGeyeData(@Field("geyeId") String geyeId, @Field("isNeedff") String isNeedff); 18 | } 19 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/layout_loading.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/selector_banner_point1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/selector_btn_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /AndroidWidget/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 15 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(include: ['*.jar'], dir: 'libs') 23 | compile project(':AndroidBase') 24 | } 25 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable/selector_basebanner_point.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/db/CollectionUtil.java: -------------------------------------------------------------------------------- 1 | package com.android.base.db; 2 | 3 | import java.util.List; 4 | 5 | public class CollectionUtil { 6 | 7 | /** 8 | * 集合中是否存在指定元素 9 | * 10 | * @param value 指定字符 11 | * @param list 集合 12 | * @return 13 | */ 14 | public static boolean existValue(String value, List list) { 15 | if (list == null || value == null) { 16 | return false; 17 | } 18 | for (String str : list) { 19 | if (value.equals(str)) { 20 | return true; 21 | } 22 | } 23 | return false; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/java/com/android/base/widget/banner/transformer/DefaultPageTransformer.java: -------------------------------------------------------------------------------- 1 | package com.android.base.widget.banner.transformer; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * 作者:王浩 邮件:bingoogolapple@gmail.com 7 | * 创建时间:15/6/19 上午8:41 8 | * 描述: 9 | */ 10 | public class DefaultPageTransformer extends BGAPageTransformer { 11 | 12 | @Override 13 | public void handleInvisiblePage(View view, float position) { 14 | } 15 | 16 | @Override 17 | public void handleLeftPage(View view, float position) { 18 | } 19 | 20 | @Override 21 | public void handleRightPage(View view, float position) { 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/entity/AllThemes.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.entity; 2 | 3 | import java.util.Arrays; 4 | 5 | /** 6 | * Created by Administrator on 2016/5/23. 7 | */ 8 | public class AllThemes { 9 | 10 | public int limit; 11 | 12 | public Object[] subscribed; 13 | 14 | public ThemeItem[] others; 15 | 16 | public String toString() { 17 | return "GetAllThemesResponse{" + 18 | "limit=" + limit + 19 | ", subscribed=" + Arrays.toString(subscribed) + 20 | ", others=" + Arrays.toString(others) + 21 | "} " + super.toString(); 22 | } 23 | 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable/indicator_bg_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/drawable/indicator_bg_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/entity/ThemeItem.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.entity; 2 | 3 | /** 4 | * Created by Administrator on 2016/5/23. 5 | */ 6 | public class ThemeItem { 7 | 8 | public int id; 9 | 10 | public String name; 11 | 12 | public String thumbnail; 13 | 14 | public String description; 15 | 16 | public int color; 17 | 18 | public String toString() { 19 | return "ThemeItem{" + 20 | "id=" + id + 21 | ", name='" + name + '\'' + 22 | ", thumbnail='" + thumbnail + '\'' + 23 | ", description='" + description + '\'' + 24 | ", color=" + color + 25 | '}'; 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/db/model/dao/CityDao.java: -------------------------------------------------------------------------------- 1 | /* 2 | package com.hwm.test.db.model.dao; 3 | 4 | import android.content.Context; 5 | 6 | import com.android.base.db.BaseRxDao; 7 | import com.hwm.test.db.model.DatabaseHelper; 8 | import com.hwm.test.db.model.entity.City; 9 | import com.j256.ormlite.dao.Dao; 10 | 11 | */ 12 | /** 13 | * Created by Administrator on 2016/5/5. 14 | *//* 15 | 16 | public class CityDao extends BaseRxDao { 17 | 18 | public CityDao(Context context, Class cls) { 19 | super(context, cls); 20 | } 21 | 22 | @Override 23 | public Dao getOrmLiteDao(Context context) { 24 | return DatabaseHelper.getInstance(context).getDao(City.class); 25 | } 26 | } 27 | */ 28 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/db/model/dao/DeptDao.java: -------------------------------------------------------------------------------- 1 | /* 2 | package com.hwm.test.db.model.dao; 3 | 4 | import android.content.Context; 5 | 6 | import com.android.base.db.BaseRxDao; 7 | import com.hwm.test.db.model.DatabaseHelper; 8 | import com.hwm.test.db.model.entity.Dept; 9 | import com.j256.ormlite.dao.Dao; 10 | 11 | */ 12 | /** 13 | * Created by Administrator on 2016/5/5. 14 | *//* 15 | 16 | public class DeptDao extends BaseRxDao { 17 | 18 | public DeptDao(Context context, Class cls) { 19 | super(context, cls); 20 | } 21 | 22 | @Override 23 | public Dao getOrmLiteDao(Context context) { 24 | return DatabaseHelper.getInstance(context).getDao(Dept.class); 25 | } 26 | } 27 | */ 28 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/db/model/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | /* 2 | package com.hwm.test.db.model.dao; 3 | 4 | import android.content.Context; 5 | 6 | import com.android.base.db.BaseRxDao; 7 | import com.hwm.test.db.model.DatabaseHelper; 8 | import com.hwm.test.db.model.entity.User; 9 | import com.j256.ormlite.dao.Dao; 10 | 11 | */ 12 | /** 13 | * Created by Administrator on 2016/5/5. 14 | *//* 15 | 16 | public class UserDao extends BaseRxDao{ 17 | 18 | 19 | public UserDao(Context context, Class cls) { 20 | super(context, cls); 21 | } 22 | 23 | @Override 24 | public Dao getOrmLiteDao(Context context) { 25 | return DatabaseHelper.getInstance(context).getDao(User.class); 26 | } 27 | } 28 | */ 29 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/layout_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/res/values/pull_refresh_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 下拉刷新… 4 | 放开以刷新… 5 | 正在载入… 6 | 7 | 8 | @string/pull_to_refresh_pull_label 9 | @string/pull_to_refresh_release_label 10 | @string/pull_to_refresh_refreshing_label 11 | 12 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/item_default_loading.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 21 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/db/model/IOrmLiteTask.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.db.model; 2 | 3 | /** 4 | * Created by Administrator on 2016/5/5. 5 | */ 6 | public interface IOrmLiteTask { 7 | 8 | void testSave(); 9 | 10 | void testInsert(); 11 | 12 | void testUpdate(); 13 | 14 | void testUpdateColumn(); 15 | 16 | void testQueryAll(); 17 | 18 | void testQueryByWhere(); 19 | 20 | void testQueryByID(); 21 | 22 | void testQueryAnyUwant(); 23 | 24 | void testMapping(); 25 | 26 | void testDelete(); 27 | 28 | void testDeleteByIndex(); 29 | 30 | void testDeleteByWhereBuilder(); 31 | 32 | void testDeleteAll(); 33 | 34 | void testLargeScaleUseLite(); 35 | 36 | void testLargeScaleUseSystem(); 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /AndroidWidget/src/main/java/com/android/base/widget/banner/transformer/StackPageTransformer.java: -------------------------------------------------------------------------------- 1 | package com.android.base.widget.banner.transformer; 2 | 3 | import android.view.View; 4 | 5 | import com.nineoldandroids.view.ViewHelper; 6 | 7 | /** 8 | * 作者:王浩 邮件:bingoogolapple@gmail.com 9 | * 创建时间:15/6/19 上午8:41 10 | * 描述: 11 | */ 12 | public class StackPageTransformer extends BGAPageTransformer { 13 | 14 | @Override 15 | public void handleInvisiblePage(View view, float position) { 16 | } 17 | 18 | @Override 19 | public void handleLeftPage(View view, float position) { 20 | } 21 | 22 | @Override 23 | public void handleRightPage(View view, float position) { 24 | ViewHelper.setTranslationX(view, -view.getWidth() * position); 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /AndroidBase/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Development\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /AndroidTest/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Development\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /AndroidWidget/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Development\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/activity_test_ormlite.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 12 | 13 | 14 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/drawable/selector_pay_radio.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AndroidBase/src/main/java/com/android/base/util/ParcelFn.java: -------------------------------------------------------------------------------- 1 | package com.android.base.util; 2 | 3 | import android.os.Parcel; 4 | 5 | public class ParcelFn { 6 | 7 | private static final ClassLoader CLASS_LOADER = ParcelFn.class.getClassLoader(); 8 | 9 | public static T unmarshall(byte[] array) { 10 | Parcel parcel = Parcel.obtain(); 11 | parcel.unmarshall(array, 0, array.length); 12 | parcel.setDataPosition(0); 13 | Object value = parcel.readValue(CLASS_LOADER); 14 | parcel.recycle(); 15 | return (T)value; 16 | } 17 | 18 | public static byte[] marshall(Object o) { 19 | Parcel parcel = Parcel.obtain(); 20 | parcel.writeValue(o); 21 | byte[] result = parcel.marshall(); 22 | parcel.recycle(); 23 | return result; 24 | } 25 | } -------------------------------------------------------------------------------- /AndroidTest/src/main/java/com/hwm/test/http/model/entity/StartInfo.java: -------------------------------------------------------------------------------- 1 | package com.hwm.test.http.model.entity; 2 | 3 | /** 4 | * Created by Administrator on 2016/5/20. 5 | */ 6 | public class StartInfo { 7 | 8 | public String text; 9 | 10 | public String img; 11 | 12 | public String getText() { 13 | return text; 14 | } 15 | 16 | public String getImg() { 17 | return img; 18 | } 19 | 20 | public void setText(String text) { 21 | this.text = text; 22 | } 23 | 24 | public void setImg(String img) { 25 | this.img = img; 26 | } 27 | 28 | public String toString() { 29 | return "StartInfoResponse{" + 30 | "text='" + text + '\'' + 31 | ", img='" + img + '\'' + 32 | "} " + super.toString(); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /AndroidTest/src/main/res/layout/layout_error.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 |