We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4c676 commit 551212aCopy full SHA for 551212a
xr/src/main/java/com/example/xr/compose/Views.kt
@@ -44,10 +44,12 @@ private class ActivityWithSubspaceContent : ComponentActivity() {
44
override fun onCreate(savedInstanceState: Bundle?) {
45
super.onCreate(savedInstanceState)
46
// [START androidxr_compose_ActivityWithSubspaceContent]
47
- setSubspaceContent {
48
- SpatialPanel(
49
- modifier = SubspaceModifier.height(500.dp).width(500.dp).depth(25.dp)
50
- ) { MyCustomView(this) }
+ setContent {
+ Subspace {
+ SpatialPanel(
+ modifier = SubspaceModifier.height(500.dp).width(500.dp).depth(25.dp)
51
+ ) { MyCustomView(this) }
52
+ }
53
}
54
// [END androidxr_compose_ActivityWithSubspaceContent]
55
0 commit comments