File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
wear/src/main/java/com/example/wear/snippets/voiceinput Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -77,23 +77,28 @@ fun VoiceInputScreen() {
77
77
}
78
78
}
79
79
80
- // [START_EXCLUDE android_wear_voice_input]
81
80
val scrollState = rememberScrollState()
82
81
83
82
ScreenScaffold (scrollState = scrollState) {
83
+ // rest of implementation here
84
+ // [START_EXCLUDE]
84
85
val padding = ScalingLazyColumnDefaults .padding(
85
86
first = ItemType .Text ,
86
87
last = ItemType .Chip
87
88
)()
89
+ // [END_EXCLUDE]
88
90
Column (
91
+ // rest of implementation here
92
+ // [START_EXCLUDE]
89
93
modifier = Modifier
90
94
.fillMaxSize()
91
95
.verticalScroll(scrollState)
92
96
.rotaryWithScroll(scrollState)
93
97
.padding(padding),
94
98
verticalArrangement = Arrangement .Center
95
99
) {
96
- // [END_EXCLUDE android_wear_voice_input]
100
+ // [END_EXCLUDE]
101
+
97
102
// Create an intent that can start the Speech Recognizer activity
98
103
val voiceIntent: Intent = Intent (RecognizerIntent .ACTION_RECOGNIZE_SPEECH ).apply {
99
104
putExtra(
@@ -114,9 +119,7 @@ fun VoiceInputScreen() {
114
119
label = stringResource(R .string.voice_input_label),
115
120
secondaryLabel = textForVoiceInput
116
121
)
117
- // [START_EXCLUDE android_wear_voice_input]
118
122
}
119
123
}
120
- // [END_EXCLUDE android_wear_voice_input]
121
124
// [END android_wear_voice_input]
122
125
}
You can’t perform that action at this time.
0 commit comments