From 54aa5fee67039f72b532ebc4fe2073b4f5a5d1a3 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 8 Nov 2023 10:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E8=A7=84=E5=88=99=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/dialog/SudGameListPopup.java | 15 ++- .../common/dialog/SudGameRuleBottom.java | 32 +++++ .../common/dialog/SudGameRulePopup.java | 32 +++++ .../main/res/layout/dialog_sud_game_list.xml | 5 +- .../res/layout/sud_game_rule_bottom_popup.xml | 100 ++++++++++++++++ .../main/res/layout/sud_game_rule_popup.xml | 109 ++++++++++++++++++ .../main/res/mipmap-xxhdpi/icon_sud_rule.png | Bin 0 -> 4131 bytes .../mipmap-xxhdpi/icon_sud_rule_bottom.png | Bin 0 -> 3687 bytes .../res/mipmap-xxhdpi/icon_sud_rule_close.png | Bin 0 -> 4505 bytes .../icon_sud_rule_close_bottom.png | Bin 0 -> 1381 bytes common/src/main/res/values-en-rUS/string.xml | 7 +- common/src/main/res/values-zh-rHK/strings.xml | 5 + common/src/main/res/values-zh-rTW/strings.xml | 5 + common/src/main/res/values-zh/strings.xml | 5 + common/src/main/res/values/strings.xml | 7 +- .../main/views/MainHomeGameViewHolder.java | 20 +++- .../layout/view_main_home_sud_game_list.xml | 5 +- 17 files changed, 335 insertions(+), 12 deletions(-) create mode 100644 common/src/main/java/com/yunbao/common/dialog/SudGameRuleBottom.java create mode 100644 common/src/main/java/com/yunbao/common/dialog/SudGameRulePopup.java create mode 100644 common/src/main/res/layout/sud_game_rule_bottom_popup.xml create mode 100644 common/src/main/res/layout/sud_game_rule_popup.xml create mode 100644 common/src/main/res/mipmap-xxhdpi/icon_sud_rule.png create mode 100644 common/src/main/res/mipmap-xxhdpi/icon_sud_rule_bottom.png create mode 100644 common/src/main/res/mipmap-xxhdpi/icon_sud_rule_close.png create mode 100644 common/src/main/res/mipmap-xxhdpi/icon_sud_rule_close_bottom.png diff --git a/common/src/main/java/com/yunbao/common/dialog/SudGameListPopup.java b/common/src/main/java/com/yunbao/common/dialog/SudGameListPopup.java index 7ce57a4bd..3a7fcca68 100644 --- a/common/src/main/java/com/yunbao/common/dialog/SudGameListPopup.java +++ b/common/src/main/java/com/yunbao/common/dialog/SudGameListPopup.java @@ -34,7 +34,6 @@ import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.ToastUtil; -import com.yunbao.common.views.LiveSudGamePopup; import com.yunbao.common.views.weight.ViewClicksAntiShake; import org.greenrobot.eventbus.Subscribe; @@ -158,14 +157,14 @@ public class SudGameListPopup extends BottomPopupView { @Override public void onViewClicks() { LiveNetManager.get(getContext()) - .randomRoom(id, mSill, roomHolderType,new com.yunbao.common.http.base.HttpCallback() { + .randomRoom(id, mSill, roomHolderType, new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(CreateSudRoomModel data) { if (data != null) { Bus.get().post(new LiveSudGamePopupShowOrHideEvent().setType(0).setCreateSudRoomModel(data)); dialog.dismiss(); - }else { + } else { if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { ToastUtil.show("当前没有可加入的房间"); } else { @@ -254,6 +253,16 @@ public class SudGameListPopup extends BottomPopupView { .asCustom(new CreateSudGamePopup(getContext(), customSidebarChildModels, false)) .show(); + + } + }); + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.sud_rule_bottom), new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + + new XPopup.Builder(getContext()) + .enableDrag(false) + .asCustom(new SudGameRuleBottom(getContext())).show(); } }); diff --git a/common/src/main/java/com/yunbao/common/dialog/SudGameRuleBottom.java b/common/src/main/java/com/yunbao/common/dialog/SudGameRuleBottom.java new file mode 100644 index 000000000..6a0e84cc4 --- /dev/null +++ b/common/src/main/java/com/yunbao/common/dialog/SudGameRuleBottom.java @@ -0,0 +1,32 @@ +package com.yunbao.common.dialog; + +import android.content.Context; + +import androidx.annotation.NonNull; + +import com.lxj.xpopup.core.BottomPopupView; +import com.yunbao.common.R; +import com.yunbao.common.views.weight.ViewClicksAntiShake; + +public class SudGameRuleBottom extends BottomPopupView { + public SudGameRuleBottom(@NonNull Context context) { + super(context); + } + + @Override + protected int getImplLayoutId() { + return R.layout.sud_game_rule_bottom_popup; + } + + // 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑 + @Override + protected void onCreate() { + super.onCreate(); + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.sud_rule_close), new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + dialog.dismiss(); + } + }); + } +} diff --git a/common/src/main/java/com/yunbao/common/dialog/SudGameRulePopup.java b/common/src/main/java/com/yunbao/common/dialog/SudGameRulePopup.java new file mode 100644 index 000000000..71fefc328 --- /dev/null +++ b/common/src/main/java/com/yunbao/common/dialog/SudGameRulePopup.java @@ -0,0 +1,32 @@ +package com.yunbao.common.dialog; + +import android.content.Context; + +import androidx.annotation.NonNull; + +import com.lxj.xpopup.core.CenterPopupView; +import com.yunbao.common.R; +import com.yunbao.common.views.weight.ViewClicksAntiShake; + +public class SudGameRulePopup extends CenterPopupView { + public SudGameRulePopup(@NonNull Context context) { + super(context); + } + + @Override + protected int getImplLayoutId() { + return R.layout.sud_game_rule_popup; + } + + // 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑 + @Override + protected void onCreate() { + super.onCreate(); + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.sud_rule_close), new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + dialog.dismiss(); + } + }); + } +} diff --git a/common/src/main/res/layout/dialog_sud_game_list.xml b/common/src/main/res/layout/dialog_sud_game_list.xml index 27b1b61cb..50ccf0fea 100644 --- a/common/src/main/res/layout/dialog_sud_game_list.xml +++ b/common/src/main/res/layout/dialog_sud_game_list.xml @@ -49,12 +49,13 @@ android:src="@mipmap/icon_interactive_game__add" /> + android:src="@mipmap/icon_sud_rule_bottom" + android:visibility="visible" /> + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/common/src/main/res/layout/sud_game_rule_popup.xml b/common/src/main/res/layout/sud_game_rule_popup.xml new file mode 100644 index 000000000..7733ff7a5 --- /dev/null +++ b/common/src/main/res/layout/sud_game_rule_popup.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/common/src/main/res/mipmap-xxhdpi/icon_sud_rule.png b/common/src/main/res/mipmap-xxhdpi/icon_sud_rule.png new file mode 100644 index 0000000000000000000000000000000000000000..b793e0d97232f4301b38627456637849ed156cd8 GIT binary patch literal 4131 zcmV+;5Zv#HP)Px^-AP12RCr$PU3qX@#Toy0pPppdx@^amCD}P3fg}!gNE|y50s%roLZRWll6HCw zouPk}fieTb44rnSw9^*a{!wQ7N13(+C^v)wazK+nFgfg8B?&o*V_S!fBUy*7^S!s7 z@7W5rCE1d!rz5a4o@DHOyWjry+i$;XcL@|pVT|#1yIo&ZR#pZqYK{r44S*~m6c$Ph zDuFQ_0O$xIl}IvUY!Cp3fRF$%@Da+s00|Bi$?T7%~nF43UyD%1ufglK(&^qn9DwPU&o`+C4 zbQlk&XPp#4tg42iHm0D;?qfeDu~%GzQo7ic2j1qN@^3jN~-gTbu? zjX4MU^y$-@8ODk>5ZQ}rm1-t#YNb$c6O9Q%H{-+~ocBfc&6_tbl1sXC3bfbZSOSzh zQKr${9TQ?87Fa}N3Y4t1@H~XW;nx^t&s3W0k7U|Ls`@zt+UIiJB7yV@B}89rA|g|; zMn#IB0DZt{vAmz@_sQx{8|aRX4t}oH@*9Ie|Aapf$OTPB(}qE>2fsh?`!i10(=F39 ze5M7oueY~~ar9-inqM1@6@>wo^GQ!rlPdeP+y;wR+1IaUZ=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cF^LXnp72{f#)ufoSfyd|sXjvpfzpTq?7!-;9Q zcwZB8G;($^7C9x1sOFKny5YPgIc5t6ZhFYIWWpf?22An%xol}pn&gO$$!WW4?P2uq zepjZC03HbmMuLfHyE52$NJO9h5Q@JAbOpqO6p83azNgP|ze%Tm`C>_?Db$o;(#&vR z_+Gum@>-mRydM_IX7E!TS1u+)D}Go=(rDYNs;YcRftFRhKIfCbn4-tuG65Tv{&T&( zDczrVUSxJdLor!~c)a&1leIqe@izp(?Qk@3gdGKi4|JvrHl9X(b<2A&987+;rlMR6 z_uh7E@#xa>flh5xwXJ&G%`{05ZTg(fXL+^i(PA(J5a?Il*&?SDBrBM;kJt`n$S5aIeF&W^c1awx{NaXWklu`$JS{I|>;Qe;{ zWfFybh1?iRgQJ;`sx+;JnwnFom}bfw47@J;T?W13^+Fjjc=&Sj8*j@AGsy~`9p8A@ z?RZgZIwC*kb>ws3!$Wsgnyqh5*7%e_%cgmOu4BW#aam$IZmI|h>e)tvz94~FTy2qP zG&k3=;b6PEy2>ic)OhLZ@ z++uFy}LqvH)?9te}j`;_CV3n50* z9hegJSMGU+2@pt11*r?W)`Y$v7U+jdd+kO1WRntWW;9iPRZ-CiHz zU_VDW%f-&w$jPE4b!)`3Ys%}>7Z+nWJ}ZunH^5x38XrjiR`dML#o*M*WGSaxx8RQ{ z#0mZGd64v`Y+4*WwhN!jehUM5i4bZmrie#+FpRGyr*cV>hZ1g+(PH@^n>HqXlQW>P z;egB4D1!8KnWpTXl6}HS#pC@UuX7B3rMFs7b!p&7f@pj}#$xOQCM3DZ&^L$;Y z9DT;r;Ak|~3o5elyl=R;A0-<*X^b(ouiyDRNN^{R5_o1$Vy|wuwEz4ba*rYhU~)=?bj zIAQn{s!FR}D=_itfRxP002ovPDHLkV1ibs(7*ry literal 0 HcmV?d00001 diff --git a/common/src/main/res/mipmap-xxhdpi/icon_sud_rule_bottom.png b/common/src/main/res/mipmap-xxhdpi/icon_sud_rule_bottom.png new file mode 100644 index 0000000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AxBG> zE)}y<_1Gm~5UbxWWhHWPHXcS$2jj97Cf>*q=114m)FdsA5sRnR#aS$vsC0u^os#<< zm!6({@<~{;22XP6NSKU+Wz6E7$aL}hbOZdMu(0q!#@GR)6KIS88WY+vWx=G>Hi0H5 zCnqyII~(KDrrUmus$`&T2x@ym zb%7gz%&0bGlN^zOM5OJ;19YlBqnNfUO^SvlqNgfoTKnB;B05%J6RJ zq_~9;^1K<6Y7pr1@^Zzz4b0jfJ$ke$fY!7{IU;R|*mSQ(vQq_U$!@;n^?GH~rA%>* zL}!4f3ed_bu<_QLN zyM30;X4@0XmQ|x~<0*6V=1uW%sy=<>501oiuc1SS%5JHPr#-FDNQvf;`2GIBboOja zpz+~k9mgi=J@LFHrK8qx1tt&(BxPY%*W=ibS?PemPXS@sLypXhjAT(!(O{nEJwF@*%bL>C(wtRQRds6LSXDYYx-#4@ z$8j8c+daev*)bx+9|~9X(%82vJT{ z)-vQKFN;Ud^F06KKp>!6T|~1KmqbT_-H+qAKTt|1n;`&Y#8@T$GKDCnez+b)#Rzvv zqT5Z9(`#=^0jUDEq>HamN*_1VatE)@ewymTB9Swf_3)lrg z7%d0_Ucio9K5&;%mcj+>7=LIG1fiM`Qps`LDKlQc{y(WUxmVi|VIu$l002ovPDHLk FV1g&f`Z@pr literal 0 HcmV?d00001 diff --git a/common/src/main/res/mipmap-xxhdpi/icon_sud_rule_close.png b/common/src/main/res/mipmap-xxhdpi/icon_sud_rule_close.png new file mode 100644 index 0000000000000000000000000000000000000000..a4077b521d694902d076c78aa88fa45785c1aaec GIT binary patch literal 4505 zcmV;K5oYd*P)Px`Q%OWYRCr$PTzzyL)pfu3z1h{SYzY}^*#r!3P8?F&VjQOdVn~%hEo`LOkkQ4}zlRyYI4lW-7BJl34WUDqNalzputqS-Mms8r%U}Lb2Kag#C zcXsC8o~!dl9fYKr(MqO&=$)fuTl40<`+o1f`|kbSJ4P67gCc;V_zaG~C_o_^G78Wr zK$RJhQ4RWks6jY=`gEhFrbg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5AC#WTX7Dqv3b#048$XJ z00V;bXnzr|FIMd<)6K8kDijFxJg>c=9O<9|iuUF_@NfL>QN6orvo@!fML1p9X3xt0 zkQ#Hhx5Sn}og`&EYpT91kt?{1&snD^@~L#ICF=I;OEizgHOF+jS~7Zn^3k#hdQ<6e zxL+XY@m62v{K>^TFfxNJ05ieIjU8hWqil_d!l&tkbRI0_A3aLw-?+b0+FtFrI{MKM ziMx5}pS`NtItPap9lC5tz8{J*=P5hpR%_qkdn!XPc;$qp%-MPuFnI!n&&#Bs?f0_W zSQ@}pa*a;csG7G>pBW1rb$HcKUdmJAl8;Kn5%(lkfYU45*ivjYF5yUp`eqT}gMm|| e{>KgJ^LN1?$AYhV%$9t+PY{6dKsTU*Zu|=}HH5VQ literal 0 HcmV?d00001 diff --git a/common/src/main/res/values-en-rUS/string.xml b/common/src/main/res/values-en-rUS/string.xml index a46f1cc00..901764811 100644 --- a/common/src/main/res/values-en-rUS/string.xml +++ b/common/src/main/res/values-en-rUS/string.xml @@ -1286,7 +1286,7 @@ Limited ride And limited avatar frame Equal love: The cumulative number of people who have given gifts to the anchor reaches 50 to light up this achievement; Gift machine: when the accumulated number of gifts reaches 1000, this achievement will be activated; Lighting Master: Unlock [Gift Wall] reaches 100 to light up this achievement. - rule + Rules The current event has not sent any gifts Rule introduction Gift details @@ -1367,5 +1367,10 @@ Limited ride And limited avatar frame You are currently in the game, please return in a timely manner.\n Failure to return for a long time will be considered a surrender. \n During the minimization, it will not be able to switch between live rooms Exiting the live room will synchronize with exiting the game room. \n Do you want to continue minimize + 1. Interactive games are a new section provided by PDLIVE for users, who can participate in the game section on the homepage or in the live room; + 2. Currently, we have launched \'GoBang\',\' Bumper car \',\' Flying Chess\', \'Minesweeping\', \'Dart Master\', and \'Monster Eliminating\'. We will provide more game types in the future. Stay tuned; + 3. Users can customize the game threshold, which must be between 100 to 50000 gold beans or 10 to 1000 star coins, and the amount must be a multiple of 10; + 4. At the beginning of the game, chips from participating users will be collected. After the game ends, 10% of the chips will be collected as tickets, and all remaining chips will be given to the winning users.In a draw, the corresponding chips will be deducted from the tickets and returned to the users; + 5. The final interpretation right of the event belongs to PDLIVE. diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml index 9174341da..34df13862 100644 --- a/common/src/main/res/values-zh-rHK/strings.xml +++ b/common/src/main/res/values-zh-rHK/strings.xml @@ -1364,4 +1364,9 @@ 您正在遊戲中,請及時返回 長時間未返回將會視爲認輸哦 退出直播間將會同步退出遊戲房間 是否继续 最小化 + 1、互動遊戲是PDLIVE為用戶提供的全新板塊,用戶可以在首頁【遊戲專區】或直播間內參與; + 2、目前已上線【五子棋】、【碰碰我最強】、【飛行棋】、【扫雷】、【飞镖达人】、【怪兽消消乐】,後續將會提供更多遊戲種類,敬請期待; + 3、用戶可自定義設定遊戲門檻,要求在100~50000金豆之間,數額必須為10的倍數; + 4、遊戲開始時將會收取參與遊戲用戶的門檻金豆,在遊戲結束後,將收取10%的金豆作為門票,剩餘金豆將全部給予勝利用戶,平局時將會扣除相應金豆门票後返還給用戶; + 5、活動最終解釋權歸PDLIVE所有。 diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml index ddc2a7f1d..56873da1c 100644 --- a/common/src/main/res/values-zh-rTW/strings.xml +++ b/common/src/main/res/values-zh-rTW/strings.xml @@ -1363,4 +1363,9 @@ 若您正在遊戲中,請及時返回\n長時間未返回將會視爲認輸哦\n【最小化期間將無法切換直播間】 退出直播間將會同步退出遊戲房間 是否继续 最小化 + 1、互動遊戲是PDLIVE為用戶提供的全新板塊,用戶可以在首頁【遊戲專區】或直播間內參與; + 2、目前已上線【五子棋】、【碰碰我最強】、【飛行棋】、【扫雷】、【飞镖达人】、【怪兽消消乐】,後續將會提供更多遊戲種類,敬請期待; + 3、用戶可自定義設定遊戲門檻,要求在100~50000金豆之間,數額必須為10的倍數; + 4、遊戲開始時將會收取參與遊戲用戶的門檻金豆,在遊戲結束後,將收取10%的金豆作為門票,剩餘金豆將全部給予勝利用戶,平局時將會扣除相應金豆门票後返還給用戶; + 5、活動最終解釋權歸PDLIVE所有。 diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml index 7aba3c2f6..ef4582d34 100644 --- a/common/src/main/res/values-zh/strings.xml +++ b/common/src/main/res/values-zh/strings.xml @@ -1363,5 +1363,10 @@ 若您正在遊戲中,請及時返回\n長時間未返回將會視爲認輸哦\n【最小化期間將無法切換直播間】 退出直播間將會同步退出遊戲房間\n是否继续 最小化 + 1、互動遊戲是PDLIVE為用戶提供的全新板塊,用戶可以在首頁【遊戲專區】或直播間內參與; + 2、目前已上線【五子棋】、【碰碰我最強】、【飛行棋】、【扫雷】、【飞镖达人】、【怪兽消消乐】,後續將會提供更多遊戲種類,敬請期待; + 3、用戶可自定義設定遊戲門檻,要求在100~50000金豆之間,數額必須為10的倍數; + 4、遊戲開始時將會收取參與遊戲用戶的門檻金豆,在遊戲結束後,將收取10%的金豆作為門票,剩餘金豆將全部給予勝利用戶,平局時將會扣除相應金豆门票後返還給用戶; + 5、活動最終解釋權歸PDLIVE所有。 diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index a86229259..2020cedff 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1285,7 +1285,7 @@ Limited ride And limited avatar frame Equal love: The cumulative number of people who have given gifts to the anchor reaches 50 to light up this achievement; Gift machine: when the accumulated number of gifts reaches 1000, this achievement will be activated; Lighting Master: Unlock [Gift Wall] reaches 100 to light up this achievement. - rule + Rules Illustrated book Honor achievement Lit up @@ -1371,4 +1371,9 @@ Limited ride And limited avatar frame IN GAME minimize 随机 + 1. Interactive games are a new section provided by PDLIVE for users, who can participate in the game section on the homepage or in the live room; + 2. Currently, we have launched \'GoBang\',\' Bumper car \',\' Flying Chess\', \'Minesweeping\', \'Dart Master\', and \'Monster Eliminating\'. We will provide more game types in the future. Stay tuned; + 3. Users can customize the game threshold, which must be between 100 to 50000 gold beans or 10 to 1000 star coins, and the amount must be a multiple of 10; + 4. At the beginning of the game, chips from participating users will be collected. After the game ends, 10% of the chips will be collected as tickets, and all remaining chips will be given to the winning users.In a draw, the corresponding chips will be deducted from the tickets and returned to the users; + 5. The final interpretation right of the event belongs to PDLIVE. diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeGameViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeGameViewHolder.java index 522bde3f0..df25a4345 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeGameViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeGameViewHolder.java @@ -1,6 +1,7 @@ package com.yunbao.main.views; import android.animation.ObjectAnimator; +import android.app.Activity; import android.content.DialogInterface; import android.content.Intent; import android.text.TextUtils; @@ -27,6 +28,7 @@ import com.yunbao.common.bean.SudRoomListModel; import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.CreateSudGamePopup; import com.yunbao.common.dialog.SudGameListSelectPopup; +import com.yunbao.common.dialog.SudGameRulePopup; import com.yunbao.common.dialog.SudGameSearchDialogPopup; import com.yunbao.common.event.RoomHolderTypeEvent; import com.yunbao.common.event.SudGameListEvent; @@ -38,6 +40,8 @@ import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.interfaces.OnItemClickListener; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.Bus; +import com.yunbao.common.utils.DeviceUtils; +import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.main.R; @@ -105,7 +109,7 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement @Override public void loadData(int p, com.yunbao.common.http.HttpCallback callback) { - LiveHttpUtil.getRoomList(id, mSill, roomHolderType, "0", p-1, callback); + LiveHttpUtil.getRoomList(id, mSill, roomHolderType, "0", p - 1, callback); } @Override @@ -149,14 +153,14 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement @Override public void onViewClicks() { LiveNetManager.get(mContext) - .randomRoom(id, mSill, roomHolderType,new com.yunbao.common.http.base.HttpCallback() { + .randomRoom(id, mSill, roomHolderType, new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(CreateSudRoomModel data) { if (data != null) { Intent intent = new Intent(context, SudGameActivity.class); intent.putExtra("CreateSudRoom", new Gson().toJson(data)); context.startActivity(intent); - }else { + } else { if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { ToastUtil.show("当前没有可加入的房间"); } else { @@ -295,6 +299,15 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement } }); + ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.sud_rule), new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + new XPopup.Builder(mContext) + .enableDrag(false) + .maxWidth(DeviceUtils.getScreenHeight((Activity) mContext) - DpUtil.dp2px(34)) + .asCustom(new SudGameRulePopup(mContext)).show(); + } + }); } private void initData() { @@ -415,6 +428,7 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement public void onPause() { super.onPause(); } + @Subscribe(threadMode = ThreadMode.MAIN) public void onSudGameListRefreshEvent(SudGameListRefreshEvent event) { mRefreshView.initData(); diff --git a/main/src/main/res/layout/view_main_home_sud_game_list.xml b/main/src/main/res/layout/view_main_home_sud_game_list.xml index 8f3e3b29d..17946d3e3 100644 --- a/main/src/main/res/layout/view_main_home_sud_game_list.xml +++ b/main/src/main/res/layout/view_main_home_sud_game_list.xml @@ -42,12 +42,13 @@ android:src="@mipmap/icon_home_interactive_game_add" /> + android:src="@mipmap/icon_sud_rule" + android:visibility="visible" />