├── .gitignore ├── .idea ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── README.md ├── app ├── build.gradle ├── libs │ ├── GDTUnionSDK.TBS.4.19.574.min.jar │ ├── SocialSDK_QQ_Simplify.jar │ ├── SocialSDK_WeChat_Simplify.jar │ ├── android-query-full.0.26.7.jar │ ├── httpmime-4.1.3.jar │ ├── open_sdk_r5509.jar │ ├── umeng_social_api.jar │ ├── umeng_social_net.jar │ └── umeng_social_tool.jar ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── stx │ │ └── xhb │ │ └── dmgameapp │ │ ├── DmgApplication.java │ │ ├── base │ │ ├── BaseAppActitity.java │ │ └── BaseEntity.java │ │ ├── config │ │ ├── API.java │ │ ├── ApiService.java │ │ └── Constants.java │ │ ├── data │ │ ├── TasksDataSource.java │ │ ├── body │ │ │ ├── FindPwdContent.java │ │ │ ├── GameClassifyContent.java │ │ │ ├── GameContent.java │ │ │ ├── GameRankContent.java │ │ │ ├── GetHotCommentContent.java │ │ │ ├── LoginContent.java │ │ │ ├── NewsAboutContent.java │ │ │ ├── NewsContent.java │ │ │ ├── PostCommentContent.java │ │ │ ├── RegisterContent.java │ │ │ ├── ReplyCommentContent.java │ │ │ └── SendSmsContent.java │ │ ├── callback │ │ │ ├── LoadTaskCallback.java │ │ │ └── TaskObserver.java │ │ ├── entity │ │ │ ├── CommentListBean.java │ │ │ ├── CommentsBean.java │ │ │ ├── CommonContentBean.java │ │ │ ├── ForumBean.java │ │ │ ├── ForumChannelListBean.java │ │ │ ├── ForumListBean.java │ │ │ ├── GameBean.java │ │ │ ├── GameChannelListBean.java │ │ │ ├── GameListBean.java │ │ │ ├── GameNewsListBean.java │ │ │ ├── GameRankBean.java │ │ │ ├── GameVideoBean.java │ │ │ ├── HotGameBean.java │ │ │ ├── NewsAboutBean.java │ │ │ ├── NewsChannelListBean.java │ │ │ ├── NewsContentBean.java │ │ │ ├── NewsListBean.java │ │ │ ├── NewsPageBean.java │ │ │ ├── PassportBean.java │ │ │ ├── PostCommentRepsonse.java │ │ │ ├── ReplyPassportBean.java │ │ │ ├── SaleGameBean.java │ │ │ ├── UserInfoBean.java │ │ │ └── VideoListBean.java │ │ └── remote │ │ │ └── TasksRepositoryProxy.java │ │ ├── http │ │ ├── ApiException.java │ │ ├── BaseResponse.java │ │ ├── CacheInterceptor.java │ │ ├── HttpManager.java │ │ ├── HttpResult.java │ │ ├── HttpResultSubscriber.java │ │ ├── NormalInterceptor.java │ │ ├── TransformUtils.java │ │ └── https │ │ │ └── HttpsUtils.java │ │ ├── mvp │ │ ├── contract │ │ │ ├── GetChinesizeListContract.java │ │ │ ├── GetCommentListContract.java │ │ │ ├── GetForumChannelContract.java │ │ │ ├── GetForumDetailsListContract.java │ │ │ ├── GetForumListContract.java │ │ │ ├── GetGameListContract.java │ │ │ ├── GetNewsDetailsContract.java │ │ │ ├── GetNewsListContract.java │ │ │ ├── GetRankGameContract.java │ │ │ ├── GetSaleListContract.java │ │ │ ├── GetVideoContract.java │ │ │ ├── LoginContract.java │ │ │ └── RegisterContract.java │ │ ├── presenter │ │ │ ├── GetChinesizeListPresenter.java │ │ │ ├── GetCommentListPresenter.java │ │ │ ├── GetForumChannelPresenter.java │ │ │ ├── GetForumDetailsListPresenter.java │ │ │ ├── GetForumListPresenter.java │ │ │ ├── GetGameListPresenter.java │ │ │ ├── GetNewsDetailsPresenter.java │ │ │ ├── GetNewsListPresenter.java │ │ │ ├── GetRankGamePresenter.java │ │ │ ├── GetSaleListPresenter.java │ │ │ ├── GetVideoListPresenter.java │ │ │ ├── LoginPresenter.java │ │ │ └── RegisterPresenter.java │ │ └── ui │ │ │ ├── activity │ │ │ ├── AboutActivity.java │ │ │ ├── ForumListActivity.java │ │ │ ├── GameDetailsActivity.java │ │ │ ├── LoginActivity.java │ │ │ ├── MainActivity.java │ │ │ ├── NewsDetailsActivity.java │ │ │ ├── RegisterActivity.java │ │ │ ├── SettingActivity.java │ │ │ ├── SplashActivity.java │ │ │ └── WebDetailsActivity.java │ │ │ ├── adapter │ │ │ ├── CommentListAdapter.java │ │ │ ├── ForumDetailsListAdapter.java │ │ │ ├── ForumListAdapter.java │ │ │ ├── ForumViewPagerFragmentAdapter.java │ │ │ ├── GameAdapter.java │ │ │ ├── GameCommonAdapter.java │ │ │ ├── GameListAdapter.java │ │ │ ├── GameNewsListAdapter.java │ │ │ ├── GameRankAdapter.java │ │ │ ├── GameVideoListAdapter.java │ │ │ ├── GameViewPagerFragmentAdapter.java │ │ │ ├── MainFragmentPageAdapter.java │ │ │ ├── NewsAboutAdapter.java │ │ │ ├── NewsCommonAdapter.java │ │ │ ├── NewsDetailsAdapter.java │ │ │ ├── NewsViewPagerFragmentAdapter.java │ │ │ ├── SubCommentListAdapter.java │ │ │ ├── VideoDetailsAdapter.java │ │ │ ├── VideoDetailsListAdapter.java │ │ │ ├── VideoListAdapter.java │ │ │ └── viewholder │ │ │ │ ├── ForumDetailsListViewHodler.java │ │ │ │ ├── ForumListViewHodler.java │ │ │ │ ├── GameAdViewHolder.java │ │ │ │ ├── GameCommonViewHolder.java │ │ │ │ ├── GameListViewHolder.java │ │ │ │ ├── GameRankViewHolder.java │ │ │ │ ├── GameViewHolder.java │ │ │ │ ├── NewsAboutViewHolder.java │ │ │ │ ├── NewsAdViewHolder.java │ │ │ │ ├── NewsCommentViewHolder.java │ │ │ │ ├── NewsCommonViewHolder.java │ │ │ │ ├── VideoDetailsItemViewHolder.java │ │ │ │ └── VideoListViewHolder.java │ │ │ ├── dialog │ │ │ └── PostCommentDilaog.java │ │ │ ├── fragment │ │ │ ├── CommentListFragment.java │ │ │ ├── ForumCommonFragment.java │ │ │ └── NewsDetailsFragment.java │ │ │ ├── game │ │ │ ├── CategoryFragment.java │ │ │ ├── ChinesizeFragment.java │ │ │ ├── GameRankFragment.java │ │ │ ├── HotGameFragment.java │ │ │ └── SaleFragment.java │ │ │ ├── main │ │ │ ├── ForumFragment.java │ │ │ ├── GameFragment.java │ │ │ ├── InfoFragment.java │ │ │ └── UserFragment.java │ │ │ └── news │ │ │ ├── FunsFragment.java │ │ │ ├── HotNewsFragment.java │ │ │ ├── NewsFragment.java │ │ │ ├── OriginalFragment.java │ │ │ └── VideoFragment.java │ │ ├── share │ │ ├── ShareAdapter.java │ │ ├── ShareChannel.java │ │ ├── ShareDialog.java │ │ └── ShareUtils.java │ │ ├── utils │ │ ├── AppUser.java │ │ ├── JsonParser.java │ │ ├── JsonResponse.java │ │ ├── RequestBodyHelper.java │ │ └── ToastUtil.java │ │ ├── web │ │ └── MyWebViewClient.java │ │ ├── widget │ │ ├── FullyLinearLayoutManager.java │ │ ├── LoadingView │ │ │ ├── LVCircularSmile.java │ │ │ └── LVNews.java │ │ ├── TipsToast.java │ │ └── widget │ │ │ ├── CustomTitlebar.java │ │ │ ├── LoadingView │ │ │ ├── LVCircularSmile.java │ │ │ └── LVNews.java │ │ │ └── TipsToast.java │ │ └── wxapi │ │ └── WXEntryActivity.java │ └── res │ ├── anim │ ├── umeng_socialize_fade_in.xml │ ├── umeng_socialize_fade_out.xml │ ├── umeng_socialize_shareboard_animation_in.xml │ ├── umeng_socialize_shareboard_animation_out.xml │ ├── umeng_socialize_slide_in_from_bottom.xml │ └── umeng_socialize_slide_out_from_bottom.xml │ ├── drawable-hdpi │ ├── default_image.png │ ├── grey_score.png │ ├── icon_game_efault.jpg │ ├── icon_history.png │ ├── icon_news_shape.png │ ├── icon_news_video.png │ ├── icon_user_vertify.png │ ├── icon_video_shape.png │ ├── img_red.png │ ├── product_default.png │ ├── tips_bg.9.png │ ├── tips_smile.png │ ├── user_head.png │ ├── welcome.jpg │ └── yellew_score.png │ ├── drawable-xhdpi │ ├── about_bg.png │ ├── app_ic_goto.png │ ├── click_collect.png │ ├── click_refresh.png │ ├── click_share.png │ ├── collect.png │ ├── icon_back_black.png │ ├── icon_click_good.png │ ├── icon_game_click.png │ ├── icon_game_noclick.png │ ├── icon_header_bg.png │ ├── icon_mine_click.png │ ├── icon_mine_noclick.png │ ├── icon_reply_write.png │ ├── icon_setting.png │ ├── icon_titlebar_back.xml │ ├── selector_btn_collect.xml │ ├── selector_btn_getcode.xml │ ├── selector_trans_divider.xml │ ├── shape_edit_comment.xml │ ├── shape_rounded_corner_btn.xml │ ├── show_comment.png │ ├── user_collect.png │ ├── user_email.png │ ├── user_information.png │ ├── user_name.png │ ├── user_password.png │ └── user_safe.png │ ├── drawable-xxhdpi │ ├── icon_comment.png │ ├── icon_tab_news.png │ ├── icon_tab_news_selected.png │ ├── icon_tab_topic_noclick.png │ └── icon_topic_click.png │ ├── drawable │ ├── clipdrawable.xml │ ├── icon_click_refresh.png │ ├── icon_img_return.png │ ├── icon_share_qoze.png │ ├── icon_share_qq.png │ ├── icon_wx_circle.png │ ├── icon_wx_friend.png │ ├── menu_color_selector.xml │ ├── menu_game_selector.xml │ ├── menu_mine_selector.xml │ ├── menu_news_selector.xml │ ├── menu_selector.xml │ ├── menu_topic_selector.xml │ ├── selector_gray_rec_border_pandind_6dp.xml │ ├── selector_trans_divider.xml │ ├── shape_bg_get_code_normal.xml │ ├── shape_bg_get_code_press.xml │ ├── shape_blue_storke.xml │ ├── shape_btn_bg_white.xml │ ├── shape_btn_commit_red.xml │ ├── shape_image_storke.xml │ ├── shape_rec_90000000_corner_4dp.xml │ ├── shape_rounded_rectangle.xml │ ├── shape_rounded_yellow.xml │ ├── shape_rounded_yellow_pressed.xml │ ├── shape_toast_backgroud.xml │ ├── umeng_socialize_back_icon.png │ ├── umeng_socialize_btn_bg.xml │ ├── umeng_socialize_copy.png │ ├── umeng_socialize_copyurl.png │ ├── umeng_socialize_delete.png │ ├── umeng_socialize_edit_bg.xml │ ├── umeng_socialize_fav.png │ ├── umeng_socialize_menu_default.png │ ├── umeng_socialize_more.png │ ├── umeng_socialize_qq.png │ ├── umeng_socialize_qzone.png │ ├── umeng_socialize_share_music.png │ ├── umeng_socialize_share_video.png │ ├── umeng_socialize_share_web.png │ ├── umeng_socialize_wechat.png │ ├── umeng_socialize_wxcircle.png │ └── web_progress_bg.xml │ ├── layout-sw550dp-large │ └── umeng_socialize_oauth_dialog.xml │ ├── layout │ ├── actionbar.xml │ ├── activity_about.xml │ ├── activity_forum_list.xml │ ├── activity_game_details.xml │ ├── activity_login.xml │ ├── activity_main.xml │ ├── activity_news_detail.xml │ ├── activity_register.xml │ ├── activity_setting.xml │ ├── activity_spalsh.xml │ ├── activity_web_details.xml │ ├── custom_empty_view.xml │ ├── custom_error_view.xml │ ├── custom_loading_view.xml │ ├── custom_no_network_view.xml │ ├── dialog_post_comment.xml │ ├── dialog_share.xml │ ├── fragment_article.xml │ ├── fragment_comment_list.xml │ ├── fragment_common.xml │ ├── fragment_common_tab.xml │ ├── fragment_forum.xml │ ├── fragment_game.xml │ ├── fragment_news.xml │ ├── fragment_news_details_list.xml │ ├── fragment_personal.xml │ ├── fragment_video.xml │ ├── fragment_video_detail.xml │ ├── layout_ad_head.xml │ ├── layout_comments_more_footer.xml │ ├── layout_common_recyclerview.xml │ ├── layout_common_refresh_recyclerview.xml │ ├── layout_empty_comments_footer.xml │ ├── layout_game_ad_head.xml │ ├── layout_game_details_top_view.xml │ ├── layout_news_comment_label.xml │ ├── layout_title.xml │ ├── list_item_comment.xml │ ├── list_item_forum.xml │ ├── list_item_forum_details.xml │ ├── list_item_game.xml │ ├── list_item_hot_game_list.xml │ ├── list_item_news.xml │ ├── list_item_news_about.xml │ ├── list_item_rank_game.xml │ ├── list_item_sale_game.xml │ ├── list_item_share.xml │ ├── list_item_sub_comment.xml │ ├── list_item_video.xml │ ├── list_item_video_details.xml │ ├── listview_footer.xml │ ├── umeng_socialize_oauth_dialog.xml │ ├── view_empty.xml │ ├── view_error.xml │ ├── view_more.xml │ ├── view_nomore.xml │ ├── view_tips.xml │ └── view_toast.xml │ ├── menu │ └── toolbar.xml │ ├── mipmap-hdpi │ └── ic_launcher.png │ ├── mipmap-mdpi │ └── ic_launcher.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── v300_icon_top.png │ ├── mipmap-xxhdpi │ ├── ic_empty.png │ ├── ic_error.png │ ├── ic_launcher.png │ ├── ic_logo.png │ └── ic_no_network.png │ ├── values-w820dp │ └── dimens.xml │ └── values │ ├── attrs.xml │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ ├── styles.xml │ ├── umeng_socialize_colors.xml │ ├── umeng_socialize_strings.xml │ └── umeng_socialize_style.xml ├── build.gradle ├── config.gradle ├── core ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── stx │ │ └── core │ │ ├── base │ │ ├── BaseActivity.java │ │ ├── BaseAdapter.java │ │ ├── BaseApplication.java │ │ ├── BaseDialogFragment.java │ │ ├── BaseFragment.java │ │ ├── BaseMvpActivity.java │ │ └── BaseMvpFragment.java │ │ ├── log │ │ ├── AndroidLogTool.java │ │ ├── LogLevel.java │ │ ├── LogTool.java │ │ ├── Logger.java │ │ ├── LoggerPrinter.java │ │ ├── Printer.java │ │ ├── R.java │ │ └── Settings.java │ │ ├── mvp │ │ ├── BasePresenter.java │ │ ├── IModel.java │ │ ├── IPresenter.java │ │ └── IView.java │ │ ├── utils │ │ ├── AppManager.java │ │ ├── AppUtils.java │ │ ├── CacheManager.java │ │ ├── DateUtils.java │ │ ├── GsonUtil.java │ │ ├── NetUtils.java │ │ ├── SPUtils.java │ │ ├── ScreenUtil.java │ │ ├── SoftKeyBoardUtils.java │ │ └── StringUtils.java │ │ └── widget │ │ ├── ClearEditText.java │ │ ├── CountDownButton.java │ │ ├── HidePwEditText.java │ │ ├── LabelIndicatorView.java │ │ ├── StickyNavLayout.java │ │ ├── TipsLoadingView.java │ │ └── dialog │ │ ├── DialogMaker.java │ │ └── EasyProgressDialog.java │ └── res │ ├── drawable-hdpi │ └── dialog_toast_bg.png │ ├── drawable-xhdpi │ ├── abc_ic_ab_back_mtrl_am_alpha.png │ ├── abc_ic_menu_share_mtrl_alpha.png │ ├── qmui_icon_checkmark.png │ ├── qmui_icon_notify_done.png │ ├── qmui_icon_notify_error.png │ ├── qmui_icon_notify_info.png │ ├── search_clear_normal.png │ └── search_clear_pressed.png │ ├── drawable-xxhdpi │ ├── eye_close.png │ ├── eye_open.png │ ├── img_cmmon_next.png │ ├── qmui_edittext_bg_border_bottom.xml │ ├── qmui_icon_checkmark.png │ ├── qmui_icon_notify_done.png │ ├── qmui_icon_notify_error.png │ ├── qmui_icon_notify_info.png │ └── qmui_s_dialog_check_mark.xml │ ├── drawable │ └── delete_selector.xml │ ├── layout │ ├── easy_progress_dialog.xml │ ├── foot_custom_listview.xml │ ├── layout_divider_panding.xml │ └── layout_widget_label_indicator_view.xml │ └── values │ ├── attrs.xml │ ├── colors.xml │ ├── ids_sticky_nav_layout.xml │ ├── qmui_attrs.xml │ ├── qmui_styles_widget.xml │ └── strings.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── import-summary.txt ├── screenshot ├── 1.jpg ├── 2.jpg ├── 3.jpg └── 4.jpg └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | /build 6 | /captures 7 | keystore.properties 8 | app/app-tencent-release.apk 9 | app/app-wandoujia-release.apk 10 | app/build/ 11 | key/3dmgame.jks 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/libs/GDTUnionSDK.TBS.4.19.574.min.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/GDTUnionSDK.TBS.4.19.574.min.jar -------------------------------------------------------------------------------- /app/libs/SocialSDK_QQ_Simplify.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/SocialSDK_QQ_Simplify.jar -------------------------------------------------------------------------------- /app/libs/SocialSDK_WeChat_Simplify.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/SocialSDK_WeChat_Simplify.jar -------------------------------------------------------------------------------- /app/libs/android-query-full.0.26.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/android-query-full.0.26.7.jar -------------------------------------------------------------------------------- /app/libs/httpmime-4.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/httpmime-4.1.3.jar -------------------------------------------------------------------------------- /app/libs/open_sdk_r5509.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/open_sdk_r5509.jar -------------------------------------------------------------------------------- /app/libs/umeng_social_api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/umeng_social_api.jar -------------------------------------------------------------------------------- /app/libs/umeng_social_net.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/umeng_social_net.jar -------------------------------------------------------------------------------- /app/libs/umeng_social_tool.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/libs/umeng_social_tool.jar -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/base/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.base; 2 | 3 | /** 4 | * @author Mr.xiao 5 | * @Time:2017/9/13 6 | * @Email:xhb_199409@163.com 7 | * @Github:https://github.com/xiaohaibin/ 8 | * @Describe: 9 | */ 10 | public class BaseEntity { 11 | 12 | private int code = 0; 13 | private String msg = ""; 14 | 15 | private boolean isSuccess; 16 | 17 | public boolean isSuccess() { 18 | return code == 1; 19 | } 20 | 21 | public int getCode() { 22 | return code; 23 | } 24 | 25 | public String getMsg() { 26 | return msg; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/config/Constants.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.config; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/16 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe:Constants 9 | */ 10 | 11 | public class Constants { 12 | /** 13 | * 服务器返回成功正确状态码 14 | */ 15 | public static final int SERVER_SUCCESS=1; 16 | 17 | public static final int SERVER_FAILED=0; 18 | 19 | public static final String APPID = "1105172050"; 20 | 21 | public static final String SplashPosID="4080314488610390"; 22 | 23 | public static final String NativePosID = "4010024710499065"; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/FindPwdContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | import com.stx.xhb.dmgameapp.utils.AppUser; 5 | 6 | /** 7 | * @author: xiaohaibin. 8 | * @time: 2018/9/28 9 | * @mail:xhb_199409@163.com 10 | * @github:https://github.com/xiaohaibin 11 | * @describe: 12 | */ 13 | public class FindPwdContent { 14 | 15 | private String mobile; 16 | private String validate; 17 | private String passwd; 18 | private String checkpasswd; 19 | private long time; 20 | private String sign; 21 | 22 | public FindPwdContent(String mobile, String validate, String passwd) { 23 | this.mobile = mobile; 24 | this.validate = validate; 25 | this.passwd = passwd; 26 | this.checkpasswd = passwd; 27 | this.time = System.currentTimeMillis(); 28 | this.sign = StringUtils.getMD5( mobile+validate + passwd + passwd + time); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/GameClassifyContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/20 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class GameClassifyContent { 13 | /** 14 | * pagesize : 10 15 | * page : 1 16 | * time : 1535076178701 17 | * sign : d2fa5047f53cccd99ade57edeaf10ca5 18 | */ 19 | 20 | private int pagesize = 10; 21 | private int page = 1; 22 | private long time; 23 | private String sign = ""; 24 | private int order; 25 | 26 | public GameClassifyContent(int currentPage, int order) { 27 | this.time = System.currentTimeMillis(); 28 | this.sign = StringUtils.getMD5(String.valueOf(pagesize) + currentPage + order + time); 29 | this.page = currentPage; 30 | this.order = order; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/GameContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/11 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class GameContent { 13 | private long time; 14 | private String sign = ""; 15 | 16 | public GameContent() { 17 | this.time = System.currentTimeMillis(); 18 | this.sign = StringUtils.getMD5(String.valueOf(time)); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/GameRankContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/20 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class GameRankContent { 13 | private int pagesize = 10; 14 | private int page = 1; 15 | private long time; 16 | private String sign = ""; 17 | private String uid=""; 18 | 19 | public GameRankContent(int page, String uid) { 20 | this.page = page; 21 | this.uid = uid; 22 | this.time = System.currentTimeMillis(); 23 | this.sign = StringUtils.getMD5(uid+String.valueOf(pagesize) + page + time); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/GetHotCommentContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/26 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 获取热门评论 11 | */ 12 | public class GetHotCommentContent { 13 | 14 | private int uid=0; 15 | private String arcurl=""; 16 | private int c_sid=0; 17 | private int pagesize=10; 18 | private int page=1; 19 | private long time; 20 | private String sign; 21 | 22 | public GetHotCommentContent(int currentPage,String arcurl,int uid) { 23 | this.time = System.currentTimeMillis(); 24 | this.arcurl=arcurl; 25 | this.uid=uid; 26 | this.sign = StringUtils.getMD5(uid+arcurl+c_sid+String.valueOf(pagesize) + currentPage+time); 27 | this.page = currentPage; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/LoginContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/27 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class LoginContent { 13 | 14 | /** 15 | * username : jjjj 16 | * passwd : hhhhhj 17 | * time : 1538039006164 18 | * sign : 249e890984003569ceccb458a4cdcbaa 19 | */ 20 | 21 | private String username; 22 | private String passwd; 23 | private long time; 24 | private String sign; 25 | 26 | public LoginContent(String username,String passwd) { 27 | this.passwd=passwd; 28 | this.username = username; 29 | this.time=System.currentTimeMillis(); 30 | this.sign=StringUtils.getMD5(username+passwd+time); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/NewsAboutContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import android.util.Log; 4 | 5 | import com.stx.core.utils.StringUtils; 6 | import com.zhy.http.okhttp.utils.L; 7 | 8 | /** 9 | * @author: xiaohaibin. 10 | * @time: 2018/9/26 11 | * @mail:xhb_199409@163.com 12 | * @github:https://github.com/xiaohaibin 13 | * @describe: 14 | */ 15 | public class NewsAboutContent { 16 | 17 | /** 18 | * arcurl : https://www.3dmgame.com/news/201808/3743832.html 19 | * pagesize : 3 20 | * time : 1535078536940 21 | * sign : 36fa74931c8b019dfeb79e57ade25ce0 22 | */ 23 | 24 | private String arcurl; 25 | private int pagesize; 26 | private long time; 27 | private String sign=""; 28 | 29 | public NewsAboutContent(String arcurl) { 30 | this.arcurl=arcurl; 31 | this.pagesize=3; 32 | this.time=System.currentTimeMillis(); 33 | this.sign=StringUtils.getMD5(arcurl+pagesize+time); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/NewsContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/5 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class NewsContent { 13 | 14 | /** 15 | * pagesize : 10 16 | * page : 1 17 | * time : 1535076178701 18 | * sign : d2fa5047f53cccd99ade57edeaf10ca5 19 | */ 20 | 21 | private int pagesize = 10; 22 | private int page = 1; 23 | private long time; 24 | private String sign = ""; 25 | 26 | public NewsContent(int currentPage) { 27 | this.time = System.currentTimeMillis(); 28 | this.sign = StringUtils.getMD5(String.valueOf(pagesize) + currentPage + time); 29 | this.page = currentPage; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/PostCommentContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * PostCommentContent 7 | */ 8 | public class PostCommentContent { 9 | 10 | 11 | private String uid; 12 | private String arcurl; 13 | private int c_sid = 0; 14 | private String content; 15 | private long time; 16 | private String sign; 17 | 18 | public PostCommentContent(String uid, String arcurl, String content) { 19 | this.uid = uid; 20 | this.arcurl = arcurl; 21 | this.content = content; 22 | this.time = System.currentTimeMillis(); 23 | this.sign = StringUtils.getMD5(uid + arcurl + c_sid + time); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/RegisterContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/28 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class RegisterContent { 13 | 14 | /** 15 | * mobile : 13730693919 16 | * passwd : hjjj 17 | * validate : 5566 18 | * time : 1538105744276 19 | * sign : 6166ce9a8f194b1bd8a66dda9ca96a09 20 | */ 21 | 22 | private String mobile; 23 | private String passwd; 24 | private String validate; 25 | private long time; 26 | private String sign; 27 | 28 | public RegisterContent(String mobile, String passwd, String validate) { 29 | this.mobile = mobile; 30 | this.passwd = passwd; 31 | this.validate = validate; 32 | this.time=System.currentTimeMillis(); 33 | this.sign=StringUtils.getMD5(mobile+passwd+validate+time); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/ReplyCommentContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * ReplyCommentContent 7 | */ 8 | public class ReplyCommentContent { 9 | 10 | private String uid; 11 | private int id; 12 | private String arcurl; 13 | private String content; 14 | private long time; 15 | private String sign; 16 | 17 | public ReplyCommentContent(String uid, int id, String arcurl, String content) { 18 | this.uid = uid; 19 | this.id = id; 20 | this.arcurl = arcurl; 21 | this.content = content; 22 | this.time = System.currentTimeMillis(); 23 | this.sign = StringUtils.getMD5(uid + id + time); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/body/SendSmsContent.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.body; 2 | 3 | import com.stx.core.utils.StringUtils; 4 | 5 | /** 6 | * @author: xiaohaibin. 7 | * @time: 2018/9/28 8 | * @mail:xhb_199409@163.com 9 | * @github:https://github.com/xiaohaibin 10 | * @describe: 11 | */ 12 | public class SendSmsContent { 13 | 14 | /** 15 | * mobile : 18502339836 16 | * act : 1 注册 4 忘记密码 5 绑定手机号 17 | * uid : 0 18 | * time : 1538105804999 19 | * sign : 35f6498ada7f02e5c7e535a8a9bf9641 20 | */ 21 | 22 | private String mobile; 23 | private int act; 24 | private int uid; 25 | private long time; 26 | private String sign; 27 | 28 | public SendSmsContent(String mobile, int act, int uid) { 29 | this.mobile = mobile; 30 | this.act = act; 31 | this.uid = uid; 32 | this.time = System.currentTimeMillis(); 33 | this.sign = StringUtils.getMD5(mobile + act + uid + time); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/callback/LoadTaskCallback.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.callback; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/9/11 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: LoadTaskCallback 9 | */ 10 | public abstract class LoadTaskCallback implements TaskObserver { 11 | 12 | public void onStart(){ } 13 | 14 | public void onCompleted(){ } 15 | } 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/callback/TaskObserver.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.callback; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/9/11 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: TaskObserver 数据统一回调接口,方便快速切换数据获取框架,降低耦合度 9 | */ 10 | public interface TaskObserver { 11 | 12 | void onTaskLoaded(T data); 13 | 14 | void onDataNotAvailable(String msg); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/CommonContentBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/17 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe: 9 | */ 10 | 11 | public class CommonContentBean { 12 | 13 | /** 14 | * module : groups 15 | */ 16 | 17 | private String module; 18 | 19 | public CommonContentBean(String module) { 20 | this.module = module; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/ForumBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/21 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe:论坛实体类 9 | */ 10 | 11 | public class ForumBean { 12 | 13 | private String fid=""; 14 | private String name=""; 15 | private String todayposts=""; 16 | private String rank=""; 17 | private String icon=""; 18 | private String type=""; 19 | 20 | public void setFid(String fid) { 21 | this.fid = fid; 22 | } 23 | 24 | public void setName(String name) { 25 | this.name = name; 26 | } 27 | 28 | public void setTodayposts(String todayposts) { 29 | this.todayposts = todayposts; 30 | } 31 | 32 | public void setRank(String rank) { 33 | this.rank = rank; 34 | } 35 | 36 | public void setIcon(String icon) { 37 | this.icon = icon; 38 | } 39 | 40 | public void setType(String type) { 41 | this.type = type; 42 | } 43 | 44 | public String getFid() { 45 | return fid; 46 | } 47 | 48 | public String getName() { 49 | return name; 50 | } 51 | 52 | public String getTodayposts() { 53 | return todayposts; 54 | } 55 | 56 | public String getRank() { 57 | return rank; 58 | } 59 | 60 | public String getIcon() { 61 | return icon; 62 | } 63 | 64 | public String getType() { 65 | return type; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/9/11 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: GameBean 9 | */ 10 | public class GameBean { 11 | /** 12 | * aid : 3712501 13 | * arcurl : https://www.3dmgame.com/games/snkhttf/ 14 | * title : SNK女格斗家大乱斗 15 | * litpic : https://img.3dmgame.com/uploads/images/thumbkwdfirst/20180907/1536289976_982297.jpg 16 | * pubdate_at : 1536249600 17 | * showtype : 3 18 | */ 19 | 20 | private String aid; 21 | private String arcurl; 22 | private String title; 23 | private String litpic; 24 | private int pubdate_at; 25 | private int showtype; 26 | private double score; 27 | 28 | public double getScore() { 29 | return score; 30 | } 31 | 32 | public String getAid() { 33 | return aid; 34 | } 35 | 36 | public String getArcurl() { 37 | return arcurl; 38 | } 39 | 40 | 41 | public String getTitle() { 42 | return title; 43 | } 44 | 45 | 46 | public String getLitpic() { 47 | return litpic; 48 | } 49 | 50 | 51 | public int getPubdate_at() { 52 | return pubdate_at; 53 | } 54 | 55 | public int getShowtype() { 56 | return showtype; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameChannelListBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import com.stx.xhb.dmgameapp.base.BaseEntity; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Author:xiaohaibin 9 | * Time:2017/9/17 10 | * Emil:xhb_199409@163.com 11 | * Github:https://github.com/xiaohaibin/ 12 | * Describe: 13 | */ 14 | 15 | public class GameChannelListBean extends BaseEntity{ 16 | 17 | private String channels_version; 18 | private List html; 19 | 20 | 21 | public String getChannels_version() { 22 | return channels_version; 23 | } 24 | 25 | public List getHtml() { 26 | return html; 27 | } 28 | 29 | public static class HtmlEntity { 30 | 31 | private String appid; 32 | private String title; 33 | 34 | public String getAppid() { 35 | return appid; 36 | } 37 | 38 | public String getTitle() { 39 | return title; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameListBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Author:xiaohaibin 7 | * Time:2017/9/20 8 | * Emil:xhb_199409@163.com 9 | * Github:https://github.com/xiaohaibin/ 10 | * Describe:游戏列表 11 | */ 12 | 13 | public class GameListBean{ 14 | 15 | 16 | private List newgame; 17 | private List expectgame; 18 | private List classicgame; 19 | private List hotgame; 20 | private List slides; 21 | 22 | public List getNewgame() { 23 | return newgame; 24 | } 25 | 26 | public List getExpectgame() { 27 | return expectgame; 28 | } 29 | 30 | public List getClassicgame() { 31 | return classicgame; 32 | } 33 | 34 | public List getHotgame() { 35 | return hotgame; 36 | } 37 | 38 | public List getSlides() { 39 | return slides; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameNewsListBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import com.stx.xhb.dmgameapp.base.BaseEntity; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Author : jxnk25 9 | * Time: 2017/10/24 0024 10 | * Email:xhb_199409@163.com 11 | * Email:xhb_199409@163.com 12 | * Github:https://github.com/xiaohaibin/ 13 | * Drscribe: 14 | */ 15 | 16 | public class GameNewsListBean extends BaseEntity{ 17 | 18 | private String totalrow; 19 | private List html; 20 | 21 | public String getTotalrow() { 22 | return totalrow; 23 | } 24 | 25 | public List getHtml() { 26 | return html; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameVideoBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import com.stx.xhb.dmgameapp.base.BaseEntity; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Author : jxnk25 9 | * Time: 2017/10/20 0020 10 | * Email:xhb_199409@163.com 11 | * Email:xhb_199409@163.com 12 | * Github:https://github.com/xiaohaibin/ 13 | * Drscribe: 14 | */ 15 | 16 | public class GameVideoBean extends BaseEntity{ 17 | 18 | private int totalrow; 19 | private List html; 20 | 21 | public int getTotalrow() { 22 | return totalrow; 23 | } 24 | 25 | public List getHtml() { 26 | return html; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/NewsChannelListBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import com.stx.xhb.dmgameapp.base.BaseEntity; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Author:xiaohaibin 9 | * Time:2017/9/17 10 | * Emil:xhb_199409@163.com 11 | * Github:https://github.com/xiaohaibin/ 12 | * Describe: 13 | */ 14 | 15 | public class NewsChannelListBean extends BaseEntity{ 16 | 17 | private String channels_version; 18 | private List html; 19 | 20 | public String getChannels_version() { 21 | return channels_version; 22 | } 23 | 24 | public List getHtml() { 25 | return html; 26 | } 27 | 28 | public static class HtmlEntity { 29 | 30 | private String appid; 31 | private String title; 32 | private String type; 33 | 34 | public String getAppid() { 35 | return appid; 36 | } 37 | 38 | public String getTitle() { 39 | return title; 40 | } 41 | 42 | public String getType() { 43 | return type; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/NewsContentBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/9 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe: 9 | */ 10 | public class NewsContentBean { 11 | private String appid; 12 | private int page; 13 | 14 | public NewsContentBean(String appid, int page) { 15 | this.appid = appid; 16 | this.page = page; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/PassportBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/3/1 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: 9 | */ 10 | 11 | public class PassportBean { 12 | 13 | private boolean expired; 14 | private int fee; 15 | private int followers_count; 16 | private String from; 17 | private boolean grant; 18 | private String img_url; 19 | private boolean is_official; 20 | private boolean is_shared; 21 | private String nickname; 22 | private int platform_id; 23 | private String user_id; 24 | 25 | public boolean isExpired() { 26 | return expired; 27 | } 28 | 29 | public int getFee() { 30 | return fee; 31 | } 32 | 33 | 34 | public int getFollowers_count() { 35 | return followers_count; 36 | } 37 | 38 | public String getFrom() { 39 | return from; 40 | } 41 | 42 | public boolean isGrant() { 43 | return grant; 44 | } 45 | 46 | public String getImg_url() { 47 | return img_url; 48 | } 49 | 50 | public boolean isIs_official() { 51 | return is_official; 52 | } 53 | 54 | public boolean isIs_shared() { 55 | return is_shared; 56 | } 57 | 58 | public String getNickname() { 59 | return nickname; 60 | } 61 | 62 | public int getPlatform_id() { 63 | return platform_id; 64 | } 65 | 66 | public String getUser_id() { 67 | return user_id; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/PostCommentRepsonse.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2019/1/10 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: 提交评论 9 | */ 10 | public class PostCommentRepsonse { 11 | 12 | /** 13 | * c_sid : 21451 14 | * id : 183365 15 | * position : 3 16 | * integralmsg : 17 | */ 18 | 19 | private int c_sid; 20 | private int id; 21 | private int position; 22 | private String integralmsg; 23 | 24 | public int getC_sid() { 25 | return c_sid; 26 | } 27 | 28 | public void setC_sid(int c_sid) { 29 | this.c_sid = c_sid; 30 | } 31 | 32 | public int getId() { 33 | return id; 34 | } 35 | 36 | public void setId(int id) { 37 | this.id = id; 38 | } 39 | 40 | public int getPosition() { 41 | return position; 42 | } 43 | 44 | public void setPosition(int position) { 45 | this.position = position; 46 | } 47 | 48 | public String getIntegralmsg() { 49 | return integralmsg; 50 | } 51 | 52 | public void setIntegralmsg(String integralmsg) { 53 | this.integralmsg = integralmsg; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/ReplyPassportBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/3/1 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: 9 | */ 10 | 11 | public class ReplyPassportBean { 12 | 13 | /** 14 | * expired : false 15 | * fee : 0 16 | * followers_count : 0 17 | * from : 18 | * grant : false 19 | * img_url : http://user.3dmgame.com/avatar.php?uid=1712669&size=small 20 | * is_official : false 21 | * is_shared : false 22 | * isv_refer_id : 1712669 23 | * nickname : miharu0901 24 | * platform_id : 14 25 | * profile_url : http://bbs.3dmgame.com/space-uid-1712669.html 26 | * user_id : -339699349 27 | */ 28 | 29 | private boolean expired; 30 | private int fee; 31 | private int followers_count; 32 | private String from; 33 | private boolean grant; 34 | private String img_url; 35 | private boolean is_official; 36 | private boolean is_shared; 37 | private String isv_refer_id; 38 | private String nickname; 39 | private int platform_id; 40 | private String profile_url; 41 | private String user_id; 42 | 43 | public String getFrom() { 44 | return from; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/data/entity/UserInfoBean.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.data.entity; 2 | 3 | import com.stx.xhb.dmgameapp.base.BaseEntity; 4 | 5 | /** 6 | * Author:xiaohaibin 7 | * Time:2017/9/12 8 | * Emil:xhb_199409@163.com 9 | * Github:https://github.com/xiaohaibin/ 10 | * Describe:用户信息实体类 11 | */ 12 | 13 | public class UserInfoBean extends BaseEntity{ 14 | 15 | private String nickname; 16 | private String avatarstr; 17 | private int uid; 18 | private String username; 19 | private String mobile; 20 | private int integral; 21 | private String title; 22 | private int title_level; 23 | private int level2; 24 | private int level3; 25 | private int level4; 26 | private int up_nick; 27 | private int app_login; 28 | private String integralmsg; 29 | 30 | public String getNickname() { 31 | return nickname; 32 | } 33 | 34 | public String getAvatarstr() { 35 | return avatarstr; 36 | } 37 | 38 | public int getUid() { 39 | return uid; 40 | } 41 | 42 | public String getUsername() { 43 | return username; 44 | } 45 | 46 | public String getMobile() { 47 | return mobile; 48 | } 49 | 50 | public int getIntegral() { 51 | return integral; 52 | } 53 | 54 | public String getTitle() { 55 | return title; 56 | } 57 | 58 | public int getTitle_level() { 59 | return title_level; 60 | } 61 | 62 | public int getLevel2() { 63 | return level2; 64 | } 65 | 66 | public int getLevel3() { 67 | return level3; 68 | } 69 | 70 | public int getLevel4() { 71 | return level4; 72 | } 73 | 74 | 75 | public int getUp_nick() { 76 | return up_nick; 77 | } 78 | 79 | public int getApp_login() { 80 | return app_login; 81 | } 82 | 83 | public String getIntegralmsg() { 84 | return integralmsg; 85 | } 86 | 87 | } 88 | 89 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/http/ApiException.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.http; 2 | 3 | /** 4 | * @author: Mr.xiao on 2017/3/15 5 | * @mail:xhb_199409@163.com 6 | * @github:https://github.com/xiaohaibin 7 | * @describe: 捕获服务器约定的错误类型 8 | */ 9 | public class ApiException extends RuntimeException { 10 | /** 11 | * 未知错误 12 | */ 13 | public static final int UNKNOWN = 1000; 14 | /** 15 | * 数据解析错误 16 | */ 17 | public static final int PARSE_ERROR = 1001; 18 | 19 | private int errCode; 20 | private String errorMsg; 21 | 22 | public ApiException(int errCode, String msg) { 23 | super(msg); 24 | this.errCode = errCode; 25 | this.errorMsg=msg; 26 | } 27 | 28 | public int getErrCode() { 29 | return errCode; 30 | } 31 | 32 | public String getErrorMsg() { 33 | return errorMsg; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/http/BaseResponse.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.http; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * @author : Mr.xiao on 2017/3/15 7 | * @mail:xhb_199409@163.com 8 | * @github:https://github.com/xiaohaibin 9 | * @describe: BaseResponse 10 | */ 11 | public class BaseResponse implements Serializable{ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/http/HttpResult.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.http; 2 | 3 | /** 4 | * @author: Mr.xiao on 2017/3/15 5 | * @mail:xhb_199409@163.com 6 | * @github:https://github.com/xiaohaibin 7 | * @describe: 网络请求的实体基类 8 | */ 9 | public class HttpResult extends BaseResponse { 10 | 11 | public int code; 12 | 13 | private String msg; 14 | 15 | private T data; 16 | 17 | public String getMsg() { 18 | return msg; 19 | } 20 | 21 | public int getCode() { 22 | return code; 23 | } 24 | 25 | /** 26 | * 连接服务器是否成功 27 | * 28 | * @return 29 | */ 30 | public boolean isHttpSuccess() { 31 | return code == 1; 32 | } 33 | 34 | public T getData() { 35 | return data; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/http/NormalInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.http; 2 | 3 | import android.content.Context; 4 | 5 | import com.stx.core.utils.NetUtils; 6 | 7 | import java.io.IOException; 8 | 9 | import okhttp3.CacheControl; 10 | import okhttp3.Interceptor; 11 | import okhttp3.Request; 12 | import okhttp3.Response; 13 | 14 | /** 15 | * Author:xiaohaibin 16 | * Time:2017/6/21 17 | * Emil:xhb_199409@163.com 18 | * Github:https://github.com/xaohaibin/ 19 | * Describe:设置无网读取本地缓存 20 | */ 21 | public class NormalInterceptor implements Interceptor { 22 | private Context context; 23 | 24 | public NormalInterceptor(Context context) { 25 | this.context = context; 26 | } 27 | 28 | @Override 29 | public Response intercept(Chain chain) throws IOException { 30 | Request request = chain.request(); 31 | if (!NetUtils.isNetworkAvailable(context)) { 32 | request = request.newBuilder() 33 | .cacheControl(CacheControl.FORCE_CACHE) 34 | .build(); 35 | } 36 | return chain.proceed(request); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetChinesizeListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 6 | 7 | /** 8 | * @author: xiaohaibin. 9 | * @time: 2018/9/20 10 | * @mail:xhb_199409@163.com 11 | * @github:https://github.com/xiaohaibin 12 | * @describe: 汉化 13 | */ 14 | public interface GetChinesizeListContract { 15 | 16 | interface Model extends IModel { 17 | void getChinesizeGame(int currentPage, int order); 18 | } 19 | 20 | interface View extends IView { 21 | void getNewGame(SaleGameBean saleGameBean); 22 | 23 | void getHotGame(SaleGameBean saleGameBean); 24 | 25 | void getFailed(String msg); 26 | 27 | void showLoading(); 28 | 29 | void hideLoading(); 30 | } 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetCommentListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.CommentListBean; 6 | 7 | /** 8 | * @author: xiaohaibin. 9 | * @time: 2018/2/11 10 | * @mail:xhb_199409@163.com 11 | * @github:https://github.com/xiaohaibin 12 | * @describe: 13 | */ 14 | 15 | public interface GetCommentListContract { 16 | 17 | interface Model extends IModel { 18 | void getCommentListData(int currentPage, String arcurl, int uid); 19 | 20 | void postComment(String arcurl,String comment, int uid); 21 | 22 | void replyComment(String uid, int id, String arcurl, String content); 23 | } 24 | 25 | interface View extends IView { 26 | 27 | void setCommentListData(CommentListBean commentListData); 28 | 29 | void getCommentListDataFailed(); 30 | 31 | void postCommentSuccess(); 32 | 33 | void postCommentFailed(String msg); 34 | 35 | void showLoading(); 36 | 37 | void hideLoading(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetForumChannelContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.ForumChannelListBean; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Author:xiaohaibin 11 | * Time:2017/9/18 12 | * Emil:xhb_199409@163.com 13 | * Github:https://github.com/xiaohaibin/ 14 | * Describe: 15 | */ 16 | public interface GetForumChannelContract { 17 | 18 | interface getChanelModel extends IModel { 19 | void getChannelList(); 20 | } 21 | 22 | interface getChannelListView extends IView { 23 | 24 | void getChannelSuccess(List channelList); 25 | 26 | void getChanelFailed(String msg); 27 | 28 | void showLoading(); 29 | 30 | void hideLoading(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetForumDetailsListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.ForumListBean; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Author : jxnk25 11 | * Time: 2017/11/1 0001 12 | * Email:xhb_199409@163.com 13 | * Email:xhb_199409@163.com 14 | * Github:https://github.com/xiaohaibin/ 15 | * Drscribe: 16 | */ 17 | public interface GetForumDetailsListContract { 18 | 19 | interface getForumListModel extends IModel { 20 | void getForumListData(String fid, int page); 21 | } 22 | 23 | interface getForumListDataView extends IView { 24 | 25 | void getForumListDataSuccess(List data); 26 | 27 | void getForumListDataFailed(String msg); 28 | 29 | void showLoading(); 30 | 31 | void hideLoading(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetForumListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.ForumBean; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Author:xiaohaibin 11 | * Time:2017/9/21 12 | * Emil:xhb_199409@163.com 13 | * Github:https://github.com/xiaohaibin/ 14 | * Describe: 15 | */ 16 | public interface GetForumListContract { 17 | 18 | interface getForumListModel extends IModel { 19 | void getForumListData(String fid); 20 | } 21 | 22 | interface getForumListView extends IView { 23 | 24 | void getForumListDataSuccess(List listData); 25 | 26 | void getForumListDataFailed(String msg); 27 | 28 | void showLoading(); 29 | 30 | void hideLoading(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetGameListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.GameListBean; 6 | import com.stx.xhb.dmgameapp.data.entity.HotGameBean; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Author:xiaohaibin 12 | * Time:2017/9/20 13 | * Emil:xhb_199409@163.com 14 | * Github:https://github.com/xiaohaibin/ 15 | * Describe: 16 | */ 17 | public interface GetGameListContract { 18 | 19 | interface getGameListModel extends IModel { 20 | void getGameListData(); 21 | } 22 | 23 | 24 | interface getGameListDataView extends IView { 25 | 26 | void getGameListDataSuccess(GameListBean dataBean); 27 | 28 | void getGameListDataFailed(String msg); 29 | 30 | void showLoading(); 31 | 32 | void hideLoading(); 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetNewsDetailsContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.CommentListBean; 6 | import com.stx.xhb.dmgameapp.data.entity.NewsAboutBean; 7 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author: xiaohaibin. 13 | * @time: 2018/2/27 14 | * @mail:xhb_199409@163.com 15 | * @github:https://github.com/xiaohaibin 16 | * @describe: 获取资讯详情协议类 17 | */ 18 | 19 | public interface GetNewsDetailsContract { 20 | 21 | interface View extends IView { 22 | 23 | void setNewsDetailsData(NewsAboutBean newsAboutBean); 24 | 25 | void setCommentListData(CommentListBean commentListData); 26 | 27 | void getNewsDetailsDataFailed(String msg); 28 | 29 | void getCommentListDataFailed(String msg); 30 | 31 | void postCommentSuccess(); 32 | 33 | void postCommentFailed(String msg); 34 | 35 | void showLoading(); 36 | 37 | void hideLoading(); 38 | } 39 | 40 | interface Model extends IModel { 41 | 42 | void getNewsDetailsData(String url); 43 | 44 | void getCommentListData(int currentPage, String arcurl, int uid); 45 | 46 | void postComment(String arcurl,String comment, int uid); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetNewsListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 6 | 7 | /** 8 | * Author:xiaohaibin 9 | * Time:2017/9/18 10 | * Emil:xhb_199409@163.com 11 | * Github:https://github.com/xiaohaibin/ 12 | * Describe: 13 | */ 14 | public interface GetNewsListContract { 15 | 16 | interface getNewsListModel extends IModel { 17 | 18 | void getHotNewsList(int currentPage); 19 | 20 | void getNewsList(int currentPage); 21 | 22 | void getOriginalPage(int currentPage); 23 | 24 | void getAmusePage(int currentPage); 25 | } 26 | 27 | interface getNewListView extends IView { 28 | 29 | void getNewListSuccess(NewsPageBean data); 30 | 31 | void getNewListFailed(String msg); 32 | 33 | void showLoading(); 34 | 35 | void hideLoading(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetRankGameContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.GameRankBean; 6 | 7 | /** 8 | * @author: xiaohaibin. 9 | * @time: 2018/9/20 10 | * @mail:xhb_199409@163.com 11 | * @github:https://github.com/xiaohaibin 12 | * @describe: 13 | */ 14 | public interface GetRankGameContract { 15 | 16 | interface Model extends IModel { 17 | void getRankGame(int currentpage,String uid); 18 | } 19 | 20 | interface View extends IView { 21 | void getDataSuccess(GameRankBean gameRankBean); 22 | 23 | void getFailed(String msg); 24 | 25 | void showLoading(); 26 | 27 | void hideLoading(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetSaleListContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 6 | 7 | /** 8 | * @author: xiaohaibin. 9 | * @time: 2018/9/14 10 | * @mail:xhb_199409@163.com 11 | * @github:https://github.com/xiaohaibin 12 | * @describe: 获取发售游戏 13 | */ 14 | public interface GetSaleListContract { 15 | 16 | interface Model extends IModel { 17 | 18 | void getSaleList(int currentPage); 19 | 20 | void getUnSaleList(int currentPage); 21 | 22 | } 23 | 24 | interface View extends IView { 25 | 26 | void getSaleList(SaleGameBean saleGameBean); 27 | 28 | void getUnSaleList(SaleGameBean saleGameBean); 29 | 30 | void getFailed(String msg); 31 | 32 | void showLoading(); 33 | 34 | void hideLoading(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/GetVideoContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 6 | import com.stx.xhb.dmgameapp.data.entity.VideoListBean; 7 | 8 | /** 9 | * Author: Mr.xiao on 2017/9/18 10 | * 11 | * @mail:xhb_199409@163.com 12 | * @github:https://github.com/xiaohaibin 13 | * @describe: 14 | */ 15 | public interface GetVideoContract { 16 | 17 | interface getVideoModel extends IModel { 18 | void getVideoList(int page); 19 | } 20 | 21 | interface getVideoListView extends IView { 22 | 23 | void getVideoListSuccess(NewsPageBean videoListBean); 24 | 25 | void getVideoListFailed(String msg); 26 | 27 | void showLoading(); 28 | 29 | void hideLoading(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/LoginContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.UserInfoBean; 6 | 7 | /** 8 | * Author:xiaohaibin 9 | * Time:2017/9/16 10 | * Emil:xhb_199409@163.com 11 | * Github:https://github.com/xiaohaibin/ 12 | * Describe: 13 | */ 14 | public interface LoginContract { 15 | 16 | interface loginModel extends IModel { 17 | void login(String username, String pwd); 18 | } 19 | 20 | interface loginView extends IView { 21 | 22 | void loginSuccess(UserInfoBean infoEntity); 23 | 24 | void loginFailed(String msg); 25 | 26 | void showLoading(); 27 | 28 | void hideLoading(); 29 | 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/contract/RegisterContract.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.contract; 2 | 3 | import com.stx.core.mvp.IModel; 4 | import com.stx.core.mvp.IView; 5 | import com.stx.xhb.dmgameapp.data.entity.UserInfoBean; 6 | 7 | /** 8 | * Author:xiaohaibin 9 | * Time:2017/9/16 10 | * Emil:xhb_199409@163.com 11 | * Github:https://github.com/xiaohaibin/ 12 | * Describe: 13 | */ 14 | public interface RegisterContract { 15 | 16 | interface registerModel extends IModel { 17 | void register(String username, String passwd, String code); 18 | 19 | void resetPwd(String username, String passwd, String code); 20 | 21 | void sendSms(String mobile, int act, int uid); 22 | } 23 | 24 | interface registerView extends IView { 25 | 26 | void registerSuccess(String msg); 27 | 28 | void resetPwd(String msg); 29 | 30 | void resetPwdFailed(String msg); 31 | 32 | void registerFailed(String msg); 33 | 34 | void sendSmsCodeSuccess(String msg); 35 | 36 | void sendSmsCodeFailed(String msg); 37 | 38 | void showLoading(); 39 | 40 | void hideLoading(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/presenter/GetChinesizeListPresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.presenter; 2 | 3 | import com.stx.core.mvp.BasePresenter; 4 | import com.stx.xhb.dmgameapp.data.callback.LoadTaskCallback; 5 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 6 | import com.stx.xhb.dmgameapp.data.remote.TasksRepositoryProxy; 7 | import com.stx.xhb.dmgameapp.mvp.contract.GetChinesizeListContract; 8 | 9 | import rx.Subscription; 10 | 11 | /** 12 | * @author: xiaohaibin. 13 | * @time: 2018/9/20 14 | * @mail:xhb_199409@163.com 15 | * @github:https://github.com/xiaohaibin 16 | * @describe: 汉化游戏 17 | */ 18 | public class GetChinesizeListPresenter extends BasePresenter implements GetChinesizeListContract.Model{ 19 | @Override 20 | public void getChinesizeGame(int currentPage, final int order) { 21 | if (getView()==null){ 22 | return; 23 | } 24 | Subscription subscription = TasksRepositoryProxy.getInstance().getChinesizeGame(currentPage, order, new LoadTaskCallback() { 25 | @Override 26 | public void onStart() { 27 | getView().showLoading(); 28 | } 29 | 30 | @Override 31 | public void onTaskLoaded(SaleGameBean data) { 32 | if (order == 1) { 33 | getView().getNewGame(data); 34 | } else { 35 | getView().getHotGame(data); 36 | } 37 | } 38 | 39 | @Override 40 | public void onDataNotAvailable(String msg) { 41 | getView().getFailed(msg); 42 | } 43 | 44 | @Override 45 | public void onCompleted() { 46 | getView().hideLoading(); 47 | } 48 | }); 49 | addSubscription(subscription); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/presenter/GetGameListPresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.presenter; 2 | 3 | import com.stx.core.mvp.BasePresenter; 4 | import com.stx.xhb.dmgameapp.data.callback.LoadTaskCallback; 5 | import com.stx.xhb.dmgameapp.data.entity.GameListBean; 6 | import com.stx.xhb.dmgameapp.data.remote.TasksRepositoryProxy; 7 | import com.stx.xhb.dmgameapp.mvp.contract.GetGameListContract; 8 | 9 | /** 10 | * Author:xiaohaibin 11 | * Time:2017/9/20 12 | * Emil:xhb_199409@163.com 13 | * Github:https://github.com/xiaohaibin/ 14 | * Describe: 15 | */ 16 | 17 | public class GetGameListPresenter extends BasePresenter implements GetGameListContract.getGameListModel { 18 | @Override 19 | public void getGameListData() { 20 | if (getView() == null) { 21 | return; 22 | } 23 | TasksRepositoryProxy.getInstance().getHotGame(new LoadTaskCallback() { 24 | @Override 25 | public void onStart() { 26 | getView().showLoading(); 27 | } 28 | 29 | @Override 30 | public void onTaskLoaded(GameListBean data) { 31 | getView().getGameListDataSuccess(data); 32 | } 33 | 34 | @Override 35 | public void onDataNotAvailable(String msg) { 36 | getView().getGameListDataFailed(msg); 37 | } 38 | 39 | @Override 40 | public void onCompleted() { 41 | getView().hideLoading(); 42 | } 43 | }); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/presenter/GetRankGamePresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.presenter; 2 | 3 | import com.stx.core.mvp.BasePresenter; 4 | import com.stx.xhb.dmgameapp.data.callback.LoadTaskCallback; 5 | import com.stx.xhb.dmgameapp.data.entity.GameRankBean; 6 | import com.stx.xhb.dmgameapp.data.remote.TasksRepositoryProxy; 7 | import com.stx.xhb.dmgameapp.mvp.contract.GetRankGameContract; 8 | 9 | import rx.Subscription; 10 | 11 | /** 12 | * @author: xiaohaibin. 13 | * @time: 2018/9/20 14 | * @mail:xhb_199409@163.com 15 | * @github:https://github.com/xiaohaibin 16 | * @describe: 17 | */ 18 | public class GetRankGamePresenter extends BasePresenter implements GetRankGameContract.Model{ 19 | @Override 20 | public void getRankGame(int currentpage, String uid) { 21 | if (getView()==null){ 22 | return; 23 | } 24 | Subscription subscription = TasksRepositoryProxy.getInstance().getRankGame(currentpage, uid, new LoadTaskCallback() { 25 | @Override 26 | public void onStart() { 27 | getView().showLoading(); 28 | } 29 | 30 | @Override 31 | public void onTaskLoaded(GameRankBean data) { 32 | getView().getDataSuccess(data); 33 | } 34 | 35 | @Override 36 | public void onDataNotAvailable(String msg) { 37 | getView().getFailed(msg); 38 | } 39 | 40 | @Override 41 | public void onCompleted() { 42 | getView().hideLoading(); 43 | } 44 | }); 45 | addSubscription(subscription); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/presenter/GetVideoListPresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.presenter; 2 | 3 | import android.text.TextUtils; 4 | 5 | import com.stx.core.mvp.BasePresenter; 6 | import com.stx.xhb.dmgameapp.data.callback.LoadTaskCallback; 7 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 8 | import com.stx.xhb.dmgameapp.data.remote.TasksRepositoryProxy; 9 | import com.stx.xhb.dmgameapp.mvp.contract.GetVideoContract; 10 | 11 | import rx.Subscription; 12 | 13 | /** 14 | * Author: Mr.xiao on 2017/9/18 15 | * @mail:xhb_199409@163.com 16 | * @github:https://github.com/xiaohaibin 17 | * @describe: 18 | */ 19 | 20 | public class GetVideoListPresenter extends BasePresenter implements GetVideoContract.getVideoModel { 21 | 22 | @Override 23 | public void getVideoList(int currentPage) { 24 | if (getView() == null) { 25 | return; 26 | } 27 | Subscription subscription = TasksRepositoryProxy.getInstance().getVideoPage(currentPage, new LoadTaskCallback() { 28 | @Override 29 | public void onTaskLoaded(NewsPageBean data) { 30 | getView().getVideoListSuccess(data); 31 | } 32 | 33 | @Override 34 | public void onDataNotAvailable(String msg) { 35 | getView().getVideoListFailed(TextUtils.isEmpty(msg) ? "服务器请求失败,请重试" : msg); 36 | } 37 | 38 | @Override 39 | public void onCompleted() { 40 | getView().hideLoading(); 41 | } 42 | }); 43 | addSubscription(subscription); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/CommentListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.CommentListBean; 11 | import com.stx.xhb.dmgameapp.data.entity.CommentsBean; 12 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.NewsCommentViewHolder; 13 | 14 | /** 15 | * @author: xiaohaibin. 16 | * @time: 2018/3/2 17 | * @mail:xhb_199409@163.com 18 | * @github:https://github.com/xiaohaibin 19 | * @describe: 评论列表实体类 20 | */ 21 | 22 | public class CommentListAdapter extends RecyclerArrayAdapter { 23 | 24 | private LayoutInflater mLayoutInflater; 25 | 26 | public CommentListAdapter(Context context) { 27 | super(context); 28 | mLayoutInflater = LayoutInflater.from(context); 29 | } 30 | 31 | @Override 32 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 33 | return new NewsCommentViewHolder(mLayoutInflater.inflate(R.layout.list_item_comment, parent, false)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/ForumDetailsListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.ForumListBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.ForumDetailsListViewHodler; 12 | 13 | 14 | /** 15 | * @author Mr.xiao 16 | * @time: 2017/11/1 0001 17 | * @email:xhb_199409@163.com 18 | * @Github:https://github.com/xiaohaibin/ 19 | * @Drscribe: 20 | */ 21 | 22 | public class ForumDetailsListAdapter extends RecyclerArrayAdapter { 23 | 24 | private LayoutInflater mLayoutInflater; 25 | 26 | public ForumDetailsListAdapter(Context context) { 27 | super(context); 28 | mLayoutInflater = LayoutInflater.from(context); 29 | } 30 | 31 | @Override 32 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 33 | return new ForumDetailsListViewHodler(mLayoutInflater.inflate(R.layout.list_item_forum_details, parent, false)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/ForumListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.ForumBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.ForumListViewHodler; 12 | 13 | /** 14 | * Author:xiaohaibin 15 | * Time:2017/9/21 16 | * Emil:xhb_199409@163.com 17 | * Github:https://github.com/xiaohaibin/ 18 | * Describe: 19 | */ 20 | 21 | public class ForumListAdapter extends RecyclerArrayAdapter { 22 | 23 | private final LayoutInflater mLayoutInflater; 24 | 25 | public ForumListAdapter(Context context) { 26 | super(context); 27 | mLayoutInflater = LayoutInflater.from(context); 28 | } 29 | 30 | @Override 31 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 32 | return new ForumListViewHodler(mLayoutInflater.inflate(R.layout.list_item_forum, parent, false)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/ForumViewPagerFragmentAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.support.v4.app.FragmentManager; 4 | import android.support.v4.app.FragmentStatePagerAdapter; 5 | 6 | import com.stx.core.base.BaseMvpFragment; 7 | import com.stx.xhb.dmgameapp.data.entity.ForumChannelListBean; 8 | import com.stx.xhb.dmgameapp.mvp.ui.fragment.ForumCommonFragment; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @author: Mr.xiao on 2017/3/5 14 | * @mail:xhb_199409@163.com 15 | * @github:https://github.com/xiaohaibin 16 | * @describe: 论坛ViewPager适配器 17 | */ 18 | public class ForumViewPagerFragmentAdapter extends FragmentStatePagerAdapter { 19 | private List mNewsTagList; 20 | 21 | public ForumViewPagerFragmentAdapter(FragmentManager fm, List newsTagList) { 22 | super(fm); 23 | this.mNewsTagList = newsTagList; 24 | } 25 | 26 | @Override 27 | public BaseMvpFragment getItem(int position) { 28 | ForumChannelListBean.HtmlEntity entity = mNewsTagList.get(position); 29 | return ForumCommonFragment.newInstance(entity.getFid()); 30 | } 31 | 32 | @Override 33 | public int getCount() { 34 | return mNewsTagList.size(); 35 | } 36 | 37 | @Override 38 | public CharSequence getPageTitle(int position) { 39 | return mNewsTagList.get(position % mNewsTagList.size()).getName(); 40 | } 41 | 42 | @Override 43 | public int getItemPosition(Object object) { 44 | return POSITION_NONE; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/GameAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.GameBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.GameViewHolder; 12 | 13 | /** 14 | * @author:xiaohaibin 15 | * @time:2017/9/20 16 | * @emil:xhb_199409@163.com 17 | * @Github:https://github.com/xiaohaibin/ 18 | * @Describe: 游戏适配器 19 | */ 20 | 21 | public class GameAdapter extends RecyclerArrayAdapter { 22 | 23 | private LayoutInflater mLayoutInflater; 24 | 25 | public GameAdapter(Context context) { 26 | super(context); 27 | mLayoutInflater = LayoutInflater.from(context); 28 | } 29 | 30 | @Override 31 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 32 | return new GameViewHolder(mLayoutInflater.inflate(R.layout.list_item_game, null)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/GameCommonAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | import android.widget.ImageView; 7 | import android.widget.LinearLayout; 8 | import android.widget.TextView; 9 | 10 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 11 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 12 | import com.stx.xhb.dmgameapp.R; 13 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 14 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.GameCommonViewHolder; 15 | 16 | import butterknife.Bind; 17 | 18 | /** 19 | * Author:xiaohaibin 20 | * Time:2017/9/18 21 | * Emil:xhb_199409@163.com 22 | * Github:https://github.com/xiaohaibin/ 23 | * Describe: 24 | */ 25 | public class GameCommonAdapter extends RecyclerArrayAdapter { 26 | 27 | private LayoutInflater mLayoutInflater; 28 | 29 | public GameCommonAdapter(Context context) { 30 | super(context); 31 | mLayoutInflater = LayoutInflater.from(context); 32 | } 33 | 34 | @Override 35 | public int getViewType(int position) { 36 | return super.getViewType(position); 37 | } 38 | 39 | @Override 40 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 41 | return new GameCommonViewHolder(mLayoutInflater.inflate(R.layout.list_item_sale_game, parent, false)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/GameRankAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.GameRankBean; 11 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 12 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.GameCommonViewHolder; 13 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.GameRankViewHolder; 14 | 15 | /** 16 | * Author:xiaohaibin 17 | * Time:2017/9/18 18 | * Emil:xhb_199409@163.com 19 | * Github:https://github.com/xiaohaibin/ 20 | * Describe: 21 | */ 22 | public class GameRankAdapter extends RecyclerArrayAdapter { 23 | 24 | private LayoutInflater mLayoutInflater; 25 | 26 | public GameRankAdapter(Context context) { 27 | super(context); 28 | mLayoutInflater = LayoutInflater.from(context); 29 | } 30 | 31 | @Override 32 | public int getViewType(int position) { 33 | return super.getViewType(position); 34 | } 35 | 36 | @Override 37 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 38 | return new GameRankViewHolder(mLayoutInflater.inflate(R.layout.list_item_rank_game, parent, false)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/GameVideoListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.View; 5 | import android.widget.ImageView; 6 | 7 | import com.bumptech.glide.Glide; 8 | import com.chad.library.adapter.base.BaseQuickAdapter; 9 | import com.chad.library.adapter.base.BaseViewHolder; 10 | import com.stx.xhb.dmgameapp.R; 11 | import com.stx.xhb.dmgameapp.mvp.ui.activity.WebDetailsActivity; 12 | import com.stx.xhb.dmgameapp.data.entity.VideoListBean; 13 | 14 | /** 15 | * Author : jxnk25 16 | * Time: 2017/10/23 0023 17 | * Email:xhb_199409@163.com 18 | * Email:xhb_199409@163.com 19 | * Github:https://github.com/xiaohaibin/ 20 | * Drscribe: 21 | */ 22 | 23 | public class GameVideoListAdapter extends BaseQuickAdapter { 24 | private Context context; 25 | 26 | public GameVideoListAdapter(Context context) { 27 | super(R.layout.list_item_video); 28 | this.context = context; 29 | } 30 | 31 | @Override 32 | protected void convert(BaseViewHolder helper, final VideoListBean.VideoBean data) { 33 | helper.setText(R.id.tv_video_title, data.getTitle()); 34 | helper.setText(R.id.tv_video_time, data.getSenddate()); 35 | helper.setText(R.id.tv_play_count, data.getClick() + "次播放"); 36 | ImageView mIvVideoImg = helper.getView(R.id.iv_video_img); 37 | Glide.with(context).load(data.getVideopic()).into(mIvVideoImg); 38 | helper.itemView.setOnClickListener(new View.OnClickListener() { 39 | @Override 40 | public void onClick(View v) { 41 | WebDetailsActivity.start(context, data.getVideourl(),data.getDescription(),data.getVideopic()); 42 | } 43 | }); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/GameViewPagerFragmentAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.support.v4.app.FragmentManager; 4 | import android.support.v4.app.FragmentStatePagerAdapter; 5 | 6 | import com.stx.core.base.BaseMvpFragment; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Author: Mr.xiao on 2017/3/5 12 | * 13 | * @mail:xhb_199409@163.com 14 | * @github:https://github.com/xiaohaibin 15 | * @describe: 游戏ViewPager适配器 16 | */ 17 | public class GameViewPagerFragmentAdapter extends FragmentStatePagerAdapter { 18 | private List mFragmentList; 19 | private String[] TITLE={"热门","发售","汉化","排行","分类"}; 20 | 21 | public GameViewPagerFragmentAdapter(FragmentManager fm, List fragmentList) { 22 | super(fm); 23 | this.mFragmentList = fragmentList; 24 | } 25 | 26 | @Override 27 | public BaseMvpFragment getItem(int position) { 28 | return mFragmentList.get(position); 29 | } 30 | 31 | @Override 32 | public int getCount() { 33 | return mFragmentList.size(); 34 | } 35 | 36 | @Override 37 | public CharSequence getPageTitle(int position) { 38 | return TITLE[position % TITLE.length]; 39 | } 40 | 41 | @Override 42 | public int getItemPosition(Object object) { 43 | return POSITION_NONE; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/MainFragmentPageAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentStatePagerAdapter; 6 | import android.view.ViewGroup; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Created by xhb on 2016/1/18. 12 | * 主界面Fragment的适配器 13 | */ 14 | public class MainFragmentPageAdapter extends FragmentStatePagerAdapter { 15 | 16 | private List fragments; 17 | private String[] titleList; 18 | 19 | public MainFragmentPageAdapter(FragmentManager fm, List fragments) { 20 | super(fm); 21 | this.fragments = fragments; 22 | } 23 | 24 | public MainFragmentPageAdapter(FragmentManager fm, List fragments, String[] titleList) { 25 | super(fm); 26 | this.fragments = fragments; 27 | this.titleList = titleList; 28 | } 29 | 30 | @Override 31 | public Fragment getItem(int position) { 32 | return fragments.get(position); 33 | } 34 | 35 | @Override 36 | public int getCount() { 37 | return fragments.size(); 38 | } 39 | 40 | @Override 41 | public CharSequence getPageTitle(int position) { 42 | return titleList == null ? "" : titleList[position % titleList.length]; 43 | } 44 | 45 | 46 | @Override 47 | public Object instantiateItem(ViewGroup container, final int position) { 48 | return super.instantiateItem(container, position); 49 | } 50 | 51 | @Override 52 | public void destroyItem(ViewGroup container, int position, Object object) { 53 | // super.destroyItem(container, position, object); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/NewsAboutAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | 8 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 9 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 10 | import com.stx.xhb.dmgameapp.R; 11 | import com.stx.xhb.dmgameapp.data.entity.NewsAboutBean; 12 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 13 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.NewsAboutViewHolder; 14 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.NewsAdViewHolder; 15 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.NewsCommonViewHolder; 16 | 17 | import java.util.List; 18 | 19 | /** 20 | * Author:xiaohaibin 21 | * Time:2017/9/18 22 | * Emil:xhb_199409@163.com 23 | * Github:https://github.com/xiaohaibin/ 24 | * Describe: 25 | */ 26 | public class NewsAboutAdapter extends RecyclerArrayAdapter { 27 | 28 | private LayoutInflater mLayoutInflater; 29 | 30 | public NewsAboutAdapter(Context context) { 31 | super(context); 32 | mLayoutInflater = LayoutInflater.from(context); 33 | } 34 | @Override 35 | public int getViewType(int position) { 36 | return super.getViewType(position); 37 | } 38 | 39 | @Override 40 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 41 | return new NewsAboutViewHolder(mLayoutInflater.inflate(R.layout.list_item_news_about, parent, false)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/NewsViewPagerFragmentAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.support.v4.app.FragmentManager; 4 | import android.support.v4.app.FragmentStatePagerAdapter; 5 | 6 | import com.stx.core.base.BaseMvpFragment; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Author: Mr.xiao on 2017/3/5 12 | * @mail:xhb_199409@163.com 13 | * @github:https://github.com/xiaohaibin 14 | * @describe: 资讯ViewPager适配器 15 | */ 16 | public class NewsViewPagerFragmentAdapter extends FragmentStatePagerAdapter { 17 | private List mFragmentList; 18 | private String[] TITLE=new String[]{"热点","新闻","原创","视频","娱乐"}; 19 | public NewsViewPagerFragmentAdapter(FragmentManager fm, List mFragmentList) { 20 | super(fm); 21 | this.mFragmentList = mFragmentList; 22 | } 23 | 24 | @Override 25 | public BaseMvpFragment getItem(int position) { 26 | return mFragmentList.get(position); 27 | } 28 | 29 | @Override 30 | public int getCount() { 31 | return mFragmentList.size(); 32 | } 33 | 34 | @Override 35 | public CharSequence getPageTitle(int position) { 36 | return TITLE[position % TITLE.length]; 37 | } 38 | 39 | @Override 40 | public int getItemPosition(Object object) { 41 | return POSITION_NONE; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/VideoDetailsListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.VideoListBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.VideoDetailsItemViewHolder; 12 | 13 | /** 14 | * Author:xiaohaibin 15 | * Time:2017/9/19 16 | * Emil:xhb_199409@163.com 17 | * Github:https://github.com/xiaohaibin/ 18 | * Describe:视频详情列表适配器 19 | */ 20 | 21 | public class VideoDetailsListAdapter extends RecyclerArrayAdapter { 22 | 23 | private LayoutInflater mLayoutInflater; 24 | 25 | public VideoDetailsListAdapter(Context context) { 26 | super(context); 27 | mLayoutInflater = LayoutInflater.from(context); 28 | } 29 | 30 | @Override 31 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 32 | return new VideoDetailsItemViewHolder(mLayoutInflater.inflate(R.layout.list_item_video_details, parent, false)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/VideoListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.ViewGroup; 6 | 7 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 8 | import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder.VideoListViewHolder; 12 | 13 | /** 14 | * Author:xiaohaibin 15 | * Time:2017/9/19 16 | * Emil:xhb_199409@163.com 17 | * Github:https://github.com/xiaohaibin/ 18 | * Describe:视频列表适配器 19 | */ 20 | 21 | public class VideoListAdapter extends RecyclerArrayAdapter { 22 | 23 | private LayoutInflater mLayoutInflater; 24 | 25 | public VideoListAdapter(Context context) { 26 | super(context); 27 | mLayoutInflater = LayoutInflater.from(context); 28 | } 29 | 30 | @Override 31 | public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { 32 | return new VideoListViewHolder(mLayoutInflater.inflate(R.layout.list_item_video, parent, false)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/ForumListViewHodler.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.view.View; 4 | import android.widget.ImageView; 5 | import android.widget.TextView; 6 | 7 | import com.bumptech.glide.Glide; 8 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.ForumBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.activity.ForumListActivity; 12 | 13 | import butterknife.Bind; 14 | import butterknife.ButterKnife; 15 | 16 | /** 17 | * @author Mr.xiao 18 | * Time:2017/9/21 19 | * Emil:xhb_199409@163.com 20 | * Github:https://github.com/xiaohaibin/ 21 | * Describe: 22 | */ 23 | 24 | public class ForumListViewHodler extends BaseViewHolder { 25 | @Bind(R.id.iv_forum) 26 | ImageView mIvForum; 27 | @Bind(R.id.tv_forum_title) 28 | TextView mTvForumTitle; 29 | @Bind(R.id.tv_count) 30 | TextView mTvCount; 31 | @Bind(R.id.tv_sort) 32 | TextView mTvSort; 33 | @Bind(R.id.btn_collect) 34 | TextView mBtnCollect; 35 | 36 | public ForumListViewHodler(View itemView) { 37 | super(itemView); 38 | ButterKnife.bind(this, itemView); 39 | } 40 | 41 | @Override 42 | public void setData(final ForumBean data) { 43 | Glide.with(getContext()).load(data.getIcon()).placeholder(R.drawable.product_default).error(R.drawable.product_default).into(mIvForum); 44 | mTvForumTitle.setText(data.getName()); 45 | mTvCount.setText("今日:" + data.getTodayposts()); 46 | mTvSort.setText("排名:" + data.getRank()); 47 | itemView.setOnClickListener(new View.OnClickListener() { 48 | @Override 49 | public void onClick(View v) { 50 | ForumListActivity.start(getContext(), data.getFid(), data.getName()); 51 | } 52 | }); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/GameListViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.GridLayoutManager; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.View; 7 | import android.widget.TextView; 8 | 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.GameBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.adapter.GameAdapter; 12 | import com.stx.xhb.dmgameapp.utils.ToastUtil; 13 | 14 | import java.util.List; 15 | 16 | import butterknife.Bind; 17 | import butterknife.ButterKnife; 18 | 19 | /** 20 | * @Author:xiaohaibin 21 | * @Time:2017/9/18 22 | * @Emil:xhb_199409@163.com 23 | * @Github:https://github.com/xiaohaibin/ 24 | * @Describe: 25 | */ 26 | public class GameListViewHolder { 27 | 28 | private Context mContext; 29 | @Bind(R.id.tv_title) 30 | TextView mTvTitle; 31 | @Bind(R.id.tv_more) 32 | TextView mTvMore; 33 | @Bind(R.id.rv_list) 34 | RecyclerView mRvList; 35 | 36 | public GameListViewHolder(View itemView, Context context,String title) { 37 | mContext = context; 38 | ButterKnife.bind(this, itemView); 39 | mTvTitle.setText(title); 40 | } 41 | 42 | public void setData(final List gameBeanList) { 43 | mRvList.setLayoutManager(new GridLayoutManager(mContext,3)); 44 | mRvList.setHasFixedSize(true); 45 | //设置焦点不需要 46 | mRvList.setFocusableInTouchMode(false); 47 | mRvList.requestFocus(); 48 | GameAdapter gameAdapter = new GameAdapter(mContext); 49 | mRvList.setAdapter(gameAdapter); 50 | gameAdapter.addAll(gameBeanList); 51 | mTvMore.setOnClickListener(new View.OnClickListener() { 52 | @Override 53 | public void onClick(View v) { 54 | ToastUtil.show("更多"); 55 | } 56 | }); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/GameRankViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.support.v4.content.ContextCompat; 4 | import android.view.Gravity; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.ImageView; 8 | import android.widget.LinearLayout; 9 | import android.widget.TextView; 10 | 11 | import com.bumptech.glide.Glide; 12 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 13 | import com.stx.core.utils.DateUtils; 14 | import com.stx.core.utils.ScreenUtil; 15 | import com.stx.xhb.dmgameapp.R; 16 | import com.stx.xhb.dmgameapp.data.entity.GameRankBean; 17 | import com.stx.xhb.dmgameapp.data.entity.SaleGameBean; 18 | 19 | import java.util.List; 20 | 21 | import butterknife.Bind; 22 | import butterknife.ButterKnife; 23 | 24 | /** 25 | * @author:xiaohaibin 26 | * @time:2017/9/18 27 | * @emil:xhb_199409@163.com 28 | * @Github:https://github.com/xiaohaibin/ 29 | * @Describe: 游戏通用 30 | */ 31 | 32 | public class GameRankViewHolder extends BaseViewHolder { 33 | @Bind(R.id.iv_game_img) 34 | ImageView mIvGameImg; 35 | @Bind(R.id.tv_title) 36 | TextView mTvTitle; 37 | @Bind(R.id.tv_desc) 38 | TextView mTvDesc; 39 | 40 | public GameRankViewHolder(View itemView) { 41 | super(itemView); 42 | ButterKnife.bind(this, itemView); 43 | } 44 | 45 | @Override 46 | public void setData(final GameRankBean.ListBean data) { 47 | Glide.with(getContext()).load(data.getLitpic()).into(mIvGameImg); 48 | mTvTitle.setText(data.getTitle()); 49 | mTvDesc.setText("类型:" + data.getType() + "\n" 50 | + "发售:" + DateUtils.dateFromat(data.getPubdate_at())+"\n" 51 | + "平台:" + data.getSystem()+"\n人气值:"+data.getClick()); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/NewsAboutViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.view.View; 4 | import android.widget.ImageView; 5 | import android.widget.TextView; 6 | 7 | import com.bumptech.glide.Glide; 8 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 9 | import com.stx.core.utils.DateUtils; 10 | import com.stx.xhb.dmgameapp.R; 11 | import com.stx.xhb.dmgameapp.data.entity.NewsAboutBean; 12 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 13 | import com.stx.xhb.dmgameapp.mvp.ui.activity.NewsDetailsActivity; 14 | 15 | import butterknife.Bind; 16 | import butterknife.ButterKnife; 17 | 18 | /** 19 | * @author:xiaohaibin 20 | * @time:2017/9/18 21 | * @emil:xhb_199409@163.com 22 | * @Github:https://github.com/xiaohaibin/ 23 | * @Describe: 24 | */ 25 | 26 | public class NewsAboutViewHolder extends BaseViewHolder { 27 | @Bind(R.id.title) 28 | TextView mTitle; 29 | @Bind(R.id.date) 30 | TextView mDate; 31 | @Bind(R.id.iv) 32 | ImageView mIv; 33 | @Bind(R.id.comment) 34 | TextView tvComment; 35 | 36 | public NewsAboutViewHolder(View itemView) { 37 | super(itemView); 38 | ButterKnife.bind(this, itemView); 39 | } 40 | 41 | @Override 42 | public void setData(final NewsAboutBean.ListBean data) { 43 | mTitle.setText(data.getTitle()); 44 | tvComment.setText(String.valueOf("评论:"+data.getTotal_ct())); 45 | mDate.setText(DateUtils.getFriendlyTime(data.getPubdate_at()+"000")); 46 | Glide.with(getContext()).load(data.getLitpic()).into(mIv); 47 | itemView.setOnClickListener(new View.OnClickListener() { 48 | @Override 49 | public void onClick(View v) { 50 | NewsDetailsActivity.start(getContext(),data.getWebviewurl(),data.getArcurl(),data.getTitle(),data.getLitpic()); 51 | } 52 | }); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/NewsCommonViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.view.View; 4 | import android.widget.ImageView; 5 | import android.widget.TextView; 6 | 7 | import com.bumptech.glide.Glide; 8 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 9 | import com.stx.core.utils.DateUtils; 10 | import com.stx.xhb.dmgameapp.R; 11 | import com.stx.xhb.dmgameapp.data.entity.NewsPageBean; 12 | import com.stx.xhb.dmgameapp.mvp.ui.activity.NewsDetailsActivity; 13 | import com.stx.xhb.dmgameapp.mvp.ui.activity.WebDetailsActivity; 14 | 15 | import butterknife.Bind; 16 | import butterknife.ButterKnife; 17 | 18 | /** 19 | * @author:xiaohaibin 20 | * @time:2017/9/18 21 | * @emil:xhb_199409@163.com 22 | * @Github:https://github.com/xiaohaibin/ 23 | * @Describe: 24 | */ 25 | 26 | public class NewsCommonViewHolder extends BaseViewHolder { 27 | @Bind(R.id.title) 28 | TextView mTitle; 29 | @Bind(R.id.date) 30 | TextView mDate; 31 | @Bind(R.id.iv) 32 | ImageView mIv; 33 | @Bind(R.id.author) 34 | TextView tvAuthor; 35 | 36 | public NewsCommonViewHolder(View itemView) { 37 | super(itemView); 38 | ButterKnife.bind(this, itemView); 39 | } 40 | 41 | @Override 42 | public void setData(final NewsPageBean.ListBean data) { 43 | mTitle.setText(data.getTitle()); 44 | tvAuthor.setText(data.getUser().getNickname()); 45 | mDate.setText(DateUtils.getFriendlyTime(data.getPubdate_at()+"000")); 46 | Glide.with(getContext()).load(data.getLitpic()).into(mIv); 47 | itemView.setOnClickListener(new View.OnClickListener() { 48 | @Override 49 | public void onClick(View v) { 50 | NewsDetailsActivity.start(getContext(),data.getWebviewurl(),data.getArcurl(),data.getTitle(),data.getLitpic()); 51 | } 52 | }); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/adapter/viewholder/VideoDetailsItemViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.adapter.viewholder; 2 | 3 | import android.view.View; 4 | import android.widget.ImageView; 5 | import android.widget.TextView; 6 | 7 | import com.bumptech.glide.Glide; 8 | import com.jude.easyrecyclerview.adapter.BaseViewHolder; 9 | import com.stx.xhb.dmgameapp.R; 10 | import com.stx.xhb.dmgameapp.data.entity.VideoListBean; 11 | import com.stx.xhb.dmgameapp.mvp.ui.activity.NewsDetailsActivity; 12 | 13 | import butterknife.Bind; 14 | import butterknife.ButterKnife; 15 | 16 | /** 17 | * @author:xiaohaibin 18 | * @time:2017/9/18 19 | * @emil:xhb_199409@163.com 20 | * @Github:https://github.com/xiaohaibin/ 21 | * @Describe: 22 | */ 23 | public class VideoDetailsItemViewHolder extends BaseViewHolder { 24 | 25 | @Bind(R.id.title) 26 | TextView mTitle; 27 | @Bind(R.id.date) 28 | TextView mDate; 29 | @Bind(R.id.tv_play_count) 30 | TextView mTvPlayCount; 31 | @Bind(R.id.iv) 32 | ImageView mIv; 33 | 34 | public VideoDetailsItemViewHolder(View itemView) { 35 | super(itemView); 36 | ButterKnife.bind(this, itemView); 37 | } 38 | 39 | @Override 40 | public void setData(final VideoListBean.VideoBean data) { 41 | mTitle.setText(data.getTitle()); 42 | mDate.setText(data.getSenddate()); 43 | mTvPlayCount.setText(data.getClick() + "次播放"); 44 | Glide.with(getContext()).load(data.getVideopic()).into(mIv); 45 | itemView.setOnClickListener(new View.OnClickListener() { 46 | @Override 47 | public void onClick(View v) { 48 | // NewsDetailsActivity.start(getContext(),data.getVideourl(),data.getTitle(),data.getVideopic()); 49 | } 50 | }); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/mvp/ui/game/CategoryFragment.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.mvp.ui.game; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.NonNull; 5 | 6 | import com.jude.easyrecyclerview.EasyRecyclerView; 7 | import com.stx.core.base.BaseMvpFragment; 8 | import com.stx.core.mvp.IPresenter; 9 | import com.stx.xhb.dmgameapp.R; 10 | 11 | import butterknife.Bind; 12 | 13 | /** 14 | * @author: xiaohaibin. 15 | * @time: 2018/9/20 16 | * @mail:xhb_199409@163.com 17 | * @github:https://github.com/xiaohaibin 18 | * @describe: 游戏分类 19 | */ 20 | public class CategoryFragment extends BaseMvpFragment { 21 | 22 | @Bind(R.id.id_stickynavlayout_innerscrollview) 23 | EasyRecyclerView mRvList; 24 | 25 | public static CategoryFragment newInstance() { 26 | return new CategoryFragment(); 27 | } 28 | 29 | @NonNull 30 | @Override 31 | protected IPresenter onLoadPresenter() { 32 | return null; 33 | } 34 | 35 | @NonNull 36 | @Override 37 | protected int getLayoutResource() { 38 | return R.layout.fragment_common; 39 | } 40 | 41 | @Override 42 | protected void onInitView(Bundle savedInstanceState) { 43 | 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/share/ShareAdapter.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.share; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.ImageView; 8 | import android.widget.TextView; 9 | 10 | import com.stx.core.base.BaseAdapter; 11 | import com.stx.core.utils.ScreenUtil; 12 | import com.stx.xhb.dmgameapp.R; 13 | 14 | 15 | /** 16 | * Author:xiaohaibin 17 | *

18 | * CrateTime:2016-12-15 11:11 19 | *

20 | * Description:分享适配器 21 | */ 22 | public abstract class ShareAdapter extends BaseAdapter { 23 | 24 | public ShareAdapter(Context context) { 25 | super(context); 26 | } 27 | 28 | @Override 29 | public Item onCreateViewHolder(ViewGroup parent, int viewType) { 30 | return new Item(getContext(), LayoutInflater.from(getContext()).inflate(R.layout.list_item_share, null)); 31 | } 32 | 33 | public static class Item extends BaseAdapter.Item { 34 | 35 | public ImageView iconImageView; 36 | public TextView nameTextView; 37 | 38 | public Item(Context context, View itemView) { 39 | super(context, itemView); 40 | iconImageView = (ImageView) itemView.findViewById(R.id.share_icon); 41 | nameTextView = (TextView) itemView.findViewById(R.id.share_name); 42 | } 43 | 44 | @Override 45 | public ViewGroup.LayoutParams getItemParams(Context context) { 46 | return new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ScreenUtil.dip2px(context, 96)); 47 | } 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/share/ShareChannel.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.share; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | *

6 | * CrateTime:2016-12-15 11:06 7 | *

8 | * Description:分享渠道 9 | */ 10 | public class ShareChannel { 11 | 12 | private int icon; 13 | private String name; 14 | 15 | public ShareChannel(int icon, String name) { 16 | this.icon = icon; 17 | this.name = name; 18 | } 19 | 20 | public int getIcon() { 21 | return icon; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/utils/JsonResponse.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.utils; 2 | 3 | import com.stx.xhb.dmgameapp.config.Constants; 4 | 5 | import org.json.JSONArray; 6 | import org.json.JSONObject; 7 | 8 | /** 9 | * @author Mr.xiao 10 | */ 11 | public class JsonResponse extends JsonParser { 12 | 13 | private int code=0; 14 | private String msg=""; 15 | private JSONArray rankkeyList = new JSONArray(); 16 | private int totalrow = 0; 17 | private JSONObject object = new JSONObject(); 18 | 19 | public JsonResponse(JSONObject jsonObject) { 20 | super(jsonObject); 21 | msg = getString("msg"); 22 | code = getInt("code"); 23 | rankkeyList = getJSONArray("rankkey"); 24 | totalrow = getInt("totalrow"); 25 | object = getJSONObject("html"); 26 | } 27 | 28 | public JSONArray getDataList() { 29 | return rankkeyList; 30 | } 31 | 32 | public JSONObject getObject() { 33 | return object; 34 | } 35 | 36 | public int getTotalCount() { 37 | return totalrow; 38 | } 39 | 40 | public String getMsg() { 41 | return msg; 42 | } 43 | 44 | public boolean isSuccess() { 45 | return code== Constants.SERVER_SUCCESS; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/utils/RequestBodyHelper.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.utils; 2 | 3 | import android.support.annotation.Nullable; 4 | import android.util.Log; 5 | 6 | import com.stx.core.utils.GsonUtil; 7 | import com.stx.xhb.dmgameapp.data.body.NewsAboutContent; 8 | 9 | import okhttp3.RequestBody; 10 | 11 | /** 12 | * Author: Mr.xiao on 2018/9/6 13 | * 14 | * @mail:xhb_199409@163.com 15 | * @github:https://github.com/xiaohaibin 16 | * @describe: RequestBody 工具类 17 | */ 18 | public class RequestBodyHelper { 19 | 20 | public static RequestBody creatRequestBody(@Nullable Object src) { 21 | return RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), GsonUtil.newGson().toJson(src)); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/utils/ToastUtil.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.utils; 2 | 3 | import android.widget.Toast; 4 | 5 | import com.stx.xhb.dmgameapp.DmgApplication; 6 | 7 | /** 8 | * @author Mr.xiao 9 | */ 10 | public class ToastUtil { 11 | 12 | /** 13 | * @param charSequence 显示文字 14 | */ 15 | public static void show(CharSequence charSequence) { 16 | show(charSequence, Toast.LENGTH_SHORT); 17 | } 18 | 19 | /** 20 | * @param charSequence 显示文字 21 | * @param duration 显示时长 Toast.LENGTH_LONG/LENGTH_SHORT 22 | */ 23 | public static void show(CharSequence charSequence, int duration) { 24 | DmgApplication.ToastManager.instance.show(charSequence, duration); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/web/MyWebViewClient.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.web; 2 | 3 | import android.graphics.Bitmap; 4 | import android.webkit.WebResourceRequest; 5 | import android.webkit.WebView; 6 | import android.webkit.WebViewClient; 7 | 8 | 9 | /** 10 | *

11 |  * author : zhaolin
12 |  * time : 2017/07/18
13 |  * desc :
14 |  * 
15 | */ 16 | public class MyWebViewClient extends WebViewClient { 17 | 18 | 19 | @Override 20 | public void onPageFinished(WebView view, String url) { 21 | view.getSettings().setJavaScriptEnabled(true); 22 | super.onPageFinished(view, url); 23 | // html加载完成之后,添加监听图片的点击js函数 24 | // WebHtmlUtil.clickImage(view); 25 | 26 | } 27 | 28 | @Override 29 | public void onPageStarted(WebView view, String url, Bitmap favicon) { 30 | view.getSettings().setJavaScriptEnabled(true); 31 | super.onPageStarted(view, url, favicon); 32 | } 33 | 34 | @Override 35 | public boolean shouldOverrideUrlLoading(WebView view, String url) { 36 | try { 37 | // WebViewFragment.openUrl(view.getContext(), "", UrlUtil.splicing(view.getContext(),url), Constants.SHARE_NEWS_CONTENT); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | return true; 42 | } 43 | 44 | @Override 45 | public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { 46 | return super.shouldOverrideUrlLoading(view, request); 47 | } 48 | 49 | @Override 50 | public void onReceivedLoginRequest(WebView view, String realm, String account, String args) { 51 | super.onReceivedLoginRequest(view, realm, account, args); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/java/com/stx/xhb/dmgameapp/wxapi/WXEntryActivity.java: -------------------------------------------------------------------------------- 1 | package com.stx.xhb.dmgameapp.wxapi; 2 | 3 | 4 | import com.umeng.weixin.callback.WXCallbackActivity; 5 | 6 | 7 | public class WXEntryActivity extends WXCallbackActivity { 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_shareboard_animation_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_shareboard_animation_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_slide_in_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/umeng_socialize_slide_out_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/default_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/default_image.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/grey_score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/grey_score.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_game_efault.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_game_efault.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_history.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_news_shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_news_shape.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_news_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_news_video.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_user_vertify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_user_vertify.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/icon_video_shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/icon_video_shape.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/img_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/img_red.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/product_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/product_default.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/tips_bg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/tips_bg.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/tips_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/tips_smile.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/user_head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/user_head.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/welcome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/welcome.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/yellew_score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-hdpi/yellew_score.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/about_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/about_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/app_ic_goto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/app_ic_goto.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/click_collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/click_collect.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/click_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/click_refresh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/click_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/click_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/collect.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_back_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_back_black.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_click_good.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_click_good.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_game_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_game_click.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_game_noclick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_game_noclick.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_header_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_header_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_mine_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_mine_click.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_mine_noclick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_mine_noclick.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_reply_write.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_reply_write.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/icon_setting.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/icon_titlebar_back.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/selector_btn_collect.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/selector_btn_getcode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/selector_trans_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/shape_edit_comment.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/shape_rounded_corner_btn.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 11 | 12 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/show_comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/show_comment.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_collect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_collect.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_email.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_information.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_name.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_password.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/user_safe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xhdpi/user_safe.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xxhdpi/icon_comment.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_tab_news.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xxhdpi/icon_tab_news.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_tab_news_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xxhdpi/icon_tab_news_selected.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_tab_topic_noclick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xxhdpi/icon_tab_topic_noclick.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/icon_topic_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable-xxhdpi/icon_topic_click.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/clipdrawable.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_click_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_click_refresh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_img_return.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_img_return.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_share_qoze.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_share_qoze.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_share_qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_share_qq.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_wx_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_wx_circle.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_wx_friend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/icon_wx_friend.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_color_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_game_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_mine_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_news_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/menu_topic_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_gray_rec_border_pandind_6dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_trans_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_bg_get_code_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_bg_get_code_press.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_blue_storke.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_btn_bg_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_btn_commit_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_image_storke.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_rec_90000000_corner_4dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_rounded_rectangle.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_rounded_yellow.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_rounded_yellow_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_toast_backgroud.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_back_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_back_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_btn_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_copy.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_copyurl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_copyurl.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_delete.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_edit_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_fav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_fav.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_menu_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_menu_default.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_more.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_qq.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_qzone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_qzone.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_share_music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_share_music.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_share_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_share_video.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_share_web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_share_web.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_wechat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/umeng_socialize_wxcircle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/drawable/umeng_socialize_wxcircle.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/web_progress_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_forum_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_news_detail.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_spalsh.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 23 | 24 | 31 | 32 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_empty_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_error_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_loading_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 12 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_no_network_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/dialog_post_comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 18 | 19 | 30 | 31 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/dialog_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 17 | 21 | 22 | 28 | 29 | 38 | 39 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_article.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 21 | 22 | 26 | 27 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_common.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_common_tab.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 16 | 17 | 26 | 27 | 31 | 32 | 41 | 42 | 43 | 44 | 48 | 49 | 53 | 54 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_video.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 22 | 23 | 27 | 28 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_ad_head.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_comments_more_footer.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_common_recyclerview.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_common_refresh_recyclerview.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_empty_comments_footer.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_game_details_top_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | 23 | 24 | 29 | 30 | 37 | 38 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_news_comment_label.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item_hot_game_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 21 | 22 | 28 | 29 | 30 | 31 | 35 | 36 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item_rank_game.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 20 | 21 | 28 | 29 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item_sale_game.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 20 | 21 | 28 | 29 | 38 | 39 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/list_item_sub_comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 20 | 21 | 31 | 32 | 33 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/listview_footer.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_error.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_more.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_nomore.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_tips.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14 | 19 | 20 | 27 | 28 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_toast.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/menu/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/v300_icon_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xhdpi/v300_icon_top.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xxhdpi/ic_empty.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xxhdpi/ic_error.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xxhdpi/ic_logo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_no_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/app/src/main/res/mipmap-xxhdpi/ic_no_network.png -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FF6347 4 | #FF6347 5 | #FF6347 6 | #4876FF 7 | #BDBDBD 8 | #575757 9 | #FF6347 10 | #ffffff 11 | #7f7f7f 12 | #535353 13 | #616161 14 | #ff909090 15 | #212121 16 | #20000000 17 | #1c1c1c 18 | #888888 19 | #8f9897 20 | #e2c523 21 | #f9e369 22 | 23 | #ededed 24 | #f3f3f3 25 | #008cf0 26 | #eeeeee 27 | #b9b9b9 28 | #f8f8f8 29 | #ededed 30 | #f1f4fb 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 游戏资讯 3 | 网络错误,点击重试 4 | 加载更多… 5 | --- 没有更多了 --- 6 | 暂无数据 7 | 警告 8 | 需要必要的权限才可以正常使用该功能,您已拒绝获得该权限。 如果需要重新授权,您可以点击“允许”按钮进入系统设置进行授权 9 | 取消 10 | 确定 11 | (分享至游戏资讯,下载链接:https://www.coolapk.com/apk/com.stx.xhb.dmgameapp) 12 | 加载中... 13 | 加载完成 14 | 加载失败 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 20 | 21 | 25 | 26 | 30 | 31 | 39 | 40 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /app/src/main/res/values/umeng_socialize_colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #F4F4F4 3 | #2c3035 4 | #333333 5 | #FFFFFF 6 | #E6E6E6 7 | #999999 8 | #464f61 9 | #959696 10 | #666666 11 | #EEEEEE 12 | #595959 13 | #C4C4C4 14 | #F8F8F8 15 | #F4F4F4 16 | #D4E0E5 17 | #ffffff 18 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | google() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.1.4' 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | maven { url "https://jitpack.io" } 18 | mavenCentral() 19 | jcenter() 20 | maven { 21 | url 'https://maven.google.com/' 22 | name 'Google' 23 | } 24 | google() 25 | } 26 | } -------------------------------------------------------------------------------- /config.gradle: -------------------------------------------------------------------------------- 1 | ext.appConfig = [ 2 | keyAlias : '3dmgame', 3 | keyPassWord : 'xhbxysy9862377', 4 | storeFile : '../key/3dmgame.jks', 5 | storePassWord: 'xhbxysy9862377', 6 | ] -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /core/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 E:\Android\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /core/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/base/BaseApplication.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.base; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | 6 | import com.stx.core.BuildConfig; 7 | import com.stx.core.log.LogLevel; 8 | import com.stx.core.log.Logger; 9 | 10 | /** 11 | * @author Mr.xiao 12 | */ 13 | public class BaseApplication extends Application { 14 | 15 | private static BaseApplication ourInstance; 16 | 17 | public static BaseApplication getInstance() { 18 | return ourInstance; 19 | } 20 | 21 | @Override 22 | public void onCreate() { 23 | super.onCreate(); 24 | ourInstance = this; 25 | Logger.init(getPackageName()) 26 | .methodCount(3) 27 | .hideThreadInfo() 28 | .logLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE); 29 | 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/AndroidLogTool.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | import android.util.Log; 4 | 5 | public class AndroidLogTool implements LogTool { 6 | 7 | public AndroidLogTool() { 8 | } 9 | 10 | public void d(String tag, String message) { 11 | Log.d(tag, message); 12 | } 13 | 14 | public void e(String tag, String message) { 15 | Log.e(tag, message); 16 | } 17 | 18 | public void w(String tag, String message) { 19 | Log.w(tag, message); 20 | } 21 | 22 | public void i(String tag, String message) { 23 | Log.i(tag, message); 24 | } 25 | 26 | public void v(String tag, String message) { 27 | Log.v(tag, message); 28 | } 29 | 30 | public void wtf(String tag, String message) { 31 | Log.wtf(tag, message); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/LogLevel.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | public enum LogLevel { 4 | FULL, 5 | NONE; 6 | 7 | private LogLevel() { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/LogTool.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | public interface LogTool { 4 | 5 | void d(String var1, String var2); 6 | 7 | void e(String var1, String var2); 8 | 9 | void w(String var1, String var2); 10 | 11 | void i(String var1, String var2); 12 | 13 | void v(String var1, String var2); 14 | 15 | void wtf(String var1, String var2); 16 | } 17 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/Printer.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | public interface Printer { 4 | 5 | Printer t(String var1, int var2); 6 | 7 | Settings init(String var1); 8 | 9 | Settings getSettings(); 10 | 11 | void d(String var1, Object... var2); 12 | 13 | void e(String var1, Object... var2); 14 | 15 | void e(Throwable var1, String var2, Object... var3); 16 | 17 | void w(String var1, Object... var2); 18 | 19 | void i(String var1, Object... var2); 20 | 21 | void v(String var1, Object... var2); 22 | 23 | void wtf(String var1, Object... var2); 24 | 25 | void json(String var1); 26 | 27 | void xml(String var1); 28 | 29 | void clear(); 30 | } 31 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/R.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | public final class R { 4 | public R() { 5 | } 6 | 7 | public static final class attr { 8 | public attr() { 9 | } 10 | } 11 | 12 | public static final class drawable { 13 | public static int ic_launcher = 2130837504; 14 | 15 | public drawable() { 16 | } 17 | } 18 | 19 | public static final class string { 20 | public static int app_name = 2130903040; 21 | 22 | public string() { 23 | } 24 | } 25 | 26 | public static final class style { 27 | public static int AppBaseTheme = 2130968576; 28 | public static int AppTheme = 2130968577; 29 | 30 | public style() { 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/log/Settings.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.log; 2 | 3 | public final class Settings { 4 | 5 | private int methodCount = 2; 6 | private boolean showThreadInfo = true; 7 | private int methodOffset = 0; 8 | private LogTool logTool; 9 | private LogLevel logLevel; 10 | private boolean DEBUG = true; 11 | 12 | public Settings() { 13 | this.logLevel = LogLevel.FULL; 14 | } 15 | 16 | public Settings hideThreadInfo() { 17 | this.showThreadInfo = false; 18 | return this; 19 | } 20 | 21 | public Settings debug(boolean debug) { 22 | this.DEBUG = debug; 23 | return this; 24 | } 25 | 26 | public Settings methodCount(int methodCount) { 27 | if (methodCount < 0) { 28 | methodCount = 0; 29 | } 30 | 31 | this.methodCount = methodCount; 32 | return this; 33 | } 34 | 35 | public Settings logLevel(LogLevel logLevel) { 36 | this.logLevel = logLevel; 37 | return this; 38 | } 39 | 40 | public Settings methodOffset(int offset) { 41 | this.methodOffset = offset; 42 | return this; 43 | } 44 | 45 | public Settings logTool(LogTool logTool) { 46 | this.logTool = logTool; 47 | return this; 48 | } 49 | 50 | public int getMethodCount() { 51 | return this.methodCount; 52 | } 53 | 54 | public boolean isShowThreadInfo() { 55 | return this.showThreadInfo; 56 | } 57 | 58 | public LogLevel getLogLevel() { 59 | return this.logLevel; 60 | } 61 | 62 | public int getMethodOffset() { 63 | return this.methodOffset; 64 | } 65 | 66 | public LogTool getLogTool() { 67 | if (this.logTool == null) { 68 | this.logTool = new AndroidLogTool(); 69 | } 70 | 71 | return this.logTool; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/mvp/BasePresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.mvp; 2 | 3 | import rx.Subscription; 4 | import rx.subscriptions.CompositeSubscription; 5 | 6 | /** 7 | * Author:xiaohaibin 8 | * Time:2017/9/12 9 | * Emil:xhb_199409@163.com 10 | * Github:https://github.com/xiaohaibin/ 11 | * Describe: 12 | */ 13 | public class BasePresenter implements IPresenter { 14 | 15 | private CompositeSubscription mCompositeSubscription; 16 | 17 | protected V mView; 18 | 19 | @Override 20 | public void onStart() { 21 | } 22 | 23 | @Override 24 | public void attachView(V mvpView) { 25 | this.mView = mvpView; 26 | } 27 | 28 | @Override 29 | public void detachView() { 30 | this.mView = null; 31 | unSubsription(); 32 | } 33 | 34 | @Override 35 | public boolean isViewBind() { 36 | return mView != null; 37 | } 38 | 39 | public V getView() { 40 | return mView; 41 | } 42 | 43 | public CompositeSubscription getCompositeSubscription() { 44 | if (this.mCompositeSubscription == null) { 45 | this.mCompositeSubscription = new CompositeSubscription(); 46 | } 47 | 48 | return this.mCompositeSubscription; 49 | } 50 | 51 | public void addSubscription(Subscription s) { 52 | if (this.mCompositeSubscription == null) { 53 | this.mCompositeSubscription = new CompositeSubscription(); 54 | } 55 | 56 | this.mCompositeSubscription.add(s); 57 | } 58 | 59 | public void unSubsription() { 60 | if (this.mCompositeSubscription != null) { 61 | this.mCompositeSubscription.unsubscribe(); 62 | } 63 | } 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/mvp/IModel.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.mvp; 2 | 3 | /** 4 | * @author: xiaohaibin. 5 | * @time: 2018/1/2 6 | * @mail:xhb_199409@163.com 7 | * @github:https://github.com/xiaohaibin 8 | * @describe: 9 | */ 10 | 11 | public interface IModel { 12 | } 13 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/mvp/IPresenter.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.mvp; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/12 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe: 9 | */ 10 | public interface IPresenter { 11 | 12 | void attachView(V mvpView); 13 | 14 | void onStart(); 15 | 16 | void detachView(); 17 | 18 | boolean isViewBind(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/mvp/IView.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.mvp; 2 | 3 | /** 4 | * Author:xiaohaibin 5 | * Time:2017/9/12 6 | * Emil:xhb_199409@163.com 7 | * Github:https://github.com/xiaohaibin/ 8 | * Describe: 9 | */ 10 | 11 | public interface IView { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/utils/AppUtils.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.utils; 2 | 3 | import android.content.Context; 4 | import android.content.pm.PackageInfo; 5 | import android.content.pm.PackageManager; 6 | 7 | /** 8 | * Created by xhb on 2016/3/9. 9 | * 版本工具类 10 | */ 11 | public class AppUtils { 12 | /** 13 | * 获取版本号 14 | * 15 | * @return 当前应用版本号 16 | */ 17 | public static String getVersion(Context context) { 18 | try { 19 | PackageManager manager = context.getPackageManager(); 20 | PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0); 21 | String version = info.versionName; 22 | return "V"+version; 23 | } catch (Exception e) { 24 | e.printStackTrace(); 25 | return "获取程序版本失败"; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /core/src/main/java/com/stx/core/utils/StringUtils.java: -------------------------------------------------------------------------------- 1 | package com.stx.core.utils; 2 | 3 | import java.security.MessageDigest; 4 | import java.security.NoSuchAlgorithmException; 5 | 6 | /** 7 | * @author: xiaohaibin. 8 | * @time: 2018/9/6 9 | * @mail:xhb_199409@163.com 10 | * @github:https://github.com/xiaohaibin 11 | * @describe: 字符串工具类 12 | */ 13 | public class StringUtils { 14 | 15 | public static String getMD5(String content) { 16 | content=content+"e8S8Ho0N25z78u6qn4kHyN"; 17 | try { 18 | MessageDigest digest = MessageDigest.getInstance("MD5"); 19 | digest.update(content.getBytes()); 20 | return getHashString(digest); 21 | } catch (NoSuchAlgorithmException e) { 22 | e.printStackTrace(); 23 | } 24 | return null; 25 | } 26 | 27 | private static String getHashString(MessageDigest digest) { 28 | StringBuilder builder = new StringBuilder(); 29 | for (byte b : digest.digest()) { 30 | builder.append(Integer.toHexString((b >> 4) & 0xf)); 31 | builder.append(Integer.toHexString(b & 0xf)); 32 | } 33 | return builder.toString(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/res/drawable-hdpi/dialog_toast_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-hdpi/dialog_toast_bg.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/abc_ic_ab_back_mtrl_am_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/abc_ic_ab_back_mtrl_am_alpha.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/abc_ic_menu_share_mtrl_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/abc_ic_menu_share_mtrl_alpha.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/qmui_icon_checkmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/qmui_icon_checkmark.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/qmui_icon_notify_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/qmui_icon_notify_done.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/qmui_icon_notify_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/qmui_icon_notify_error.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/qmui_icon_notify_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/qmui_icon_notify_info.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/search_clear_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/search_clear_normal.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xhdpi/search_clear_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xhdpi/search_clear_pressed.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/eye_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/eye_close.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/eye_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/eye_open.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/img_cmmon_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/img_cmmon_next.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_edittext_bg_border_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_icon_checkmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/qmui_icon_checkmark.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_icon_notify_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/qmui_icon_notify_done.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_icon_notify_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/qmui_icon_notify_error.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_icon_notify_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/core/src/main/res/drawable-xxhdpi/qmui_icon_notify_info.png -------------------------------------------------------------------------------- /core/src/main/res/drawable-xxhdpi/qmui_s_dialog_check_mark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /core/src/main/res/drawable/delete_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /core/src/main/res/layout/easy_progress_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 20 | 21 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /core/src/main/res/layout/foot_custom_listview.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 20 | 21 | -------------------------------------------------------------------------------- /core/src/main/res/layout/layout_divider_panding.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /core/src/main/res/layout/layout_widget_label_indicator_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 17 | 18 | 23 | 24 | 31 | 32 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /core/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /core/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #1c1c1c 5 | #FF6347 6 | #888888 7 | 8 | #ededed 9 | 10 | #f3f3f3 11 | #ffffff 12 | 13 | 14 | 17 | #00000000 18 | #547FB0 19 | #ffffff 20 | -------------------------------------------------------------------------------- /core/src/main/res/values/ids_sticky_nav_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /core/src/main/res/values/qmui_attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /core/src/main/res/values/qmui_styles_widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 26 | 27 | -------------------------------------------------------------------------------- /core/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | \u200b 5 | core 6 | 7 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | ## Project-wide Gradle settings. 2 | # 3 | # For more details on how to configure your build environment visit 4 | # http://www.gradle.org/docs/current/userguide/build_environment.html 5 | # 6 | # Specifies the JVM arguments used for the daemon process. 7 | # The setting is particularly useful for tweaking memory settings. 8 | # Default value: -Xmx1024m -XX:MaxPermSize=256m 9 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 10 | # 11 | # When configured, Gradle will run in incubating parallel mode. 12 | # This option should only be used with decoupled projects. More details, visit 13 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 14 | # org.gradle.parallel=true 15 | #Fri Dec 29 10:34:45 CST 2017 16 | systemProp.http.proxyHost=mirrors.zzu.edu.cn 17 | systemProp.http.proxyPort=80 18 | android.useDeprecatedNdk=true 19 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Aug 25 12:40:34 CST 2018 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-4.4-all.zip 7 | -------------------------------------------------------------------------------- /screenshot/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/screenshot/1.jpg -------------------------------------------------------------------------------- /screenshot/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/screenshot/2.jpg -------------------------------------------------------------------------------- /screenshot/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/screenshot/3.jpg -------------------------------------------------------------------------------- /screenshot/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohaibin/DMGameApp/b2d238a2066ca2397b37c36a5a7aaf93932df5cd/screenshot/4.jpg -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':core' 2 | --------------------------------------------------------------------------------