Merge remote-tracking branch 'origin/master' into 6.6.4_推送管理
# Conflicts: # common/src/main/java/com/yunbao/common/utils/RouteUtil.java # common/src/main/res/values-en-rUS/string.xml # common/src/main/res/values-zh-rHK/strings.xml # common/src/main/res/values-zh-rTW/strings.xml # common/src/main/res/values-zh/strings.xml # common/src/main/res/values/strings.xml # config.gradle
@ -166,23 +166,23 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
variant.outputs.all {
|
variant.outputs.all {
|
||||||
def isGoogle = "link"
|
def isGoogle = "链接"
|
||||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 1) {
|
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 1) {
|
||||||
isGoogle = "Google"
|
isGoogle = "谷歌"
|
||||||
} else if (rootProject.ext.manifestPlaceholders.isGooglePlay == 2) {
|
} else if (rootProject.ext.manifestPlaceholders.isGooglePlay == 2) {
|
||||||
isGoogle = "Huawei"
|
isGoogle = "Huawei"
|
||||||
}else if (rootProject.ext.manifestPlaceholders.isGooglePlay == 3) {
|
}else if (rootProject.ext.manifestPlaceholders.isGooglePlay == 3) {
|
||||||
isGoogle = "Samsung"
|
isGoogle = "Samsung"
|
||||||
}
|
}
|
||||||
def isPlugin = "all"
|
def isPlugin = "完整"
|
||||||
if (rootProject.ext.manifestPlaceholders.isPluginModel) {
|
if (rootProject.ext.manifestPlaceholders.isPluginModel) {
|
||||||
isPlugin = "plugin"
|
isPlugin = "插件"
|
||||||
}
|
}
|
||||||
def isTest = "测试服"
|
def isTest = "测试服"
|
||||||
if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") {
|
if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") {
|
||||||
isTest = "正式服"
|
isTest = "正式服"
|
||||||
}
|
}
|
||||||
outputFileName = "[${new Date().format("yyyy-MM-dd HHmmss", TimeZone.getTimeZone("GMT+8"))}]PDLive-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
|
outputFileName = "[${new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("GMT+8"))}]PDLive-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,7 +191,7 @@ dependencies {
|
|||||||
api 'com.github.princekin-f:EasyFloat:2.0.4'
|
api 'com.github.princekin-f:EasyFloat:2.0.4'
|
||||||
api files('libs/Msc.jar')
|
api files('libs/Msc.jar')
|
||||||
|
|
||||||
api 'com.github.li-xiaojun:XPopup:2.9.1'
|
api 'com.github.li-xiaojun:XPopup:2.10.0'
|
||||||
|
|
||||||
api 'com.github.shenbengit:PagerGridLayoutManager:1.1.7'
|
api 'com.github.shenbengit:PagerGridLayoutManager:1.1.7'
|
||||||
//选择器
|
//选择器
|
||||||
|
@ -12,7 +12,6 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.yunbao.common.bean.ConfigBean;
|
import com.yunbao.common.bean.ConfigBean;
|
||||||
import com.yunbao.common.bean.FansMedalBean;
|
import com.yunbao.common.bean.FansMedalBean;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.bean.UserItemBean;
|
import com.yunbao.common.bean.UserItemBean;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
@ -29,7 +28,6 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Created by cxf on 2017/8/4.
|
* Created by cxf on 2017/8/4.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class CommonAppConfig {
|
public class CommonAppConfig {
|
||||||
//域名
|
//域名
|
||||||
public static final String HOST = getMetaDataString("SERVER_HOST");
|
public static final String HOST = getMetaDataString("SERVER_HOST");
|
||||||
@ -109,8 +107,6 @@ public class CommonAppConfig {
|
|||||||
private boolean mLaunched;//App是否启动了
|
private boolean mLaunched;//App是否启动了
|
||||||
private String mJPushAppKey;//极光推送的AppKey
|
private String mJPushAppKey;//极光推送的AppKey
|
||||||
private List<UserItemBean> mUserItemList;//个人中心功能列表
|
private List<UserItemBean> mUserItemList;//个人中心功能列表
|
||||||
private SparseArray<LevelBean> mLevelMap;
|
|
||||||
private SparseArray<LevelBean> mAnchorLevelMap;
|
|
||||||
private SparseArray<FansMedalBean> mAnchorFansMedalMap;
|
private SparseArray<FansMedalBean> mAnchorFansMedalMap;
|
||||||
private String mGiftListJson;
|
private String mGiftListJson;
|
||||||
private String mWrapListJson;
|
private String mWrapListJson;
|
||||||
@ -521,46 +517,6 @@ public class CommonAppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 保存用户等级信息
|
|
||||||
*/
|
|
||||||
public void setLevel(String levelJson) {
|
|
||||||
if (TextUtils.isEmpty(levelJson)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
List<LevelBean> list = JSON.parseArray(levelJson, LevelBean.class);
|
|
||||||
if (list == null || list.size() == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (mLevelMap == null) {
|
|
||||||
mLevelMap = new SparseArray<>();
|
|
||||||
}
|
|
||||||
mLevelMap.clear();
|
|
||||||
for (LevelBean bean : list) {
|
|
||||||
mLevelMap.put(bean.getLevel(), bean);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 保存主播等级信息
|
|
||||||
*/
|
|
||||||
public void setAnchorLevel(String anchorLevelJson) {
|
|
||||||
if (TextUtils.isEmpty(anchorLevelJson)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
List<LevelBean> list = JSON.parseArray(anchorLevelJson, LevelBean.class);
|
|
||||||
if (list == null || list.size() == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (mAnchorLevelMap == null) {
|
|
||||||
mAnchorLevelMap = new SparseArray<>();
|
|
||||||
}
|
|
||||||
mAnchorLevelMap.clear();
|
|
||||||
for (LevelBean bean : list) {
|
|
||||||
mAnchorLevelMap.put(bean.getLevel(), bean);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存主播粉丝徽章信息
|
* 保存主播粉丝徽章信息
|
||||||
*/
|
*/
|
||||||
@ -599,40 +555,6 @@ public class CommonAppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取用户等级
|
|
||||||
*/
|
|
||||||
public LevelBean getLevel(int level) {
|
|
||||||
if (mLevelMap == null) {
|
|
||||||
String configString = SpUtil.getInstance().getStringValue(SpUtil.CONFIG);
|
|
||||||
if (!TextUtils.isEmpty(configString)) {
|
|
||||||
JSONObject obj = JSON.parseObject(configString);
|
|
||||||
setLevel(obj.getString("level"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (mLevelMap == null || mLevelMap.size() == 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return mLevelMap.get(level);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取主播等级
|
|
||||||
*/
|
|
||||||
public LevelBean getAnchorLevel(int level) {
|
|
||||||
if (mAnchorLevelMap == null) {
|
|
||||||
String configString = SpUtil.getInstance().getStringValue(SpUtil.CONFIG);
|
|
||||||
if (!TextUtils.isEmpty(configString)) {
|
|
||||||
JSONObject obj = JSON.parseObject(configString);
|
|
||||||
setAnchorLevel(obj.getString("levelanchor"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (mAnchorLevelMap == null || mAnchorLevelMap.size() == 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return mAnchorLevelMap.get(level);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGiftListJson() {
|
public String getGiftListJson() {
|
||||||
return mGiftListJson;
|
return mGiftListJson;
|
||||||
}
|
}
|
||||||
|
@ -263,6 +263,8 @@ public class Constants {
|
|||||||
|
|
||||||
public static final String LIVE_SDK = "liveSdk";
|
public static final String LIVE_SDK = "liveSdk";
|
||||||
public static final String LIVE_KSY_CONFIG = "liveKsyConfig";
|
public static final String LIVE_KSY_CONFIG = "liveKsyConfig";
|
||||||
|
|
||||||
|
public static final String LIVE_PK_RANDOM_START="RankingStartRandomPK";
|
||||||
public static final int LIVE_SDK_KSY = 0;//金山推流
|
public static final int LIVE_SDK_KSY = 0;//金山推流
|
||||||
public static final int LIVE_SDK_TX = 1;//腾讯推流
|
public static final int LIVE_SDK_TX = 1;//腾讯推流
|
||||||
|
|
||||||
|
@ -0,0 +1,175 @@
|
|||||||
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
public class BattlePassPoints extends BaseModel{
|
||||||
|
private int id;
|
||||||
|
private int type;
|
||||||
|
@SerializedName("rewards_name")
|
||||||
|
private String rewardsName;
|
||||||
|
@SerializedName("rewards_id")
|
||||||
|
private int rewardsId;
|
||||||
|
@SerializedName("image_url")
|
||||||
|
private String imageUrl;
|
||||||
|
@SerializedName("points_threshold")
|
||||||
|
private String pointsThreshold;
|
||||||
|
@SerializedName("points_threshold_text")
|
||||||
|
private String pointsThresholdText;
|
||||||
|
@SerializedName("rewards_value")
|
||||||
|
private String rewardsValue;
|
||||||
|
@SerializedName("battle_pass_level")
|
||||||
|
private int battlePassLevel;
|
||||||
|
@SerializedName("exchange_quantity")
|
||||||
|
private int exchangeQuantity;
|
||||||
|
@SerializedName("live_battle_pass_type_id")
|
||||||
|
private int liveBattlePassTypeId;
|
||||||
|
private String description;
|
||||||
|
@SerializedName("restrict_time")
|
||||||
|
private int restrictTime;
|
||||||
|
private int sort;
|
||||||
|
@SerializedName("exchange_status")
|
||||||
|
private int exchangeStatus;
|
||||||
|
@SerializedName("user_quinty_count")
|
||||||
|
private int userQuintyCount;
|
||||||
|
@SerializedName("exchange_status_remark")
|
||||||
|
private String exchangeMark;
|
||||||
|
|
||||||
|
public BattlePassPoints() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(int type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRewardsName() {
|
||||||
|
return rewardsName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRewardsName(String rewardsName) {
|
||||||
|
this.rewardsName = rewardsName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getRewardsId() {
|
||||||
|
return rewardsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRewardsId(int rewardsId) {
|
||||||
|
this.rewardsId = rewardsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImageUrl() {
|
||||||
|
return imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImageUrl(String imageUrl) {
|
||||||
|
this.imageUrl = imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPointsThreshold() {
|
||||||
|
return pointsThreshold;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPointsThreshold(String pointsThreshold) {
|
||||||
|
this.pointsThreshold = pointsThreshold;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRewardsValue() {
|
||||||
|
return rewardsValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRewardsValue(String rewardsValue) {
|
||||||
|
this.rewardsValue = rewardsValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBattlePassLevel() {
|
||||||
|
return battlePassLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassLevel(int battlePassLevel) {
|
||||||
|
this.battlePassLevel = battlePassLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getExchangeQuantity() {
|
||||||
|
return exchangeQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExchangeQuantity(int exchangeQuantity) {
|
||||||
|
this.exchangeQuantity = exchangeQuantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLiveBattlePassTypeId() {
|
||||||
|
return liveBattlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiveBattlePassTypeId(int liveBattlePassTypeId) {
|
||||||
|
this.liveBattlePassTypeId = liveBattlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getRestrictTime() {
|
||||||
|
return restrictTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRestrictTime(int restrictTime) {
|
||||||
|
this.restrictTime = restrictTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(int sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getExchangeStatus() {
|
||||||
|
return exchangeStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExchangeStatus(int exchangeStatus) {
|
||||||
|
this.exchangeStatus = exchangeStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getUserQuintyCount() {
|
||||||
|
return userQuintyCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserQuintyCount(int userQuintyCount) {
|
||||||
|
this.userQuintyCount = userQuintyCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExchangeMark() {
|
||||||
|
return exchangeMark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExchangeMark(String exchangeMark) {
|
||||||
|
this.exchangeMark = exchangeMark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPointsThresholdText() {
|
||||||
|
return pointsThresholdText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPointsThresholdText(String pointsThresholdText) {
|
||||||
|
this.pointsThresholdText = pointsThresholdText;
|
||||||
|
}
|
||||||
|
}
|
157
common/src/main/java/com/yunbao/common/bean/BattlePassTask.java
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class BattlePassTask extends BaseModel {
|
||||||
|
private List<Task> daily;// 每日任务
|
||||||
|
private List<Task> season;// 每期任务
|
||||||
|
|
||||||
|
public BattlePassTask() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Task> getDaily() {
|
||||||
|
return daily;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDaily(List<Task> daily) {
|
||||||
|
this.daily = daily;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Task> getSeason() {
|
||||||
|
return season;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSeason(List<Task> season) {
|
||||||
|
this.season = season;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Task {
|
||||||
|
private int id;// 任务ID
|
||||||
|
private String type;// 任务类型
|
||||||
|
@SerializedName("task_success")
|
||||||
|
private int taskSuccess;// 任务可以重复的次数
|
||||||
|
@SerializedName("name_en")
|
||||||
|
private String nameEn;// 任务名称英文
|
||||||
|
@SerializedName("remark_en")
|
||||||
|
private String remarkEn;// 任务备注英文
|
||||||
|
private String name;// 任务名称中文
|
||||||
|
private String remark; // 任务备注中文
|
||||||
|
@SerializedName("image_path")
|
||||||
|
private String imagePath;// 图标path
|
||||||
|
@SerializedName("user_task_success")
|
||||||
|
private int userTaskSuccess;// 用户完成的任务次数
|
||||||
|
@SerializedName("received_task")
|
||||||
|
private int receivedTask;// 用户已经领取的任务数量
|
||||||
|
@SerializedName("not_received_task")
|
||||||
|
private int notReceivedTask; // 用户未领取的任务数量
|
||||||
|
public boolean isBuy(){
|
||||||
|
return taskSuccess==0;
|
||||||
|
}
|
||||||
|
public String getNameText(){
|
||||||
|
return WordUtil.isNewZh()?name:nameEn;
|
||||||
|
}
|
||||||
|
public String getRemarkText(){
|
||||||
|
return WordUtil.isNewZh()?remark:remarkEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTaskSuccess() {
|
||||||
|
return taskSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskSuccess(int taskSuccess) {
|
||||||
|
this.taskSuccess = taskSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNameEn() {
|
||||||
|
return nameEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNameEn(String nameEn) {
|
||||||
|
this.nameEn = nameEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemarkEn() {
|
||||||
|
return remarkEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemarkEn(String remarkEn) {
|
||||||
|
this.remarkEn = remarkEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImagePath() {
|
||||||
|
return imagePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImagePath(String imagePath) {
|
||||||
|
this.imagePath = imagePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getUserTaskSuccess() {
|
||||||
|
return userTaskSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserTaskSuccess(int userTaskSuccess) {
|
||||||
|
this.userTaskSuccess = userTaskSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getReceivedTask() {
|
||||||
|
return receivedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceivedTask(int receivedTask) {
|
||||||
|
this.receivedTask = receivedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNotReceivedTask() {
|
||||||
|
return notReceivedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNotReceivedTask(int notReceivedTask) {
|
||||||
|
this.notReceivedTask = notReceivedTask;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,176 @@
|
|||||||
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class BattlePassUserInfoBean extends BaseModel{
|
||||||
|
private String uid;
|
||||||
|
private int points;
|
||||||
|
@SerializedName("battle_pass_exp")
|
||||||
|
private int battlePassExp;
|
||||||
|
@SerializedName("battle_pass_user_records_1")
|
||||||
|
private int battlePassUserRecords1;
|
||||||
|
@SerializedName("battle_pass_user_records_2")
|
||||||
|
private int battlePassUserRecords2;
|
||||||
|
@SerializedName("battle_pass_user_records_3")
|
||||||
|
private int battlePassUserRecords3;
|
||||||
|
private int level;
|
||||||
|
@SerializedName("last_level_exp")
|
||||||
|
private int lastLevelExp;
|
||||||
|
@SerializedName("next_level_exp")
|
||||||
|
private int nextLevelExp;
|
||||||
|
private String id;
|
||||||
|
@SerializedName("battle_pass_name")
|
||||||
|
private String battlePassName;
|
||||||
|
@SerializedName("start_time")
|
||||||
|
private String startTime;
|
||||||
|
@SerializedName("end_time")
|
||||||
|
private String endTime;
|
||||||
|
@SerializedName("battle_pass_status")
|
||||||
|
private boolean battlePassStatus;
|
||||||
|
@SerializedName("max_level_exp")
|
||||||
|
private long maxLevelExp;
|
||||||
|
@SerializedName("max_level")
|
||||||
|
private int maxLevel;
|
||||||
|
|
||||||
|
private List<LiveBattlePassRewardsBean.BattlePassType> live_battle_pass_type;
|
||||||
|
|
||||||
|
public BattlePassUserInfoBean() {
|
||||||
|
}
|
||||||
|
public List<LiveBattlePassRewardsBean.BattlePassType> getLive_battle_pass_type() {
|
||||||
|
return live_battle_pass_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLive_battle_pass_type(List<LiveBattlePassRewardsBean.BattlePassType> live_battle_pass_type) {
|
||||||
|
this.live_battle_pass_type = live_battle_pass_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUid() {
|
||||||
|
return uid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUid(String uid) {
|
||||||
|
this.uid = uid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPoints() {
|
||||||
|
return points;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoints(int points) {
|
||||||
|
this.points = points;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBattlePassExp() {
|
||||||
|
return battlePassExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassExp(int battlePassExp) {
|
||||||
|
this.battlePassExp = battlePassExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBattlePassUserRecords1() {
|
||||||
|
return battlePassUserRecords1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassUserRecords1(int battlePassUserRecords1) {
|
||||||
|
this.battlePassUserRecords1 = battlePassUserRecords1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBattlePassUserRecords2() {
|
||||||
|
return battlePassUserRecords2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassUserRecords2(int battlePassUserRecords2) {
|
||||||
|
this.battlePassUserRecords2 = battlePassUserRecords2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBattlePassUserRecords3() {
|
||||||
|
return battlePassUserRecords3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassUserRecords3(int battlePassUserRecords3) {
|
||||||
|
this.battlePassUserRecords3 = battlePassUserRecords3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLevel() {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLevel(int level) {
|
||||||
|
this.level = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLastLevelExp() {
|
||||||
|
return lastLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastLevelExp(int lastLevelExp) {
|
||||||
|
this.lastLevelExp = lastLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNextLevelExp() {
|
||||||
|
return nextLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextLevelExp(int nextLevelExp) {
|
||||||
|
this.nextLevelExp = nextLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBattlePassName() {
|
||||||
|
return battlePassName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassName(String battlePassName) {
|
||||||
|
this.battlePassName = battlePassName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartTime() {
|
||||||
|
return startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartTime(String startTime) {
|
||||||
|
this.startTime = startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(String endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBattlePassStatus() {
|
||||||
|
return battlePassStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattlePassStatus(boolean battlePassStatus) {
|
||||||
|
this.battlePassStatus = battlePassStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getMaxLevelExp() {
|
||||||
|
return maxLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxLevelExp(long maxLevelExp) {
|
||||||
|
this.maxLevelExp = maxLevelExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getMaxLevel() {
|
||||||
|
return maxLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxLevel(int maxLevel) {
|
||||||
|
this.maxLevel = maxLevel;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,162 @@
|
|||||||
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class LiveBattlePassRewardsBean extends BaseModel{
|
||||||
|
private int level;
|
||||||
|
private List<BattlePassType> live_battle_pass_type;
|
||||||
|
private Map<Integer,Map<Integer,LiveBattlePassReward>> live_battle_pass_rewards;
|
||||||
|
|
||||||
|
public LiveBattlePassRewardsBean() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLevel() {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLevel(int level) {
|
||||||
|
this.level = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<BattlePassType> getLive_battle_pass_type() {
|
||||||
|
return live_battle_pass_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLive_battle_pass_type(List<BattlePassType> live_battle_pass_type) {
|
||||||
|
this.live_battle_pass_type = live_battle_pass_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Integer,Map<Integer,LiveBattlePassReward>> getLive_battle_pass_rewards() {
|
||||||
|
return live_battle_pass_rewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLive_battle_pass_rewards(Map<Integer,Map<Integer,LiveBattlePassReward>> live_battle_pass_rewards) {
|
||||||
|
this.live_battle_pass_rewards = live_battle_pass_rewards;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class BattlePassType extends BaseModel{
|
||||||
|
private int id;
|
||||||
|
private String battle_pass_name;
|
||||||
|
private int sort;
|
||||||
|
private int diamond_value;
|
||||||
|
private int lock;
|
||||||
|
|
||||||
|
public BattlePassType() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBattle_pass_name() {
|
||||||
|
return battle_pass_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBattle_pass_name(String battle_pass_name) {
|
||||||
|
this.battle_pass_name = battle_pass_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(int sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDiamond_value() {
|
||||||
|
return diamond_value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiamond_value(int diamond_value) {
|
||||||
|
this.diamond_value = diamond_value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLock() {
|
||||||
|
return lock;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLock(int lock) {
|
||||||
|
this.lock = lock;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static class LiveBattlePassReward extends BaseModel{
|
||||||
|
private int id;
|
||||||
|
@SerializedName("live_battle_pass_level")
|
||||||
|
private int liveBattlePassLevel;
|
||||||
|
@SerializedName("live_battle_pass_type_id")
|
||||||
|
private int liveBattlePassTypeId;
|
||||||
|
@SerializedName("reward_name")
|
||||||
|
private String rewardName;
|
||||||
|
@SerializedName("image_url")
|
||||||
|
private String imageUrl;
|
||||||
|
private int lock;
|
||||||
|
private int received;
|
||||||
|
|
||||||
|
public LiveBattlePassReward() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLiveBattlePassLevel() {
|
||||||
|
return liveBattlePassLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiveBattlePassLevel(int liveBattlePassLevel) {
|
||||||
|
this.liveBattlePassLevel = liveBattlePassLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLiveBattlePassTypeId() {
|
||||||
|
return liveBattlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiveBattlePassTypeId(int liveBattlePassTypeId) {
|
||||||
|
this.liveBattlePassTypeId = liveBattlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRewardName() {
|
||||||
|
return rewardName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRewardName(String rewardName) {
|
||||||
|
this.rewardName = rewardName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImageUrl() {
|
||||||
|
return imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImageUrl(String imageUrl) {
|
||||||
|
this.imageUrl = imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLock() {
|
||||||
|
return lock;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLock(int lock) {
|
||||||
|
this.lock = lock;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getReceived() {
|
||||||
|
return received;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReceived(int received) {
|
||||||
|
this.received = received;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -20,6 +20,14 @@ public class LiveClassBean {
|
|||||||
@SerializedName("channel_show")
|
@SerializedName("channel_show")
|
||||||
private int channel_show;
|
private int channel_show;
|
||||||
|
|
||||||
|
public LiveClassBean() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public LiveClassBean(String chinese, String english) {
|
||||||
|
this.chinese = chinese;
|
||||||
|
this.english = english;
|
||||||
|
}
|
||||||
|
|
||||||
public String getChinese() {
|
public String getChinese() {
|
||||||
return chinese;
|
return chinese;
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package com.yunbao.common.bean;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField;
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/10/12.
|
* Created by cxf on 2018/10/12.
|
||||||
@ -18,6 +19,8 @@ public class LiveGiftBean {
|
|||||||
// public static final int MARK_LUCK = 3;
|
// public static final int MARK_LUCK = 3;
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
|
@SerializedName("gift_id")
|
||||||
|
private int gift_id;//包裹礼物id
|
||||||
private int type;//0 普通礼物 1是贵族 2守护 3粉丝团 5盲盒礼物
|
private int type;//0 普通礼物 1是贵族 2守护 3粉丝团 5盲盒礼物
|
||||||
private int mark;// 0 普通 1热门 2守护 3幸运
|
private int mark;// 0 普通 1热门 2守护 3幸运
|
||||||
private String name;
|
private String name;
|
||||||
@ -34,6 +37,7 @@ public class LiveGiftBean {
|
|||||||
private String isweek;
|
private String isweek;
|
||||||
private String end_time;
|
private String end_time;
|
||||||
private String tag;
|
private String tag;
|
||||||
|
private boolean isPageGift;
|
||||||
@JSONField(name = "blind_box_type")
|
@JSONField(name = "blind_box_type")
|
||||||
private int blind_box_type = 0;
|
private int blind_box_type = 0;
|
||||||
//礼物角标
|
//礼物角标
|
||||||
@ -71,6 +75,14 @@ public class LiveGiftBean {
|
|||||||
@JSONField(name = "blind_box_ticket_id")
|
@JSONField(name = "blind_box_ticket_id")
|
||||||
private int blindBoxTicketId;
|
private int blindBoxTicketId;
|
||||||
|
|
||||||
|
public boolean isPageGift() {
|
||||||
|
return isPageGift;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageGift(boolean pageGift) {
|
||||||
|
isPageGift = pageGift;
|
||||||
|
}
|
||||||
|
|
||||||
public int getBlindBoxTicketId() {
|
public int getBlindBoxTicketId() {
|
||||||
return blindBoxTicketId;
|
return blindBoxTicketId;
|
||||||
}
|
}
|
||||||
@ -80,6 +92,14 @@ public class LiveGiftBean {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getGift_id() {
|
||||||
|
return gift_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGift_id(int gift_id) {
|
||||||
|
this.gift_id = gift_id;
|
||||||
|
}
|
||||||
|
|
||||||
public int getBlindBoxTicket() {
|
public int getBlindBoxTicket() {
|
||||||
return blindBoxTicket;
|
return blindBoxTicket;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,88 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.text.Spannable;
|
||||||
|
import android.text.SpannableString;
|
||||||
|
import android.text.style.ImageSpan;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.utils.DeviceUtils;
|
||||||
|
import com.yunbao.common.utils.DpUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
public class ActivateEliteBattleOrderPopupWindow extends CenterPopupView {
|
||||||
|
private boolean elites;//是否精英战令
|
||||||
|
private String spendMoney;//花费钱
|
||||||
|
private View buttonWarOrder;
|
||||||
|
private LiberalBattlePassPopupWindow.LiberalBattlePassCallback mPassCallback;
|
||||||
|
private String mBattlePassTypeId;
|
||||||
|
|
||||||
|
public ActivateEliteBattleOrderPopupWindow(@NonNull Context context, String mSpendMoney,
|
||||||
|
boolean elites,
|
||||||
|
LiberalBattlePassPopupWindow.LiberalBattlePassCallback passCallback
|
||||||
|
, String battlePassTypeId) {
|
||||||
|
super(context);
|
||||||
|
this.elites = elites;
|
||||||
|
spendMoney = mSpendMoney;
|
||||||
|
mPassCallback=passCallback;
|
||||||
|
mBattlePassTypeId = battlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.activate_elite_battle_order_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
buttonWarOrder = findViewById(R.id.button_war_order);
|
||||||
|
if (elites) {
|
||||||
|
findViewById(R.id.gift_overvalue).setVisibility(VISIBLE);
|
||||||
|
findViewById(R.id.gift_overvalue3).setVisibility(GONE);
|
||||||
|
findViewById(R.id.enjoy_image).setVisibility(GONE);
|
||||||
|
findViewById(R.id.elites_image).setVisibility(VISIBLE);
|
||||||
|
findViewById(R.id.gift_overvalue).setVisibility(VISIBLE);
|
||||||
|
((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.unlock_more_gifts));
|
||||||
|
} else {
|
||||||
|
findViewById(R.id.gift_overvalue).setVisibility(GONE);
|
||||||
|
findViewById(R.id.gift_overvalue3).setVisibility(VISIBLE);
|
||||||
|
findViewById(R.id.enjoy_image).setVisibility(VISIBLE);
|
||||||
|
findViewById(R.id.elites_image).setVisibility(GONE);
|
||||||
|
findViewById(R.id.gift_overvalue).setVisibility(GONE);
|
||||||
|
((TextView)findViewById(R.id.gift3_text)).setText(WordUtil.getNewString(R.string.unlock_more_gifts2));
|
||||||
|
}
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.war_order_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//中文按钮文字
|
||||||
|
|
||||||
|
((TextView)findViewById(R.id.button_war_order_text)).setText(spendMoney);
|
||||||
|
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(buttonWarOrder, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
new XPopup.Builder(getContext())
|
||||||
|
.enableDrag(false)
|
||||||
|
.maxWidth(DeviceUtils.getScreenHeight((Activity) getContext()) - DpUtil.dp2px(34))
|
||||||
|
.asCustom(new LiberalBattlePassPopupWindow(getContext(), spendMoney, elites,mPassCallback,mBattlePassTypeId))
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
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 ActivityEndPopupWindow extends CenterPopupView {
|
||||||
|
public ActivityEndPopupWindow(@NonNull Context context) {
|
||||||
|
super(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.activity_end_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.confirm), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.graphics.Color;
|
||||||
|
import android.text.Spannable;
|
||||||
|
import android.text.SpannableStringBuilder;
|
||||||
|
import android.text.style.ForegroundColorSpan;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.http.ResponseModel;
|
||||||
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
public class LiberalBattlePassPopupWindow extends CenterPopupView {
|
||||||
|
private String spendMoney;//花费钱
|
||||||
|
private boolean mElites;//是否精英战令
|
||||||
|
private TextView liberalBattlePass;
|
||||||
|
private LiberalBattlePassCallback mPassCallback;
|
||||||
|
private String mBattlePassTypeId;
|
||||||
|
|
||||||
|
public LiberalBattlePassPopupWindow(@NonNull Context context, String mSpendMoney, boolean elites, LiberalBattlePassCallback passCallback, String battlePassTypeId) {
|
||||||
|
super(context);
|
||||||
|
spendMoney = mSpendMoney;
|
||||||
|
mElites = elites;
|
||||||
|
mPassCallback = passCallback;
|
||||||
|
mBattlePassTypeId = battlePassTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.liberal_battle_pass_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
liberalBattlePass = findViewById(R.id.liberal_battle_pass);
|
||||||
|
//中文版
|
||||||
|
StringBuffer liberalBattlePassHint = new StringBuffer();
|
||||||
|
liberalBattlePassHint.append(WordUtil.isNewZh()?"是否花費":"Did you spend ");
|
||||||
|
liberalBattlePassHint.append(spendMoney).append(mElites ?
|
||||||
|
WordUtil.isNewZh()?"鑽石開通精英戰令!":"diamonds to activate the Elite BattlePass":
|
||||||
|
WordUtil.isNewZh()?"鑽石開通尊享戰令!":"diamonds to activate the Luxury BattlePass");
|
||||||
|
//英文版
|
||||||
|
|
||||||
|
//设置样式
|
||||||
|
String liberalBattlePassStr = liberalBattlePassHint.toString();
|
||||||
|
SpannableStringBuilder builder = new SpannableStringBuilder();
|
||||||
|
builder.append(liberalBattlePassStr);
|
||||||
|
int spendMoneyIndex = liberalBattlePassStr.indexOf(spendMoney);
|
||||||
|
int spendMoneySize = spendMoneyIndex + spendMoney.length();
|
||||||
|
builder.setSpan(new ForegroundColorSpan(Color.parseColor("#CE2BFF")), spendMoneyIndex, spendMoneySize, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||||
|
liberalBattlePass.setText(builder);
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.cancel), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.liberal_battle_sure), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
LiveNetManager.get(getContext()).
|
||||||
|
upgradesBattlePass(mBattlePassTypeId, new HttpCallback<ResponseModel<Object>>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(ResponseModel<Object> data) {
|
||||||
|
|
||||||
|
dialog.dismiss();
|
||||||
|
if (mPassCallback != null) {
|
||||||
|
mPassCallback.onCallback(data.getData().getCode(), data.getData().getMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
|
||||||
|
dialog.dismiss();
|
||||||
|
if (mPassCallback != null) {
|
||||||
|
mPassCallback.onCallback(102, error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface LiberalBattlePassCallback {
|
||||||
|
void onCallback(int code, String msg);
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,7 @@ public class OpenAdBottomDialogPopup extends AbsDialogPopupWindow {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void buildDialog(XPopup.Builder builder) {
|
public void buildDialog(XPopup.Builder builder) {
|
||||||
|
builder.animationDuration(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.yunbao.common.dialog;
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.util.Log;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
@ -21,6 +22,10 @@ public class OpenAdCenterDialogPopup extends AbsDialogFullScreenPopupWindow {
|
|||||||
private OpenAdModel model;
|
private OpenAdModel model;
|
||||||
private OnItemClickListener<OpenAdModel> mListener;
|
private OnItemClickListener<OpenAdModel> mListener;
|
||||||
|
|
||||||
|
public OpenAdCenterDialogPopup(@NonNull Context context) {
|
||||||
|
super(context);
|
||||||
|
}
|
||||||
|
|
||||||
public OpenAdCenterDialogPopup(@NonNull Context context, OpenAdModel model) {
|
public OpenAdCenterDialogPopup(@NonNull Context context, OpenAdModel model) {
|
||||||
super(context);
|
super(context);
|
||||||
this.model = model;
|
this.model = model;
|
||||||
@ -33,6 +38,8 @@ public class OpenAdCenterDialogPopup extends AbsDialogFullScreenPopupWindow {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void buildDialog(XPopup.Builder builder) {
|
public void buildDialog(XPopup.Builder builder) {
|
||||||
|
builder.hasShadowBg(false);
|
||||||
|
builder.animationDuration(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -53,6 +60,7 @@ public class OpenAdCenterDialogPopup extends AbsDialogFullScreenPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate() {
|
protected void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
Log.e("-----弹窗-----", "onCreate: 创建弹窗" );
|
||||||
mImageView = findViewById(R.id.img);
|
mImageView = findViewById(R.id.img);
|
||||||
mClose = findViewById(R.id.close);
|
mClose = findViewById(R.id.close);
|
||||||
findViewById(R.id.layout).setOnClickListener(v -> dismiss());
|
findViewById(R.id.layout).setOnClickListener(v -> dismiss());
|
||||||
|
@ -0,0 +1,124 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ProgressBar;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.http.ResponseModel;
|
||||||
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 战令等级 经验
|
||||||
|
*/
|
||||||
|
public class OrderLevelPopupWindow extends CenterPopupView {
|
||||||
|
private TextView orderLevel, orderLevelDiamond, balanceDiamond, current,expText;
|
||||||
|
private int currentExperience, totalExperience;//当前经验,全部经验
|
||||||
|
private String buyExp = "100", currentLevel, balance;
|
||||||
|
private ProgressBar progressBar;
|
||||||
|
private OrderLevelCallback orderLevelCallback;
|
||||||
|
private long maxExp;
|
||||||
|
|
||||||
|
public OrderLevelPopupWindow(@NonNull Context context,
|
||||||
|
int mCurrentExperience, int mTotalExperience,
|
||||||
|
String mCurrentLevel, String mBalance,long maxExp, OrderLevelCallback mOrderLevelCallback) {
|
||||||
|
super(context);
|
||||||
|
currentExperience = mCurrentExperience;
|
||||||
|
totalExperience = mTotalExperience;
|
||||||
|
currentLevel = mCurrentLevel;
|
||||||
|
balance = mBalance;
|
||||||
|
this.maxExp=maxExp;
|
||||||
|
orderLevelCallback = mOrderLevelCallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.order_level_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
orderLevel = findViewById(R.id.tickets_plus_minus);
|
||||||
|
orderLevelDiamond = findViewById(R.id.order_level_diamond);
|
||||||
|
balanceDiamond = findViewById(R.id.balance_diamond);
|
||||||
|
current = findViewById(R.id.current);
|
||||||
|
progressBar = findViewById(R.id.progressBar);
|
||||||
|
expText = findViewById(R.id.exp_text);
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
progressBar.setMax(totalExperience);
|
||||||
|
progressBar.setProgress(currentExperience);
|
||||||
|
expText.setText(String.format("%s/%s", currentExperience, totalExperience));
|
||||||
|
current.setText(String.format("Lv%s", currentLevel));
|
||||||
|
balanceDiamond.setText(balance);
|
||||||
|
findViewById(R.id.sub).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
float exp = new BigDecimal(buyExp).floatValue();
|
||||||
|
if (exp > 100) {
|
||||||
|
BigDecimal buyExpBigDecimal = new BigDecimal(buyExp).subtract(new BigDecimal("100"));
|
||||||
|
buyExp = String.valueOf(buyExpBigDecimal.intValue());
|
||||||
|
orderLevelDiamond.setText(String.valueOf(buyExpBigDecimal.floatValue()));
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
findViewById(R.id.add).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
float exp = new BigDecimal(buyExp).floatValue();
|
||||||
|
if (exp < maxExp && exp < 10000) {
|
||||||
|
BigDecimal buyExpBigDecimal = new BigDecimal(buyExp).add(new BigDecimal("100"));
|
||||||
|
buyExp = String.valueOf(buyExpBigDecimal.intValue());
|
||||||
|
orderLevelDiamond.setText(String.valueOf(buyExpBigDecimal.floatValue()));
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
}else if(exp>=maxExp){
|
||||||
|
ToastUtil.show(WordUtil.isNewZh()?"经验已滿":"Experience full");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.war_order_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.buying_experience), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
LiveNetManager.get(getContext())
|
||||||
|
.buyingExperiencePoint(buyExp, new HttpCallback<ResponseModel<Object>>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(ResponseModel<Object> data) {
|
||||||
|
if (orderLevelCallback != null) {
|
||||||
|
orderLevelCallback.onCallback(data.getData().getCode(), data.getMsg());
|
||||||
|
}dialog.dismiss();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
if (orderLevelCallback != null) {
|
||||||
|
orderLevelCallback.onCallback(102, error);
|
||||||
|
} dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface OrderLevelCallback {
|
||||||
|
void onCallback(int code, String msg);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.lxj.xpopup.core.BasePopupView;
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.bean.BattlePassUserInfoBean;
|
||||||
|
import com.yunbao.common.utils.DeviceUtils;
|
||||||
|
import com.yunbao.common.utils.DpUtil;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 升級精英/尊享戰令
|
||||||
|
*/
|
||||||
|
public class PromotionElitePopupWindow extends CenterPopupView {
|
||||||
|
private String enjoySpendMoney, quintessenceSpendMoney;//花费钱
|
||||||
|
private LiberalBattlePassPopupWindow.LiberalBattlePassCallback mPassCallback;
|
||||||
|
private String elitesTypeId,enjoyTypeId;
|
||||||
|
private BattlePassUserInfoBean data;
|
||||||
|
|
||||||
|
public PromotionElitePopupWindow(@NonNull Context context, String mEnjoySpendMoney,
|
||||||
|
String mQuintessenceSpendMoney, LiberalBattlePassPopupWindow.LiberalBattlePassCallback passCallback,
|
||||||
|
String elitesTypeId, String enjoyTypeId) {
|
||||||
|
super(context);
|
||||||
|
enjoySpendMoney = mEnjoySpendMoney;
|
||||||
|
quintessenceSpendMoney = mQuintessenceSpendMoney;
|
||||||
|
mPassCallback = passCallback;
|
||||||
|
this.elitesTypeId = elitesTypeId;
|
||||||
|
this.enjoyTypeId = enjoyTypeId;
|
||||||
|
}
|
||||||
|
public PromotionElitePopupWindow setUserData(BattlePassUserInfoBean data) {
|
||||||
|
this.data=data;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.promotion_elite_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
dialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.button_quintessence), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
if(data!=null && data.getBattlePassUserRecords2()==2){
|
||||||
|
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_buy_max));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
dialog.dismiss();
|
||||||
|
new XPopup.Builder(getContext())
|
||||||
|
.enableDrag(false)
|
||||||
|
.maxWidth(DeviceUtils.getScreenHeight((Activity) getContext()) - DpUtil.dp2px(34))
|
||||||
|
.asCustom(new ActivateEliteBattleOrderPopupWindow(getContext(), quintessenceSpendMoney, true, mPassCallback, elitesTypeId))
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.button_enjoy), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
if(data!=null && data.getBattlePassUserRecords3()==2){
|
||||||
|
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_buy_max));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
dialog.dismiss();
|
||||||
|
new XPopup.Builder(getContext())
|
||||||
|
.enableDrag(false)
|
||||||
|
.maxWidth(DeviceUtils.getScreenHeight((Activity) getContext()) - DpUtil.dp2px(34))
|
||||||
|
.asCustom(new ActivateEliteBattleOrderPopupWindow(getContext(), enjoySpendMoney, false, mPassCallback, enjoyTypeId))
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
|
|
||||||
|
public class RuleOfWarPopupWindow extends CenterPopupView {
|
||||||
|
public RuleOfWarPopupWindow(@NonNull Context context) {
|
||||||
|
super(context);
|
||||||
|
}
|
||||||
|
private TextView rule;
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.rule_of_war_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
rule=findViewById(R.id.rule);
|
||||||
|
findViewById(R.id.close).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
initData();
|
||||||
|
}
|
||||||
|
private void initData(){
|
||||||
|
LiveNetManager.get(getContext())
|
||||||
|
.getBattlePassRule(new HttpCallback<String>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(String data) {
|
||||||
|
rule.setText(data.replace("\n","\n\n"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,134 @@
|
|||||||
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.yunbao.common.R;
|
||||||
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
|
import com.yunbao.common.http.ResponseModel;
|
||||||
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 战令兑换详情
|
||||||
|
*/
|
||||||
|
public class WarOrderExchangeDetailsPopupWindow extends CenterPopupView {
|
||||||
|
private TextView orderLevel, pointExchange;
|
||||||
|
private String buyExp = "1";
|
||||||
|
private int mPoint, mLimitQuantity, mScale;
|
||||||
|
private String mImageUrl;
|
||||||
|
private ImageView exchangeParticulars;
|
||||||
|
private String battlePassPointsId;
|
||||||
|
private WarOrderExchangeDetailsCallback orderExchangeDetailsCallback;
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
* @param context
|
||||||
|
* @param limitQuantity 最大限制数量
|
||||||
|
* @param point 自己的积分
|
||||||
|
* @param scale 兑换比例
|
||||||
|
* @param imageUrl 物品图片的url
|
||||||
|
*/
|
||||||
|
public WarOrderExchangeDetailsPopupWindow(@NonNull Context context, int limitQuantity,
|
||||||
|
int point, int scale, String imageUrl, String battlePassPointsId, WarOrderExchangeDetailsCallback orderExchangeDetailsCallback) {
|
||||||
|
super(context);
|
||||||
|
mPoint = point;
|
||||||
|
mLimitQuantity = limitQuantity;
|
||||||
|
mScale = scale;
|
||||||
|
mImageUrl = imageUrl;
|
||||||
|
this.battlePassPointsId = battlePassPointsId;
|
||||||
|
this.orderExchangeDetailsCallback = orderExchangeDetailsCallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getImplLayoutId() {
|
||||||
|
return R.layout.war_order_exchange_details_popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||||
|
@Override
|
||||||
|
protected void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
orderLevel = findViewById(R.id.tickets_plus_minus);
|
||||||
|
exchangeParticulars = findViewById(R.id.exchange_particulars);
|
||||||
|
pointExchange = findViewById(R.id.point_exchange);
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
BigDecimal needExpBigDecimal = new BigDecimal(buyExp).multiply(new BigDecimal(mScale));
|
||||||
|
pointExchange.setText(String.format("%s",needExpBigDecimal));
|
||||||
|
ImgLoader.display(getContext(), mImageUrl, exchangeParticulars);
|
||||||
|
findViewById(R.id.sub).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
float exp = new BigDecimal(buyExp).floatValue();
|
||||||
|
if (exp > 1) {
|
||||||
|
BigDecimal buyExpBigDecimal = new BigDecimal(buyExp).subtract(new BigDecimal("1"));
|
||||||
|
buyExp = String.valueOf(buyExpBigDecimal.intValue());
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
BigDecimal needExpBigDecimal = buyExpBigDecimal.multiply(new BigDecimal(mScale));
|
||||||
|
pointExchange.setText(String.format("%s",needExpBigDecimal));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
findViewById(R.id.add).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
int number = new BigDecimal(mScale).multiply(new BigDecimal(buyExp)).intValue();
|
||||||
|
int exp = new BigDecimal(buyExp).intValue();
|
||||||
|
if (exp < mLimitQuantity && number < mPoint) {
|
||||||
|
BigDecimal buyExpBigDecimal = new BigDecimal(buyExp).add(new BigDecimal("1"));
|
||||||
|
buyExp = String.valueOf(buyExpBigDecimal.intValue());
|
||||||
|
orderLevel.setText(buyExp);
|
||||||
|
BigDecimal needExpBigDecimal = buyExpBigDecimal.multiply(new BigDecimal(mScale));
|
||||||
|
pointExchange.setText(String.format("%s",needExpBigDecimal));
|
||||||
|
}else if(exp >= mLimitQuantity){
|
||||||
|
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_exchange_buy_max));
|
||||||
|
}else {
|
||||||
|
ToastUtil.show(WordUtil.getNewString(R.string.battlepass_exchange_buy_integral));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
findViewById(R.id.war_order_close).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.point_exchange_linear), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
LiveNetManager.get(getContext())
|
||||||
|
.pointsExchange(battlePassPointsId, buyExp, new HttpCallback<ResponseModel<Object>>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(ResponseModel<Object> data) {
|
||||||
|
dialog.dismiss();
|
||||||
|
if (orderExchangeDetailsCallback != null) {
|
||||||
|
orderExchangeDetailsCallback.onCallback(data.getData().getCode(), data.getData().getMsg());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
dialog.dismiss();
|
||||||
|
if (orderExchangeDetailsCallback != null) {
|
||||||
|
orderExchangeDetailsCallback.onCallback(102, error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface WarOrderExchangeDetailsCallback {
|
||||||
|
void onCallback(int code, String msg);
|
||||||
|
}
|
||||||
|
}
|
@ -70,6 +70,13 @@ public abstract class BaseFragment extends Fragment {
|
|||||||
* 请求数据
|
* 请求数据
|
||||||
*/
|
*/
|
||||||
protected abstract void loadData();
|
protected abstract void loadData();
|
||||||
|
public void updateData(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected <T extends View> T findViewById(int id){
|
||||||
|
return contentView.findViewById(id);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
@ -181,8 +181,6 @@ public class CommonHttpUtil {
|
|||||||
JSONObject obj = JSON.parseObject(info[0]);
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
ConfigBean bean = JSON.toJavaObject(obj, ConfigBean.class);
|
ConfigBean bean = JSON.toJavaObject(obj, ConfigBean.class);
|
||||||
CommonAppConfig.getInstance().setConfig(bean);
|
CommonAppConfig.getInstance().setConfig(bean);
|
||||||
CommonAppConfig.getInstance().setLevel(obj.getString("level"));
|
|
||||||
CommonAppConfig.getInstance().setAnchorLevel(obj.getString("levelanchor"));
|
|
||||||
CommonAppConfig.getInstance().alert_time = obj.getInteger("alert_time");
|
CommonAppConfig.getInstance().alert_time = obj.getInteger("alert_time");
|
||||||
CommonAppConfig.getInstance().alert_end_time = obj.getInteger("alert_end_time");
|
CommonAppConfig.getInstance().alert_end_time = obj.getInteger("alert_end_time");
|
||||||
//解析粉丝徽章
|
//解析粉丝徽章
|
||||||
|
@ -11,6 +11,7 @@ import com.yunbao.common.utils.L;
|
|||||||
import com.yunbao.common.utils.MD5Util;
|
import com.yunbao.common.utils.MD5Util;
|
||||||
import com.yunbao.common.utils.StringUtil;
|
import com.yunbao.common.utils.StringUtil;
|
||||||
import com.yunbao.common.utils.VersionUtil;
|
import com.yunbao.common.utils.VersionUtil;
|
||||||
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
@ -350,7 +351,11 @@ public class LiveHttpUtil {
|
|||||||
.params("p", p)
|
.params("p", p)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
public static void getContactMsg(int page, HttpCallback callback) {
|
||||||
|
HttpClient.getInstance().get("Live.getContactMsg", "getContactMsg")
|
||||||
|
.params("p", page)
|
||||||
|
.execute(callback);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 观众跟主播连麦时,获取自己的流地址
|
* 观众跟主播连麦时,获取自己的流地址
|
||||||
@ -640,7 +645,40 @@ public class LiveHttpUtil {
|
|||||||
.params("appVersion", CommonAppConfig.getInstance().getVersion())
|
.params("appVersion", CommonAppConfig.getInstance().getVersion())
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 观众给主播送礼物 - 包裹
|
||||||
|
*
|
||||||
|
* @param isContactGift 是否为联系方式礼物
|
||||||
|
*/
|
||||||
|
public static void sendGiftForPage(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
||||||
|
HttpClient.getInstance().get("Live.sendPackGift", LiveHttpConsts.SEND_GIFT)
|
||||||
|
.params("liveuid", liveUid)
|
||||||
|
.params("stream", stream)
|
||||||
|
.params("giftid", giftId)
|
||||||
|
.params("isContactGift", isContactGift)
|
||||||
|
.params("giftcount", giftCount)
|
||||||
|
.params("isprank", by)
|
||||||
|
.params("fans_exclusive_pack", isFansGroupGift ? "1" : "0")
|
||||||
|
.params("appVersion", CommonAppConfig.getInstance().getVersion())
|
||||||
|
.execute(callback);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 观众给主播送礼物 - 粉丝团
|
||||||
|
*
|
||||||
|
* @param isContactGift 是否为联系方式礼物
|
||||||
|
*/
|
||||||
|
public static void sendGiftForFansGroup(String by, String liveUid, String stream, int giftId, String giftCount, int isContactGift, boolean isFansGroupGift, HttpCallback callback) {
|
||||||
|
HttpClient.getInstance().get("Live.fansExclusivePack", LiveHttpConsts.SEND_GIFT)
|
||||||
|
.params("liveuid", liveUid)
|
||||||
|
.params("stream", stream)
|
||||||
|
.params("giftid", giftId)
|
||||||
|
.params("isContactGift", isContactGift)
|
||||||
|
.params("giftcount", giftCount)
|
||||||
|
.params("isprank", by)
|
||||||
|
.params("fans_exclusive_pack", isFansGroupGift ? "1" : "0")
|
||||||
|
.params("appVersion", CommonAppConfig.getInstance().getVersion())
|
||||||
|
.execute(callback);
|
||||||
|
}
|
||||||
public static void sendBlindBoxTicket(String by, String liveUid, String stream, int giftId, HttpCallback callback) {
|
public static void sendBlindBoxTicket(String by, String liveUid, String stream, int giftId, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Live.sendBlindBoxTicket", LiveHttpConsts.SEND_GIFT)
|
HttpClient.getInstance().get("Live.sendBlindBoxTicket", LiveHttpConsts.SEND_GIFT)
|
||||||
.params("liveuid", liveUid)
|
.params("liveuid", liveUid)
|
||||||
@ -999,5 +1037,13 @@ public class LiveHttpUtil {
|
|||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取短剧Url
|
||||||
|
*/
|
||||||
|
public static void getCoolydrama(HttpCallback callback){
|
||||||
|
HttpClient.getInstance().get("cool.register", "Home.getFollow")
|
||||||
|
.params("lang", WordUtil.isNewZh()?"zh_CN":"en")
|
||||||
|
.execute(callback);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,9 @@ import com.yunbao.common.bean.ActiveModel;
|
|||||||
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
||||||
import com.yunbao.common.bean.AnchorRecommendModel;
|
import com.yunbao.common.bean.AnchorRecommendModel;
|
||||||
import com.yunbao.common.bean.BaseModel;
|
import com.yunbao.common.bean.BaseModel;
|
||||||
|
import com.yunbao.common.bean.BattlePassPoints;
|
||||||
|
import com.yunbao.common.bean.BattlePassTask;
|
||||||
|
import com.yunbao.common.bean.BattlePassUserInfoBean;
|
||||||
import com.yunbao.common.bean.BlindBoxInfoModel;
|
import com.yunbao.common.bean.BlindBoxInfoModel;
|
||||||
import com.yunbao.common.bean.CheckLiveModel;
|
import com.yunbao.common.bean.CheckLiveModel;
|
||||||
import com.yunbao.common.bean.CheckRemainingBalance;
|
import com.yunbao.common.bean.CheckRemainingBalance;
|
||||||
@ -31,6 +34,7 @@ import com.yunbao.common.bean.ListInfoMessageModel;
|
|||||||
import com.yunbao.common.bean.LiveAiRobotBean;
|
import com.yunbao.common.bean.LiveAiRobotBean;
|
||||||
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
||||||
import com.yunbao.common.bean.LiveAnchorSayModel;
|
import com.yunbao.common.bean.LiveAnchorSayModel;
|
||||||
|
import com.yunbao.common.bean.LiveBattlePassRewardsBean;
|
||||||
import com.yunbao.common.bean.LiveDataInfoModel;
|
import com.yunbao.common.bean.LiveDataInfoModel;
|
||||||
import com.yunbao.common.bean.LiveInfoModel;
|
import com.yunbao.common.bean.LiveInfoModel;
|
||||||
import com.yunbao.common.bean.LiveRoomActivityBanner;
|
import com.yunbao.common.bean.LiveRoomActivityBanner;
|
||||||
@ -555,7 +559,7 @@ public interface PDLiveApi {
|
|||||||
/**
|
/**
|
||||||
* 机器人删除话术
|
* 机器人删除话术
|
||||||
*/
|
*/
|
||||||
@GET("/api/public/?service=Live.delAiAutomaticSpeech ")
|
@GET("/api/public/?service=Live.delAiAutomaticSpeech")
|
||||||
Observable<ResponseModel<List<String>>> delAiAutomaticSpeech(
|
Observable<ResponseModel<List<String>>> delAiAutomaticSpeech(
|
||||||
@Query("type") String type,
|
@Query("type") String type,
|
||||||
@Query("id") String id
|
@Query("id") String id
|
||||||
@ -663,7 +667,9 @@ public interface PDLiveApi {
|
|||||||
* 获取收件箱信息
|
* 获取收件箱信息
|
||||||
*/
|
*/
|
||||||
@GET("/api/public/?service=Live.getContactMsg")
|
@GET("/api/public/?service=Live.getContactMsg")
|
||||||
Observable<ResponseModel<List<LiveUserMailBoxModel>>> getContactMsg();
|
Observable<ResponseModel<List<LiveUserMailBoxModel>>> getContactMsg(
|
||||||
|
@Query("p") int page
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除联系方式信件
|
* 删除联系方式信件
|
||||||
@ -1091,4 +1097,42 @@ public interface PDLiveApi {
|
|||||||
Observable<ResponseModel<Object>> buyTicket(
|
Observable<ResponseModel<Object>> buyTicket(
|
||||||
@Field("quantity") String quantity
|
@Field("quantity") String quantity
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@GET("/api/public/?service=Livebattlepass.upgradesBattlePass")
|
||||||
|
Observable<ResponseModel<Object>> upgradesBattlePass(@Query("battle_pass_type_id") String battlePassTypeId);
|
||||||
|
|
||||||
|
@GET("/api/public/?service=Livebattlepass.buyingExperiencePoint")
|
||||||
|
Observable<ResponseModel<Object>> buyingExperiencePoint(@Query("exp_count") String expCount);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* battle_pass_points_id => 兑换列表ID
|
||||||
|
* count => 兑换物品的数量
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GET("/api/public/?service=Livebattlepass.pointsExchange")
|
||||||
|
Observable<ResponseModel<Object>> pointsExchange(
|
||||||
|
@Query("battle_pass_points_id") String battlePassPointsId,
|
||||||
|
@Query("count") String count
|
||||||
|
);
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getBattlePassUserInfo")
|
||||||
|
Observable<ResponseModel<BattlePassUserInfoBean>> getBattlePassUserInfo();
|
||||||
|
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getLiveBattlePassRewards")
|
||||||
|
Observable<ResponseModel<LiveBattlePassRewardsBean>> getLiveBattlePassRewards();
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getRewards")
|
||||||
|
Observable<ResponseModel<List<BaseModel>>> getRewards(
|
||||||
|
@Query("live_battle_pass_level_id")String rewardLevelId,
|
||||||
|
@Query("live_battle_pass_rewards_id")String rewardId
|
||||||
|
);
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getBattlePassTask")
|
||||||
|
Observable<ResponseModel<BattlePassTask>> getBattlePassTask();
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getTask")
|
||||||
|
Observable<ResponseModel<List<BaseModel>>> getTask(@Query("task_id")String taskId);
|
||||||
|
@GET("/api/public/?service=Livebattlepass.getBattlePassPoints")
|
||||||
|
Observable<ResponseModel<List<BattlePassPoints>>> getBattlePassPoints();
|
||||||
|
@GET("/api/public/?service=Livebattlepass.battlePassRule")
|
||||||
|
Observable<ResponseModel<String>> battlePassRule();
|
||||||
|
@GET("/api/public/?service=Livebattlepass.addChatCount")
|
||||||
|
Observable<ResponseModel<List<BaseModel>>> addChatCount();
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,9 @@ import com.yunbao.common.Constants;
|
|||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.bean.ActiveModel;
|
import com.yunbao.common.bean.ActiveModel;
|
||||||
import com.yunbao.common.bean.BaseModel;
|
import com.yunbao.common.bean.BaseModel;
|
||||||
|
import com.yunbao.common.bean.BattlePassPoints;
|
||||||
|
import com.yunbao.common.bean.BattlePassTask;
|
||||||
|
import com.yunbao.common.bean.BattlePassUserInfoBean;
|
||||||
import com.yunbao.common.bean.BlindBoxInfoModel;
|
import com.yunbao.common.bean.BlindBoxInfoModel;
|
||||||
import com.yunbao.common.bean.CheckLiveModel;
|
import com.yunbao.common.bean.CheckLiveModel;
|
||||||
import com.yunbao.common.bean.CheckRemainingBalance;
|
import com.yunbao.common.bean.CheckRemainingBalance;
|
||||||
@ -31,6 +34,7 @@ import com.yunbao.common.bean.ListInfoMessageModel;
|
|||||||
import com.yunbao.common.bean.LiveAiRobotBean;
|
import com.yunbao.common.bean.LiveAiRobotBean;
|
||||||
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
||||||
import com.yunbao.common.bean.LiveAnchorSayModel;
|
import com.yunbao.common.bean.LiveAnchorSayModel;
|
||||||
|
import com.yunbao.common.bean.LiveBattlePassRewardsBean;
|
||||||
import com.yunbao.common.bean.LiveDataInfoModel;
|
import com.yunbao.common.bean.LiveDataInfoModel;
|
||||||
import com.yunbao.common.bean.LiveInfoModel;
|
import com.yunbao.common.bean.LiveInfoModel;
|
||||||
import com.yunbao.common.bean.LiveRoomActivityBanner;
|
import com.yunbao.common.bean.LiveRoomActivityBanner;
|
||||||
@ -1264,20 +1268,25 @@ public class LiveNetManager {
|
|||||||
*
|
*
|
||||||
* @param callback 回调
|
* @param callback 回调
|
||||||
*/
|
*/
|
||||||
public void getContactMsg(HttpCallback<List<LiveUserMailBoxModel>> callback) {
|
private Disposable contactMsgApi;
|
||||||
API.get().pdLiveApi(mContext)
|
|
||||||
.getContactMsg()
|
public synchronized void getContactMsg(int page, HttpCallback<List<LiveUserMailBoxModel>> callback) {
|
||||||
|
contactMsgApi = API.get().pdLiveApi(mContext)
|
||||||
|
.getContactMsg(page)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(listResponseModel -> {
|
.subscribe(listResponseModel -> {
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
|
|
||||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||||
}
|
}
|
||||||
|
contactMsgApi = null;
|
||||||
}, throwable -> {
|
}, throwable -> {
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.onError(throwable.getMessage());
|
callback.onError(throwable.getMessage());
|
||||||
}
|
}
|
||||||
}).isDisposed();
|
contactMsgApi = null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2461,6 +2470,72 @@ public class LiveNetManager {
|
|||||||
}).isDisposed();
|
}).isDisposed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void pointsExchange(String battlePassPointsId, String count, HttpCallback<ResponseModel<Object>> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.pointsExchange(battlePassPointsId, count)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(new Consumer<ResponseModel<Object>>() {
|
||||||
|
@Override
|
||||||
|
public void accept(ResponseModel<Object> objectResponseModel) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(objectResponseModel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void buyingExperiencePoint(String expCount, HttpCallback<ResponseModel<Object>> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.buyingExperiencePoint(expCount)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(new Consumer<ResponseModel<Object>>() {
|
||||||
|
@Override
|
||||||
|
public void accept(ResponseModel<Object> objectResponseModel) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(objectResponseModel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void upgradesBattlePass(String battlePassTypeId, HttpCallback<ResponseModel<Object>> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.upgradesBattlePass(battlePassTypeId)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(new Consumer<ResponseModel<Object>>() {
|
||||||
|
public void accept(ResponseModel<Object> objectResponseModel) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(objectResponseModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
public void quickGiftSendGift(String quickGiftNumber, String liveUid, String stream, HttpCallback<QuickGiftSendGiftModel> callback) {
|
public void quickGiftSendGift(String quickGiftNumber, String liveUid, String stream, HttpCallback<QuickGiftSendGiftModel> callback) {
|
||||||
API.get().pdLiveApi(mContext)
|
API.get().pdLiveApi(mContext)
|
||||||
.quickGiftSendGift(quickGiftNumber, liveUid, stream)
|
.quickGiftSendGift(quickGiftNumber, liveUid, stream)
|
||||||
@ -2551,6 +2626,170 @@ public class LiveNetManager {
|
|||||||
}).isDisposed();
|
}).isDisposed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void getBattlePassUserInfo(HttpCallback<BattlePassUserInfoBean> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getBattlePassUserInfo()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(checkRemainingBalanceResponseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(checkRemainingBalanceResponseModel.getData().getInfo());
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getLiveBattlePassRewards(HttpCallback<LiveBattlePassRewardsBean> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getLiveBattlePassRewards()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(checkRemainingBalanceResponseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(checkRemainingBalanceResponseModel.getData().getInfo());
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getRewards(String rewardLevelId, String rewardId, HttpCallback<HttpCallbackModel> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getRewards(rewardLevelId, rewardId)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(responseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(new HttpCallbackModel(responseModel.getData().getCode(), responseModel.getData().getMsg()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getBattlePassTask(HttpCallback<BattlePassTask> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getBattlePassTask()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(checkRemainingBalanceResponseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(checkRemainingBalanceResponseModel.getData().getInfo());
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getBattlePassTaskOver(String taskId, HttpCallback<HttpCallbackModel> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getTask(taskId)
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(responseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(new HttpCallbackModel(responseModel.getData().getCode(), responseModel.getData().getMsg()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getBattlePassPoints(HttpCallback<List<BattlePassPoints>> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.getBattlePassPoints()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(checkRemainingBalanceResponseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(checkRemainingBalanceResponseModel.getData().getInfo());
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void getBattlePassRule(HttpCallback<String> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.battlePassRule()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(checkRemainingBalanceResponseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(checkRemainingBalanceResponseModel.getData().getInfo());
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
|
public void addChatCount(HttpCallback<HttpCallbackModel> callback) {
|
||||||
|
API.get().pdLiveApi(mContext)
|
||||||
|
.addChatCount()
|
||||||
|
.subscribeOn(Schedulers.io())
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
.subscribe(responseModel -> {
|
||||||
|
if (callback != null) {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onSuccess(new HttpCallbackModel(responseModel.getData().getCode(), responseModel.getData().getMsg()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, new Consumer<Throwable>() {
|
||||||
|
@Override
|
||||||
|
public void accept(Throwable throwable) throws Exception {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onError(mContext.getString(R.string.net_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).isDisposed();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 直播间取消网络请求
|
* 直播间取消网络请求
|
||||||
*/
|
*/
|
||||||
@ -2564,5 +2803,8 @@ public class LiveNetManager {
|
|||||||
if (randomPkApi != null) {
|
if (randomPkApi != null) {
|
||||||
randomPkApi.dispose();
|
randomPkApi.dispose();
|
||||||
}
|
}
|
||||||
|
if (contactMsgApi != null) {
|
||||||
|
contactMsgApi.dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,12 +83,16 @@ public class OpenAdManager {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static long showTime=0;
|
||||||
public synchronized void show(int type, boolean isGuard) {
|
public synchronized void show(int type, boolean isGuard) {
|
||||||
if (list == null) {
|
if (list == null) {
|
||||||
init(true);
|
init(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(System.currentTimeMillis()-showTime<100){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
showTime=System.currentTimeMillis();
|
||||||
showType = type;
|
showType = type;
|
||||||
for (OpenAdModel model : list) {
|
for (OpenAdModel model : list) {
|
||||||
if (model.getType() == type) {
|
if (model.getType() == type) {
|
||||||
@ -179,6 +183,10 @@ public class OpenAdManager {
|
|||||||
if (model.getType() != showType) {
|
if (model.getType() != showType) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(isShow(model)){
|
||||||
|
Log.i(TAG,"展示过:"+model);
|
||||||
|
return;
|
||||||
|
}
|
||||||
showMap.put(model.getId(), true);
|
showMap.put(model.getId(), true);
|
||||||
if (model.getShowModel() == OpenAdModel.SHOW_DIY) {
|
if (model.getShowModel() == OpenAdModel.SHOW_DIY) {
|
||||||
String nextTime= String.valueOf(System.currentTimeMillis() + (Long.parseLong(model.getSection()) * 60 * 1000));
|
String nextTime= String.valueOf(System.currentTimeMillis() + (Long.parseLong(model.getSection()) * 60 * 1000));
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
package com.yunbao.common.utils;
|
package com.yunbao.common.utils;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.view.ViewTreeObserver;
|
import android.view.ViewTreeObserver;
|
||||||
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -15,12 +18,13 @@ public class AndroidBug5497Workaround {
|
|||||||
// For more information, see https://issuetracker.google.com/issues/36911528
|
// For more information, see https://issuetracker.google.com/issues/36911528
|
||||||
// To use this class, simply invoke assistActivity() on an Activity that already has its content view set.
|
// To use this class, simply invoke assistActivity() on an Activity that already has its content view set.
|
||||||
|
|
||||||
public static void assistActivity (Activity activity) {
|
public static void assistActivity(Activity activity) {
|
||||||
new AndroidBug5497Workaround(activity);
|
new AndroidBug5497Workaround(activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
private View mChildOfContent;
|
private View mChildOfContent;
|
||||||
private int usableHeightPrevious;
|
private int usableHeightPrevious;
|
||||||
|
private int defHeight = ViewGroup.LayoutParams.MATCH_PARENT;
|
||||||
private FrameLayout.LayoutParams frameLayoutParams;
|
private FrameLayout.LayoutParams frameLayoutParams;
|
||||||
|
|
||||||
private AndroidBug5497Workaround(Activity activity) {
|
private AndroidBug5497Workaround(Activity activity) {
|
||||||
@ -29,8 +33,14 @@ public class AndroidBug5497Workaround {
|
|||||||
mChildOfContent.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
mChildOfContent.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||||
public void onGlobalLayout() {
|
public void onGlobalLayout() {
|
||||||
possiblyResizeChildOfContent();
|
possiblyResizeChildOfContent();
|
||||||
|
int heightDiff = mChildOfContent.getRootView().getHeight() - mChildOfContent.getHeight();
|
||||||
|
if (heightDiff < 100) {
|
||||||
|
frameLayoutParams.height = defHeight;
|
||||||
|
mChildOfContent.requestLayout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
frameLayoutParams = (FrameLayout.LayoutParams) mChildOfContent.getLayoutParams();
|
frameLayoutParams = (FrameLayout.LayoutParams) mChildOfContent.getLayoutParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +49,7 @@ public class AndroidBug5497Workaround {
|
|||||||
if (usableHeightNow != usableHeightPrevious) {
|
if (usableHeightNow != usableHeightPrevious) {
|
||||||
int usableHeightSansKeyboard = mChildOfContent.getRootView().getHeight();
|
int usableHeightSansKeyboard = mChildOfContent.getRootView().getHeight();
|
||||||
int heightDifference = usableHeightSansKeyboard - usableHeightNow;
|
int heightDifference = usableHeightSansKeyboard - usableHeightNow;
|
||||||
if (heightDifference > (usableHeightSansKeyboard/4)) {
|
if (heightDifference > (usableHeightSansKeyboard / 4)) {
|
||||||
// keyboard probably just became visible
|
// keyboard probably just became visible
|
||||||
frameLayoutParams.height = usableHeightSansKeyboard - heightDifference;
|
frameLayoutParams.height = usableHeightSansKeyboard - heightDifference;
|
||||||
} else {
|
} else {
|
||||||
|
@ -44,7 +44,7 @@ public class GoogleUtils {
|
|||||||
|
|
||||||
|
|
||||||
public boolean getGoogleService() {
|
public boolean getGoogleService() {
|
||||||
boolean flag;
|
boolean flag =false;
|
||||||
try {
|
try {
|
||||||
Class<?> clz = mActivity.getClassLoader().loadClass("com.shayu.lib_google.utils.GoogleBillingManage");
|
Class<?> clz = mActivity.getClassLoader().loadClass("com.shayu.lib_google.utils.GoogleBillingManage");
|
||||||
googlePay = clz.getConstructor(Activity.class).newInstance(mActivity);
|
googlePay = clz.getConstructor(Activity.class).newInstance(mActivity);
|
||||||
|
@ -607,7 +607,7 @@ public class JavascriptInterfaceUtils {
|
|||||||
public void androidClickToTaskPage() {
|
public void androidClickToTaskPage() {
|
||||||
ARouter.getInstance().build(PATH_REWARD).withString("url",
|
ARouter.getInstance().build(PATH_REWARD).withString("url",
|
||||||
CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index" + "&uid=" + CommonAppConfig.getInstance().getUid()
|
CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index" + "&uid=" + CommonAppConfig.getInstance().getUid()
|
||||||
+ "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1"+ "&isZh=" + (WordUtil.isNewZh() ? "1" : "0")).navigation();
|
+ "&token=" + CommonAppConfig.getInstance().getToken() + "&tabIndex=1" + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0")).navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
@ -678,4 +678,8 @@ public class JavascriptInterfaceUtils {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JavascriptInterface
|
||||||
|
public void androidGotoCustomerService(String url) {
|
||||||
|
RouteUtil.forwardCustomerService(url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,6 @@ public class RouteUtil {
|
|||||||
public static final String PATH_MYWEBVIEWACTIVTITY = "/main/MyWebViewActivity";
|
public static final String PATH_MYWEBVIEWACTIVTITY = "/main/MyWebViewActivity";
|
||||||
public static final String PATH_ZHUANGBANACTIVITY = "/main/ZhuangBanActivity";
|
public static final String PATH_ZHUANGBANACTIVITY = "/main/ZhuangBanActivity";
|
||||||
public static final String PATH_LiveZHUANGBANACTIVITY = "/live/ZhuangBanActivity";
|
public static final String PATH_LiveZHUANGBANACTIVITY = "/live/ZhuangBanActivity";
|
||||||
|
|
||||||
public static final String PATH_COMPENSATE_ACTIVITY = "/live/CompensateActivity";
|
|
||||||
public static final String PATH_FACEBOOKACTIVITY = "/baidu/FacebookLoginActivity";
|
public static final String PATH_FACEBOOKACTIVITY = "/baidu/FacebookLoginActivity";
|
||||||
public static final String PATH_MAIN = "/main/MainActivity";
|
public static final String PATH_MAIN = "/main/MainActivity";
|
||||||
public static final String PATH_ENTRY = "/main/EntryActivity";
|
public static final String PATH_ENTRY = "/main/EntryActivity";
|
||||||
@ -47,7 +45,7 @@ public class RouteUtil {
|
|||||||
public static final String PATH_RED_PACKET_LIST = "/main/RedPacketListActivity";
|
public static final String PATH_RED_PACKET_LIST = "/main/RedPacketListActivity";
|
||||||
public static final String PATH_RED_PACKET_INFO = "/main/RedPacketInfoActivity";
|
public static final String PATH_RED_PACKET_INFO = "/main/RedPacketInfoActivity";
|
||||||
public static final String PATH_RED_PACKET_USER = "/main/RedPacketUsersActivity";
|
public static final String PATH_RED_PACKET_USER = "/main/RedPacketUsersActivity";
|
||||||
public static final String PATH_SELECT_AVATAR = "/main/UserAvatarSelectActivity";
|
public static final String PATH_SELECT_AVATAR="/main/UserAvatarSelectActivity";
|
||||||
|
|
||||||
public static void forwardFansActivity(String uid) {
|
public static void forwardFansActivity(String uid) {
|
||||||
ARouter.getInstance().build(PATH_FANSACTIVITY)
|
ARouter.getInstance().build(PATH_FANSACTIVITY)
|
||||||
@ -150,21 +148,6 @@ public class RouteUtil {
|
|||||||
.navigation();
|
.navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 跳转到
|
|
||||||
*/
|
|
||||||
public static void forwardLiveCompensateActivity(Context context, String msgid, String banner, String title, String content, String time, String link, boolean receive) {
|
|
||||||
ARouter.getInstance().build(PATH_COMPENSATE_ACTIVITY)
|
|
||||||
.withString("msgid", msgid)
|
|
||||||
.withString("banner", banner)
|
|
||||||
.withString("title", title)
|
|
||||||
.withString("content", content)
|
|
||||||
.withString("time", time)
|
|
||||||
.withString("link", link)
|
|
||||||
.withBoolean("receive", receive)
|
|
||||||
.navigation();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 跳转到装扮
|
* 跳转到装扮
|
||||||
*/
|
*/
|
||||||
@ -201,7 +184,7 @@ public class RouteUtil {
|
|||||||
* 跳转到充值页面
|
* 跳转到充值页面
|
||||||
*/
|
*/
|
||||||
public static void forwardMyCoin(Context context) {
|
public static void forwardMyCoin(Context context) {
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Mall&a=zhifu&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=Mall&a=zhifu&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken()+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
|
||||||
ARouter.getInstance().build(PATH_COIN).withString("url", url).navigation();
|
ARouter.getInstance().build(PATH_COIN).withString("url", url).navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,14 +235,14 @@ public class RouteUtil {
|
|||||||
postcard.navigation();
|
postcard.navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void forwardGiftWallActivity(String mStream, String mAnchorName, String mLiveUid, String mAvatarUrl, int isAttention, boolean isLive) {
|
public static void forwardGiftWallActivity(String mStream, String mAnchorName, String mLiveUid, String mAvatarUrl, int isAttention,boolean isLive) {
|
||||||
ARouter.getInstance().build(PATH_GIFT_WALL)
|
ARouter.getInstance().build(PATH_GIFT_WALL)
|
||||||
.withString(Constants.LIVE_UID, mLiveUid)
|
.withString(Constants.LIVE_UID, mLiveUid)
|
||||||
.withString(Constants.STREAM, mStream)
|
.withString(Constants.STREAM, mStream)
|
||||||
.withString("mAnchorName", mAnchorName)
|
.withString("mAnchorName", mAnchorName)
|
||||||
.withString("mAvatarUrl", mAvatarUrl)
|
.withString("mAvatarUrl", mAvatarUrl)
|
||||||
.withInt("isAttention", isAttention)
|
.withInt("isAttention", isAttention)
|
||||||
.withBoolean("isLive", isLive)
|
.withBoolean("isLive",isLive)
|
||||||
.navigation();
|
.navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,4 +316,12 @@ public class RouteUtil {
|
|||||||
ARouter.getInstance().build(PATH_SELECT_AVATAR)
|
ARouter.getInstance().build(PATH_SELECT_AVATAR)
|
||||||
.navigation();
|
.navigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 战令
|
||||||
|
*/
|
||||||
|
public static void forwardBattlePass(){
|
||||||
|
ARouter.getInstance().build(PATH_BattlePassActivity)
|
||||||
|
.navigation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,8 @@ public class WordUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNewZh() {
|
public static boolean isNewZh() {
|
||||||
return IMLoginManager.get(CommonAppContext.sInstance).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE;
|
return IMLoginManager.get(CommonAppContext.sInstance).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE
|
||||||
|
|| IMLoginManager.get(CommonAppContext.sInstance).getLocaleLanguage() == Locale.TRADITIONAL_CHINESE ;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getNewString(int res) {
|
public static String getNewString(int res) {
|
||||||
|
22
common/src/main/res/drawable/background_order_dialog.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<bitmap
|
||||||
|
android:gravity="fill_vertical|fill_horizontal"
|
||||||
|
android:src="@drawable/background_order_dialog_out_layout" />
|
||||||
|
</item>
|
||||||
|
<item
|
||||||
|
android:bottom="3dp"
|
||||||
|
android:left="3dp"
|
||||||
|
android:right="4dp"
|
||||||
|
android:top="4dp">
|
||||||
|
<shape>
|
||||||
|
<solid android:color="#F5F5FF" />
|
||||||
|
|
||||||
|
<corners android:radius="10dp" />
|
||||||
|
<stroke
|
||||||
|
android:width="3dp"
|
||||||
|
android:color="#657FE4" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 873 KiB |
21
common/src/main/res/drawable/order_level_progress_bg.xml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!--设置ProgressBar背景色-->
|
||||||
|
<item android:id="@android:id/background">
|
||||||
|
<shape>
|
||||||
|
<!--设置ProgressBar进度条圆角半径-->
|
||||||
|
<corners android:radius="3dp" />
|
||||||
|
<solid android:color="#B7AFCD" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<!--设置ProgressBar进度条颜色-->
|
||||||
|
<item android:id="@android:id/progress">
|
||||||
|
<clip android:clipOrientation="horizontal">
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="3dp" />
|
||||||
|
<solid android:color="#CE2BFF" />
|
||||||
|
</shape>
|
||||||
|
</clip>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
176
common/src/main/res/layout/activate_elite_battle_order_popup.xml
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="17dp"
|
||||||
|
android:layout_marginEnd="17dp">
|
||||||
|
<ImageView
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/war_order_close"
|
||||||
|
android:layout_width="19dp"
|
||||||
|
android:layout_height="19dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:src="@mipmap/icon_sud_rule_close" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/elites_image"
|
||||||
|
android:layout_width="211dp"
|
||||||
|
android:layout_height="27dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:src="@mipmap/icon_activate_the_elite_battle_order"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/enjoy_image"
|
||||||
|
android:layout_width="211dp"
|
||||||
|
android:layout_height="27dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:src="@mipmap/icon_enjoy_image"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_marginEnd="15dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@mipmap/icon_war_order_diamond" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/gift_overvalue"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/gift_overvalue"
|
||||||
|
android:textColor="#CE2BFF"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/gift_overvalue3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/gift_overvalue3"
|
||||||
|
android:textColor="#CE2BFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@mipmap/icon_order_score" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:text="@string/more_integral"
|
||||||
|
android:textColor="#CE2BFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:src="@mipmap/icon_war_order_gift" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/gift3_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/unlock_more_gifts"
|
||||||
|
android:textColor="#CE2BFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:text="@string/has_reached_level_after_opening"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="13sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/button_war_order"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:background="@mipmap/button_war_order"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/button_war_order_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
tools:text="123" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/diamond" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
40
common/src/main/res/layout/activity_end_popup.xml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="218dp"
|
||||||
|
android:layout_marginStart="22dp"
|
||||||
|
android:layout_marginEnd="22dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginStart="30dp"
|
||||||
|
android:layout_marginTop="75dp"
|
||||||
|
android:layout_marginEnd="30dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/this_activity_is_over"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/confirm"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_gravity="center_horizontal|bottom"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_marginBottom="33dp"
|
||||||
|
android:background="@mipmap/button_buying_experience"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="@string/edit_one_4"
|
||||||
|
android:textColor="#E03600"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</FrameLayout>
|
@ -13,7 +13,7 @@
|
|||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
android:layout_marginEnd="20dp"
|
android:layout_marginEnd="20dp"
|
||||||
android:layout_marginBottom="12dp"
|
android:layout_marginBottom="12dp"
|
||||||
android:scaleType="fitEnd"
|
android:scaleType="fitCenter"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/close"
|
app:layout_constraintBottom_toTopOf="@+id/close"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
68
common/src/main/res/layout/liberal_battle_pass_popup.xml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="218dp"
|
||||||
|
android:layout_marginStart="22dp"
|
||||||
|
android:layout_marginEnd="22dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/liberal_battle_pass"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="73dp"
|
||||||
|
android:text="liberal_battle_pass2"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="57dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/cancel"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_marginStart="19dp"
|
||||||
|
android:background="@mipmap/button_liberal_battle_cancel"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="@string/cancel"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/liberal_battle_sure"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginEnd="19dp"
|
||||||
|
android:background="@mipmap/button_liberal_battle_sure"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="@string/confirm"
|
||||||
|
android:textColor="#E03600"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
182
common/src/main/res/layout/order_level_popup.xml
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="218dp"
|
||||||
|
android:layout_marginStart="17dp"
|
||||||
|
android:layout_marginEnd="17dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/war_order_close"
|
||||||
|
android:layout_width="19dp"
|
||||||
|
android:layout_height="19dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:src="@mipmap/icon_sud_rule_close" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="2dp"
|
||||||
|
android:text="@string/order_level"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/current"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="46dp"
|
||||||
|
android:text="Lv7"
|
||||||
|
android:textColor="#CE2BFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="221dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="7dp">
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progressBar"
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="221dp"
|
||||||
|
android:layout_height="6dp"
|
||||||
|
android:max="100"
|
||||||
|
android:progress="10"
|
||||||
|
android:progressDrawable="@drawable/order_level_progress_bg"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/exp_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textColor="#000"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:text="500/1000" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/buying_experience_point"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="25dp"
|
||||||
|
android:background="@mipmap/backgroud_tickets_plus_minus">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/sub"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tickets_plus_minus"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center"
|
||||||
|
android:imeOptions="actionSend"
|
||||||
|
android:inputType="number"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="0"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textSize="12dp" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/add"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/order_level_diamond"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:text="100"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="11sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:src="@mipmap/icon_diamond2" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="10dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/balance_diamond"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:text="100"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="11sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:src="@mipmap/icon_diamond2" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/buying_experience"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:background="@mipmap/button_buying_experience"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="@string/buying_experience"
|
||||||
|
android:textColor="#E03600"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
82
common/src/main/res/layout/promotion_elite_popup.xml
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="22dp"
|
||||||
|
android:layout_marginEnd="22dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/close"
|
||||||
|
android:layout_width="19dp"
|
||||||
|
android:layout_height="19dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:src="@mipmap/icon_sud_rule_close" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/upgrade_elite"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="23sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/upgrade_elite2"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="20dp">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button_quintessence"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_marginStart="34dp"
|
||||||
|
android:background="@mipmap/bg_dialog_battlepass_btn"
|
||||||
|
android:text="@string/upgrade_elite_type1"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
android:textColor="#F36100"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button_enjoy"
|
||||||
|
android:layout_width="116dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginEnd="34dp"
|
||||||
|
android:background="@mipmap/bg_dialog_battlepass_btn"
|
||||||
|
android:text="@string/upgrade_elite_type2"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
android:textColor="#F36100"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
56
common/src/main/res/layout/rule_of_war_popup.xml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginStart="17dp"
|
||||||
|
android:layout_marginEnd="17dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="380dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="111dp"
|
||||||
|
android:layout_height="62.5dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
android:src="@mipmap/icon_order_rule" />
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_marginBottom="15dp"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/rule"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginStart="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
tools:text="1.戰令開啟時,完成戰令任務,提升戰令等級,可獲得大量等級獎勵。\n2.所有用戶免費解鎖普通版,戰令開啟時隨時可進階為精英版和尊享版,獲得豐厚額外專屬獎勵。\n3.三種戰令都會獎勵積分,可在兌換商城中兌換心儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數量限制。\n4.每日任務0點刷新,未完成任務進度不再累計,每季任務將會在新一季戰令開啟時刷新。\n5.任務達成時需主動領取經驗,未领取經驗將會在任務刷新時過期。\n6.活動最終解釋權歸PDLIVE所有。"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/close"
|
||||||
|
android:layout_width="25dp"
|
||||||
|
android:layout_height="25dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="30dp"
|
||||||
|
android:src="@mipmap/icon_order_rule_close" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
125
common/src/main/res/layout/war_order_exchange_details_popup.xml
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="282dp"
|
||||||
|
android:layout_marginStart="17dp"
|
||||||
|
android:layout_marginEnd="17dp"
|
||||||
|
android:background="@drawable/background_order_dialog"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/war_order_close"
|
||||||
|
android:layout_width="19dp"
|
||||||
|
android:layout_height="19dp"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:src="@mipmap/icon_sud_rule_close" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/exchange_particulars"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
<LinearLayout
|
||||||
|
android:background="@mipmap/bg_dialog_battlepass_exchange"
|
||||||
|
android:layout_width="99dp"
|
||||||
|
android:layout_height="99dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="19dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/exchange_particulars"
|
||||||
|
android:layout_width="99dp"
|
||||||
|
android:layout_height="99dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/point_exchange_number"
|
||||||
|
android:textColor="#0D21B2"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="90dp"
|
||||||
|
android:layout_height="25dp"
|
||||||
|
android:background="@mipmap/backgroud_tickets_plus_minus">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/sub"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tickets_plus_minus"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center"
|
||||||
|
android:imeOptions="actionSend"
|
||||||
|
android:inputType="number"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="0"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textSize="12dp" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/add"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/point_exchange_linear"
|
||||||
|
android:layout_width="140dp"
|
||||||
|
android:layout_height="38dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="17dp"
|
||||||
|
android:background="@mipmap/button_buying_experience"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/point_exchange"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:textColor="#E03600"
|
||||||
|
android:textSize="14sp"
|
||||||
|
tools:text="123" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="19dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:src="@mipmap/ic_integral" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:textColor="#E03600"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:text="@string/point_exchange2" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
After Width: | Height: | Size: 38 KiB |
BIN
common/src/main/res/mipmap-b+en+us/icon_enjoy_image.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
common/src/main/res/mipmap-b+en+us/icon_order_rule.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/bg_dialog_battlepass_btn.png
Normal file
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 71 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/button_buying_experience.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/button_enjoy.png
Normal file
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 14 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/button_liberal_battle_sure.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/button_quintessence.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/button_war_order.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/ic_integral.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 32 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_enjoy_image.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_order_rule.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_order_rule_close.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_order_score.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_war_order_diamond.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_war_order_gift.png
Normal file
After Width: | Height: | Size: 22 KiB |
@ -411,7 +411,7 @@
|
|||||||
<string name="live_link_mic_cannot_link_2">Connecting wheat is currently in progress~</string>
|
<string name="live_link_mic_cannot_link_2">Connecting wheat is currently in progress~</string>
|
||||||
<string name="live_link_mic_cannot_pk">You are already in PK</string>
|
<string name="live_link_mic_cannot_pk">You are already in PK</string>
|
||||||
<string name="live_link_mic_pk_1">We</string>
|
<string name="live_link_mic_pk_1">We</string>
|
||||||
<string name="live_link_mic_pk_2">Other party</string>
|
<string name="live_link_mic_pk_2">Opponent</string>
|
||||||
<string name="live_coin_not_enough">The balance is insufficient. Do you want to recharge it?</string>
|
<string name="live_coin_not_enough">The balance is insufficient. Do you want to recharge it?</string>
|
||||||
<string name="live_online_anchor">Current online anchor</string>
|
<string name="live_online_anchor">Current online anchor</string>
|
||||||
<string name="link_mic_play_game">The other anchor is in the game</string>
|
<string name="link_mic_play_game">The other anchor is in the game</string>
|
||||||
@ -1393,11 +1393,40 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="conversion_quantity_need_of_use1">1.One star coin can be exchanged for one ticket. You can customize the exchange quantity according to your needs. Once the ticket is exchanged, it cannot be revoked. Please confirm in advance;</string>
|
<string name="conversion_quantity_need_of_use1">1.One star coin can be exchanged for one ticket. You can customize the exchange quantity according to your needs. Once the ticket is exchanged, it cannot be revoked. Please confirm in advance;</string>
|
||||||
<string name="conversion_quantity_need_of_use2">2.One ticket can be used to watch one episode of a short drama. After successful redemption, you can return to the viewing page and use the ticket to continue watching the movie;</string>
|
<string name="conversion_quantity_need_of_use2">2.One ticket can be used to watch one episode of a short drama. After successful redemption, you can return to the viewing page and use the ticket to continue watching the movie;</string>
|
||||||
<string name="conversion_quantity_need_of_use3">3.Ticket prohibit illegal activities such as offline trading and acquisitions, and PDLIVE will crack down severely on various profit-making trading activities.</string>
|
<string name="conversion_quantity_need_of_use3">3.Ticket prohibit illegal activities such as offline trading and acquisitions, and PDLIVE will crack down severely on various profit-making trading activities.</string>
|
||||||
|
<string name="rule_of_war_hint1">1. When the BattlePass is activated, completing the BattlePass task and increasing the BattlePass level can earn a large amount of level rewards.\n</string>
|
||||||
|
<string name="rule_of_war_hint2">2. All users can unlock the regular version for free, and when the BattlePass is activated, they can upgrade to the elite version and the luxury version at any time, and receive rich additional exclusive rewards.\n</string>
|
||||||
|
|
||||||
<string name="pay_cancel">Payment cancellation</string>
|
<string name="pay_cancel">Payment cancellation</string>
|
||||||
<string name="pay_suc">Payment successful</string>
|
<string name="pay_suc">Payment successful</string>
|
||||||
<string name="pay_fail">Payment failed</string>
|
<string name="pay_fail">Payment failed</string>
|
||||||
|
|
||||||
|
<string name="upgrade_elite">Upgrade Elite/Luxury BattlePass</string>
|
||||||
|
<string name="upgrade_elite_type1">Upgrade Elite BattlePass</string>
|
||||||
|
<string name="upgrade_elite_type2">Upgrade Luxury BattlePass</string>
|
||||||
|
<string name="upgrade_elite2">You can receive a massive amount of points and exchange more rewards</string>
|
||||||
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
||||||
|
<string name="more_integral">More points</string>
|
||||||
|
<string name="gift_overvalue">Gifts worth over 200%</string>
|
||||||
|
<string name="gift_overvalue3">Gifts worth over 300%</string>
|
||||||
|
<string name="unlock_more_gifts">More Rare outfits</string>
|
||||||
|
<string name="unlock_more_gifts2">More Collectible outfits</string>
|
||||||
|
<string name="has_reached_level_after_opening">After opened,the rewards that have reached will be automatically unlocked!</string>
|
||||||
|
<string name="order_level">My level</string>
|
||||||
|
<string name="buying_experience_point">Purchase EXP value:</string>
|
||||||
|
<string name="buying_experience">Buy</string>
|
||||||
|
<string name="this_activity_is_over">This activity has ended. Please collect the unclaimed rewards as soon as possible.Points can be reserved for future use</string>
|
||||||
|
<string name="exchange_particulars">Exchange Details</string>
|
||||||
|
<string name="point_exchange">%s(points) exchange</string>
|
||||||
|
<string name="point_exchange2">exchange</string>
|
||||||
|
<string name="point_exchange_number">Quantity:</string>
|
||||||
|
<string name="battlepass_exchange_buy_integral">Insufficient points</string>
|
||||||
|
<string name="battlepass_exchange_buy_max">The quantity of goods exchanged has reached the upper limit</string>
|
||||||
|
<string name="battlepass_zl_get">Successfully opened</string>
|
||||||
|
<string name="battlepass_buy_max">You have purchased the BattlePass</string>
|
||||||
|
|
||||||
<string name="msg_del_sys01">The items inside have not been claimed yet.Are you sure to delete the message?</string>
|
<string name="msg_del_sys01">The items inside have not been claimed yet.Are you sure to delete the message?</string>
|
||||||
<string name="msg_del_sys02">Are you sure to delete the message?</string>
|
<string name="msg_del_sys02">Are you sure to delete the message?</string>
|
||||||
|
|
||||||
|
@ -1387,9 +1387,6 @@
|
|||||||
<string name="conversion_quantity">兌換數量:</string>
|
<string name="conversion_quantity">兌換數量:</string>
|
||||||
<string name="conversion_quantity_need">余额 %s</string>
|
<string name="conversion_quantity_need">余额 %s</string>
|
||||||
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
||||||
<string name="conversion_quantity_need_of_use1">一、1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
|
||||||
<string name="conversion_quantity_need_of_use2">二、1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
|
||||||
<string name="conversion_quantity_need_of_use3">三、觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
|
||||||
|
|
||||||
|
|
||||||
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
||||||
@ -1398,6 +1395,38 @@
|
|||||||
<string name="pay_cancel">支付取消</string>
|
<string name="pay_cancel">支付取消</string>
|
||||||
<string name="pay_suc">支付成功</string>
|
<string name="pay_suc">支付成功</string>
|
||||||
<string name="pay_fail">支付失敗</string>
|
<string name="pay_fail">支付失敗</string>
|
||||||
|
<string name="conversion_quantity_need_of_use1">1.1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use2">2.1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use3">3.觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
||||||
|
<string name="rule_of_war_hint1">1.戰令開啟時,完成戰令任務,提升戰令等級,可 獲得大量等級獎勵。</string>
|
||||||
|
<string name="rule_of_war_hint2">2.所有用戶免費解鎖普通版,戰令開啟時隨時可進 階為精英版和尊享版,獲得豐厚額外專屬獎勵。</string>
|
||||||
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
||||||
|
|
||||||
|
<string name="upgrade_elite">升級精英/尊享戰令</string>
|
||||||
|
<string name="upgrade_elite_type1">升級精英戰令</string>
|
||||||
|
<string name="upgrade_elite_type2">升級尊享戰令</string>
|
||||||
|
<string name="upgrade_elite2">可領取海量積分,兌換更多獎勵</string>
|
||||||
|
<string name="more_integral">更多積分</string>
|
||||||
|
<string name="gift_overvalue">禮物價值超 200%</string>
|
||||||
|
<string name="gift_overvalue3">禮物價值超 300%</string>
|
||||||
|
<string name="unlock_more_gifts">解鎖更多禮物 和全套珍稀裝扮</string>
|
||||||
|
<string name="unlock_more_gifts2">解鎖更多禮物 和全套典藏裝扮</string>
|
||||||
|
<string name="has_reached_level_after_opening">開通后已達到等級的獎勵將會自動解鎖!</string>
|
||||||
|
<string name="order_level">我的等級</string>
|
||||||
|
<string name="buying_experience_point">購買經驗值:</string>
|
||||||
|
<string name="buying_experience">購買</string>
|
||||||
|
<string name="this_activity_is_over">本期活動已結束,請儘快領取未領取的獎勵積分可保留下次使用</string>
|
||||||
|
<string name="exchange_particulars">兌換詳情</string>
|
||||||
|
<string name="point_exchange">%s(積分) 兌換</string>
|
||||||
|
<string name="point_exchange2">兌換</string>
|
||||||
|
<string name="point_exchange_number">數量:</string>
|
||||||
|
<string name="battlepass_exchange_buy_integral">積分不足</string>
|
||||||
|
<string name="battlepass_exchange_buy_max">商品兌換數量已達到上限</string>
|
||||||
|
<string name="battlepass_zl_get">開通成功</string>
|
||||||
|
<string name="battlepass_buy_max">您已購買該戰令</string>
|
||||||
|
|
||||||
<string name="receive_success">領取成功</string>
|
<string name="receive_success">領取成功</string>
|
||||||
<string name="receive1">領取</string>
|
<string name="receive1">領取</string>
|
||||||
|
@ -1386,9 +1386,6 @@
|
|||||||
<string name="conversion_quantity">兌換數量:</string>
|
<string name="conversion_quantity">兌換數量:</string>
|
||||||
<string name="conversion_quantity_need">余额 %s</string>
|
<string name="conversion_quantity_need">余额 %s</string>
|
||||||
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
||||||
<string name="conversion_quantity_need_of_use1">一、1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
|
||||||
<string name="conversion_quantity_need_of_use2">二、1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
|
||||||
<string name="conversion_quantity_need_of_use3">三、觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
|
||||||
|
|
||||||
|
|
||||||
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
||||||
@ -1397,6 +1394,38 @@
|
|||||||
<string name="pay_cancel">支付取消</string>
|
<string name="pay_cancel">支付取消</string>
|
||||||
<string name="pay_suc">支付成功</string>
|
<string name="pay_suc">支付成功</string>
|
||||||
<string name="pay_fail">支付失敗</string>
|
<string name="pay_fail">支付失敗</string>
|
||||||
|
<string name="conversion_quantity_need_of_use1">1.1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use2">2.1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use3">3.觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
||||||
|
<string name="rule_of_war_hint1">1.戰令開啟時,完成戰令任務,提升戰令等級,可 獲得大量等級獎勵。</string>
|
||||||
|
<string name="rule_of_war_hint2">2.所有用戶免費解鎖普通版,戰令開啟時隨時可進 階為精英版和尊享版,獲得豐厚額外專屬獎勵。</string>
|
||||||
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
||||||
|
|
||||||
|
<string name="upgrade_elite">升級精英/尊享戰令</string>
|
||||||
|
<string name="upgrade_elite_type1">升級精英戰令</string>
|
||||||
|
<string name="upgrade_elite_type2">升級尊享戰令</string>
|
||||||
|
<string name="upgrade_elite2">可領取海量積分,兌換更多獎勵</string>
|
||||||
|
<string name="more_integral">更多積分</string>
|
||||||
|
<string name="gift_overvalue">禮物價值超 200%</string>
|
||||||
|
<string name="gift_overvalue3">禮物價值超 300%</string>
|
||||||
|
<string name="unlock_more_gifts">解鎖更多禮物 和全套珍稀裝扮</string>
|
||||||
|
<string name="unlock_more_gifts2">解鎖更多禮物 和全套典藏裝扮</string>
|
||||||
|
<string name="has_reached_level_after_opening">開通后已達到等級的獎勵將會自動解鎖!</string>
|
||||||
|
<string name="order_level">我的等級</string>
|
||||||
|
<string name="buying_experience_point">購買經驗值:</string>
|
||||||
|
<string name="buying_experience">購買</string>
|
||||||
|
<string name="this_activity_is_over">本期活動已結束,請儘快領取未領取的獎勵積分可保留下次使用</string>
|
||||||
|
<string name="exchange_particulars">兌換詳情</string>
|
||||||
|
<string name="point_exchange">%s(積分) 兌換</string>
|
||||||
|
<string name="point_exchange2">兌換</string>
|
||||||
|
<string name="point_exchange_number">數量:</string>
|
||||||
|
<string name="battlepass_exchange_buy_integral">積分不足</string>
|
||||||
|
<string name="battlepass_exchange_buy_max">商品兌換數量已達到上限</string>
|
||||||
|
<string name="battlepass_zl_get">開通成功</string>
|
||||||
|
<string name="battlepass_buy_max">您已購買該戰令</string>
|
||||||
|
|
||||||
<string name="receive_success">領取成功</string>
|
<string name="receive_success">領取成功</string>
|
||||||
<string name="receive1">領取</string>
|
<string name="receive1">領取</string>
|
||||||
|
@ -1385,14 +1385,42 @@
|
|||||||
<string name="conversion_quantity">兌換數量:</string>
|
<string name="conversion_quantity">兌換數量:</string>
|
||||||
<string name="conversion_quantity_need">余额 %s</string>
|
<string name="conversion_quantity_need">余额 %s</string>
|
||||||
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
<string name="conversion_quantity_need_of_use">兌換&使用規則:</string>
|
||||||
<string name="conversion_quantity_need_of_use1">一、1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
<string name="rule_of_war_hint1">1.戰令開啟時,完成戰令任務,提升戰令等級,可 獲得大量等級獎勵。</string>
|
||||||
<string name="conversion_quantity_need_of_use2">二、1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
<string name="rule_of_war_hint2">2.所有用戶免費解鎖普通版,戰令開啟時隨時可進 階為精英版和尊享版,獲得豐厚額外專屬獎勵。</string>
|
||||||
<string name="conversion_quantity_need_of_use3">三、觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
||||||
|
<string name="conversion_quantity_need_of_use1">1.1星幣兌換1張觀影券,您可以根據需求自定義兌換數量,觀影券一經兌換不可撤銷,請提前確認;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use2">2.1張觀影券可觀看一集短劇,兌換成功後即可返回觀影頁面,使用觀影券繼續觀看影片;</string>
|
||||||
|
<string name="conversion_quantity_need_of_use3">3.觀影券禁止線下交易、收購等不正當行為,PDLIVE將對各類以盈利為目的的交易行為進行嚴厲打擊。</string>
|
||||||
|
|
||||||
<string name="pay_cancel">支付取消</string>
|
<string name="pay_cancel">支付取消</string>
|
||||||
<string name="pay_suc">支付成功</string>
|
<string name="pay_suc">支付成功</string>
|
||||||
<string name="pay_fail">支付失敗</string>
|
<string name="pay_fail">支付失敗</string>
|
||||||
|
|
||||||
|
<string name="upgrade_elite">升級精英/尊享戰令</string>
|
||||||
|
<string name="upgrade_elite_type1">升級精英戰令</string>
|
||||||
|
<string name="upgrade_elite_type2">升級尊享戰令</string>
|
||||||
|
<string name="upgrade_elite2">可領取海量積分,兌換更多獎勵</string>
|
||||||
|
<string name="more_integral">更多積分</string>
|
||||||
|
<string name="gift_overvalue">禮物價值超 200%</string>
|
||||||
|
<string name="gift_overvalue3">禮物價值超 300%</string>
|
||||||
|
<string name="unlock_more_gifts">解鎖更多禮物 和全套珍稀裝扮</string>
|
||||||
|
<string name="unlock_more_gifts2">解鎖更多禮物 和全套典藏裝扮</string>
|
||||||
|
<string name="has_reached_level_after_opening">開通后已達到等級的獎勵將會自動解鎖!</string>
|
||||||
|
<string name="order_level">我的等級</string>
|
||||||
|
<string name="buying_experience_point">購買經驗值:</string>
|
||||||
|
<string name="buying_experience">購買</string>
|
||||||
|
<string name="this_activity_is_over">本期活動已結束,請儘快領取未領取的獎勵積分可保留下次使用</string>
|
||||||
|
<string name="exchange_particulars">兌換詳情</string>
|
||||||
|
<string name="point_exchange">%s(積分) 兌換</string>
|
||||||
|
<string name="point_exchange2">兌換</string>
|
||||||
|
<string name="point_exchange_number">數量:</string>
|
||||||
|
<string name="battlepass_exchange_buy_integral">積分不足</string>
|
||||||
|
<string name="battlepass_exchange_buy_max">商品兌換數量已達到上限</string>
|
||||||
|
<string name="battlepass_zl_get">開通成功</string>
|
||||||
|
<string name="battlepass_buy_max">您已購買該戰令</string>
|
||||||
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
<string name="msg_del_sys01">內含物品還未領取,是否確定刪除消息?</string>
|
||||||
<string name="msg_del_sys02">是否確定刪除消息?</string>
|
<string name="msg_del_sys02">是否確定刪除消息?</string>
|
||||||
|
|
||||||
|
@ -411,7 +411,7 @@
|
|||||||
<string name="live_link_mic_cannot_link_2">Connecting wheat is currently in progress~</string>
|
<string name="live_link_mic_cannot_link_2">Connecting wheat is currently in progress~</string>
|
||||||
<string name="live_link_mic_cannot_pk">You are already in PK</string>
|
<string name="live_link_mic_cannot_pk">You are already in PK</string>
|
||||||
<string name="live_link_mic_pk_1">We</string>
|
<string name="live_link_mic_pk_1">We</string>
|
||||||
<string name="live_link_mic_pk_2">Other party</string>
|
<string name="live_link_mic_pk_2">Opponent</string>
|
||||||
<string name="live_coin_not_enough">The balance is insufficient. Do you want to recharge it?</string>
|
<string name="live_coin_not_enough">The balance is insufficient. Do you want to recharge it?</string>
|
||||||
<string name="live_online_anchor">Current online anchor</string>
|
<string name="live_online_anchor">Current online anchor</string>
|
||||||
<string name="link_mic_play_game">The other anchor is in the game</string>
|
<string name="link_mic_play_game">The other anchor is in the game</string>
|
||||||
@ -1404,6 +1404,34 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="pay_cancel">Payment cancellation</string>
|
<string name="pay_cancel">Payment cancellation</string>
|
||||||
<string name="pay_suc">Payment successful</string>
|
<string name="pay_suc">Payment successful</string>
|
||||||
<string name="pay_fail">Payment failed</string>
|
<string name="pay_fail">Payment failed</string>
|
||||||
|
<string name="upgrade_elite">Upgrade Elite/Luxury BattlePass</string>
|
||||||
|
<string name="upgrade_elite_type1">Upgrade Elite BattlePass</string>
|
||||||
|
<string name="upgrade_elite_type2">Upgrade Luxury BattlePass</string>
|
||||||
|
<string name="upgrade_elite2">You can receive a massive amount of points and exchange more rewards</string>
|
||||||
|
<string name="rule_of_war_hint1">1. When the BattlePass is activated, completing the BattlePass task and increasing the BattlePass level can earn a large amount of level rewards.\n</string>
|
||||||
|
<string name="rule_of_war_hint2">2. All users can unlock the regular version for free, and when the BattlePass is activated, they can upgrade to the elite version and the luxury version at any time, and receive rich additional exclusive rewards.\n</string>
|
||||||
|
<string name="rule_of_war_hint3">3.三種戰令都會獎勵積分,可在兌換商城中兌換心 儀的寶貝,部分寶貝兌換有戰令等級要求或兌換數 量限制。</string>
|
||||||
|
<string name="rule_of_war_hint4">4.每日任務0點刷新,未完成任務進度不再累計, 每季任務將會在新一季戰令開啟時刷新。</string>
|
||||||
|
<string name="rule_of_war_hint5">5.任務達成時需主動領取經驗,未领取經驗將會在 任務刷新時自动领取。</string>
|
||||||
|
<string name="rule_of_war_hint6">6.活動最終解釋權歸PDLIVE所有。</string>
|
||||||
|
<string name="more_integral">More points</string>
|
||||||
|
<string name="gift_overvalue">Gifts worth over 200%</string>
|
||||||
|
<string name="gift_overvalue3">Gifts worth over 300%</string>
|
||||||
|
<string name="unlock_more_gifts">More Rare outfits</string>
|
||||||
|
<string name="unlock_more_gifts2">More Collectible outfits</string>
|
||||||
|
<string name="has_reached_level_after_opening">After opened,the rewards that have reached will be automatically unlocked!</string>
|
||||||
|
<string name="order_level">My level</string>
|
||||||
|
<string name="buying_experience_point">Purchase EXP value:</string>
|
||||||
|
<string name="buying_experience">Buy</string>
|
||||||
|
<string name="this_activity_is_over">This activity has ended. Please collect the unclaimed rewards as soon as possible.Points can be reserved for future use</string>
|
||||||
|
<string name="exchange_particulars">Exchange Details</string>
|
||||||
|
<string name="point_exchange">%s(points) exchange</string>
|
||||||
|
<string name="point_exchange2">exchange</string>
|
||||||
|
<string name="point_exchange_number">Quantity:</string>
|
||||||
|
<string name="battlepass_exchange_buy_integral">Insufficient points</string>
|
||||||
|
<string name="battlepass_exchange_buy_max">The quantity of goods exchanged has reached the upper limit</string>
|
||||||
|
<string name="battlepass_zl_get">Successfully opened</string>
|
||||||
|
<string name="battlepass_buy_max">You have purchased the BattlePass</string>
|
||||||
|
|
||||||
<string name="receive_success">Successfully claimed</string>
|
<string name="receive_success">Successfully claimed</string>
|
||||||
<string name="receive1">Receive</string>
|
<string name="receive1">Receive</string>
|
||||||
|
@ -20,11 +20,11 @@ ext {
|
|||||||
|
|
||||||
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
||||||
|
|
||||||
// true表示谷歌支付 false 0 链接包 1 谷歌包 2华为包 3 samsung包
|
// true表示谷歌支付 false 0 链接包 1 谷歌包 2华为包 3 samsung包
|
||||||
isGooglePlay : 3,
|
isGooglePlay : 3,
|
||||||
//是否上报异常日志
|
//是否上报异常日志
|
||||||
isUploadLog : true,
|
isUploadLog : true,
|
||||||
//是否打包成插件包模式
|
//是否打包成插件包模式
|
||||||
isPluginModel : false,
|
isPluginModel : true,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -824,7 +824,10 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
if (manager != null && !StringUtil.isEmpty(is_fans)) {
|
if (manager != null && !StringUtil.isEmpty(is_fans)) {
|
||||||
if (is_fans.equals("-2")) {
|
if (is_fans.equals("-2")) {
|
||||||
manager.setAttention(0);
|
manager.setAttention(0);
|
||||||
mLiveRoomViewHolder.setFansGroup("0");
|
if (mLiveRoomViewHolder!=null){
|
||||||
|
mLiveRoomViewHolder.setFansGroup("0");
|
||||||
|
}
|
||||||
|
|
||||||
is_fans = "2";
|
is_fans = "2";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1902,9 +1905,11 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
/**
|
/**
|
||||||
* 检查消息,有未读就要显示红点
|
* 检查消息,有未读就要显示红点
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private void checkMsgRed() {
|
private void checkMsgRed() {
|
||||||
|
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
.getContactMsg(new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
.getContactMsg(1, new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
||||||
Log.i(TAG, "onSuccess: " + data.size());
|
Log.i(TAG, "onSuccess: " + data.size());
|
||||||
@ -1927,6 +1932,8 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
showMsgRed(-1);
|
showMsgRed(-1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -9,14 +9,14 @@ import android.widget.ImageView;
|
|||||||
import android.widget.SeekBar;
|
import android.widget.SeekBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.StringUtil;
|
import com.yunbao.common.utils.StringUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.SearchUserBean;
|
import com.yunbao.live.bean.SearchUserBean;
|
||||||
@ -24,6 +24,8 @@ import com.yunbao.live.dialog.LiveShareDialogFragment;
|
|||||||
import com.yunbao.live.presenter.UserHomeSharePresenter;
|
import com.yunbao.live.presenter.UserHomeSharePresenter;
|
||||||
import com.yunbao.live.views.LiveRecordPlayViewHolder;
|
import com.yunbao.live.views.LiveRecordPlayViewHolder;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/10/29.
|
* Created by cxf on 2018/10/29.
|
||||||
*/
|
*/
|
||||||
@ -82,10 +84,14 @@ public class LiveRecordPlayActivity extends AbsActivity implements
|
|||||||
mName = (TextView) findViewById(R.id.name);
|
mName = (TextView) findViewById(R.id.name);
|
||||||
mID = (TextView) findViewById(R.id.id_val);
|
mID = (TextView) findViewById(R.id.id_val);
|
||||||
mBtnFollow = findViewById(R.id.btn_follow);
|
mBtnFollow = findViewById(R.id.btn_follow);
|
||||||
ImgLoader.displayAvatar(mContext,mUserBean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext, mUserBean.getAvatar(), mAvatar);
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getAnchorLevel(mUserBean.getLevelAnchor());
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewAnchorLevelModels();
|
||||||
if (levelBean != null) {
|
String imgUrl = "";
|
||||||
ImgLoader.display(mContext,levelBean.getThumbIcon(), mLevelAnchor);
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= mUserBean.getLevelAnchor() && mUserBean.getLevelAnchor() <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getIcon();
|
||||||
|
}
|
||||||
|
ImgLoader.display(mContext, imgUrl, mLevelAnchor);
|
||||||
}
|
}
|
||||||
mName.setText(mUserBean.getUserNiceName());
|
mName.setText(mUserBean.getUserNiceName());
|
||||||
mID.setText(mUserBean.getLiangNameTip());
|
mID.setText(mUserBean.getLiangNameTip());
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.yunbao.live.adapter;
|
package com.yunbao.live.adapter;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -36,6 +37,7 @@ import com.yunbao.common.utils.WordUtil;
|
|||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.live.socket.SocketSendBean;
|
import com.yunbao.live.socket.SocketSendBean;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -287,10 +289,18 @@ public class AnchorUserMicInfoAdapter extends RefreshAdapter<UserBean> {
|
|||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
|
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ import com.yunbao.common.utils.CommonIconUtil;
|
|||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.GuardUserBean;
|
import com.yunbao.live.bean.GuardUserBean;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/11/6.
|
* Created by cxf on 2018/11/6.
|
||||||
@ -111,10 +112,18 @@ public class GuardAdapter extends RefreshAdapter<GuardUserBean> {
|
|||||||
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
|
||||||
if (levelBean != null) {
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
@Override
|
||||||
}
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
mVotes.setText(Html.fromHtml(" <font color='#ffdd00'>" + bean.getContribute() + "</font> " + mVotesName));
|
mVotes.setText(Html.fromHtml(" <font color='#ffdd00'>" + bean.getContribute() + "</font> " + mVotesName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -146,10 +155,17 @@ public class GuardAdapter extends RefreshAdapter<GuardUserBean> {
|
|||||||
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
mVotes.setText(bean.getContribute() + " " + mVotesName);
|
mVotes.setText(bean.getContribute() + " " + mVotesName);
|
||||||
if (bean.getType() == Constants.GUARD_TYPE_DAY) {
|
if (bean.getType() == Constants.GUARD_TYPE_DAY) {
|
||||||
mIcon.setImageDrawable(mGuardDrawable0);
|
mIcon.setImageDrawable(mGuardDrawable0);
|
||||||
|
@ -3,6 +3,8 @@ package com.yunbao.live.adapter;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -18,6 +20,7 @@ import com.yunbao.common.bean.UserBean;
|
|||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -106,10 +109,17 @@ public class LiveAdminListAdapter extends RecyclerView.Adapter<LiveAdminListAdap
|
|||||||
ImgLoader.displayAvatar(mContext,bean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext,bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext,levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@ package com.yunbao.live.adapter;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -16,6 +18,7 @@ import com.yunbao.common.glide.ImgLoader;
|
|||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.LiveShutUpBean;
|
import com.yunbao.live.bean.LiveShutUpBean;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -103,10 +106,17 @@ public class LiveBlackAdapter extends RefreshAdapter<LiveShutUpBean> {
|
|||||||
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ public class LiveParcelItemAdapter extends RecyclerView.Adapter {
|
|||||||
frameGiftViewHolder.giftSelect(giftJson.get(position), position, mStream, mLiveUid, new LiveParcelItemViewHolder.FrameGiftClickListener() {
|
frameGiftViewHolder.giftSelect(giftJson.get(position), position, mStream, mLiveUid, new LiveParcelItemViewHolder.FrameGiftClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCallBack(int position, LiveGiftBean model) {
|
public void onCallBack(int position, LiveGiftBean model) {
|
||||||
|
model.setPageGift(true);
|
||||||
Bus.get().post(new LiveGiftItemEvent().setLiveGiftModel(model));
|
Bus.get().post(new LiveGiftItemEvent().setLiveGiftModel(model));
|
||||||
giftSelect(model);
|
giftSelect(model);
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,24 @@
|
|||||||
package com.yunbao.live.adapter;
|
package com.yunbao.live.adapter;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.yunbao.common.adapter.RefreshAdapter;
|
import com.yunbao.common.adapter.RefreshAdapter;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.LivePkBean;
|
import com.yunbao.live.bean.LivePkBean;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/11/15.
|
* Created by cxf on 2018/11/15.
|
||||||
*/
|
*/
|
||||||
@ -39,7 +41,7 @@ public class LivePkAdapter extends RefreshAdapter<LivePkBean> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
mLivePkInviteString = "PK";
|
mLivePkInviteString = "PK";
|
||||||
mLivePkInviteString2 =mContext.getString(R.string.live_pk_invite_2);
|
mLivePkInviteString2 = mContext.getString(R.string.live_pk_invite_2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@ -57,7 +59,7 @@ public class LivePkAdapter extends RefreshAdapter<LivePkBean> {
|
|||||||
class Vh extends RecyclerView.ViewHolder {
|
class Vh extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
ImageView mAvatar;
|
ImageView mAvatar;
|
||||||
TextView mName;
|
TextView mName, leave;
|
||||||
ImageView mSex;
|
ImageView mSex;
|
||||||
ImageView mLevel;
|
ImageView mLevel;
|
||||||
TextView mBtnInvite;
|
TextView mBtnInvite;
|
||||||
@ -66,6 +68,7 @@ public class LivePkAdapter extends RefreshAdapter<LivePkBean> {
|
|||||||
super(itemView);
|
super(itemView);
|
||||||
mAvatar = (ImageView) itemView.findViewById(R.id.avatar);
|
mAvatar = (ImageView) itemView.findViewById(R.id.avatar);
|
||||||
mName = (TextView) itemView.findViewById(R.id.name);
|
mName = (TextView) itemView.findViewById(R.id.name);
|
||||||
|
leave = itemView.findViewById(R.id.leave);
|
||||||
mSex = (ImageView) itemView.findViewById(R.id.sex);
|
mSex = (ImageView) itemView.findViewById(R.id.sex);
|
||||||
mLevel = (ImageView) itemView.findViewById(R.id.level);
|
mLevel = (ImageView) itemView.findViewById(R.id.level);
|
||||||
mBtnInvite = (TextView) itemView.findViewById(R.id.btn_invite);
|
mBtnInvite = (TextView) itemView.findViewById(R.id.btn_invite);
|
||||||
@ -74,13 +77,22 @@ public class LivePkAdapter extends RefreshAdapter<LivePkBean> {
|
|||||||
|
|
||||||
void setData(LivePkBean bean) {
|
void setData(LivePkBean bean) {
|
||||||
mBtnInvite.setTag(bean);
|
mBtnInvite.setTag(bean);
|
||||||
ImgLoader.display(mContext,bean.getAvatar(), mAvatar);
|
ImgLoader.display(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getAnchorLevel(bean.getLevelAnchor());
|
|
||||||
if (levelBean != null) {
|
List<NewLevelModel> models = new NewLevelManager(itemView.getContext()).getNewAnchorLevelModels();
|
||||||
ImgLoader.display(mContext,levelBean.getThumb(), mLevel);
|
int anchorLevel = 0;
|
||||||
|
anchorLevel = bean.getLevelAnchor();
|
||||||
|
String imgUrl = "";
|
||||||
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= anchorLevel && anchorLevel <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getThumb();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
leave.setText(String.valueOf(bean.getLevelAnchor()));
|
||||||
|
ImgLoader.display(itemView.getContext(), imgUrl, mLevel);
|
||||||
|
|
||||||
if (bean.isLinkMic()) {
|
if (bean.isLinkMic()) {
|
||||||
mBtnInvite.setText(mLivePkInviteString2);
|
mBtnInvite.setText(mLivePkInviteString2);
|
||||||
mBtnInvite.setEnabled(false);
|
mBtnInvite.setEnabled(false);
|
||||||
|
@ -3,6 +3,8 @@ package com.yunbao.live.adapter;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -16,6 +18,7 @@ import com.yunbao.common.glide.ImgLoader;
|
|||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.LiveShutUpBean;
|
import com.yunbao.live.bean.LiveShutUpBean;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -103,10 +106,17 @@ public class LiveShutUpAdapter extends RefreshAdapter<LiveShutUpBean> {
|
|||||||
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
ImgLoader.displayAvatar(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import android.widget.TextView;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.yunbao.common.adapter.RefreshAdapter;
|
||||||
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
||||||
import com.yunbao.common.http.base.HttpCallback;
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
@ -21,28 +22,15 @@ import com.yunbao.common.views.weight.MarqueeTextView;
|
|||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.dialog.LiveUserAnchorMailBoxWebInfoPopDialog;
|
import com.yunbao.live.dialog.LiveUserAnchorMailBoxWebInfoPopDialog;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
public class LiveUserAnchorMailBoxAdapter extends RefreshAdapter<LiveUserMailBoxModel> {
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class LiveUserAnchorMailBoxAdapter extends RecyclerView.Adapter<LiveUserAnchorMailBoxAdapter.MailBoxViewHolder> {
|
|
||||||
private Context mContext;
|
|
||||||
private List<LiveUserMailBoxModel> list;
|
|
||||||
OnItemClickListener<LiveUserMailBoxModel> onItemClickListener;
|
OnItemClickListener<LiveUserMailBoxModel> onItemClickListener;
|
||||||
DialogInterface.OnDismissListener onWebDismissListener;
|
DialogInterface.OnDismissListener onWebDismissListener;
|
||||||
|
|
||||||
public LiveUserAnchorMailBoxAdapter(Context mContext) {
|
public LiveUserAnchorMailBoxAdapter(Context context) {
|
||||||
this.mContext = mContext;
|
super(context);
|
||||||
list = new ArrayList<>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setList(List<LiveUserMailBoxModel> list) {
|
|
||||||
this.list = list;
|
|
||||||
notifyDataSetChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<LiveUserMailBoxModel> getList() {
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOnItemClickListener(OnItemClickListener<LiveUserMailBoxModel> onItemClickListener) {
|
public void setOnItemClickListener(OnItemClickListener<LiveUserMailBoxModel> onItemClickListener) {
|
||||||
this.onItemClickListener = onItemClickListener;
|
this.onItemClickListener = onItemClickListener;
|
||||||
@ -56,18 +44,20 @@ public class LiveUserAnchorMailBoxAdapter extends RecyclerView.Adapter<LiveUserA
|
|||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public MailBoxViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public MailBoxViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
return new MailBoxViewHolder(LayoutInflater.from(mContext).inflate(R.layout.item_live_user_mailbox, parent, false));
|
return new MailBoxViewHolder(mInflater.inflate(R.layout.item_live_user_mailbox, parent, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull MailBoxViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
|
||||||
holder.setData(list.get(position), position);
|
MailBoxViewHolder viewHolder = (MailBoxViewHolder) holder;
|
||||||
|
viewHolder.setData(mList.get(position), position);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public int getItemCount() {
|
// public void onBindViewHolder(@NonNull MailBoxViewHolder holder, int position) {
|
||||||
return list.size();
|
// holder.setData(list.get(position), position);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
public class MailBoxViewHolder extends RecyclerView.ViewHolder {
|
public class MailBoxViewHolder extends RecyclerView.ViewHolder {
|
||||||
TextView topText;
|
TextView topText;
|
||||||
@ -100,9 +90,9 @@ public class LiveUserAnchorMailBoxAdapter extends RecyclerView.Adapter<LiveUserA
|
|||||||
public void onSuccess(String data) {
|
public void onSuccess(String data) {
|
||||||
Log.i("刪除信件", "onSuccess:刪除成功 ");
|
Log.i("刪除信件", "onSuccess:刪除成功 ");
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
list.removeIf(it -> it.getId() == box.getId());
|
mList.removeIf(it -> it.getId() == box.getId());
|
||||||
}
|
}
|
||||||
System.err.println("-----> list size = " + list.size());
|
System.err.println("-----> list size = " + mList.size());
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
if (onItemClickListener != null) {
|
if (onItemClickListener != null) {
|
||||||
onItemClickListener.onItemClick(box, position);
|
onItemClickListener.onItemClick(box, position);
|
||||||
|
@ -5,6 +5,7 @@ import android.content.Context;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
@ -24,6 +25,7 @@ import com.yunbao.common.utils.SVGAViewUtils;
|
|||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.common.bean.MicUserBean;
|
import com.yunbao.common.bean.MicUserBean;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -114,10 +116,17 @@ public class UserMicInfoAdapter extends RefreshAdapter<MicUserBean> {
|
|||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
|
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), mLevel);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import com.opensource.svgaplayer.SVGAVideoEntity;
|
|||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.adapter.RefreshAdapter;
|
import com.yunbao.common.adapter.RefreshAdapter;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.bean.LiveUserGiftBean;
|
import com.yunbao.common.bean.LiveUserGiftBean;
|
||||||
import com.yunbao.common.bean.LiveUserRankBean;
|
import com.yunbao.common.bean.LiveUserRankBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
@ -148,7 +147,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
|
||||||
|
|
||||||
title.setVisibility(View.GONE);
|
title.setVisibility(View.GONE);
|
||||||
title1.setVisibility(View.GONE);
|
title1.setVisibility(View.GONE);
|
||||||
@ -285,20 +284,20 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
if (levelBean != null) {
|
|
||||||
new LiveTextRender().getLevelImage(mContext, levelBean.getLevel(), new ImgLoader.DrawableCallback() {
|
|
||||||
@Override
|
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
|
||||||
ImgLoader.display2(mContext, drawable, mLevel);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
public void onLoadFailed() {
|
@Override
|
||||||
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
if (bean.isHide() && (type.equals("5") || type.equals("4"))) {
|
if (bean.isHide() && (type.equals("5") || type.equals("4"))) {
|
||||||
mName.setText(R.string.mystery_man);
|
mName.setText(R.string.mystery_man);
|
||||||
ImgLoader.display2(mContext, R.mipmap.hide, mAvatar);
|
ImgLoader.display2(mContext, R.mipmap.hide, mAvatar);
|
||||||
|
@ -55,7 +55,7 @@ public class LiveFansGroupSendGiftDialog extends AbsDialogCenterPopupWindow {
|
|||||||
recyclerView = findViewById(R.id.giftList);
|
recyclerView = findViewById(R.id.giftList);
|
||||||
adapter = new LiveFansGroupSendGiftAdapter(mContext);
|
adapter = new LiveFansGroupSendGiftAdapter(mContext);
|
||||||
adapter.setOnItemClickListener((bean, position) -> {
|
adapter.setOnItemClickListener((bean, position) -> {
|
||||||
LiveHttpUtil.sendGift("0",
|
LiveHttpUtil.sendGiftForFansGroup("0",
|
||||||
liveUid,
|
liveUid,
|
||||||
mStream,
|
mStream,
|
||||||
bean.getId(),
|
bean.getId(),
|
||||||
|
@ -129,7 +129,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
private MarqueeTextView giftDescription, namingName;
|
private MarqueeTextView giftDescription, namingName;
|
||||||
private boolean isPk;
|
private boolean isPk;
|
||||||
|
|
||||||
private FragmentTransaction transaction=null;
|
private FragmentTransaction transaction = null;
|
||||||
private FragmentManager fragmentManager;
|
private FragmentManager fragmentManager;
|
||||||
private Fragment contentFragment;
|
private Fragment contentFragment;
|
||||||
|
|
||||||
@ -137,8 +137,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
if(transaction==null){
|
if (transaction == null) {
|
||||||
transaction=getChildFragmentManager().beginTransaction();
|
transaction = getChildFragmentManager().beginTransaction();
|
||||||
}
|
}
|
||||||
Bus.getOn(this);
|
Bus.getOn(this);
|
||||||
initView();
|
initView();
|
||||||
@ -243,8 +243,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
giftTitleAdapter.uncheck();
|
giftTitleAdapter.uncheck();
|
||||||
liveWrap.setAlpha(1.0f);
|
liveWrap.setAlpha(1.0f);
|
||||||
liveWrap.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
liveWrap.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
||||||
transaction=getTransaction();
|
transaction = getTransaction();
|
||||||
contentFragment=LiveParcelFragment.newInstance(mStream, mLiveUid);
|
contentFragment = LiveParcelFragment.newInstance(mStream, mLiveUid);
|
||||||
transaction.replace(R.id.context_layout_gift, contentFragment);
|
transaction.replace(R.id.context_layout_gift, contentFragment);
|
||||||
transaction.commitAllowingStateLoss();
|
transaction.commitAllowingStateLoss();
|
||||||
isWrap = true;
|
isWrap = true;
|
||||||
@ -328,13 +328,13 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
.append(userInfo.getToken())
|
.append(userInfo.getToken())
|
||||||
.append("&no_back=1")
|
.append("&no_back=1")
|
||||||
.append("&type=")
|
.append("&type=")
|
||||||
.append(blindBoxType-1)
|
.append(blindBoxType - 1)
|
||||||
|
|
||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(WordUtil.isNewZh() ? "1" : 0);
|
.append(WordUtil.isNewZh() ? "1" : 0);
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString("url", htmlUrl.toString());
|
bundle.putString("url", htmlUrl.toString());
|
||||||
// System.out.println("盲盒页面 = "+htmlUrl.toString());
|
// System.out.println("盲盒页面 = "+htmlUrl.toString());
|
||||||
LiveHDDialogFragment fragment = new LiveHDDialogFragment();
|
LiveHDDialogFragment fragment = new LiveHDDialogFragment();
|
||||||
fragment.setArguments(bundle);
|
fragment.setArguments(bundle);
|
||||||
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
fragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
||||||
@ -399,7 +399,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
.append(userInfo.getId())
|
.append(userInfo.getId())
|
||||||
.append("&token=")
|
.append("&token=")
|
||||||
.append(userInfo.getToken())
|
.append(userInfo.getToken())
|
||||||
.append("&for") .append("&isZh=")
|
.append("&for").append("&isZh=")
|
||||||
.append(WordUtil.isNewZh() ? "1" : 0);
|
.append(WordUtil.isNewZh() ? "1" : 0);
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString("url", htmlUrl.toString());
|
bundle.putString("url", htmlUrl.toString());
|
||||||
@ -480,8 +480,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
List<LiveGiftBean> liveGiftBeans = JSONArray.parseArray(giftJson, LiveGiftBean.class);
|
List<LiveGiftBean> liveGiftBeans = JSONArray.parseArray(giftJson, LiveGiftBean.class);
|
||||||
for (LiveGiftBean model : liveGiftBeans) {
|
for (LiveGiftBean model : liveGiftBeans) {
|
||||||
if (TextUtils.equals(model.getId() + "", mWishGiftId)) {
|
if (TextUtils.equals(model.getId() + "", mWishGiftId)) {
|
||||||
transaction=getTransaction();
|
transaction = getTransaction();
|
||||||
contentFragment=LiveGiftFragment.newInstance(giftJson,
|
contentFragment = LiveGiftFragment.newInstance(giftJson,
|
||||||
liveGiftList.getJSONObject(i).getString("name"),
|
liveGiftList.getJSONObject(i).getString("name"),
|
||||||
mStream, mLiveUid, mWishGiftId);
|
mStream, mLiveUid, mWishGiftId);
|
||||||
transaction.replace(R.id.context_layout_gift, contentFragment);
|
transaction.replace(R.id.context_layout_gift, contentFragment);
|
||||||
@ -495,11 +495,11 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
|
|
||||||
JSONObject obj2 = liveGiftList.getJSONObject(0);
|
JSONObject obj2 = liveGiftList.getJSONObject(0);
|
||||||
String giftJson = obj2.getString("giftlist");
|
String giftJson = obj2.getString("giftlist");
|
||||||
transaction=getTransaction();
|
transaction = getTransaction();
|
||||||
contentFragment= LiveGiftFragment.newInstance(giftJson,
|
contentFragment = LiveGiftFragment.newInstance(giftJson,
|
||||||
liveGiftList.getJSONObject(0).getString("name"),
|
liveGiftList.getJSONObject(0).getString("name"),
|
||||||
mStream, mLiveUid, mWishGiftId);
|
mStream, mLiveUid, mWishGiftId);
|
||||||
transaction.replace(R.id.context_layout_gift,contentFragment);
|
transaction.replace(R.id.context_layout_gift, contentFragment);
|
||||||
transaction.commitAllowingStateLoss();
|
transaction.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -620,7 +620,11 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
if (isWrap && liveGiftModel.getType() == 7) {
|
if (isWrap && liveGiftModel.getType() == 7) {
|
||||||
sendBlindBoxTicket();
|
sendBlindBoxTicket();
|
||||||
} else {
|
} else {
|
||||||
sendGift();
|
if (liveGiftModel.isPageGift()) {
|
||||||
|
sendGiftForPage();
|
||||||
|
} else {
|
||||||
|
sendGift();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -636,7 +640,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
LiveHttpUtil.sendBlindBoxTicket((by != null ? "1" : "0"),
|
LiveHttpUtil.sendBlindBoxTicket((by != null ? "1" : "0"),
|
||||||
mLiveUid,
|
mLiveUid,
|
||||||
mStream,
|
mStream,
|
||||||
isWrap ? liveGiftModel.getId() : liveGiftModel.getBlindBoxTicketId(), new HttpCallback() {
|
isWrap ? liveGiftModel.getGift_id() : liveGiftModel.getBlindBoxTicketId(), new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
@ -755,6 +759,16 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void sendGiftForPage() {
|
||||||
|
if (liveGiftModel == null) return;
|
||||||
|
SendGiftCallback callback = new SendGiftCallback(liveGiftModel);
|
||||||
|
if (by != null) {
|
||||||
|
LiveHttpUtil.sendGiftForPage("1", mLiveUid, mStream, liveGiftModel.getGift_id(), mCount, 0, false, callback);
|
||||||
|
} else {
|
||||||
|
LiveHttpUtil.sendGiftForPage("0", mLiveUid, mStream, liveGiftModel.getGift_id(), mCount, 0, false, callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 跳转到我的钻石
|
* 跳转到我的钻石
|
||||||
*/
|
*/
|
||||||
@ -888,8 +902,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
giftNumberLayout.setVisibility(View.INVISIBLE);
|
giftNumberLayout.setVisibility(View.INVISIBLE);
|
||||||
JSONObject obj2 = liveGiftList.getJSONObject(event.getmPosition());
|
JSONObject obj2 = liveGiftList.getJSONObject(event.getmPosition());
|
||||||
String giftJson = obj2.getString("giftlist");
|
String giftJson = obj2.getString("giftlist");
|
||||||
transaction=getTransaction();
|
transaction = getTransaction();
|
||||||
contentFragment=LiveGiftFragment.newInstance(giftJson, event.getGiftTitle(), mStream, mLiveUid, mWishGiftId);
|
contentFragment = LiveGiftFragment.newInstance(giftJson, event.getGiftTitle(), mStream, mLiveUid, mWishGiftId);
|
||||||
transaction.replace(R.id.context_layout_gift, contentFragment);
|
transaction.replace(R.id.context_layout_gift, contentFragment);
|
||||||
transaction.commitAllowingStateLoss();
|
transaction.commitAllowingStateLoss();
|
||||||
isWrap = false;
|
isWrap = false;
|
||||||
@ -1115,12 +1129,12 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
|
if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
|
||||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
|
SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
|
||||||
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability2), WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en(),WordUtil.isNewZh()? event.getDressName():event.getDress_nameen());
|
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability2), WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en(), WordUtil.isNewZh() ? event.getDressName() : event.getDress_nameen());
|
||||||
stringBuilder.append(boxBlindMsg);
|
stringBuilder.append(boxBlindMsg);
|
||||||
int dressNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh()? event.getDressName():event.getDress_nameen());
|
int dressNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh() ? event.getDressName() : event.getDress_nameen());
|
||||||
int dressNameSize =(WordUtil.isNewZh()? event.getDressName():event.getDress_nameen()).length();
|
int dressNameSize = (WordUtil.isNewZh() ? event.getDressName() : event.getDress_nameen()).length();
|
||||||
int giftNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en());
|
int giftNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en());
|
||||||
int giftNameSize = (WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en()).length();
|
int giftNameSize = (WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en()).length();
|
||||||
stringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor(event.getDressColour())),
|
stringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor(event.getDressColour())),
|
||||||
dressNameIndex,
|
dressNameIndex,
|
||||||
dressNameIndex + dressNameSize,
|
dressNameIndex + dressNameSize,
|
||||||
@ -1132,11 +1146,11 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
stringBuilders.add(stringBuilder);
|
stringBuilders.add(stringBuilder);
|
||||||
} else {
|
} else {
|
||||||
SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
|
SpannableStringBuilder stringBuilder = new SpannableStringBuilder();
|
||||||
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability3), WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en());
|
String boxBlindMsg = String.format(mContext.getString(R.string.random_availability3), WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en());
|
||||||
stringBuilder.append(boxBlindMsg);
|
stringBuilder.append(boxBlindMsg);
|
||||||
if (!TextUtils.isEmpty(event.getGiftname_en())){
|
if (!TextUtils.isEmpty(event.getGiftname_en())) {
|
||||||
int giftNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en());
|
int giftNameIndex = boxBlindMsg.indexOf(WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en());
|
||||||
int giftNameSize = (WordUtil.isNewZh()?event.getGiftname():event.getGiftname_en()).length();
|
int giftNameSize = (WordUtil.isNewZh() ? event.getGiftname() : event.getGiftname_en()).length();
|
||||||
stringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor(event.getGiftColour())),
|
stringBuilder.setSpan(new ForegroundColorSpan(Color.parseColor(event.getGiftColour())),
|
||||||
giftNameIndex,
|
giftNameIndex,
|
||||||
giftNameIndex + giftNameSize,
|
giftNameIndex + giftNameSize,
|
||||||
@ -1446,15 +1460,16 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private FragmentTransaction getTransaction(){
|
|
||||||
if(contentFragment!=null && transaction!=null){
|
private FragmentTransaction getTransaction() {
|
||||||
|
if (contentFragment != null && transaction != null) {
|
||||||
transaction.remove(contentFragment);
|
transaction.remove(contentFragment);
|
||||||
contentFragment=null;
|
contentFragment = null;
|
||||||
}
|
}
|
||||||
if(fragmentManager==null){
|
if (fragmentManager == null) {
|
||||||
fragmentManager=getChildFragmentManager();
|
fragmentManager = getChildFragmentManager();
|
||||||
}
|
}
|
||||||
transaction=fragmentManager.beginTransaction();
|
transaction = fragmentManager.beginTransaction();
|
||||||
return transaction;
|
return transaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,9 +205,8 @@ public class LiveGiveHotDialogFragment extends AbsDialogFragment {
|
|||||||
ImgLoader.displayAvatar(mContext, mDatas.get(position).getUser_avatar(), viewHolder.img_head);
|
ImgLoader.displayAvatar(mContext, mDatas.get(position).getUser_avatar(), viewHolder.img_head);
|
||||||
viewHolder.tv_name.setText(mDatas.get(position).getUser_name());
|
viewHolder.tv_name.setText(mDatas.get(position).getUser_name());
|
||||||
viewHolder.sex.setImageResource(CommonIconUtil.getSexIcon(mDatas.get(position).getSex()));
|
viewHolder.sex.setImageResource(CommonIconUtil.getSexIcon(mDatas.get(position).getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(mDatas.get(position).getLevel());
|
|
||||||
if (levelBean != null) {
|
new LiveTextRender().getLevelImage(mContext, mDatas.get(position).getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
new LiveTextRender().getLevelImage(mContext, levelBean.getLevel(), new ImgLoader.DrawableCallback() {
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
ImgLoader.display2(mContext, drawable, viewHolder.level);
|
ImgLoader.display2(mContext, drawable, viewHolder.level);
|
||||||
@ -218,7 +217,7 @@ public class LiveGiveHotDialogFragment extends AbsDialogFragment {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
String hotStr = mDatas.get(position).getHot_score().substring(0, mDatas.get(position).getHot_score().length() - 3);
|
String hotStr = mDatas.get(position).getHot_score().substring(0, mDatas.get(position).getHot_score().length() - 3);
|
||||||
viewHolder.tv_hot_number.setText(hotStr + "k");
|
viewHolder.tv_hot_number.setText(hotStr + "k");
|
||||||
viewHolder.tv_hot_time.setText(mDatas.get(position).getHot_score_end_time());
|
viewHolder.tv_hot_time.setText(mDatas.get(position).getHot_score_end_time());
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -18,21 +19,20 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
|||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.adapter.RefreshAdapter;
|
import com.yunbao.common.adapter.RefreshAdapter;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.custom.CommonRefreshView;
|
import com.yunbao.common.custom.CommonRefreshView;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.live.adapter.GuardAdapter;
|
import com.yunbao.live.adapter.GuardAdapter;
|
||||||
import com.yunbao.live.bean.GuardUserBean;
|
import com.yunbao.live.bean.GuardUserBean;
|
||||||
import com.yunbao.live.bean.LiveGuardInfo;
|
import com.yunbao.live.bean.LiveGuardInfo;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -45,7 +45,7 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
private ImageView guardIcon, userSex, userLevel;
|
private ImageView guardIcon, userSex, userLevel;
|
||||||
private ConstraintLayout mRootLayout;
|
private ConstraintLayout mRootLayout;
|
||||||
private CommonRefreshView mRefreshView;
|
private CommonRefreshView mRefreshView;
|
||||||
private TextView mBtnBuy, userName, userGuard,tip1, tip2;
|
private TextView mBtnBuy, userName, userGuard, tip1, tip2;
|
||||||
private SVGAImageView giftSvga;
|
private SVGAImageView giftSvga;
|
||||||
private LinearLayout userLayout;
|
private LinearLayout userLayout;
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
private String mLiveUid;
|
private String mLiveUid;
|
||||||
private boolean mIsAnchor;//是否是主播
|
private boolean mIsAnchor;//是否是主播
|
||||||
private boolean showBuyView;
|
private boolean showBuyView;
|
||||||
private List<GuardUserBean> list=new ArrayList<>();
|
private List<GuardUserBean> list = new ArrayList<>();
|
||||||
private RelativeLayout relativeLayout;
|
private RelativeLayout relativeLayout;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -95,7 +95,7 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
}
|
}
|
||||||
mIsAnchor = bundle.getBoolean(Constants.ANCHOR, false);
|
mIsAnchor = bundle.getBoolean(Constants.ANCHOR, false);
|
||||||
mLiveUid = bundle.getString(Constants.LIVE_UID);
|
mLiveUid = bundle.getString(Constants.LIVE_UID);
|
||||||
showBuyView = bundle.getBoolean("showBuyView",true);
|
showBuyView = bundle.getBoolean("showBuyView", true);
|
||||||
guardIcon = mRootView.findViewById(R.id.guard_imageView);
|
guardIcon = mRootView.findViewById(R.id.guard_imageView);
|
||||||
mRootLayout = mRootView.findViewById(R.id.guard_constraintLayout);
|
mRootLayout = mRootView.findViewById(R.id.guard_constraintLayout);
|
||||||
mBtnBuy = mRootView.findViewById(R.id.guard_btn_buy);
|
mBtnBuy = mRootView.findViewById(R.id.guard_btn_buy);
|
||||||
@ -138,8 +138,8 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
@Override
|
@Override
|
||||||
public List<GuardUserBean> processData(String[] info) {
|
public List<GuardUserBean> processData(String[] info) {
|
||||||
List<GuardUserBean> list = JSON.parseArray(Arrays.toString(info), GuardUserBean.class);
|
List<GuardUserBean> list = JSON.parseArray(Arrays.toString(info), GuardUserBean.class);
|
||||||
if(!list.isEmpty()){
|
if (!list.isEmpty()) {
|
||||||
LiveNewGuardListDialogFragment.this.list=list;
|
LiveNewGuardListDialogFragment.this.list = list;
|
||||||
setAdapterData();
|
setAdapterData();
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
@ -167,7 +167,7 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
});
|
});
|
||||||
mRefreshView.setRecyclerViewAdapter(mGuardAdapter);
|
mRefreshView.setRecyclerViewAdapter(mGuardAdapter);
|
||||||
mGuardAdapter.notifyDataSetChanged();
|
mGuardAdapter.notifyDataSetChanged();
|
||||||
if(!showBuyView){
|
if (!showBuyView) {
|
||||||
relativeLayout.setVisibility(View.GONE);
|
relativeLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -184,10 +184,11 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
initView();
|
initView();
|
||||||
return show;
|
return show;
|
||||||
}
|
}
|
||||||
private void setAdapterData(){
|
|
||||||
|
private void setAdapterData() {
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
userLayout.setVisibility(View.INVISIBLE);
|
userLayout.setVisibility(View.INVISIBLE);
|
||||||
}else {
|
} else {
|
||||||
GuardUserBean bean = list.get(0);
|
GuardUserBean bean = list.get(0);
|
||||||
giftSvga.setImageResource(R.mipmap.guardian_img_wings_p);
|
giftSvga.setImageResource(R.mipmap.guardian_img_wings_p);
|
||||||
ImgLoader.display(mContext, bean.getAvatar(), guardIcon);
|
ImgLoader.display(mContext, bean.getAvatar(), guardIcon);
|
||||||
@ -196,10 +197,18 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
String guardString = mContext.getString(R.string.guard_week_con);
|
String guardString = mContext.getString(R.string.guard_week_con);
|
||||||
userGuard.setText(guardString + " " + bean.getContribute());
|
userGuard.setText(guardString + " " + bean.getContribute());
|
||||||
userSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
userSex.setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
|
||||||
if (levelBean != null) {
|
new LiveTextRender().getLevelImage(mContext, bean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), userLevel);
|
@Override
|
||||||
}
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
|
ImgLoader.display2(mContext, drawable, userLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (mLiveGuardInfo != null) {
|
if (mLiveGuardInfo != null) {
|
||||||
int guardType = mLiveGuardInfo.getMyGuardType();
|
int guardType = mLiveGuardInfo.getMyGuardType();
|
||||||
@ -217,7 +226,8 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setList(List<GuardUserBean> list) {
|
public void setList(List<GuardUserBean> list) {
|
||||||
this.list=list;
|
this.list = list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,12 +23,11 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
import com.tencent.imsdk.v2.V2TIMCallback;
|
|
||||||
import com.tencent.imsdk.v2.V2TIMManager;
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.LevelBean;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
import com.yunbao.common.bean.LiveBean;
|
||||||
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.event.LiveRoomChangeEvent;
|
import com.yunbao.common.event.LiveRoomChangeEvent;
|
||||||
@ -38,6 +37,7 @@ import com.yunbao.common.http.HttpCallback;
|
|||||||
import com.yunbao.common.http.LiveHttpConsts;
|
import com.yunbao.common.http.LiveHttpConsts;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||||
@ -58,9 +58,6 @@ import java.net.URL;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import io.rong.imlib.IRongCoreCallback;
|
|
||||||
import io.rong.imlib.IRongCoreEnum;
|
|
||||||
import io.rong.imlib.chatroom.base.RongChatRoomClient;
|
|
||||||
import pl.droidsonroids.gif.GifImageView;
|
import pl.droidsonroids.gif.GifImageView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -406,14 +403,28 @@ public class LiveOldUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
int levelAnchor = obj.getIntValue("level_anchor");
|
int levelAnchor = obj.getIntValue("level_anchor");
|
||||||
int level = obj.getIntValue("level");
|
int level = obj.getIntValue("level");
|
||||||
mSign.setText(obj.getString("signature"));
|
mSign.setText(obj.getString("signature"));
|
||||||
LevelBean anchorLevelBean = appConfig.getAnchorLevel(obj.getIntValue("level_anchor"));
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewAnchorLevelModels();
|
||||||
if (anchorLevelBean != null) {
|
int anchorLevel = 0;
|
||||||
ImgLoader.display(mContext, anchorLevelBean.getBgIcon(), mLevelAnchor);
|
|
||||||
}
|
anchorLevel = obj.getIntValue("level_anchor");
|
||||||
LevelBean levelBean = appConfig.getLevel(obj.getIntValue("level"));
|
String imgUrl = "";
|
||||||
if (levelBean != null) {
|
for (NewLevelModel newLevelModel : models) {
|
||||||
ImgLoader.display(mContext, levelBean.getBgIcon(), mLevel);
|
if (newLevelModel.getLeveMin() <= anchorLevel && anchorLevel <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getIcon();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
ImgLoader.display(mContext, imgUrl, mLevelAnchor);
|
||||||
|
new LiveTextRender().getLevelImage(mContext,obj.getIntValue("level"), new ImgLoader.DrawableCallback() {
|
||||||
|
@Override
|
||||||
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
|
ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
mLevelAnchorText.setText(String.valueOf(levelAnchor));
|
mLevelAnchorText.setText(String.valueOf(levelAnchor));
|
||||||
mLevelText.setText(String.valueOf(level));
|
mLevelText.setText(String.valueOf(level));
|
||||||
mSex.setImageResource(CommonIconUtil.getSexIcon(obj.getIntValue("sex")));
|
mSex.setImageResource(CommonIconUtil.getSexIcon(obj.getIntValue("sex")));
|
||||||
|
@ -1,33 +1,35 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.lxj.xpopup.XPopup;
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.yunbao.common.adapter.RefreshAdapter;
|
||||||
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
||||||
|
import com.yunbao.common.custom.CommonRefreshView;
|
||||||
import com.yunbao.common.dialog.AbsDialogPopupWindow;
|
import com.yunbao.common.dialog.AbsDialogPopupWindow;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.http.base.HttpCallback;
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.adapter.LiveUserAnchorMailBoxAdapter;
|
import com.yunbao.live.adapter.LiveUserAnchorMailBoxAdapter;
|
||||||
import com.yunbao.live.event.LiveAudienceEvent;
|
import com.yunbao.live.event.LiveAudienceEvent;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户获取主播联系方式信箱弹框
|
* 用户获取主播联系方式信箱弹框
|
||||||
*/
|
*/
|
||||||
public class LiveUserAnchorMailBoxPopDialog extends AbsDialogPopupWindow {
|
public class LiveUserAnchorMailBoxPopDialog extends AbsDialogPopupWindow {
|
||||||
private RecyclerView list;
|
private CommonRefreshView list;
|
||||||
private LiveUserAnchorMailBoxAdapter adapter;
|
private LiveUserAnchorMailBoxAdapter adapter;
|
||||||
private View empty;
|
private View empty;
|
||||||
|
|
||||||
@ -48,26 +50,86 @@ public class LiveUserAnchorMailBoxPopDialog extends AbsDialogPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate() {
|
protected void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
adapter = new LiveUserAnchorMailBoxAdapter(getContext());
|
|
||||||
list = findViewById(R.id.mailbox);
|
list = findViewById(R.id.mailbox);
|
||||||
empty = findViewById(R.id.ic_empty);
|
empty = findViewById(R.id.ic_empty);
|
||||||
list.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
|
list.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
|
||||||
list.setAdapter(adapter);
|
if (adapter == null) {
|
||||||
|
adapter = new LiveUserAnchorMailBoxAdapter(getContext());
|
||||||
|
}
|
||||||
|
list.setDataHelper(new CommonRefreshView.DataHelper<LiveUserMailBoxModel>() {
|
||||||
|
@Override
|
||||||
|
public RefreshAdapter<LiveUserMailBoxModel> getAdapter() {
|
||||||
|
if (adapter == null) {
|
||||||
|
adapter = new LiveUserAnchorMailBoxAdapter(getContext());
|
||||||
|
}
|
||||||
|
return adapter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void loadData(int p, com.yunbao.common.http.HttpCallback callback) {
|
||||||
|
LiveHttpUtil.getContactMsg(p, callback);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<LiveUserMailBoxModel> processData(String[] info) {
|
||||||
|
if (info != null) {
|
||||||
|
if (info.length > 0) {
|
||||||
|
empty.setVisibility(View.GONE);
|
||||||
|
list.setVisibility(View.VISIBLE);
|
||||||
|
return JSON.parseArray(Arrays.toString(info), LiveUserMailBoxModel.class);
|
||||||
|
} else if (adapter.getList().size() == 0) {
|
||||||
|
empty.setVisibility(VISIBLE);
|
||||||
|
list.setVisibility(GONE);
|
||||||
|
return new ArrayList<LiveUserMailBoxModel>();
|
||||||
|
}else{
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
empty.setVisibility(VISIBLE);
|
||||||
|
list.setVisibility(GONE);
|
||||||
|
return new ArrayList<LiveUserMailBoxModel>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRefreshSuccess(List<LiveUserMailBoxModel> list, int listCount) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRefreshFailure() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadMoreSuccess(List<LiveUserMailBoxModel> loadItemList, int loadItemCount) {
|
||||||
|
if (loadItemList.size() > 0)
|
||||||
|
adapter.insertList(loadItemList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadMoreFailure() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
list.initData();
|
||||||
adapter.setOnItemClickListener((bean, position) -> {
|
adapter.setOnItemClickListener((bean, position) -> {
|
||||||
if (adapter.getItemCount() == 0) {
|
if (adapter.getItemCount() == 0) {
|
||||||
empty.setVisibility(VISIBLE);
|
empty.setVisibility(VISIBLE);
|
||||||
list.setVisibility(GONE);
|
list.setVisibility(GONE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
adapter.setOnWebDismissListener(dialog -> initData());
|
// adapter.setOnWebDismissListener(dialog -> initData());
|
||||||
initData();
|
// initData();
|
||||||
}
|
}
|
||||||
|
|
||||||
String TAG = "信箱";
|
String TAG = "信箱";
|
||||||
|
|
||||||
void initData() {
|
void initData() {
|
||||||
LiveNetManager.get(getContext())
|
LiveNetManager.get(getContext())
|
||||||
.getContactMsg(new HttpCallback<List<LiveUserMailBoxModel>>() {
|
.getContactMsg(1, new HttpCallback<List<LiveUserMailBoxModel>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
||||||
Log.i(TAG, "onSuccess: " + data.size());
|
Log.i(TAG, "onSuccess: " + data.size());
|
||||||
|
@ -26,8 +26,8 @@ import com.umeng.analytics.MobclickAgent;
|
|||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.FansModel;
|
import com.yunbao.common.bean.FansModel;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.bean.LiveBean;
|
import com.yunbao.common.bean.LiveBean;
|
||||||
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.OlineUserlistModel;
|
import com.yunbao.common.bean.OlineUserlistModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
@ -410,21 +410,33 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
// textGiftWall.setText(mContext.getString(R.string.gift_wall));
|
// textGiftWall.setText(mContext.getString(R.string.gift_wall));
|
||||||
// valueGiftWall.setText(String.format(mContext.getString(R.string.has_been_lit), obj.getString("gift_wall_lighten_number")));
|
// valueGiftWall.setText(String.format(mContext.getString(R.string.has_been_lit), obj.getString("gift_wall_lighten_number")));
|
||||||
}
|
}
|
||||||
LevelBean levelBean;
|
|
||||||
if (isAnchor) {
|
if (isAnchor) {
|
||||||
levelBean = CommonAppConfig.getInstance().getAnchorLevel(mUserBean.getLevelAnchor());
|
|
||||||
userLv.setText("Lv." + mUserBean.getLevelAnchor());
|
userLv.setText("Lv." + mUserBean.getLevelAnchor());
|
||||||
mLvDesc.setText(R.string.live_user_level_anchor);
|
mLvDesc.setText(R.string.live_user_level_anchor);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
levelBean = CommonAppConfig.getInstance().getLevel(mUserBean.getLevel());
|
|
||||||
userLv.setText("Lv." + mUserBean.getLevel());
|
userLv.setText("Lv." + mUserBean.getLevel());
|
||||||
mLvDesc.setText(R.string.live_user_card_level);
|
mLvDesc.setText(R.string.live_user_card_level);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (isAnchor) {
|
if (isAnchor) {
|
||||||
ImgLoader.display2(mContext, obj.getJSONObject("level_thumb").getString("thumb"), mLiveIcon);
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewAnchorLevelModels();
|
||||||
|
int anchorLevel = 0;
|
||||||
|
|
||||||
|
|
||||||
|
anchorLevel = mUserBean.getLevelAnchor();
|
||||||
|
String imgUrl = "";
|
||||||
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= anchorLevel && anchorLevel <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getThumb();
|
||||||
|
}
|
||||||
|
}
|
||||||
mLvVal.setText(obj.getInteger("level_anchor") + "");
|
mLvVal.setText(obj.getInteger("level_anchor") + "");
|
||||||
|
ImgLoader.display2(mContext, imgUrl, mLiveIcon);
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
new LiveTextRender().getLevelImage(mContext, levelBean.getLevel(), new ImgLoader.DrawableCallback() {
|
new LiveTextRender().getLevelImage(mContext, mUserBean.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
ImgLoader.display2(mContext, drawable, mLiveIcon);
|
ImgLoader.display2(mContext, drawable, mLiveIcon);
|
||||||
@ -436,7 +448,8 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ImgLoader.display(mContext, levelBean.getBgIcon(), mLiveIcon2);
|
|
||||||
|
|
||||||
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(obj.getIntValue("medal_level"));
|
FansModel fansMedalBean = new NewLevelManager(mContext).getFansModel(obj.getIntValue("medal_level"));
|
||||||
if (fansMedalBean != null && !isAnchor) {
|
if (fansMedalBean != null && !isAnchor) {
|
||||||
ImgLoader.display(mContext, fansMedalBean.getThumb(), mNoble);
|
ImgLoader.display(mContext, fansMedalBean.getThumb(), mNoble);
|
||||||
|
@ -487,7 +487,8 @@ public class LiveAudienceEvent extends BaseModel {
|
|||||||
IS_ATTENTION(72, "是否关注主播"),
|
IS_ATTENTION(72, "是否关注主播"),
|
||||||
GIFT_WALL(73, "礼物墙"),
|
GIFT_WALL(73, "礼物墙"),
|
||||||
UPDATE_FANS_TASK_STATUS(74, "更新粉丝任务状态"),
|
UPDATE_FANS_TASK_STATUS(74, "更新粉丝任务状态"),
|
||||||
SUD_GAME_CREATE_ROOM(75, "主播创建sud游戏");
|
SUD_GAME_CREATE_ROOM(75, "主播创建sud游戏"),
|
||||||
|
PK_RANK_START(76, "PK排位赛开始");
|
||||||
|
|
||||||
private int type;
|
private int type;
|
||||||
private String name;
|
private String name;
|
||||||
|
@ -16,12 +16,13 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
@ -31,7 +32,6 @@ import com.yunbao.live.R;
|
|||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.live.activity.LiveAnchorActivity;
|
import com.yunbao.live.activity.LiveAnchorActivity;
|
||||||
import com.yunbao.live.event.LinkMicTxMixStreamEvent;
|
import com.yunbao.live.event.LinkMicTxMixStreamEvent;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
||||||
import com.yunbao.live.socket.SocketClient;
|
import com.yunbao.live.socket.SocketClient;
|
||||||
import com.yunbao.live.socket.SocketLinkMicAnchorUtil;
|
import com.yunbao.live.socket.SocketLinkMicAnchorUtil;
|
||||||
@ -40,6 +40,8 @@ import com.yunbao.live.views.LiveLinkMicPlayTxViewHolder;
|
|||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/11/16.
|
* Created by cxf on 2018/11/16.
|
||||||
* 主播与主播连麦逻辑
|
* 主播与主播连麦逻辑
|
||||||
@ -84,7 +86,7 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
|
|||||||
mPkContainer = linkMicViewHolder.getPkContainer();
|
mPkContainer = linkMicViewHolder.getPkContainer();
|
||||||
|
|
||||||
|
|
||||||
mLinkMicWaitString =mContext.getString(R.string.link_mic_wait);
|
mLinkMicWaitString = mContext.getString(R.string.link_mic_wait);
|
||||||
mHandler = new Handler() {
|
mHandler = new Handler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(Message msg) {
|
public void handleMessage(Message msg) {
|
||||||
@ -174,17 +176,25 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
|
|||||||
ImageView avatar = (ImageView) v.findViewById(R.id.avatar);
|
ImageView avatar = (ImageView) v.findViewById(R.id.avatar);
|
||||||
TextView name = (TextView) v.findViewById(R.id.name);
|
TextView name = (TextView) v.findViewById(R.id.name);
|
||||||
ImageView sex = (ImageView) v.findViewById(R.id.sex);
|
ImageView sex = (ImageView) v.findViewById(R.id.sex);
|
||||||
ImageView level = (ImageView) v.findViewById(R.id.level);
|
TextView level = (TextView) v.findViewById(R.id.level);
|
||||||
|
ImageView contribute = (ImageView) v.findViewById(R.id.contribute);
|
||||||
mLinkMicWaitText = v.findViewById(R.id.wait_text);
|
mLinkMicWaitText = v.findViewById(R.id.wait_text);
|
||||||
v.findViewById(R.id.btn_refuse).setOnClickListener(this);
|
v.findViewById(R.id.btn_refuse).setOnClickListener(this);
|
||||||
v.findViewById(R.id.btn_accept).setOnClickListener(this);
|
v.findViewById(R.id.btn_accept).setOnClickListener(this);
|
||||||
ImgLoader.display(mContext, u.getAvatar(), avatar);
|
ImgLoader.display(mContext, u.getAvatar(), avatar);
|
||||||
name.setText(u.getUserNiceName());
|
name.setText(u.getUserNiceName());
|
||||||
sex.setImageResource(CommonIconUtil.getSexIcon(u.getSex()));
|
sex.setImageResource(CommonIconUtil.getSexIcon(u.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getAnchorLevel(u.getLevelAnchor());
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewAnchorLevelModels();
|
||||||
if (levelBean != null) {
|
int anchorLevel = 0;
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), level);
|
anchorLevel = u.getLevelAnchor();
|
||||||
|
String imgUrl = "";
|
||||||
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= anchorLevel && anchorLevel <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getThumb();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
level.setText(anchorLevel + "");
|
||||||
|
ImgLoader.display(mContext, imgUrl, contribute);
|
||||||
mLinkMicWaitCount = LINK_MIC_COUNT_MAX;
|
mLinkMicWaitCount = LINK_MIC_COUNT_MAX;
|
||||||
mLinkMicWaitText.setText(mLinkMicWaitString + "(" + mLinkMicWaitCount + ")...");
|
mLinkMicWaitText.setText(mLinkMicWaitString + "(" + mLinkMicWaitCount + ")...");
|
||||||
mLinkMicPopWindow = new PopupWindow(v, DpUtil.dp2px(280), ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
mLinkMicPopWindow = new PopupWindow(v, DpUtil.dp2px(280), ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
||||||
@ -279,7 +289,7 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
|
|||||||
*/
|
*/
|
||||||
private void acceptLinkMic() {
|
private void acceptLinkMic() {
|
||||||
if (((LiveAnchorActivity) mContext).isBgmPlaying()) {
|
if (((LiveAnchorActivity) mContext).isBgmPlaying()) {
|
||||||
DialogUitl.showSimpleDialog(mContext,mContext.getString(R.string.link_mic_close_bgm), new DialogUitl.SimpleCallback() {
|
DialogUitl.showSimpleDialog(mContext, mContext.getString(R.string.link_mic_close_bgm), new DialogUitl.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
((LiveAnchorActivity) mContext).stopBgm();
|
((LiveAnchorActivity) mContext).stopBgm();
|
||||||
@ -493,10 +503,10 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
|
|||||||
*/
|
*/
|
||||||
public void onlinkMicPlayGaming() {
|
public void onlinkMicPlayGaming() {
|
||||||
mLastApplyLinkMicTime = 0;
|
mLastApplyLinkMicTime = 0;
|
||||||
DialogUitl.showSimpleTipDialog(mContext,mContext.getString(R.string.link_mic_play_game));
|
DialogUitl.showSimpleTipDialog(mContext, mContext.getString(R.string.link_mic_play_game));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLiveSdk(int mLiveSDK) {
|
public void setLiveSdk(int mLiveSDK) {
|
||||||
this.mLiveSdk=mLiveSDK;
|
this.mLiveSdk = mLiveSDK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ import android.app.Activity;
|
|||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
@ -53,6 +54,7 @@ import com.yunbao.live.interfaces.ILiveLinkMicViewHolder;
|
|||||||
import com.yunbao.live.interfaces.LivePushListener;
|
import com.yunbao.live.interfaces.LivePushListener;
|
||||||
import com.yunbao.live.socket.SocketClient;
|
import com.yunbao.live.socket.SocketClient;
|
||||||
import com.yunbao.live.socket.SocketLinkMicUtil;
|
import com.yunbao.live.socket.SocketLinkMicUtil;
|
||||||
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
import com.yunbao.live.views.AbsLiveLinkMicPlayViewHolder;
|
import com.yunbao.live.views.AbsLiveLinkMicPlayViewHolder;
|
||||||
import com.yunbao.live.views.AbsLiveLinkMicPushViewHolder;
|
import com.yunbao.live.views.AbsLiveLinkMicPushViewHolder;
|
||||||
import com.yunbao.live.views.LiveLinkMicPlayTxViewHolder;
|
import com.yunbao.live.views.LiveLinkMicPlayTxViewHolder;
|
||||||
@ -631,10 +633,17 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
ImgLoader.display(mContext, u.getAvatar(), avatar);
|
ImgLoader.display(mContext, u.getAvatar(), avatar);
|
||||||
name.setText(u.getUserNiceName());
|
name.setText(u.getUserNiceName());
|
||||||
sex.setImageResource(CommonIconUtil.getSexIcon(u.getSex()));
|
sex.setImageResource(CommonIconUtil.getSexIcon(u.getSex()));
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(u.getLevel());
|
new LiveTextRender().getLevelImage(mContext, u.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
if (levelBean != null) {
|
@Override
|
||||||
ImgLoader.display(mContext, levelBean.getThumb(), level);
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
}
|
ImgLoader.display2(mContext, drawable, level);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoadFailed() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
mLinkMicWaitCount = LINK_MIC_COUNT_MAX;
|
mLinkMicWaitCount = LINK_MIC_COUNT_MAX;
|
||||||
mLinkMicWaitText.setText(mLinkMicWaitString + "(" + mLinkMicWaitCount + ")...");
|
mLinkMicWaitText.setText(mLinkMicWaitString + "(" + mLinkMicWaitCount + ")...");
|
||||||
mLinkMicPopWindow = new PopupWindow(v, DpUtil.dp2px(280), ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
mLinkMicPopWindow = new PopupWindow(v, DpUtil.dp2px(280), ViewGroup.LayoutParams.WRAP_CONTENT, true);
|
||||||
|
@ -6,10 +6,12 @@ import android.util.Log;
|
|||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
|
import com.yunbao.common.bean.HttpCallbackModel;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
@ -128,6 +130,18 @@ public class SocketRyChatUtil {
|
|||||||
if (SocketRyClient.mSocketHandler != null) {
|
if (SocketRyClient.mSocketHandler != null) {
|
||||||
SocketRyClient.mSocketHandler.processBroadcast(msg.mResult.toString() + "");
|
SocketRyClient.mSocketHandler.processBroadcast(msg.mResult.toString() + "");
|
||||||
}
|
}
|
||||||
|
LiveNetManager.get(CommonAppContext.sInstance)
|
||||||
|
.addChatCount(new com.yunbao.common.http.base.HttpCallback<HttpCallbackModel>() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(HttpCallbackModel data) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError(String error) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -774,6 +774,21 @@ public class SocketRyClient {
|
|||||||
systemChatMessage2(stringBuffer.toString());
|
systemChatMessage2(stringBuffer.toString());
|
||||||
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
Bus.get().post(new QuickGiftingEvent().setHotNum(sendQuickGiftModel.getHotNum()));
|
||||||
break;
|
break;
|
||||||
|
case Constants.LIVE_PK_RANDOM_START:
|
||||||
|
item = map.getJSONObject("ct");
|
||||||
|
item.getString("text");
|
||||||
|
item.getString("pktt_img");
|
||||||
|
item.getString("uid_win_continuity");
|
||||||
|
item.getString("pkuid_win_continuity");
|
||||||
|
pkRankBean = new PkRankBean();
|
||||||
|
pkRankBean.setBlueVal(item.getString("pkuid_win_continuity"));
|
||||||
|
pkRankBean.setRedVal( item.getString("uid_win_continuity"));
|
||||||
|
pkRankBean.setPkTopImgUrl(item.getString("pktt_img"));
|
||||||
|
|
||||||
|
EventBus.getDefault().post(new LiveAudienceEvent()
|
||||||
|
.setType(LiveAudienceEvent.LiveAudienceType.PK_RANK_START)
|
||||||
|
.setObject(pkRankBean));
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,9 @@ import androidx.core.content.ContextCompat;
|
|||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.request.target.CustomTarget;
|
import com.bumptech.glide.request.target.CustomTarget;
|
||||||
import com.bumptech.glide.request.transition.Transition;
|
import com.bumptech.glide.request.transition.Transition;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.AiAutomaticSpeechModel;
|
import com.yunbao.common.bean.AiAutomaticSpeechModel;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.bean.MsgModel;
|
import com.yunbao.common.bean.MsgModel;
|
||||||
import com.yunbao.common.bean.NewLevelModel;
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.custom.VerticalImageSpan;
|
import com.yunbao.common.custom.VerticalImageSpan;
|
||||||
@ -762,11 +760,14 @@ public class LiveTextRender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void renderEnterRoomTMP(Context context, final TextView textView, final LiveChatBean bean) {
|
private void renderEnterRoomTMP(Context context, final TextView textView, final LiveChatBean bean) {
|
||||||
final LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
List<NewLevelModel> models = new NewLevelManager(context).getNewLevelModels();
|
||||||
if (levelBean == null) {
|
String imgUrl = "https://downs.yaoulive.com/level/user_lv1_bg.png";
|
||||||
return;
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= bean.getLevel() && bean.getLevel() <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getThumb();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImgLoader.displayDrawable(context, levelBean.getThumb(), new ImgLoader.DrawableCallback() {
|
ImgLoader.displayDrawable(context, imgUrl, new ImgLoader.DrawableCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
public void onLoadSuccess(Drawable drawable) {
|
||||||
if (textView != null) {
|
if (textView != null) {
|
||||||
|
@ -10,9 +10,9 @@ import android.view.animation.LinearInterpolator;
|
|||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||||
import com.yunbao.common.views.AbsViewHolder;
|
import com.yunbao.common.views.AbsViewHolder;
|
||||||
@ -20,6 +20,8 @@ import com.yunbao.live.R;
|
|||||||
import com.yunbao.live.bean.LiveDanMuBean;
|
import com.yunbao.live.bean.LiveDanMuBean;
|
||||||
import com.yunbao.live.interfaces.IDanmuActionListener;
|
import com.yunbao.live.interfaces.IDanmuActionListener;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2017/8/25.
|
* Created by cxf on 2017/8/25.
|
||||||
* 弹幕
|
* 弹幕
|
||||||
@ -87,12 +89,16 @@ public class DanmuViewHolder extends AbsViewHolder {
|
|||||||
|
|
||||||
public void show(LiveDanMuBean bean, int lineNum) {
|
public void show(LiveDanMuBean bean, int lineNum) {
|
||||||
mLineNum = lineNum;
|
mLineNum = lineNum;
|
||||||
ImgLoader.display(mContext,bean.getAvatar(), mAvatar);
|
ImgLoader.display(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewLevelModels();
|
||||||
if (levelBean != null) {
|
String imgUrl = "#68F1F4";
|
||||||
mName.setTextColor(Color.parseColor(levelBean.getColor()));
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= bean.getLevel() && bean.getLevel() <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getColour();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
mName.setTextColor(Color.parseColor(imgUrl));
|
||||||
mContent.setText(bean.getContent());
|
mContent.setText(bean.getContent());
|
||||||
mCanNext = false;
|
mCanNext = false;
|
||||||
mContentView.measure(0, 0);
|
mContentView.measure(0, 0);
|
||||||
|
@ -12,13 +12,17 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.LevelBean;
|
||||||
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
import com.yunbao.common.utils.ScreenDimenUtil;
|
import com.yunbao.common.utils.ScreenDimenUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.bean.LiveDanMuBean;
|
import com.yunbao.live.bean.LiveDanMuBean;
|
||||||
import com.yunbao.live.interfaces.IDanmuActionListener;
|
import com.yunbao.live.interfaces.IDanmuActionListener;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2017/8/25.
|
* Created by cxf on 2017/8/25.
|
||||||
* 弹幕
|
* 弹幕
|
||||||
@ -89,10 +93,15 @@ public class FansDanmuViewHolder extends DanmuViewHolder {
|
|||||||
mLineNum = lineNum;
|
mLineNum = lineNum;
|
||||||
ImgLoader.display(mContext,bean.getAvatar(), mAvatar);
|
ImgLoader.display(mContext,bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName()+":");
|
mName.setText(bean.getUserNiceName()+":");
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getLevel(bean.getLevel());
|
|
||||||
if (levelBean != null) {
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewLevelModels();
|
||||||
mName.setTextColor(Color.parseColor(levelBean.getColor()));
|
String imgUrl = "#68F1F4";
|
||||||
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= bean.getLevel() && bean.getLevel() <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getColour();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
mName.setTextColor(Color.parseColor(imgUrl));
|
||||||
mContent.setText(bean.getContent());
|
mContent.setText(bean.getContent());
|
||||||
mCanNext = false;
|
mCanNext = false;
|
||||||
mContentView.measure(0, 0);
|
mContentView.measure(0, 0);
|
||||||
|
@ -74,7 +74,6 @@ import com.yunbao.common.bean.GiftModel;
|
|||||||
import com.yunbao.common.bean.GuardUserModel;
|
import com.yunbao.common.bean.GuardUserModel;
|
||||||
import com.yunbao.common.bean.HourRank;
|
import com.yunbao.common.bean.HourRank;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
|
||||||
import com.yunbao.common.bean.LinkMicUserBean;
|
import com.yunbao.common.bean.LinkMicUserBean;
|
||||||
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
import com.yunbao.common.bean.LiveAnchorCallMeModel;
|
||||||
import com.yunbao.common.bean.LiveAnchorSayModel;
|
import com.yunbao.common.bean.LiveAnchorSayModel;
|
||||||
@ -85,6 +84,7 @@ import com.yunbao.common.bean.LiveRoomVoteModel;
|
|||||||
import com.yunbao.common.bean.LiveUserGiftBean;
|
import com.yunbao.common.bean.LiveUserGiftBean;
|
||||||
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
import com.yunbao.common.bean.LiveUserMailBoxModel;
|
||||||
import com.yunbao.common.bean.MsgModel;
|
import com.yunbao.common.bean.MsgModel;
|
||||||
|
import com.yunbao.common.bean.NewLevelModel;
|
||||||
import com.yunbao.common.bean.NewPeopleTaskModel;
|
import com.yunbao.common.bean.NewPeopleTaskModel;
|
||||||
import com.yunbao.common.bean.PkRankBean;
|
import com.yunbao.common.bean.PkRankBean;
|
||||||
import com.yunbao.common.bean.RankHourModel;
|
import com.yunbao.common.bean.RankHourModel;
|
||||||
@ -114,6 +114,7 @@ import com.yunbao.common.http.live.LiveNetManager;
|
|||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.manager.RandomPkManager;
|
import com.yunbao.common.manager.RandomPkManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
@ -1202,11 +1203,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mAvatar = (ImageView) findViewById(R.id.avatar);
|
mAvatar = (ImageView) findViewById(R.id.avatar);
|
||||||
|
|
||||||
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
||||||
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
|
||||||
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
|
||||||
|
|
||||||
|
|
||||||
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
|
||||||
mName = (TextView) findViewById(R.id.name);
|
mName = (TextView) findViewById(R.id.name);
|
||||||
mID = (TextView) findViewById(R.id.id_val);
|
mID = (TextView) findViewById(R.id.id_val);
|
||||||
mBtnFollow = findViewById(R.id.btn_follow);
|
mBtnFollow = findViewById(R.id.btn_follow);
|
||||||
@ -1948,6 +1945,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
BannerBean bean = mBannerList2.get(p);
|
BannerBean bean = mBannerList2.get(p);
|
||||||
String type = "";
|
String type = "";
|
||||||
|
if (bean.getLink().equals("BattlePass")) {
|
||||||
|
RouteUtil.forwardBattlePass();
|
||||||
|
return;
|
||||||
|
}
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
//判断是否是星级活动
|
//判断是否是星级活动
|
||||||
if (bean.isStart()) {
|
if (bean.isStart()) {
|
||||||
@ -2017,6 +2018,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
if (p >= 0 && p < mBannerList2.size()) {
|
if (p >= 0 && p < mBannerList2.size()) {
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
BannerBean bean = mBannerList2.get(p);
|
BannerBean bean = mBannerList2.get(p);
|
||||||
|
if (bean.getLink().equals("BattlePass")) {
|
||||||
|
RouteUtil.forwardBattlePass();
|
||||||
|
return;
|
||||||
|
}
|
||||||
String type = "";
|
String type = "";
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
//判断是否是星级活动
|
//判断是否是星级活动
|
||||||
@ -2208,6 +2213,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
BannerBean bean = mBannerList1.get(p);
|
BannerBean bean = mBannerList1.get(p);
|
||||||
if (bean != null) {
|
if (bean != null) {
|
||||||
String link = bean.getLink();
|
String link = bean.getLink();
|
||||||
|
if (link.equals("BattlePass")) {
|
||||||
|
RouteUtil.forwardBattlePass();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (link.equals("sc")) {
|
if (link.equals("sc")) {
|
||||||
String url;
|
String url;
|
||||||
if (!"".equals(bean.getmIntoUrl()) && bean.getmIntoUrl() != null) {
|
if (!"".equals(bean.getmIntoUrl()) && bean.getmIntoUrl() != null) {
|
||||||
@ -2437,8 +2446,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String pkUidTmp = "";
|
private String pkUidTmp = "";
|
||||||
|
private String isLadders;
|
||||||
|
|
||||||
public void initPkRank(String isLadders) {
|
public void initPkRank(String isLadders) {
|
||||||
|
this.isLadders = isLadders;
|
||||||
//PK状态下,pkuid不能为空
|
//PK状态下,pkuid不能为空
|
||||||
if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
|
if (pkUidTmp.equals(pkUid) && !StringUtil.isEmpty(pkUid)) {
|
||||||
return;
|
return;
|
||||||
@ -2449,11 +2460,39 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
pkRankLayout.setTag(mLiveUid);
|
pkRankLayout.setTag(mLiveUid);
|
||||||
pkUidTmp = pkUid;
|
pkUidTmp = pkUid;
|
||||||
pkRankLayout.setVisibility(View.GONE);
|
|
||||||
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1);
|
|
||||||
mRedVal.setVisibility(View.GONE);
|
mRedVal.setVisibility(View.GONE);
|
||||||
mBlueVal.setVisibility(View.GONE);
|
mBlueVal.setVisibility(View.GONE);
|
||||||
mPkRankTopIcon.setVisibility(View.GONE);
|
mPkRankTopIcon.setVisibility(View.GONE);
|
||||||
|
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void updatePkRankInfo(PkRankBean bean) {
|
||||||
|
pkRankLayout.setVisibility(View.VISIBLE);
|
||||||
|
liveRankPk2.setVisibility(View.VISIBLE);
|
||||||
|
if (Integer.parseInt(bean.getRedVal()) > 2) {
|
||||||
|
mRedVal.setVisibility(View.VISIBLE);
|
||||||
|
mRedVal.setText(bean.getRedVal() + (WordUtil.isNewZh() ? "連勝" : "Win"));
|
||||||
|
}
|
||||||
|
if (Integer.parseInt(bean.getBlueVal()) > 2) {
|
||||||
|
mBlueVal.setVisibility(View.VISIBLE);
|
||||||
|
mBlueVal.setText(bean.getBlueVal() + (WordUtil.isNewZh() ? "連勝" : "Win"));
|
||||||
|
}
|
||||||
|
mPkRankTopIcon.setVisibility(View.VISIBLE);
|
||||||
|
ImgLoader.display(mContext, bean.getPkTopImgUrl(), mPkRankTopIcon);
|
||||||
|
if (mRedVal.getVisibility() == View.VISIBLE) {
|
||||||
|
RelativeLayout.LayoutParams redValLayoutParams = (RelativeLayout.LayoutParams) mRedVal.getLayoutParams();
|
||||||
|
redValLayoutParams.bottomMargin = DpUtil.dp2px(10);
|
||||||
|
mRedVal.setLayoutParams(redValLayoutParams);
|
||||||
|
}
|
||||||
|
if (mBlueVal.getVisibility() == View.VISIBLE) {
|
||||||
|
RelativeLayout.LayoutParams blueValLayoutParams = (RelativeLayout.LayoutParams) mBlueVal.getLayoutParams();
|
||||||
|
blueValLayoutParams.bottomMargin = DpUtil.dp2px(10);
|
||||||
|
mBlueVal.setLayoutParams(blueValLayoutParams);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void initRankPKInfo(String mLiveUid) {
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
.getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() {
|
.getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() {
|
||||||
@Override
|
@Override
|
||||||
@ -2515,6 +2554,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mPkRankTopIcon.setVisibility(View.VISIBLE);
|
mPkRankTopIcon.setVisibility(View.VISIBLE);
|
||||||
ImgLoader.display(mContext, bean.getPkTopImgUrl(), mPkRankTopIcon);
|
ImgLoader.display(mContext, bean.getPkTopImgUrl(), mPkRankTopIcon);
|
||||||
}
|
}
|
||||||
|
if (mRedVal.getVisibility() == View.VISIBLE) {
|
||||||
|
RelativeLayout.LayoutParams redValLayoutParams = (RelativeLayout.LayoutParams) mRedVal.getLayoutParams();
|
||||||
|
redValLayoutParams.bottomMargin = DpUtil.dp2px(10);
|
||||||
|
mRedVal.setLayoutParams(redValLayoutParams);
|
||||||
|
}
|
||||||
|
if (mBlueVal.getVisibility() == View.VISIBLE) {
|
||||||
|
RelativeLayout.LayoutParams blueValLayoutParams = (RelativeLayout.LayoutParams) mBlueVal.getLayoutParams();
|
||||||
|
blueValLayoutParams.bottomMargin = DpUtil.dp2px(10);
|
||||||
|
mBlueVal.setLayoutParams(blueValLayoutParams);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -2523,7 +2572,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
pkUidTmp = "";
|
pkUidTmp = "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2818,12 +2866,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
* 显示主播等级
|
* 显示主播等级
|
||||||
*/
|
*/
|
||||||
public void setAnchorLevel(int anchorLevel) {
|
public void setAnchorLevel(int anchorLevel) {
|
||||||
if (mLevelAnchor != null) {
|
List<NewLevelModel> models = new NewLevelManager(mContext).getNewAnchorLevelModels();
|
||||||
LevelBean levelBean = CommonAppConfig.getInstance().getAnchorLevel(anchorLevel);
|
|
||||||
if (levelBean != null) {
|
String imgUrl = "";
|
||||||
ImgLoader.display2(mContext, levelBean.getThumbIcon(), mLevelAnchor);
|
for (NewLevelModel newLevelModel : models) {
|
||||||
|
if (newLevelModel.getLeveMin() <= anchorLevel && anchorLevel <= newLevelModel.getLeveMax()) {
|
||||||
|
imgUrl = newLevelModel.getIcon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ImgLoader.display(mContext, imgUrl, mLevelAnchor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4340,6 +4392,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
@Override
|
@Override
|
||||||
public void onBannerClick(List datas, int p) {
|
public void onBannerClick(List datas, int p) {
|
||||||
if (mBannerList3 != null) {
|
if (mBannerList3 != null) {
|
||||||
|
if (mBannerList3.get(p).getLink().equals("BattlePass")) {
|
||||||
|
RouteUtil.forwardBattlePass();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (mBannerList3.get(p).getLink().equals("0")) {
|
if (mBannerList3.get(p).getLink().equals("0")) {
|
||||||
if (p == 0) {
|
if (p == 0) {
|
||||||
((LiveAudienceActivity) mContext).openGiftWindow("" + bean1.getId(), "1");
|
((LiveAudienceActivity) mContext).openGiftWindow("" + bean1.getId(), "1");
|
||||||
@ -4375,6 +4431,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBannerClick(List datas, int p) {
|
public void onBannerClick(List datas, int p) {
|
||||||
|
if (mBannerList4.get(p).getLink().equals("BattlePass") || mBannerList4.get(p).getType() == 888) {
|
||||||
|
RouteUtil.forwardBattlePass();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (TextUtils.equals("特惠首冲", mBannerList4.get(p).getName())) {
|
if (TextUtils.equals("特惠首冲", mBannerList4.get(p).getName())) {
|
||||||
|
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
@ -4386,7 +4446,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
if (showLoadingDialog()) {
|
if (showLoadingDialog()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (bean.getActivityId() == -1) {//-1写死跳活动弹窗
|
if (bean.getActivityId() == -1) {//-1写死跳活动弹窗
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setActivity(true)
|
.setActivity(true)
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
||||||
@ -4866,6 +4926,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
case UPDATE_FANS_TASK_STATUS:
|
case UPDATE_FANS_TASK_STATUS:
|
||||||
updateFansMessageRed();
|
updateFansMessageRed();
|
||||||
break;
|
break;
|
||||||
|
case PK_RANK_START:
|
||||||
|
updatePkRankInfo((PkRankBean) event.getObject());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -5062,7 +5125,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
countdownHandler.post(countdownRunnable);
|
countdownHandler.post(countdownRunnable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Log.e("多人Pk", "upDataPkScore mPkTimeCount:" +mPkTimeCount);
|
Log.e("多人Pk", "upDataPkScore mPkTimeCount:" + mPkTimeCount);
|
||||||
for (int i = 0; i < pkScores.size(); i++) {
|
for (int i = 0; i < pkScores.size(); i++) {
|
||||||
JSONObject score = pkScores.getJSONObject(i);
|
JSONObject score = pkScores.getJSONObject(i);
|
||||||
String userNiceName = score.getString("user_nicename");
|
String userNiceName = score.getString("user_nicename");
|
||||||
@ -5153,10 +5216,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
public void run() {
|
public void run() {
|
||||||
mPkTimeCount--;
|
mPkTimeCount--;
|
||||||
if (mPkTimeCount > 0) {//
|
if (mPkTimeCount > 0) {//
|
||||||
Log.e("多人Pk", "countdownRunnable mPkTimeCount:" +mPkTimeCount);
|
Log.e("多人Pk", "countdownRunnable mPkTimeCount:" + mPkTimeCount);
|
||||||
String s1 = StringUtil.getDurationText(mPkTimeCount * 1000);
|
String s1 = StringUtil.getDurationText(mPkTimeCount * 1000);
|
||||||
textTime.setText(String.format(mContext.getString(R.string.pk_time), s1));
|
textTime.setText(String.format(mContext.getString(R.string.pk_time), s1));
|
||||||
Log.e("多人Pk", "countdownRunnable s1:" +s1);
|
Log.e("多人Pk", "countdownRunnable s1:" + s1);
|
||||||
countdownHandler.postAtTime(countdownRunnable, getNextSecondTime());
|
countdownHandler.postAtTime(countdownRunnable, getNextSecondTime());
|
||||||
} else {
|
} else {
|
||||||
mPkTimeCount = 0;
|
mPkTimeCount = 0;
|
||||||
@ -5697,25 +5760,32 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkNewLetter() {
|
|
||||||
LiveNetManager.get(mContext).getContactMsg(new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
private synchronized void checkNewLetter() {
|
||||||
|
|
||||||
|
LiveNetManager.get(mContext).getContactMsg(1, new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
||||||
for (LiveUserMailBoxModel model : data) {
|
if (data.size() > 0 && data != null) {
|
||||||
if (model.getIsRead() == 0 && mContext instanceof LiveAudienceActivity) {
|
for (LiveUserMailBoxModel model : data) {
|
||||||
((LiveAudienceActivity) mContext).showMsgRed(0);
|
if (model.getIsRead() == 0 && mContext instanceof LiveAudienceActivity) {
|
||||||
return;
|
((LiveAudienceActivity) mContext).showMsgRed(0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
((LiveAudienceActivity) mContext).showMsgRed(-1);
|
||||||
}
|
}
|
||||||
((LiveAudienceActivity) mContext).showMsgRed(-1);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void blindBoxAllServerNotify(AllServerNotifyEvent event) {
|
public void blindBoxAllServerNotify(AllServerNotifyEvent event) {
|
||||||
|
@ -501,6 +501,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRoomViewHolder.setUserList(data.getEnterRoomInfo().getUserlists());
|
mLiveRoomViewHolder.setUserList(data.getEnterRoomInfo().getUserlists());
|
||||||
//设置靓号
|
//设置靓号
|
||||||
mLiveRoomViewHolder.setAnchorGoodNumber(data.getLiveInfo().getGoodnum());
|
mLiveRoomViewHolder.setAnchorGoodNumber(data.getLiveInfo().getGoodnum());
|
||||||
|
//初始化天梯赛信息
|
||||||
|
mLiveRoomViewHolder.initRankPKInfo(String.valueOf(data.getLiveInfo().getUid()));
|
||||||
if (!StringUtil.isEmpty(mLiveBean.getGiftId())) {
|
if (!StringUtil.isEmpty(mLiveBean.getGiftId())) {
|
||||||
mLiveRoomViewHolder.openGiftDialog(mLiveBean.getGiftId());
|
mLiveRoomViewHolder.openGiftDialog(mLiveBean.getGiftId());
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="280dp"
|
android:layout_width="280dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_dialog_2"
|
android:background="@drawable/bg_dialog_2"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical">
|
||||||
>
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/avatar"
|
android:id="@+id/avatar"
|
||||||
@ -15,8 +13,7 @@
|
|||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
app:riv_oval="true"
|
app:riv_oval="true" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/name"
|
android:id="@+id/name"
|
||||||
@ -24,48 +21,56 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="15dp"
|
android:layout_height="15dp"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal">
|
||||||
>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/sex"
|
android:id="@+id/sex"
|
||||||
android:layout_width="18dp"
|
android:layout_width="18dp"
|
||||||
android:layout_height="15dp"
|
android:layout_height="15dp" />
|
||||||
/>
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="55dp"
|
||||||
|
android:layout_height="19dp">
|
||||||
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/contribute"
|
||||||
|
android:layout_width="55dp"
|
||||||
|
android:layout_height="19dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/leave"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="10sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/level"
|
|
||||||
android:layout_width="30dp"
|
|
||||||
android:layout_height="15dp"
|
|
||||||
android:layout_marginLeft="5dp"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/wait_text"
|
android:id="@+id/wait_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
android:textColor="@color/textColor2"
|
android:textColor="@color/textColor2"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
<View
|
<View style="@style/line2" />
|
||||||
style="@style/line2"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp">
|
||||||
>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/btn_refuse"
|
android:id="@+id/btn_refuse"
|
||||||
@ -75,14 +80,12 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/refuse"
|
android:text="@string/refuse"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="1dp"
|
android:layout_width="1dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/gray2"
|
android:background="@color/gray2" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/btn_accept"
|
android:id="@+id/btn_accept"
|
||||||
@ -92,8 +95,7 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/accept"
|
android:text="@string/accept"
|
||||||
android:textColor="@color/global"
|
android:textColor="@color/global"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -237,7 +237,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="45dp"
|
android:layout_height="45dp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:visibility="gone">
|
android:visibility="visible">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="100dp"
|
android:layout_width="100dp"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<com.yunbao.common.custom.CommonRefreshView
|
||||||
android:id="@+id/mailbox"
|
android:id="@+id/mailbox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="328dp"
|
android:layout_height="328dp"
|
||||||
@ -40,7 +40,7 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@+id/bg_top"
|
app:layout_constraintTop_toBottomOf="@+id/bg_top"
|
||||||
tools:listitem="@layout/item_live_user_mailbox">
|
tools:listitem="@layout/item_live_user_mailbox">
|
||||||
|
|
||||||
</androidx.recyclerview.widget.RecyclerView>
|
</com.yunbao.common.custom.CommonRefreshView>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/ic_empty"
|
android:id="@+id/ic_empty"
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
android:paddingLeft="12dp"
|
android:paddingLeft="12dp"
|
||||||
android:paddingRight="12dp"
|
android:paddingRight="12dp">
|
||||||
>
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/avatar"
|
android:id="@+id/avatar"
|
||||||
@ -14,8 +12,7 @@
|
|||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
app:riv_oval="true"
|
app:riv_oval="true" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/name"
|
android:id="@+id/name"
|
||||||
@ -25,8 +22,7 @@
|
|||||||
android:layout_marginLeft="15dp"
|
android:layout_marginLeft="15dp"
|
||||||
android:layout_toRightOf="@id/avatar"
|
android:layout_toRightOf="@id/avatar"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/sex"
|
android:id="@+id/sex"
|
||||||
@ -34,17 +30,32 @@
|
|||||||
android:layout_height="15dp"
|
android:layout_height="15dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_toRightOf="@id/name"
|
android:layout_toRightOf="@id/name" />
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<FrameLayout
|
||||||
android:id="@+id/level"
|
android:layout_width="55dp"
|
||||||
android:layout_width="30dp"
|
android:layout_height="19dp"
|
||||||
android:layout_height="15dp"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="5dp"
|
android:layout_marginLeft="5dp"
|
||||||
android:layout_toRightOf="@id/sex"
|
android:layout_toRightOf="@id/sex">
|
||||||
/>
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/level"
|
||||||
|
android:layout_width="55dp"
|
||||||
|
android:layout_height="19dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/leave"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="10sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/btn_invite"
|
android:id="@+id/btn_invite"
|
||||||
@ -55,11 +66,9 @@
|
|||||||
android:background="@drawable/bg_btn_live_pk"
|
android:background="@drawable/bg_btn_live_pk"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/fg_btn_live_pk"
|
android:textColor="@color/fg_btn_live_pk"
|
||||||
android:textSize="10sp"
|
android:textSize="10sp" />
|
||||||
/>
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
style="@style/line2"
|
style="@style/line2"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true" />
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -43,6 +43,7 @@
|
|||||||
android:id="@+id/level_anchor"
|
android:id="@+id/level_anchor"
|
||||||
android:layout_width="13dp"
|
android:layout_width="13dp"
|
||||||
android:layout_height="13dp"
|
android:layout_height="13dp"
|
||||||
|
android:visibility="gone"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentBottom="true" />
|
android:layout_alignParentBottom="true" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|