Skip to content

Commit

Permalink
add window background
Browse files Browse the repository at this point in the history
  • Loading branch information
stevechulsdev committed Sep 20, 2019
1 parent b8f8d1c commit dc0ceaf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.stevechulsdev.scdisplayutils
import android.app.Activity
import android.content.Context
import android.graphics.*
import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.util.Log
import android.view.Gravity
Expand Down Expand Up @@ -66,6 +67,7 @@ object ScDisplayUtils {
}

parent = activity.window.decorView.rootView as ViewGroup
activity.window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
val layoutParams = RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT)

rl = RelativeLayout(activity.applicationContext)
Expand Down

0 comments on commit dc0ceaf

Please sign in to comment.