File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/images Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ fun ClipImageExample() {
113
113
@Preview
114
114
@Composable
115
115
fun ClipRoundedCorner () {
116
+ // [START android_compose_clip_image_rounded_corner]
116
117
Image (
117
118
painter = painterResource(id = R .drawable.dog),
118
119
contentDescription = stringResource(id = R .string.dog_content_description),
@@ -121,6 +122,7 @@ fun ClipRoundedCorner() {
121
122
.size(200 .dp)
122
123
.clip(RoundedCornerShape (16 .dp))
123
124
)
125
+ // [END android_compose_clip_image_rounded_corner]
124
126
}
125
127
126
128
@Preview
@@ -323,7 +325,7 @@ fun ImageBlur() {
323
325
@Preview
324
326
@Composable
325
327
fun ImageBlurEdgeTreatment () {
326
- // [START android_compose_image_blur ]
328
+ // [START android_compose_image_blur_edge_treatment ]
327
329
Image (
328
330
painter = painterResource(id = R .drawable.dog),
329
331
contentDescription = stringResource(id = R .string.dog_content_description),
@@ -337,5 +339,5 @@ fun ImageBlurEdgeTreatment() {
337
339
)
338
340
.clip(RoundedCornerShape (8 .dp))
339
341
)
340
- // / [END android_compose_image_blur ]
342
+ // / [END android_compose_image_blur_edge_treatment ]
341
343
}
You can’t perform that action at this time.
0 commit comments