Colton Idle
11/14/2025, 9:00 PMChrimaeon
11/14/2025, 9:42 PMJonathan
11/15/2025, 9:41 PM.sp would take care of appropriately scaling text and you'd use WindowSize classes to adjust layouts not dimensions.Chrimaeon
11/15/2025, 10:07 PMChrimaeon
11/15/2025, 10:09 PMWhen defining text sizes, you can instead use scalable pixels (sp) as your units. The sp unit is the same size as a dp, by default, but it resizes based on the user's preferred text size. Never use sp for layout sizes.https://developer.android.com/training/multiscreen/screendensities#:~:text=When%20defining%20text%20sizes%2C%20you,use%20sp%20for%20layout%20sizes.
Jonathan
11/15/2025, 10:12 PMChrimaeon
11/15/2025, 10:34 PMCsaba Szugyiczki
11/17/2025, 8:38 AMval windowInfo = LocalWindowInfo.current
val screenWidthDp = windowInfo.containerSize.widthStylianos Gakis
11/17/2025, 8:58 AMJonathan
11/17/2025, 2:28 PMWindowSize for portrait and landscape, depending on how you’re using WindowSizes, I think rotating from landscape to portrait could cause you text to scale as well.Jonathan
11/17/2025, 2:29 PMAlex Vanyo
11/17/2025, 6:32 PMCsaba Szugyiczki
11/18/2025, 8:59 AM