神龍送財彈窗頁面。神龍送財規則頁面
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
@@ -65,7 +67,7 @@ public class GuardDataTipModel extends BaseModel {
|
||||
@SerializedName("open_img")
|
||||
private String openImg;
|
||||
@SerializedName("is_open")
|
||||
private boolean isOpen;
|
||||
private String isOpen;
|
||||
@SerializedName("price")
|
||||
private List<GuardPriceModel> price;
|
||||
@SerializedName("guard_privilege")
|
||||
@@ -108,11 +110,15 @@ public class GuardDataTipModel extends BaseModel {
|
||||
}
|
||||
|
||||
public boolean isOpen() {
|
||||
return TextUtils.equals(isOpen, "1");
|
||||
}
|
||||
|
||||
public String getIsOpen() {
|
||||
return isOpen;
|
||||
}
|
||||
|
||||
public GuardDataTipModel setOpen(boolean open) {
|
||||
isOpen = open;
|
||||
public GuardDataTipModel setIsOpen(String isOpen) {
|
||||
this.isOpen = isOpen;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
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 DragonRulePopup extends CenterPopupView {
|
||||
public DragonRulePopup(@NonNull Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
// 返回自定义弹窗的布局
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.dragon_rule_popup;
|
||||
}
|
||||
|
||||
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.dragon_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
dismiss();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
8
common/src/main/res/drawable/button_dragon_sure.xml
Normal file
8
common/src/main/res/drawable/button_dragon_sure.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="18dp" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:endColor="#FCDEC4"
|
||||
android:startColor="#EEC593" />
|
||||
</shape>
|
||||
6
common/src/main/res/drawable/input_dragon_money.xml
Normal file
6
common/src/main/res/drawable/input_dragon_money.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="15dp" />
|
||||
<stroke android:width="1dp" android:color="@color/white"/>
|
||||
<solid android:color="#E6454444"/>
|
||||
</shape>
|
||||
87
common/src/main/res/layout/dragon_rule_popup.xml
Normal file
87
common/src/main/res/layout/dragon_rule_popup.xml
Normal file
@@ -0,0 +1,87 @@
|
||||
<?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"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="320dp"
|
||||
android:layout_height="320dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/background_dragon_rule" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.flyjingfish.gradienttextviewlib.GradientTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:letterSpacing="0.2"
|
||||
android:text="@string/regular_bubble"
|
||||
android:textSize="23sp"
|
||||
android:textStyle="bold"
|
||||
app:gradient_angle="180"
|
||||
app:gradient_endColor="#F9E1AE"
|
||||
app:gradient_startColor="#C28413" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="13dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="@string/dragon_rule1"
|
||||
android:textColor="#FFE0BF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="13dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="@string/dragon_rule2"
|
||||
android:textColor="#FFE0BF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="13dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="@string/dragon_rule3"
|
||||
android:textColor="#FFE0BF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="13dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="@string/dragon_rule4"
|
||||
android:textColor="#FFE0BF"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dragon_close"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:layout_marginTop="30dp"
|
||||
android:src="@mipmap/icon_dragon_close" />
|
||||
</LinearLayout>
|
||||
BIN
common/src/main/res/mipmap-xxhdpi/background_dragon_rule.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/background_dragon_rule.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 508 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 282 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_dragon_close.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/icon_dragon_close.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_dragon_rule.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/icon_dragon_rule.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1480,5 +1480,13 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="this_week_contribution">本周貢獻值</string>
|
||||
<string name="contribution">貢獻度</string>
|
||||
<string name="have_opened">已開通</string>
|
||||
<string name="dragon_sends_money">神龍送財</string>
|
||||
<string name="please_enter_the_number_of_gold_beans">請輸入金豆數量</string>
|
||||
<string name="please_enter_the_number_of_gold_beans_hint">您本次消耗的金豆將增長您的守護經驗值</string>
|
||||
<string name="open_an_activity">開啓活動</string>
|
||||
<string name="dragon_rule1">1.龍神送財是您開通【神之守護】後給予直播間觀眾的福利,您可選擇自定義金豆數量並召喚龍神給直播间内主播粉丝瓜分(金豆數量不低於1000),或者您可以選擇不开启活动;</string>
|
||||
<string name="dragon_rule2">2.此次金豆消耗将计入守护贡献值和经验值增长,每提供10金豆將獲得1貢獻值,貢獻值可用於增長守護等級;</string>
|
||||
<string name="dragon_rule3">3.用戶關注主播並參與活動,將在五分鐘倒計時後將獲得您提供的福利;</string>
|
||||
<string name="dragon_rule4">4.此活動的最終解釋權歸PDLIVE所有。</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user