1:修改酒吧房小黑屋展示的金币余额视图
This commit is contained in:
24
BaseModule/src/main/res/drawable/rounded_left_corners.xml
Normal file
24
BaseModule/src/main/res/drawable/rounded_left_corners.xml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<!-- 设置渐变效果:100%黑色 -> 50%黑色 -> 13%黑色 -->
|
||||||
|
<gradient
|
||||||
|
android:startColor="#FF000000"
|
||||||
|
android:centerColor="#40FFFFFF"
|
||||||
|
android:endColor="#FF212121"
|
||||||
|
android:angle="0" />
|
||||||
|
|
||||||
|
<!-- 设置白色边框 -->
|
||||||
|
<!-- <stroke-->
|
||||||
|
<!-- android:width="0.1dp"-->
|
||||||
|
<!-- android:color="#FFFFFF" />-->
|
||||||
|
|
||||||
|
<!-- 设置圆角,只设置左上和左下 -->
|
||||||
|
<corners
|
||||||
|
android:topLeftRadius="@dimen/dp_100"
|
||||||
|
android:bottomLeftRadius="@dimen/dp_100"
|
||||||
|
android:topRightRadius="0dp"
|
||||||
|
android:bottomRightRadius="0dp" />
|
||||||
|
|
||||||
|
</shape>
|
||||||
@@ -1110,7 +1110,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
|
|
||||||
// TODO: 充值赋值
|
// TODO: 充值赋值
|
||||||
fun goldAssignment(gold_coin: String){
|
fun goldAssignment(gold_coin: String){
|
||||||
mBinding?.tvGold?.text = "余额:"+ gold_coin
|
mBinding?.tvGold?.text = "余额:"+ gold_coin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -558,7 +558,7 @@
|
|||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/cl_gold"
|
android:id="@+id/cl_gold"
|
||||||
android:layout_width="@dimen/dp_98"
|
android:layout_width="@dimen/dp_105"
|
||||||
android:layout_height="@dimen/dp_43"
|
android:layout_height="@dimen/dp_43"
|
||||||
android:layout_marginBottom="@dimen/dp_44"
|
android:layout_marginBottom="@dimen/dp_44"
|
||||||
android:background="@drawable/rounded_left_corners"
|
android:background="@drawable/rounded_left_corners"
|
||||||
@@ -593,12 +593,11 @@
|
|||||||
android:id="@+id/tv_first_gold"
|
android:id="@+id/tv_first_gold"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:textColor="@color/blue1"
|
android:textColor="@color/blue1"
|
||||||
android:textSize="14sp"
|
android:layout_marginStart="@dimen/dp_5"
|
||||||
|
android:textSize="11sp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/iv_gold"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_gold"
|
app:layout_constraintTop_toBottomOf="@+id/tv_gold"
|
||||||
android:text="去充值" />
|
android:text="去充值" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user