feat:完善礼物面板底部UI调整
feat:初步完成解锁信息条目UI部分
This commit is contained in:
@@ -381,6 +381,14 @@ public class DemoCache {
|
||||
return SettingsPref.instance().getBoolean(KEY_NEW_GIFT_TYPE_TIP, true);
|
||||
}
|
||||
|
||||
public static void saveNewGiftTypeTip(int type,boolean value) {
|
||||
SettingsPref.instance().putBoolean(KEY_NEW_GIFT_TYPE_TIP + "_" + type, value);
|
||||
}
|
||||
|
||||
public static boolean readNewGiftTypeTip(int type) {
|
||||
return SettingsPref.instance().getBoolean(KEY_NEW_GIFT_TYPE_TIP + "_" + type, true);
|
||||
}
|
||||
|
||||
public static void saveNewGiftTypeTipIndicator(boolean value) {
|
||||
SettingsPref.instance().putBoolean(KEY_NEW_GIFT_TYPE_TIP_INDICATOR, value);
|
||||
}
|
||||
|
@@ -13,10 +13,19 @@ public class GiftTab {
|
||||
this.selectedTitle = selectedTitle;
|
||||
}
|
||||
|
||||
public GiftTab(int type, String unSelectedTitle, String selectedTitle, boolean needNewTips) {
|
||||
this.type = type;
|
||||
this.unSelectedTitle = unSelectedTitle;
|
||||
this.selectedTitle = selectedTitle;
|
||||
this.needNewTips = needNewTips;
|
||||
}
|
||||
|
||||
private int type;
|
||||
private String selectedTitle;
|
||||
private String unSelectedTitle;
|
||||
private View itemView;
|
||||
// 是否需要提示:“new”
|
||||
private boolean needNewTips;
|
||||
|
||||
//<editor-fold defaultstate="collapsed" desc="delombok">
|
||||
@SuppressWarnings("all")
|
||||
@@ -59,6 +68,14 @@ public class GiftTab {
|
||||
this.itemView = itemView;
|
||||
}
|
||||
|
||||
public boolean isNeedNewTips() {
|
||||
return needNewTips;
|
||||
}
|
||||
|
||||
public void setNeedNewTips(boolean needNewTips) {
|
||||
this.needNewTips = needNewTips;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("all")
|
||||
public boolean equals(final Object o) {
|
||||
|
@@ -42,4 +42,6 @@ public class GiftType {
|
||||
public static final int GIFT_TYPE_SINGLE_ROOM = 11;
|
||||
|
||||
public static final int GIFT_TYPE_PENALTY = 12;
|
||||
|
||||
public static final int GIFT_TYPE_INTEREST = 14;
|
||||
}
|
||||
|
Reference in New Issue
Block a user