File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/components Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import androidx.compose.runtime.mutableIntStateOf
2929import com.example.compose.snippets.R
3030import androidx.compose.ui.res.painterResource
3131
32+ // [START android_compose_components_togglebuttonexample]
3233@Preview
3334@Composable
3435fun ToggleIconButtonExample () {
@@ -44,6 +45,9 @@ fun ToggleIconButtonExample() {
4445 )
4546 }
4647}
48+ // [END android_compose_components_togglebuttonexample]
49+
50+ // [START android_compose_components_iconbutton]
4751@Composable
4852fun MomentaryIconButton (
4953 unselectedImage : Int ,
@@ -75,7 +79,9 @@ fun MomentaryIconButton(
7579 )
7680 }
7781}
82+ // [END android_compose_components_iconbutton]
7883
84+ // [START android_compose_components_momentaryiconbuttons]
7985@Preview()
8086@Composable
8187fun MomentaryIconButtonExample () {
@@ -104,3 +110,4 @@ fun MomentaryIconButtonExample() {
104110 )
105111 }
106112}
113+ // [END android_compose_components_momentaryiconbuttons]
You can’t perform that action at this time.
0 commit comments