feat : 附带礼物 UI 初次提交
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package com.chwl.app.avroom.dialog
|
||||
|
||||
import android.view.Gravity
|
||||
import android.view.WindowManager
|
||||
import com.chwl.app.R
|
||||
import com.chwl.app.base.BaseDialogFragment
|
||||
import com.chwl.app.bindadapter.BaseBindingAdapter
|
||||
import com.chwl.app.bindadapter.BaseBindingViewHolder
|
||||
import com.chwl.app.databinding.DialogRoomLuckyBagBinding
|
||||
import com.chwl.app.databinding.ItemRoomLuckyBagGiftBinding
|
||||
import com.chwl.app.databinding.ItemRoomLuckyBagTimeBinding
|
||||
import com.chwl.app.databinding.ItemRoomLuckyBagViewOthersBinding
|
||||
import com.chwl.core.gift.bean.LuckyBagGift
|
||||
import com.chwl.core.gift.bean.LuckyBagTime
|
||||
import com.chwl.core.gift.bean.LuckyBagViewOthers
|
||||
import com.example.lib_utils.ktx.getDimension
|
||||
|
||||
class RoomLuckyBagDialog : BaseDialogFragment<DialogRoomLuckyBagBinding>() {
|
||||
|
||||
|
||||
override var width = WindowManager.LayoutParams.MATCH_PARENT
|
||||
override var height = R.dimen.dp_323.getDimension().toInt()
|
||||
override var dimAmount = 0f
|
||||
override var gravity = Gravity.BOTTOM
|
||||
|
||||
|
||||
|
||||
override fun init() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private class GiftAdapter : BaseBindingAdapter<ItemRoomLuckyBagGiftBinding, LuckyBagGift>() {
|
||||
|
||||
override fun convert(
|
||||
helper: BaseBindingViewHolder<ItemRoomLuckyBagGiftBinding>,
|
||||
item: LuckyBagGift
|
||||
) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private class TimeAdapter : BaseBindingAdapter<ItemRoomLuckyBagTimeBinding, LuckyBagTime>() {
|
||||
|
||||
override fun convert(
|
||||
helper: BaseBindingViewHolder<ItemRoomLuckyBagTimeBinding>,
|
||||
item: LuckyBagTime
|
||||
) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.chwl.app.avroom.dialog
|
||||
|
||||
import android.view.Gravity
|
||||
import android.view.View
|
||||
import android.view.WindowManager
|
||||
import com.chwl.app.base.BaseDialogFragment
|
||||
import com.chwl.app.bindadapter.BaseBindingAdapter
|
||||
import com.chwl.app.bindadapter.BaseBindingViewHolder
|
||||
import com.chwl.app.databinding.DialogRoomLuckyBagOpenBinding
|
||||
import com.chwl.app.databinding.ItemRoomLuckyBagViewOthersBinding
|
||||
import com.chwl.core.gift.bean.LuckyBagViewOthers
|
||||
import com.chwl.library.common.util.setViewWH
|
||||
import com.chwl.library.common.util.setVis
|
||||
|
||||
class RoomLuckyBagOpenDialog : BaseDialogFragment<DialogRoomLuckyBagOpenBinding>() {
|
||||
|
||||
|
||||
override var width = WindowManager.LayoutParams.MATCH_PARENT
|
||||
override var height = WindowManager.LayoutParams.WRAP_CONTENT
|
||||
override var dimAmount = 0f
|
||||
override var gravity = Gravity.CENTER
|
||||
|
||||
private var mAdapter : ViewOtherAdapter ? = null
|
||||
|
||||
|
||||
override fun init() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
private fun viewOthers() {
|
||||
def()
|
||||
binding.viewOthersHint.setVis(true)
|
||||
binding.rvListViewOthers.setVis(true)
|
||||
|
||||
binding.bg.setViewWH(height = 414)
|
||||
// binding.bg.setImageResource()
|
||||
|
||||
mAdapter = ViewOtherAdapter()
|
||||
binding.rvListViewOthers.adapter = mAdapter
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
private fun open() {
|
||||
def()
|
||||
binding.viewOthers.setVis(true)
|
||||
|
||||
binding.giftImg.setVis(true)
|
||||
binding.giftName.setVis(true)
|
||||
binding.giftName.setVis(true)
|
||||
|
||||
|
||||
binding.gold.setVis(true)
|
||||
|
||||
}
|
||||
|
||||
private fun ready() {
|
||||
def()
|
||||
binding.bagImg.setVis(true)
|
||||
|
||||
}
|
||||
|
||||
private fun timeDown() {
|
||||
def()
|
||||
binding.viewOthers.setVis(true)
|
||||
binding.bagImg.setVis(true)
|
||||
binding.time.setVis(true)
|
||||
}
|
||||
|
||||
private fun showEmpty() {
|
||||
def()
|
||||
binding.viewOthers.setVis(true)
|
||||
binding.bagImg.setVis(true)
|
||||
binding.comingHint.setVis(true)
|
||||
}
|
||||
|
||||
private fun def() {
|
||||
binding.viewOthers.visibility = View.INVISIBLE
|
||||
binding.time.visibility = View.INVISIBLE
|
||||
binding.giftName.visibility = View.INVISIBLE
|
||||
binding.giftNum.visibility = View.INVISIBLE
|
||||
binding.giftImg.visibility = View.INVISIBLE
|
||||
binding.gold.visibility = View.INVISIBLE
|
||||
binding.bagImg.visibility = View.INVISIBLE
|
||||
binding.comingHint.visibility = View.INVISIBLE
|
||||
|
||||
binding.rvListViewOthers.visibility = View.INVISIBLE
|
||||
binding.viewOthersHint.visibility = View.INVISIBLE
|
||||
}
|
||||
|
||||
|
||||
private class ViewOtherAdapter : BaseBindingAdapter<ItemRoomLuckyBagViewOthersBinding, LuckyBagViewOthers>() {
|
||||
|
||||
override fun convert(
|
||||
helper: BaseBindingViewHolder<ItemRoomLuckyBagViewOthersBinding>,
|
||||
item: LuckyBagViewOthers
|
||||
) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
27
app/src/main/java/com/chwl/app/avroom/widget/LuckyBagBtn.kt
Normal file
27
app/src/main/java/com/chwl/app/avroom/widget/LuckyBagBtn.kt
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.chwl.app.avroom.widget
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.widget.FrameLayout
|
||||
import com.chwl.app.databinding.ViewLuckyBagBtnBinding
|
||||
import com.chwl.library.common.util.setVis
|
||||
|
||||
class LuckyBagBtn : FrameLayout{
|
||||
constructor(context: Context) : super(context){initView(context)}
|
||||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs){initView(context)}
|
||||
|
||||
|
||||
lateinit var mBinding : ViewLuckyBagBtnBinding
|
||||
|
||||
private fun initView(context: Context) {
|
||||
mBinding = ViewLuckyBagBtnBinding.inflate(LayoutInflater.from(context),this,true)
|
||||
|
||||
mBinding.number.text = 11.toString()
|
||||
mBinding.number.setVis(true)
|
||||
mBinding.number.setBgColor("#f33a49")
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
5
app/src/main/res/drawable/bg_black_a30_r4.xml
Normal file
5
app/src/main/res/drawable/bg_black_a30_r4.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/black_transparent_30" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
||||
9
app/src/main/res/drawable/bg_lucky_bag_gift_item.xml
Normal file
9
app/src/main/res/drawable/bg_lucky_bag_gift_item.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke
|
||||
android:color="#fef057"
|
||||
android:width="1dp" />
|
||||
<corners android:radius="12dp" />
|
||||
|
||||
<gradient android:startColor="#610015" android:endColor="#97000c" android:angle="90"/>
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/shape_f5d2b1_r12_9f6f41.xml
Normal file
13
app/src/main/res/drawable/shape_f5d2b1_r12_9f6f41.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="#f5d2b1" />
|
||||
|
||||
<corners android:radius="12dp" />
|
||||
|
||||
<stroke
|
||||
android:color="#9f6f41"
|
||||
android:width="1dp" />
|
||||
|
||||
</shape>
|
||||
400
app/src/main/res/layout/dialog_room_lucky_bag.xml
Normal file
400
app/src/main/res/layout/dialog_room_lucky_bag.xml
Normal file
@@ -0,0 +1,400 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
tools:background="@color/black">
|
||||
|
||||
<include
|
||||
android:id="@+id/notifyView"
|
||||
layout="@layout/view_room_lucky_bag_notify" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-43dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 顶部-->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/topLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="108dp"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bgGiftPack"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="47dp"
|
||||
android:layout_marginStart="9dp"
|
||||
app:layout_constraintEnd_toStartOf="@id/bgGoldPack"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btnGiftPack"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/bgGiftPack"
|
||||
app:layout_constraintEnd_toEndOf="@+id/bgGiftPack"
|
||||
app:layout_constraintStart_toStartOf="@+id/bgGiftPack"
|
||||
app:layout_constraintTop_toTopOf="@+id/bgGiftPack"
|
||||
tools:text="111111" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bgGoldPack"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="47dp"
|
||||
android:layout_marginEnd="9dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/bgGiftPack"
|
||||
app:layout_constraintTop_toTopOf="@+id/bgGiftPack" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btnGoldPack"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/bgGoldPack"
|
||||
app:layout_constraintEnd_toEndOf="@+id/bgGoldPack"
|
||||
app:layout_constraintStart_toStartOf="@+id/bgGoldPack"
|
||||
app:layout_constraintTop_toTopOf="@+id/bgGoldPack"
|
||||
tools:text="2222" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- 中间-->
|
||||
<FrameLayout
|
||||
android:id="@+id/centerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:paddingBottom="16dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/topLayout">
|
||||
|
||||
<!-- 礼物红包布局-->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/giftPackLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lineGiftType"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="9dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:text="@string/_ver_23_Choose_Gift"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListGiftType"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/lineGiftType" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lineGiftTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rvListGiftType">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:text="@string/_ver_23_Waiting_time"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListGiftTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="12dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/lineGiftTime" />
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/groupGiftPack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
app:constraint_referenced_ids="lineGiftType,rvListGiftType,lineGiftTime,rvListGiftTime"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/reViewRvListGIft"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toTopOf="@id/reViewGiftPackTime" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reViewGiftPackTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/_ver_23_Waiting_time_s_minutes"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/reViewRvListGIft" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/reViewBtnBack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/_ver_23_Modify"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="12sp"
|
||||
app:dt_drawableRightHeight="11dp"
|
||||
app:dt_drawableRightSrc="@drawable/ic_login_next"
|
||||
app:dt_drawableRightWidth="11dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/reViewGiftPackTime" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/reViewGiftPack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
app:constraint_referenced_ids="reViewRvListGIft,reViewGiftPackTime,reViewBtnBack"
|
||||
tools:visibility="gone" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<!-- 金币红包布局-->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/goldPackLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintTop_toBottomOf="@id/topLayout"
|
||||
tools:visibility="gone">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListGoldType"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="52dp"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lineGoldNum"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="47dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rvListGoldType">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:text="@string/_ver_23_Lucky_Bag_Numbers"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListGoldNum"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="12dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/lineGoldNum" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lineGoldTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="44dp"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rvListGoldNum">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:text="@string/_ver_23_Waiting_time"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/ic_room_boom_info_bg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListGoldTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="12dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/lineGoldTime" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 底部-->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/bottomLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="20dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/centerLayout">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/redPackDesc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/_ver_23_sendHint"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/userGold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="22dp"
|
||||
android:drawablePadding="4dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="0000"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
app:dt_drawableLeftHeight="21dp"
|
||||
app:dt_drawableLeftSrc="@drawable/ic_coin_84"
|
||||
app:dt_drawableLeftWidth="21dp"
|
||||
app:dt_drawableRightHeight="17dp"
|
||||
app:dt_drawableRightSrc="@drawable/ic_coin_84"
|
||||
app:dt_drawableRightWidth="17dp"
|
||||
app:dt_drawableType="shape"
|
||||
app:layout_constraintEnd_toStartOf="@id/bottomSpace"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/redPackDesc" />
|
||||
|
||||
<androidx.legacy.widget.Space
|
||||
android:id="@+id/bottomSpace"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_width="0dp"
|
||||
app:layout_constraintStart_toEndOf="@+id/userGold"
|
||||
app:layout_constraintEnd_toStartOf="@id/btnConfirm"
|
||||
android:layout_height="40dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btnConfirm"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="47dp"
|
||||
android:layout_marginTop="9.5dp"
|
||||
android:background="@color/white"
|
||||
android:gravity="center"
|
||||
android:text="@string/camera_roll"
|
||||
android:textColor="#292601"
|
||||
android:textSize="15sp"
|
||||
app:dt_drawableType="shape"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/bottomSpace"
|
||||
app:layout_constraintTop_toBottomOf="@+id/redPackDesc" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- 更多按钮-->
|
||||
<ImageView
|
||||
android:id="@+id/btnMore"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:paddingTop="3dp"
|
||||
app:layout_constraintEnd_toStartOf="@id/btnBill"
|
||||
app:layout_constraintTop_toBottomOf="@id/topLayout" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnBill"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:paddingTop="3dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/topLayout" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</LinearLayout>
|
||||
191
app/src/main/res/layout/dialog_room_lucky_bag_open.xml
Normal file
191
app/src/main/res/layout/dialog_room_lucky_bag_open.xml
Normal file
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="326dp"
|
||||
android:layout_marginTop="38dp"
|
||||
app:layout_constraintTop_toTopOf="@id/avatar" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="77dp"
|
||||
android:layout_height="77dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="9.5dp"
|
||||
android:text="@string/_ver_23_luckBagOpenTitle"
|
||||
android:textColor="#292601"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/comingHint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/_ver_23_luckBagOpenHint"
|
||||
android:textColor="#CC292601"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bagImg"
|
||||
android:layout_width="123dp"
|
||||
android:layout_height="123dp"
|
||||
android:layout_marginTop="8.5dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/comingHint" />
|
||||
|
||||
|
||||
<!-- 开奖-->
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/gold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="7dp"
|
||||
android:text="0"
|
||||
android:textColor="#292601"
|
||||
android:textSize="30sp"
|
||||
android:textStyle="bold"
|
||||
app:dt_drawableRightHeight="30dp"
|
||||
app:dt_drawableRightSrc="@drawable/ic_coin_84"
|
||||
app:dt_drawableRightWidth="30dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/viewOthers"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/giftImg"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/shape_f5d2b1_r12_9f6f41"
|
||||
android:padding="5dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/title" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/giftNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="8dp"
|
||||
android:paddingVertical="2dp"
|
||||
android:text="x0"
|
||||
android:textColor="#292601"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
app:dt_drawableType="shape"
|
||||
app:dt_endColor="#fff437"
|
||||
app:dt_radius="9dp"
|
||||
app:dt_startColor="#ff9f00"
|
||||
app:dt_strikeColor="#9f6f41"
|
||||
app:dt_strikeWidth="1dp"
|
||||
app:layout_constraintEnd_toEndOf="@id/giftImg"
|
||||
app:layout_constraintTop_toTopOf="@id/giftImg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/giftName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textColor="#292601"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/giftImg" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="60:00"
|
||||
android:textColor="#292601"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/bagImg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/viewOthers"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="11dp"
|
||||
android:text="@string/_ver_23_View_Others"
|
||||
android:textColor="#292601"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/bagImg" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvListViewOthers"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="9dp"
|
||||
tools:listitem="@layout/item_room_lucky_bag_view_others"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:spanCount="1"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
android:layout_marginBottom="30dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/viewOthersHint"
|
||||
app:layout_constraintTop_toTopOf="@id/title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/viewOthersHint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="6.5dp"
|
||||
android:visibility="gone"
|
||||
android:text="@string/_ver_23_View_Others_24"
|
||||
android:textColor="@color/white_transparent_80"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/confirm"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/confirm"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:gravity="center"
|
||||
android:minWidth="190dp"
|
||||
android:minHeight="47dp"
|
||||
android:paddingHorizontal="85dp"
|
||||
android:paddingVertical="17dp"
|
||||
android:text="@string/ok"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/bg"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
113
app/src/main/res/layout/item_room_lucky_bag_gift.xml
Normal file
113
app/src/main/res/layout/item_room_lucky_bag_gift.xml
Normal file
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="8dp"
|
||||
tools:background="@color/red_font">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gift"
|
||||
android:layout_width="75dp"
|
||||
android:layout_height="75dp"
|
||||
android:background="@drawable/bg_lucky_bag_gift_item"
|
||||
android:padding="6.5dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/giftName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:lines="1"
|
||||
android:text="@string/loading"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintTop_toBottomOf="@id/gift" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/giftCount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
android:lines="1"
|
||||
android:text="@string/loading"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintTop_toBottomOf="@id/giftName" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/gold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="0000"
|
||||
android:textColor="@color/color_FFEA5C"
|
||||
android:textSize="13sp"
|
||||
app:dt_drawableLeftHeight="16dp"
|
||||
app:dt_drawableLeftSrc="@drawable/ic_coin_84"
|
||||
app:dt_drawableLeftWidth="16dp"
|
||||
app:dt_drawableType="shape"
|
||||
app:layout_constraintEnd_toEndOf="@id/giftName"
|
||||
app:layout_constraintStart_toStartOf="@id/giftName"
|
||||
app:layout_constraintTop_toBottomOf="@+id/giftName" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/bgNumber"
|
||||
android:layout_width="61dp"
|
||||
android:layout_height="21dp"
|
||||
android:layout_marginTop="4dp"
|
||||
app:dt_drawableType="shape"
|
||||
app:dt_radius="4dp"
|
||||
app:dt_soildColor="@color/black_transparent_20"
|
||||
app:layout_constraintEnd_toEndOf="@id/giftName"
|
||||
app:layout_constraintStart_toStartOf="@id/giftName"
|
||||
app:layout_constraintTop_toBottomOf="@id/gold" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/down"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="21dp"
|
||||
app:layout_constraintEnd_toStartOf="@+id/etNum"
|
||||
app:layout_constraintStart_toStartOf="@id/bgNumber"
|
||||
app:layout_constraintTop_toTopOf="@id/bgNumber" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etNum"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:background="@drawable/bg_black_a30_r4"
|
||||
android:gravity="center"
|
||||
android:inputType="number"
|
||||
android:maxLength="2"
|
||||
android:text="0"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/bgNumber"
|
||||
app:layout_constraintEnd_toEndOf="@id/bgNumber"
|
||||
app:layout_constraintStart_toStartOf="@id/bgNumber"
|
||||
app:layout_constraintTop_toTopOf="@+id/bgNumber" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/up"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="21dp"
|
||||
app:layout_constraintEnd_toEndOf="@id/bgNumber"
|
||||
app:layout_constraintStart_toEndOf="@+id/etNum"
|
||||
app:layout_constraintTop_toTopOf="@id/bgNumber" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
16
app/src/main/res/layout/item_room_lucky_bag_time.xml
Normal file
16
app/src/main/res/layout/item_room_lucky_bag_time.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.chwl.library.widget.text.DrawableTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="5dp"
|
||||
android:gravity="center"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="0"
|
||||
android:textColor="@color/color_292601"
|
||||
android:textSize="12sp"
|
||||
app:dt_drawableType="shape"
|
||||
app:dt_endColor="#fff437"
|
||||
app:dt_radius="6dp"
|
||||
app:dt_startColor="#ff9f00" />
|
||||
87
app/src/main/res/layout/item_room_lucky_bag_view_others.xml
Normal file
87
app/src/main/res/layout/item_room_lucky_bag_view_others.xml
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:background="#ffebdb">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/me"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="-4dp"
|
||||
android:paddingHorizontal="4dp"
|
||||
android:paddingVertical="2dp"
|
||||
android:text="@string/ui_widget_userinfodialog_01"
|
||||
android:textColor="#292601"
|
||||
android:textSize="11sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
app:dt_drawableType="shape"
|
||||
app:dt_endColor="#fbcc5f"
|
||||
app:dt_radius="7dp"
|
||||
app:dt_startColor="#ffdc8b"
|
||||
app:layout_constraintBottom_toBottomOf="@id/avatar"
|
||||
app:layout_constraintEnd_toEndOf="@id/avatar"
|
||||
app:layout_constraintStart_toStartOf="@id/avatar"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="loading..."
|
||||
android:textColor="#292601"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@id/time"
|
||||
app:layout_constraintEnd_toStartOf="@id/giftInfo"
|
||||
app:layout_constraintStart_toEndOf="@id/avatar"
|
||||
app:layout_constraintTop_toTopOf="@id/avatar"
|
||||
app:layout_constraintVertical_chainStyle="packed" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="loading..."
|
||||
android:textColor="#CC292601"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/avatar"
|
||||
app:layout_constraintStart_toStartOf="@id/name"
|
||||
app:layout_constraintTop_toBottomOf="@id/name" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/giftInfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/loading"
|
||||
android:textColor="#292601"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="@id/name"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/name" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#edc59f"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
46
app/src/main/res/layout/view_lucky_bag_btn.xml
Normal file
46
app/src/main/res/layout/view_lucky_bag_btn.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="55dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bagImg"
|
||||
android:src="@drawable/default_avatar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<com.netease.nim.uikit.common.ui.draggablebubbles.BubbleView
|
||||
android:id="@+id/number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="18dp"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:singleLine="true"
|
||||
android:textSize="10sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="@+id/bagImg"
|
||||
app:layout_constraintTop_toTopOf="@+id/bagImg"
|
||||
tools:text="123"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.chwl.library.widget.text.DrawableTextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="17dp"
|
||||
android:paddingHorizontal="5dp"
|
||||
android:text="00:00"
|
||||
android:textColor="#fff4d3"
|
||||
android:textSize="12sp"
|
||||
app:dt_drawableType="shape"
|
||||
app:dt_endColor="#e55f00"
|
||||
app:dt_radius="115dp"
|
||||
app:dt_startColor="#cd1700"
|
||||
app:dt_strikeColor="#fff2ca"
|
||||
app:dt_strikeWidth="1dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
48
app/src/main/res/layout/view_room_lucky_bag_notify.xml
Normal file
48
app/src/main/res/layout/view_room_lucky_bag_notify.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="18dp"
|
||||
android:layout_marginBottom="7dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nick"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dp"
|
||||
android:text="@string/loading"
|
||||
android:textColor="#ffea5c"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toEndOf="@id/avatar"
|
||||
app:layout_constraintTop_toTopOf="@id/avatar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/loading"
|
||||
android:textColor="#ffea5c"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/avatar"
|
||||
app:layout_constraintStart_toEndOf="@id/avatar" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnGo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginEnd="30dp"
|
||||
android:src="@drawable/ic_notify_go"
|
||||
android:layout_height="20dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/nick"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/nick" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -348,6 +348,7 @@
|
||||
<color name="color_FF8D46">#FF8D46</color>
|
||||
<color name="color_FF6645">#FF6645</color>
|
||||
<color name="color_FFA957">#FFA957</color>
|
||||
<color name="color_FFEA5C">#ffea5c</color>
|
||||
<color name="color_8461FE">#8461FE</color>
|
||||
<color name="color_CC81EF">#CC81EF</color>
|
||||
<color name="color_589DE7">#589DE7</color>
|
||||
@@ -519,6 +520,7 @@
|
||||
<color name="color_A49EFE">#A49EFE</color>
|
||||
<color name="color_AFAFB3">#AFAFB3</color>
|
||||
<color name="color_529EF2">#529EF2</color>
|
||||
<color name="color_292601">#292601</color>
|
||||
<color name="color_9E9E9E">#9E9E9E</color>
|
||||
<color name="color_E5E5E5">#E5E5E5</color>
|
||||
<color name="color_535353">#535353</color>
|
||||
|
||||
@@ -5403,6 +5403,30 @@ You cannot join again within 24 hours after leaving</string>
|
||||
|
||||
<string name="roomBroadcast">You can use the speaker to speak again after %s~</string>
|
||||
|
||||
|
||||
<string name="_ver_23_setManagerSuccess">成功将 %s 设置为管理员</string>
|
||||
|
||||
<string name="_ver_23_luckBagOpenTitle">开奖弹窗标题</string>
|
||||
<string name="_ver_23_luckBagOpen_Empty">没开到奖品</string>
|
||||
<string name="_ver_23_Click_Open">Click Open</string>
|
||||
<string name="_ver_23_luckBagOpenHint">coming soon</string>
|
||||
<string name="_ver_23_View_Others">View_Others</string>
|
||||
<string name="_ver_23_View_Others_24">View_Others 24小时提示</string>
|
||||
<string name="_ver_23_Choose_Gift">Choose Gift</string>
|
||||
<string name="_ver_23_Waiting_time">Waiting time</string>
|
||||
<string name="_ver_23_sendHint">Send %s gifts , %s coins</string>
|
||||
<string name="_ver_23_Send_Coin_Lucky_Bag">Send Coin Lucky Bag</string>
|
||||
<string name="_ver_23_Send_Gift_Lucky_Bag">Send Gift Lucky Bag</string>
|
||||
<string name="_ver_23_Gift_Lucky_Bag">Gift Lucky Bag</string>
|
||||
<string name="_ver_23_Coin_Lucky_Bag">Coin Lucky Bag</string>
|
||||
<string name="_ver_23_Waiting_time_s_minutes">Waiting time %s minutes</string>
|
||||
<string name="_ver_23_Lucky_Bag_Numbers">Lucky Bag Numbers</string>
|
||||
<string name="_ver_23_Total_spend_s_coins">Total spend %s coins</string>
|
||||
<string name="_ver_23_Modify">Modify</string>
|
||||
<!-- <string name="_ver_23_">xxxx</string>-->
|
||||
<!-- <string name="_ver_23_">xxxx</string>-->
|
||||
<!-- <string name="_ver_23_">xxxx</string>-->
|
||||
|
||||
</resources>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.chwl.core.gift.bean;
|
||||
|
||||
public class LuckyBagGift {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.chwl.core.gift.bean;
|
||||
|
||||
public class LuckyBagTime {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.chwl.core.gift.bean;
|
||||
|
||||
public class LuckyBagViewOthers {
|
||||
public String avatar;
|
||||
public String nick;
|
||||
public long time;
|
||||
public String giftName;
|
||||
public int giftNum;
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.viewbinding.ViewBinding;
|
||||
|
||||
import com.chwl.library.common.fragmentation.ISupportActivity;
|
||||
import com.chwl.library.common.fragmentation.ISupportFragment;
|
||||
import com.chwl.library.common.fragmentation.SupportFragmentDelegate;
|
||||
@@ -22,7 +23,7 @@ import com.chwl.library.common.util.ActivityHelper;
|
||||
import com.chwl.library.common.util.LibLogger;
|
||||
import com.chwl.library.common.util.ViewBindingUtil;
|
||||
|
||||
public abstract class BaseDialogFragment<VB extends ViewBinding> extends DialogFragment implements ISupportFragment {
|
||||
public abstract class BaseCommonDialogFragment<VB extends ViewBinding> extends DialogFragment implements ISupportFragment {
|
||||
private final String TAG = getClass().getSimpleName();
|
||||
private final SupportFragmentDelegate mFragmentDelegate = new SupportFragmentDelegate(this);
|
||||
private View mContentView;
|
||||
@@ -108,4 +108,13 @@ public class BubbleView extends AppCompatTextView {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void setBgColor(String color) {
|
||||
GradientDrawable gradientDrawable = new GradientDrawable();
|
||||
gradientDrawable.setShape(GradientDrawable.RECTANGLE);
|
||||
// gradientDrawable.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable.setCornerRadius(ScreenUtil.dip2px(25));
|
||||
gradientDrawable.setColor(Color.parseColor(color));
|
||||
setBackground(gradientDrawable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user