Dan Peluso
09/17/2021, 6:51 PMcontext.display?.getRealMetrics(displayMetrics)
but that seems to return a much larger value than I'm looking for. I know for Pixel 2 the height is ~730, but I get 1920 when using displayMetrics.heightPixels
. In other words, I'd like to see programmatically which devices will use values
and which will use values-h700dp
Dan Peluso
09/17/2021, 7:09 PMval height = resources.configuration.screenHeightDp