[状态栏]小红点UI调整
This commit is contained in:
@@ -44,7 +44,7 @@ internal class StatusView(private val model: StatusModel, ctx: Context): Constra
|
||||
|
||||
private fun init() {
|
||||
isClickable = true
|
||||
dot.background = shape(solid = Color.RED, shape = GradientDrawable.OVAL, width = 30.PX, height = 30.PX)
|
||||
dot.background = shape(solid = Color.parseColor("#F33F1D"), shape = GradientDrawable.OVAL, width = 30.PX, height = 30.PX)
|
||||
iv.also {
|
||||
it.background = ContextCompat.getDrawable(context, R.drawable.icon_dev_status_un_fold)
|
||||
it.onClick { v ->
|
||||
|
||||
@@ -29,8 +29,10 @@
|
||||
|
||||
<View
|
||||
android:id="@+id/dot"
|
||||
android:layout_width="30px"
|
||||
android:layout_height="30px"
|
||||
android:layout_width="20px"
|
||||
android:layout_height="20px"
|
||||
android:layout_marginEnd="5px"
|
||||
android:layout_marginTop="5px"
|
||||
app:layout_constraintEnd_toEndOf="@+id/iv"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
Reference in New Issue
Block a user