File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
wear/src/main/java/com/example/wear/snippets/navigation Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ import com.google.android.horologist.compose.rotaryinput.rotaryWithScroll
47
47
48
48
@Composable
49
49
fun navigation () {
50
+ // [START android_wear_navigation]
50
51
AppScaffold {
51
- // [START android_wear_navigation]
52
52
val navController = rememberSwipeDismissableNavController()
53
53
SwipeDismissableNavHost (
54
54
navController = navController,
@@ -63,16 +63,20 @@ fun navigation() {
63
63
MessageDetail (id = it.arguments?.getString(" id" )!! )
64
64
}
65
65
}
66
- // [END android_wear_navigation]
67
66
}
67
+ // [START_EXCLUDE]
68
68
}
69
69
70
70
@OptIn(ExperimentalHorologistApi ::class )
71
71
@Composable
72
72
fun MessageDetail (id : String ) {
73
+ // [END_EXCLUDE]
74
+ // .. Screen level content goes here
73
75
val scrollState = rememberScrollState()
74
76
75
77
ScreenScaffold (scrollState = scrollState) {
78
+ // Screen content goes here
79
+ // [END android_wear_navigation]
76
80
val padding = ScalingLazyColumnDefaults .padding(
77
81
first = ItemType .Text ,
78
82
last = ItemType .Text
You can’t perform that action at this time.
0 commit comments