https://kotlinlang.org logo
#compose-wear
Title
# compose-wear
y

yschimke

02/07/2022, 10:45 AM
What is the library approach to dealing with @DimenRes in APIs? Does compose-wear always expect resource values to be resolved outside of the APIs? cc @John Nichol @saryong
s

saryong

02/07/2022, 11:25 AM
As far a I know, Compose supports only DP from dimension resource. (
dimensionResource
)
j

John Nichol

02/07/2022, 11:55 AM
Nothing special in Compose for WearOS - we just follow Core Compose
a

Adam Powell

02/07/2022, 2:21 PM
Working with dimen resources in compose UI is pretty rare and generally only done for code that shares the same values between both compose and view layout xml
2 Views