I’ve found these syntaxes in Google’s Android repo...
# language-proposals
w
I’ve found these syntaxes in Google’s Android repository. Is this a valid syntax? Or is there a possibility in the future?
Copy code
<SemanticsComponentNode
    container
    explicitChildNodes
    enabled
    checked
    selected
    button
    header=null
    textField=null
    focused=null
    inMutuallyExclusiveGroup
    obscured=null
    scopesRoute=null
    namesRoute=null
    hidden
    label
    value
    hint=null
    textDirection
    testTag=(testTag ?: providedTestTag)
    actions>
    TestTag(tag=DefaultTestTag) {
        children()
    }
</SemanticsComponentNode>
https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/ui/framework/src/main/java/androidx/ui/core/Semantics.kt#130
k
Did you mean to ask that in #compose?
w
Okay, thanks. But I’m curious in terms of language.
k
The compose team was experimenting with embedding XML in Kotlin code, but they've decided to not do that.
w
May I ask the source for that comment?
k
Search for XML in #compose.
w
Thank you!