Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

splash full screen android

private fun setStatusBarGradiant(activity: Activity) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            val window: Window = activity.window
            val background = ContextCompat.getDrawable(this,R.drawable.splash_bg)
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
            window.statusBarColor = activity.resources.getColor(android.R.color.transparent)
            window.navigationBarColor = activity.resources.getColor(android.R.color.transparent)
            window.setBackgroundDrawable(background)
        }
    }
Comment

PREVIOUS NEXT
Code Example
Java :: run specific test case junit 
Java :: enhanced for loop java 
Java :: android hide and show bottom navigation 
Java :: loop and save letters in a string java 
Java :: java enum in switch statement 
Java :: remove an element from an array in java 
Java :: java long literal 
Java :: valid parentheses leetcode solution java 
Java :: Java forEach() Method 
Java :: static method in non static class java 
Java :: inorder traversal 
Java :: keycloak spring boot application.properties 
Java :: kafkalistener annotation pass topic from properties file 
Java :: java code to get all leaf nodes of a xml 
Java :: enter a word and print letters java 
Java :: random class in java 
Java :: execute a multi line shell comand in java 
Java :: read and existing dir content in java 
Java :: set the content of a Jlist from an other Jlist (Swing) 
Java :: find the key that has the least value in map java 
Java :: what is java.io example 
Java :: android java navigation bar show icon with title 
Java :: sysout is not working in eclipse 
Java :: Iterating The Queue Elements 
Java :: java find index of first alpha character in string 
Java :: java hashmap get nonexistent key 
Java :: oxygen cylinder management program in java 
Java :: @Bean public ModelMapper modelMapper() { ModelMapper modelMapper = new ModelMapper(); modelMapper.getConfiguration() .setMatchingStrategy(MatchingStrategies.STRICT); } 
Java :: convert java code to kotlin online editor 
Java :: android on change class event 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =