Skip to content

Commit 1891869

Browse files
authored
Merge pull request #17 from android/feature/fix-image-snippets
Fix image snippet names
2 parents 45684d1 + 1427e9b commit 1891869

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/images/CustomizeImageSnippets.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ fun ClipImageExample() {
113113
@Preview
114114
@Composable
115115
fun ClipRoundedCorner() {
116+
// [START android_compose_clip_image_rounded_corner]
116117
Image(
117118
painter = painterResource(id = R.drawable.dog),
118119
contentDescription = stringResource(id = R.string.dog_content_description),
@@ -121,6 +122,7 @@ fun ClipRoundedCorner() {
121122
.size(200.dp)
122123
.clip(RoundedCornerShape(16.dp))
123124
)
125+
// [END android_compose_clip_image_rounded_corner]
124126
}
125127

126128
@Preview
@@ -323,7 +325,7 @@ fun ImageBlur() {
323325
@Preview
324326
@Composable
325327
fun ImageBlurEdgeTreatment() {
326-
// [START android_compose_image_blur]
328+
// [START android_compose_image_blur_edge_treatment]
327329
Image(
328330
painter = painterResource(id = R.drawable.dog),
329331
contentDescription = stringResource(id = R.string.dog_content_description),
@@ -337,5 +339,5 @@ fun ImageBlurEdgeTreatment() {
337339
)
338340
.clip(RoundedCornerShape(8.dp))
339341
)
340-
/// [END android_compose_image_blur]
342+
/// [END android_compose_image_blur_edge_treatment]
341343
}

0 commit comments

Comments
 (0)