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
4747
4848@Composable
4949fun navigation () {
50+ // [START android_wear_navigation]
5051 AppScaffold {
51- // [START android_wear_navigation]
5252 val navController = rememberSwipeDismissableNavController()
5353 SwipeDismissableNavHost (
5454 navController = navController,
@@ -63,16 +63,20 @@ fun navigation() {
6363 MessageDetail (id = it.arguments?.getString(" id" )!! )
6464 }
6565 }
66- // [END android_wear_navigation]
6766 }
67+ // [START_EXCLUDE]
6868}
6969
7070@OptIn(ExperimentalHorologistApi ::class )
7171@Composable
7272fun MessageDetail (id : String ) {
73+ // [END_EXCLUDE]
74+ // .. Screen level content goes here
7375 val scrollState = rememberScrollState()
7476
7577 ScreenScaffold (scrollState = scrollState) {
78+ // Screen content goes here
79+ // [END android_wear_navigation]
7680 val padding = ScalingLazyColumnDefaults .padding(
7781 first = ItemType .Text ,
7882 last = ItemType .Text
You can’t perform that action at this time.
0 commit comments