Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
Expand All @@ -51,8 +51,8 @@ You can optionally set the representation character (in case you don't want to u
<br.com.sapereaude.maskedEditText.MaskedEditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
mask:mask="ccc.ccc.ccc-cc"
mask:char_representation="c"
app:mask="ccc.ccc.ccc-cc"
app:char_representation="c"
/>

You can also change the mask and the representation character programatically:
Expand All @@ -71,7 +71,7 @@ To enable Enter softkey action (IME action):

<br.com.sapereaude.maskedEditText.MaskedEditText
...
mask:enable_ime_action="true"
app:enable_ime_action="true"
...
/>

Expand Down Expand Up @@ -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"
/>
Expand All @@ -116,8 +116,8 @@ _mask_ задаёт требуемую маску, символ '#' задаёт
<br.com.sapereaude.maskedEditText.MaskedEditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
mask:mask="ccc.ccc.ccc-cc"
mask:char_representation="c"
app:mask="ccc.ccc.ccc-cc"
app:char_representation="c"
/>

Кроме того, всё тоже самое можно сделать и программно:
Expand Down