Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

adjust font scale in android studio

private fun adjustFontScale(configuration: Configuration) {
        if (configuration.fontScale > 0.90) {
            configuration.fontScale = 0.90f
            val metrics = resources.displayMetrics
            val wm = baseContext.getSystemService(WINDOW_SERVICE) as WindowManager
            wm.defaultDisplay.getMetrics(metrics)
            metrics.scaledDensity = configuration.fontScale * metrics.density
            baseContext.resources.updateConfiguration(configuration, metrics)
        }
    }
Comment

android studio make font bigger

#click Ctrl+Shift+A, then search "font" and click on "increase font size"
Comment

PREVIOUS NEXT
Code Example
Java :: get executable path java 
Java :: javafx fxmlloader location is not set 
Java :: split with multiple condition in java 
Java :: java methods 
Java :: window in java swing 
Java :: java not equal to 
Java :: do you need java installed for kafka 
Java :: add two variables in Java 
Java :: spring valid request body custom message 
Java :: how to use string variables with an if statement in java 
Java :: unchecked exception in java 
Java :: how to create object of abstract class in java 
Java :: open new fragment from fragment 
Java :: java double to float 
Java :: reverse loop in java 
Java :: spring properties list 
Java :: better way to check string on null and empty java 
Java :: java method parameters 
Java :: java fields 
Java :: jsp initialization 
Java :: maven skip make-assembly 
Java :: add infinite values to variable java 
Java :: how to add main and laucher activity in android manifest 
Java :: how to create Java ArrayList 
Java :: how to read a table from text file in java 
Java :: how to know if a file is iso-8859-1 encoded in java 
Java :: why are my if statements not working with inputs in java 
Java :: java sub function 
Java :: python discord embed generator 
Java :: Java comment vérifier une égalité de String 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =