diff --git a/README.md b/README.md index e7f75a5..a760b30 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ Add _xmlns:mask="http://schemas.android.com/apk/res-auto"_ to your layout xml ro android:layout_height="wrap_content" android:inputType="phone" android:typeface="monospace" - mask:allowed_chars="1234567890" - mask:mask="+7(###)###-##-##" + app:allowed_chars="1234567890" + app:mask="+7(###)###-##-##" android:hint="1234567890" app:keep_hint="true" /> @@ -51,8 +51,8 @@ You can optionally set the representation character (in case you don't want to u You can also change the mask and the representation character programatically: @@ -71,7 +71,7 @@ To enable Enter softkey action (IME action): @@ -103,8 +103,8 @@ compile 'ru.egslava:MaskedEditText:1.0.5' android:layout_height="wrap_content" android:inputType="phone" android:typeface="monospace" - mask:allowed_chars="1234567890" - mask:mask="+7(###)###-##-##" + app:allowed_chars="1234567890" + app:mask="+7(###)###-##-##" android:hint="1234567890" app:keep_hint="true" /> @@ -116,8 +116,8 @@ _mask_ задаёт требуемую маску, символ '#' задаёт Кроме того, всё тоже самое можно сделать и программно: