How to use local style on a classic Android project ? #537
-
Hello, I would like to use a local style on a classic Android project, with multplatform I've found we can use BaseStyle.Uri(Res.getUri(...)). But I don't find something an Android only alternative. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Compose Multiplatform on Android is the same thing as Jetpack Compose. So the usage should be the same. Could you share more about what's going wrong when you try that on Android? |
Beta Was this translation helpful? Give feedback.
-
To use the library for android only use this syntax: |
Beta Was this translation helpful? Give feedback.
-
It works with an instruction such as: However, I'm stuck right after that. When switching between two styles loaded in this way, the first one works fine, but replacing it with the second one doesn't seem to work. I'm closing this issue and creating a new one so as not to mix topics. |
Beta Was this translation helpful? Give feedback.
It works with an instruction such as:
BaseStyle.Uri("asset://style.json")
Thank you both for your help.However, I'm stuck right after that. When switching between two styles loaded in this way, the first one works fine, but replacing it with the second one doesn't seem to work.
I'm closing this issue and creating a new one so as not to mix topics.