Tom Truyen
07/22/2024, 1:03 PM// Fixes the issue that the DisplayMetrics 1.5x's the size of everything
override fun attachBaseContext(newBase: Context?) {
val newOverride = Configuration(newBase?.resources?.configuration)
newOverride.densityDpi = DisplayMetrics.DENSITY_MEDIUM
applyOverrideConfiguration(newOverride)
super.attachBaseContext(newBase)
}
This forces our scaling to just be 1.0
The thing is that when you use a Dialog it seems to only use 2/3th of the available height and width of the screen to display its contents. The scrim however does fill the entire screen. This issue also does not happen on an Emulator, only on the physical device which is build with a Custom AOSP PCB board.
Does anyone know how I can force the Dialog Content to match the size of the scrim? FillMaxSize does only fill 2/3th...Alex Styl
07/22/2024, 1:19 PMTom Truyen
07/22/2024, 2:12 PM