Skip to content

Commit 9815cbe

Browse files
committed
add background color
1 parent 5e45da0 commit 9815cbe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:app="http://schemas.android.com/apk/res-auto"
77
android:layout_width="match_parent"
88
android:layout_height="match_parent"
9+
android:background="@android:color/white"
910
tools:context=".MainActivity">
1011

1112
<Button

scdisplayutils/src/main/java/com/stevechulsdev/scdisplayutils/ScDisplayUtils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import android.view.ViewGroup
1111
import android.widget.ProgressBar
1212
import android.widget.RelativeLayout
1313
import android.widget.Toast
14+
import androidx.core.content.ContextCompat
1415
import com.google.android.material.snackbar.Snackbar
1516
import org.jetbrains.anko.alert
1617
import java.lang.Exception
@@ -69,6 +70,7 @@ object ScDisplayUtils {
6970
rl!!.gravity = Gravity.CENTER
7071
rl!!.addView(mProgressBar)
7172
rl!!.isClickable = true
73+
rl!!.setBackgroundColor(Color.parseColor("#80000000"))
7274

7375
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT)
7476

0 commit comments

Comments
 (0)