完成盲盒转盘功能,除去巡乐会,

This commit is contained in:
2025-08-28 22:11:26 +08:00
parent 40a32a4218
commit 05a4be2573
73 changed files with 2783 additions and 684 deletions

View File

@@ -366,9 +366,9 @@ public class AvatarFrameView extends FrameLayout implements IAnimListener {
mFile = file;
} else {
// 删除可能存在的损坏文件
if (file.exists()) {
file.delete();
}
// if (file.exists()) {
// file.delete();
// }
DownloadTask task = new DownloadTask.Builder(url, PathUtils.getInternalAppCachePath()
, Md5Utils.getStringMD5(url) + ".mp4")
.setMinIntervalMillisCallbackProcess(300)

View File

@@ -376,6 +376,9 @@ public class Constants {
public static final String CREATE_RELATION = "/api/Friend/create_relation";//卡关系 (创建关系) 交友房
public static final String GET_BOX_GIFT_LIST = "/api/BlindBoxTurntable/get_gift_list";//获取活动礼物列表
public static final String POST_DRAW_GIFT_LIST = "/api/BlindBoxTurntable/draw_gift";//盲盒转盘抽奖
public static final String GET_MY_RECORD = "/api/BlindBoxTurntable/get_my_record";//获取我的抽奖记录
public static final String GET_ALL_RECORD = "/api/BlindBoxTurntable/get_all_record";//获取全服抽奖记录
public static final String GIFT_SEND = "/api/BlindBoxTurntable/gift_send";//礼物发放

View File

@@ -95,12 +95,12 @@ public class GiftCardView extends FrameLayout {
normalBackground = typedArray.getDrawable(R.styleable.GiftCardView_normalBackground);
// 如果没有设置选中背景,则使用默认的选中效果
if (selectedBackground == null) {
selectedBackground = ContextCompat.getDrawable(getContext(), R.mipmap.tkzj_x);
}
if (normalBackground == null) {
normalBackground = ContextCompat.getDrawable(getContext(), R.mipmap.tkzj_w);
}
// if (selectedBackground == null) {
// selectedBackground = ContextCompat.getDrawable(getContext(), R.mipmap.tkzj_x);
// }
// if (normalBackground == null) {
// normalBackground = ContextCompat.getDrawable(getContext(), R.mipmap.tkzj_w);
// }
// 设置默认背景
if (normalBackground != null) {
@@ -208,19 +208,19 @@ public class GiftCardView extends FrameLayout {
if (selected) {
setBackground(selectedBackground);
// 可以添加额外的选中效果
setElevation(8f); // 提高阴影
// setElevation(8f); // 提高阴影
// 添加发光效果
addGlowEffect();
// addGlowEffect();
} else {
setBackground(normalBackground);
setElevation(4f); // 恢复默认阴影
removeGlowEffect();
// setElevation(4f); // 恢复默认阴影
// removeGlowEffect();
}
}
public void setmResultTextView(int num){
if (mResultTextView!=null) {
mResultTextView.setText("X" + num);
mResultTextView.setText("x" + num);
}
}