File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
scdisplayutils/src/main/java/com/stevechulsdev/scdisplayutils Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import android.view.ViewGroup
1111import android.widget.ProgressBar
1212import android.widget.RelativeLayout
1313import android.widget.Toast
14+ import androidx.core.content.ContextCompat
1415import com.google.android.material.snackbar.Snackbar
1516import org.jetbrains.anko.alert
1617import 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
You can’t perform that action at this time.
0 commit comments