Skip to content

Commit cc8ac2c

Browse files
committed
First (pilot) commit for getting this phase of the snippets in.
Adds the two snippets that were created for: https://developer.android.com/quick-guides/content/auto-format-phone-number?hl=en
1 parent 05ef287 commit cc8ac2c

File tree

1 file changed

+3
-3
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/text

1 file changed

+3
-3
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/text/TextSnippets.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ fun BasicMarqueeSample() {
769769
}
770770
// [END android_compose_text_marquee]
771771

772-
// [START android_compose_text_auto_format_phone-number_textfieldconfig]
772+
// [START android_compose_text_auto_format_phone_number_textfieldconfig]
773773
@Composable
774774
fun PhoneNumber() {
775775
var phoneNumber by rememberSaveable { mutableStateOf("") }
@@ -790,7 +790,7 @@ fun PhoneNumber() {
790790
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number)
791791
)
792792
}
793-
// [END android_compose_text_auto_format_phone-number_textfieldconfig]
793+
// [END android_compose_text_auto_format_phone_number_textfieldconfig]
794794

795795
// [START android_compose_text_auto_format_phone-number_transformtext]
796796
class NanpVisualTransformation() : VisualTransformation {
@@ -834,7 +834,7 @@ class NanpVisualTransformation() : VisualTransformation {
834834

835835
}
836836
}
837-
// [END android_compose_text_auto_format_phone_number_transformtext]
837+
// [END android_compose_text_auto_format_phone-number_transformtext]
838838

839839
private val firaSansFamily = FontFamily()
840840

0 commit comments

Comments
 (0)