480 lines
20 KiB
XML
480 lines
20 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@mipmap/syzc_bj">
|
|
<!-- 顶部抽奖按钮 -->
|
|
<LinearLayout
|
|
android:id="@+id/lottery_buttons_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp_10"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toBottomOf="@+id/ll_yx"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_one"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@mipmap/chou_w"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/btn_lottery_one"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_3"
|
|
android:gravity="center"
|
|
android:text="抽一次"
|
|
android:textSize="@dimen/sp_12" />
|
|
|
|
<TextView
|
|
android:id="@+id/one_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp_2"
|
|
android:drawableLeft="@mipmap/jinb"
|
|
android:gravity="center"
|
|
tools:text="10币一次"
|
|
android:textSize="@dimen/sp_10" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_ten"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:layout_weight="1"
|
|
android:background="@mipmap/chou_w"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/btn_lottery_ten"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_3"
|
|
android:gravity="center"
|
|
android:text="抽十次"
|
|
android:textSize="@dimen/sp_12" />
|
|
|
|
<TextView
|
|
android:id="@+id/ten_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp_2"
|
|
android:drawableLeft="@mipmap/jinb"
|
|
android:gravity="center"
|
|
tools:text="100币一次"
|
|
android:textSize="@dimen/sp_10" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_hundred"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@mipmap/chou_w"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/btn_lottery_hundred"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_3"
|
|
android:gravity="center"
|
|
android:text="抽百次"
|
|
android:textSize="@dimen/sp_12" />
|
|
|
|
<TextView
|
|
android:id="@+id/hundred_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp_2"
|
|
android:drawableLeft="@mipmap/jinb"
|
|
android:gravity="center"
|
|
tools:text="1000币一次"
|
|
android:textSize="@dimen/sp_10" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_jc"
|
|
android:layout_width="@dimen/dp_48"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginTop="@dimen/dp_60"
|
|
android:background="@mipmap/syzc_rigth_bj"
|
|
android:gravity="center"
|
|
android:text="奖池"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_gz"
|
|
android:layout_width="@dimen/dp_48"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:background="@mipmap/syzc_left_bj"
|
|
android:gravity="center"
|
|
android:text="规则"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/tv_jc" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_jl"
|
|
android:layout_width="@dimen/dp_48"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:background="@mipmap/syzc_left_bj"
|
|
android:gravity="center"
|
|
android:text="记录"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_gz" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_yx"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/dp_10"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_marginBottom="5dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift7"
|
|
app:layout_constraintEnd_toStartOf="@+id/ll_tx"
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_lock_yx"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="音效"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_14"
|
|
|
|
/>
|
|
|
|
<Switch
|
|
android:id="@+id/sw_lock_yx"
|
|
tools:ignore="UseSwitchCompatOrMaterialXml"
|
|
android:layout_width="@dimen/dp_37"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
android:background="@drawable/room_tuner_selector_switch"
|
|
android:thumb="@android:color/transparent" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_tx"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
android:layout_marginBottom="@dimen/dp_5"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toTopOf="@+id/ll_yx"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/ll_yx">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_tx"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="特效"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_14"
|
|
|
|
/>
|
|
|
|
<Switch
|
|
android:id="@+id/sw_tex"
|
|
tools:ignore="UseSwitchCompatOrMaterialXml"
|
|
android:layout_width="@dimen/dp_37"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
android:background="@drawable/room_tuner_selector_switch"
|
|
android:thumb="@android:color/transparent" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginStart="@dimen/dp_34"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_jl"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginStart="@dimen/dp_34"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toEndOf="@+id/gift1"
|
|
app:layout_constraintTop_toTopOf="@+id/gift1"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift3"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginStart="@dimen/dp_34"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toEndOf="@+id/gift2"
|
|
app:layout_constraintTop_toTopOf="@+id/gift2"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift4"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@+id/gift3"
|
|
app:layout_constraintEnd_toEndOf="@+id/gift3"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift3"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift5"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@+id/gift4"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift4"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift6"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintEnd_toEndOf="@id/gift5"
|
|
app:layout_constraintStart_toStartOf="@id/gift5"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift5"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift7"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@id/gift2"
|
|
app:layout_constraintEnd_toEndOf="@+id/gift2"
|
|
app:layout_constraintTop_toTopOf="@id/gift6"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift8"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@+id/gift1"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift9"
|
|
app:layout_constraintTop_toTopOf="@id/gift7"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift9"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@+id/gift1"
|
|
app:layout_constraintTop_toTopOf="@id/gift5"
|
|
app:layout_constraintBottom_toBottomOf="@id/gift5"
|
|
app:layout_constraintEnd_toEndOf="@+id/gift8"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
<com.xscm.moduleutil.widget.GiftCardView
|
|
android:id="@+id/gift10"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_93"
|
|
android:outlineProvider="none"
|
|
android:stateListAnimator="@null"
|
|
app:giftCount="66666"
|
|
app:giftIcon="@mipmap/ic_launcher"
|
|
app:giftName="柔情似水"
|
|
app:layout_constraintStart_toStartOf="@+id/gift1"
|
|
app:layout_constraintTop_toTopOf="@id/gift4"
|
|
app:layout_constraintEnd_toEndOf="@+id/gift1"
|
|
app:layout_constraintBottom_toBottomOf="@+id/gift4"
|
|
app:layout_constraintWidth_percent="0.2"
|
|
app:selectedBackground="@mipmap/syzc_x"
|
|
app:normalBackground="@mipmap/syzc_w"/>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/ll_progress"
|
|
android:layout_width="@dimen/dp_148"
|
|
android:layout_height="@dimen/dp_148"
|
|
android:background="@mipmap/syzc_z_b"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toStartOf="@+id/gift4"
|
|
app:layout_constraintStart_toEndOf="@+id/gift10"
|
|
app:layout_constraintTop_toBottomOf="@+id/gift2">
|
|
|
|
<FrameLayout
|
|
android:layout_width="@dimen/dp_70"
|
|
android:layout_height="@dimen/dp_70"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:background="@drawable/syzc_background"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<!-- 进度条 -->
|
|
<com.xscm.moduleutil.widget.CircularProgressView
|
|
android:id="@+id/circular_progress_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:backColor="@color/color_transparent"
|
|
app:backWidth="@dimen/dp_13"
|
|
app:progColor="#EEC774"
|
|
app:progWidth="@dimen/dp_13"
|
|
app:progress="50" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_16"
|
|
android:textStyle="bold"
|
|
tools:text="60%" />
|
|
|
|
</FrameLayout>
|
|
<!-- 正式开始按钮 -->
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_start"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-30dp"
|
|
android:background="@mipmap/dengt"
|
|
app:layout_constraintEnd_toEndOf="@+id/ll_progress"
|
|
app:layout_constraintStart_toStartOf="@+id/ll_progress"
|
|
app:layout_constraintTop_toBottomOf="@+id/ll_progress" />
|
|
|
|
|
|
<!-- 兑换提示 -->
|
|
<LinearLayout
|
|
android:id="@+id/exchange_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:background="@drawable/bg_r45_a27f40"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="@dimen/dp_9"
|
|
android:paddingEnd="@dimen/dp_9"
|
|
app:layout_constraintBottom_toTopOf="@+id/gift8"
|
|
app:layout_constraintEnd_toEndOf="@+id/ll_progress"
|
|
app:layout_constraintStart_toStartOf="@+id/ll_progress"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_start">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableLeft="@mipmap/jinb"
|
|
android:drawablePadding="@dimen/dp_5"
|
|
tools:text="66666"
|
|
android:textColor="#F8E837"
|
|
android:textSize="@dimen/sp_10" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_dh"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:text="去兑换"
|
|
android:textColor="#F8E837"
|
|
android:textSize="@dimen/sp_10" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |