1.PK倒计时是, 神龙倒计时 改成只有分钟秒格式

2.送礼物自定义数量下移
This commit is contained in:
ningwenqiang 2024-09-29 14:53:05 +08:00
parent c42b3db7d2
commit ed1bd72d0a
7 changed files with 39 additions and 15 deletions

2
.gitignore vendored
View File

@ -17,3 +17,5 @@ local.properties
/tmp/full-r8-config.txt /tmp/full-r8-config.txt
/outputs/apk /outputs/apk
/TabLayout/build /TabLayout/build
/app/google_test/release

View File

@ -40,6 +40,24 @@ public class GiftQuantityManager extends BaseCacheManager {
return giftQuantityModels; return giftQuantityModels;
} }
/**
* 获取指导员备注信息
*
* @return
*/
public List<GiftQuantityModel> getGiftQuantityNew() {
List<GiftQuantityModel> giftQuantityModels = getList(KEY_GIFT_QUANTITY, new TypeToken<List<GiftQuantityModel>>() {}.getType());
if (giftQuantityModels == null || giftQuantityModels.size() == 0) {
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("9999").setFontColour("#ffffff"));
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("3344").setFontColour("#ffffff"));
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("1314").setFontColour("#ffffff"));
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("520").setFontColour("#ffffff"));
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("50").setFontColour("#ffffff"));
giftQuantityModels.add(new GiftQuantityModel().setGiftQuantity("10").setFontColour("#ffffff"));
}
return giftQuantityModels;
}
/** /**
* 缓存等级图标 * 缓存等级图标
* *

View File

@ -38,7 +38,7 @@ public class GiftNumberPopup extends BottomPopupView {
super.onCreate(); super.onCreate();
RecyclerView giftList = findViewById(R.id.gift_list); RecyclerView giftList = findViewById(R.id.gift_list);
giftList.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false)); giftList.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
GiftNumberAdapter giftNumberAdapter = new GiftNumberAdapter(new GiftQuantityManager(getContext()).getGiftQuantity()); GiftNumberAdapter giftNumberAdapter = new GiftNumberAdapter(new GiftQuantityManager(getContext()).getGiftQuantityNew());
giftList.setAdapter(giftNumberAdapter); giftList.setAdapter(giftNumberAdapter);
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.to_can), new ViewClicksAntiShake.ViewClicksCallBack() { ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.to_can), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override @Override

View File

@ -15,7 +15,7 @@
<LinearLayout <LinearLayout
android:layout_width="80dp" android:layout_width="80dp"
android:layout_height="190dp" android:layout_height="188dp"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginEnd="48dp" android:layout_marginEnd="48dp"
@ -23,22 +23,26 @@
android:background="@drawable/bg_selection_quantity" android:background="@drawable/bg_selection_quantity"
android:orientation="vertical"> android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:layout_marginTop="2dp"
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<TextView <TextView
android:clickable="true" android:clickable="true"
android:id="@+id/custom_quantity" android:id="@+id/custom_quantity"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="28dp" android:layout_height="28dp"
android:gravity="center" android:gravity="center"
android:layout_marginTop="2dp" android:layout_marginBottom="4dp"
android:text="@string/custom_quantity" android:text="@string/custom_quantity"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="14sp" android:textSize="14sp"
android:focusable="true" /> android:focusable="true" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

View File

@ -1256,7 +1256,7 @@
<string name="leveling_points">升級還需%s經驗值升至%s即可領取獎勵</string> <string name="leveling_points">升級還需%s經驗值升至%s即可領取獎勵</string>
<string name="reach_the_top">恭喜,你已達到最高等級</string> <string name="reach_the_top">恭喜,你已達到最高等級</string>
<string name="nothing_in_the_package_yet">包裹中暫無物品哦</string> <string name="nothing_in_the_package_yet">包裹中暫無物品哦</string>
<string name="custom_quantity">自定義數量</string> <string name="custom_quantity">自定義</string>
<string name="gift_wall">禮物展館</string> <string name="gift_wall">禮物展館</string>
<string name="has_been_lit">已點亮%s個</string> <string name="has_been_lit">已點亮%s個</string>
<string name="codex">圖鑒</string> <string name="codex">圖鑒</string>
@ -1634,7 +1634,7 @@
<string name="live_interaction_game">互動遊戲</string> <string name="live_interaction_game">互動遊戲</string>
<string name="live_interaction_god_say">女神說</string> <string name="live_interaction_god_say">女神說</string>
<string name="live_interaction_ask_question">發起問答</string> <string name="live_interaction_ask_question">發起問答</string>
<string name="ai_anguage_settings">机器人语言设置</string> <string name="ai_anguage_settings">機器人語言設定</string>
<string name="open_vip_live">开通贵</string> <string name="open_vip_live">開通貴</string>
<string name="chang_langue_tips">此設定後,所有機器人語言將會被翻譯覆蓋,請確認是否完成此操作</string> <string name="chang_langue_tips">此設定後,所有機器人語言將會被翻譯覆蓋,請確認是否完成此操作</string>
</resources> </resources>

View File

@ -1001,13 +1001,13 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
String userNextLevel = String.valueOf(Integer.parseInt(coinModel.getUserLevel())+1); String userNextLevel = String.valueOf(Integer.parseInt(coinModel.getUserLevel())+1);
StringBuffer stringBuffer = new StringBuffer(); StringBuffer stringBuffer = new StringBuffer();
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
stringBuffer.append("升至Lv") stringBuffer.append("升至Lv.")
.append(userNextLevel) .append(userNextLevel)
.append("還需") .append("還需")
.append(leveNext) .append(leveNext)
.append("經驗值"); .append("經驗值");
} else { } else {
stringBuffer.append("Up to Lv") stringBuffer.append("Up to Lv.")
.append(userNextLevel) .append(userNextLevel)
.append("need") .append("need")
.append(leveNext) .append(leveNext)

View File

@ -1454,7 +1454,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (mPkTimeCount > 0) {// if (mPkTimeCount > 0) {//
if (mHandler != null) { if (mHandler != null) {
time.setVisibility(View.VISIBLE); time.setVisibility(View.VISIBLE);
String s1 = StringUtil.getDurationText(mPkTimeCount * 1000); String s1 = StringUtil.getDurationText2(mPkTimeCount * 1000);
time.setText("PK時間:" + s1); time.setText("PK時間:" + s1);
mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME, getNextSecondTime()); mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME, getNextSecondTime());
if (mContext instanceof LiveAudienceActivity) { if (mContext instanceof LiveAudienceActivity) {
@ -4428,7 +4428,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void run() { public void run() {
sendMoneyTime--; sendMoneyTime--;
if (sendMoneyTime > 0) { if (sendMoneyTime > 0) {
String s1 = StringUtil.getDurationText(sendMoneyTime * 1000); String s1 = StringUtil.getDurationText2(sendMoneyTime * 1000);
newDragonTv.setText(s1); newDragonTv.setText(s1);
newDragonTv.postDelayed(sendMoneyRunnable, 1000); newDragonTv.postDelayed(sendMoneyRunnable, 1000);
} else { } else {
@ -6549,7 +6549,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} else { } else {
timeTitle.setVisibility(View.VISIBLE); timeTitle.setVisibility(View.VISIBLE);
Log.e("多人Pk", "countdownRunnable mPkTimeCount:" + mPkTimeCount2); Log.e("多人Pk", "countdownRunnable mPkTimeCount:" + mPkTimeCount2);
String s1 = StringUtil.getDurationText(mPkTimeCount2 * 1000); String s1 = StringUtil.getDurationText2(mPkTimeCount2 * 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);
timeTitle.postDelayed(countdownRunnable, 1000); timeTitle.postDelayed(countdownRunnable, 1000);