File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ val spanCount = AppDimens.calculateAvailableItemCount(
265265
266266``` kotlin
267267// Android - Advanced screen qualifiers
268- val buttonSize = 80 .scaledDp()
268+ val buttonSize = 80 .dynamicDp() // or fixedDp
269269 .screen(UiModeType .WATCH , DpQualifier .SMALL_WIDTH , 200 , 40 .dp) // Priority 1: Intersection
270270 .screen(UiModeType .CAR , 120 .dp) // Priority 2: UI Mode
271271 .screen(DpQualifier .SMALL_WIDTH , 720 , 150 ) // Priority 3: Dp Qualifier
@@ -280,7 +280,7 @@ val buttonSize = 80.scaledDp()
280280// Android - Performance settings
281281AppDimens .globalCacheEnabled = true // Global cache control
282282
283- val dimension = 100 .scaledDp ()
283+ val dimension = 100 .dynamicDp ()
284284 .cache(true ) // Instance-level cache
285285 .toPx(resources) // Cached calculation
286286```
You can’t perform that action at this time.
0 commit comments