[m1]
[背景透明]
This commit is contained in:
yangyakun
2023-01-29 18:48:45 +08:00
parent 947517f98b
commit a9291ac5bc
3 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,5 @@
package com.mogo.och.bus.passenger.ui
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.util.Log
import android.widget.CompoundButton
@@ -73,7 +71,6 @@ class BusPassengerFunctionFragment :
override fun initViews() {
dialog?.window?.let {
BarUtils.hideStatusBarAndSticky(it)
it.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT));
}
dialog?.setCancelable(false)
}

View File

@@ -2,15 +2,17 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/holo_green_dark"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:text="soft"
<androidx.constraintlayout.widget.ConstraintLayout
app:layout_constraintDimensionRatio="3:1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
app:layout_constraintBottom_toBottomOf="parent"
android:background="@android:color/holo_green_dark"
android:layout_width="0dp"
android:layout_height="0dp">
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -17,6 +17,7 @@
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:backgroundDimEnabled">false</item>
</style>