Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to disable dark mode of application in android studio

<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
    <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
</style>
Comment

dark mode app android studio

YOUR ACTIVITY SHOULD extend AppCompatActivity

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); //night
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);  //day
Comment

PREVIOUS NEXT
Code Example
Java :: add opacity to activity android 
Java :: java declare array 
Java :: how to declare and insert value to arraylist in same line in java 
Java :: spring.jpa.properties.hibernate 
Java :: get request in java 
Java :: how to get data from radio group in android 
Java :: str.substring last 2 java 
Java :: how to initialize array in java 
Java :: java remove last character 
Java :: java producer consumer 
Java :: sort descending java stream 
Java :: how to find location of java jdk 
Java :: build.plugins.plugin.version 
Java :: java string replace character at position 
Java :: fill two dimensional array java 
Java :: length of array in java 
Java :: for each loop java string array 
Java :: how to return array in java 
Java :: java booleans 
Java :: java how to compare strings 
Java :: java string not equal 
Java :: immutable map java 
Java :: java swing dialog box 
Java :: java loop using input user 
Java :: java variables 
Java :: java program for multiplication table 
Java :: java reverse string 
Java :: java print stack 
Java :: hide steam games from friends 
Java :: spring security auto login after register 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =