update 直播間分享

This commit is contained in:
2023-03-31 13:34:57 +08:00
parent ef8f87d100
commit 26cb58463a
45 changed files with 1242 additions and 238 deletions

View File

@@ -21,6 +21,8 @@ public class CustomDrawerPopupEvent extends BaseModel {
private boolean reportLayout = false;
//刷新
private boolean refresh = false;
//特效設置
private boolean effects = false;
public boolean isRefresh() {
return refresh;
@@ -102,4 +104,13 @@ public class CustomDrawerPopupEvent extends BaseModel {
isDisMiss = disMiss;
return this;
}
public boolean isEffects() {
return effects;
}
public CustomDrawerPopupEvent setEffects(boolean effects) {
this.effects = effects;
return this;
}
}

View File

@@ -93,13 +93,13 @@ public class CustomDrawerPopupView extends DrawerPopupView {
}
}
});
//特效设置
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.effects_settings_layout), new ViewClicksAntiShake.ViewClicksCallBack() {
//分享
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.share_layout), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
dismiss();
if (callBack != null) {
callBack.effectsSetting();
callBack.share();
}
}
});
@@ -203,6 +203,8 @@ public class CustomDrawerPopupView extends DrawerPopupView {
void online();
void reportLayout();
void share();
}
@Subscribe(threadMode = ThreadMode.MAIN)
@@ -233,6 +235,10 @@ public class CustomDrawerPopupView extends DrawerPopupView {
dismiss();
callBack.reportLayout();
}
if(event.isEffects()){
dismiss();
callBack.effectsSetting();
}
}
if (event.isRefresh()) {

View File

@@ -22,6 +22,15 @@ public class MoreMenuPopupView extends AttachPopupView {
@Override
protected void onCreate() {
//特效设置
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.effects_settings_layout), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
dismiss();
Bus.get().post(new CustomDrawerPopupEvent()
.setDisMiss(true).setEffects(true));
}
});
//系统通知
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.system_notice), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override