All Projects → woxingxiao → Xedittext

woxingxiao / Xedittext

XEditText: clear contents easily; show/hide password; separeta contents automatically, such as credit card number; disable Emoji inputs; 带删除功能的EditText;显示或者隐藏密码;可设置自动添加分隔符分割电话号码、银行卡号等;支持禁止Emoji表情符号输入。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Xedittext

BlockEditText
Block EditText is a library provide an input view present in multiple block style that common use in TAC or credit card field.
Stars: ✭ 113 (-76.16%)
Mutual labels:  edittext
RotatableAutofitEditText
Extended EditText which allows to move, rotate and resize text at the same time
Stars: ✭ 51 (-89.24%)
Mutual labels:  edittext
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (-38.4%)
Mutual labels:  edittext
fastedit
安卓端高性能输入框。
Stars: ✭ 38 (-91.98%)
Mutual labels:  edittext
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (-85.86%)
Mutual labels:  edittext
Text-Length-Bar
No description or website provided.
Stars: ✭ 31 (-93.46%)
Mutual labels:  edittext
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (-80.8%)
Mutual labels:  edittext
Edittext Mask
The custom masks for EditText. The solution for input phone numbers, SSN, and so on for Android
Stars: ✭ 413 (-12.87%)
Mutual labels:  edittext
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts
Stars: ✭ 26 (-94.51%)
Mutual labels:  edittext
Editdrawabletext
EditDrawableText - An EditText which makes your Drawable Clickable
Stars: ✭ 288 (-39.24%)
Mutual labels:  edittext
VerifyBlocksView
Android view for providing blocks (Edit Texts) to achieve verification process.
Stars: ✭ 28 (-94.09%)
Mutual labels:  edittext
LG LinesEditView
Android 多行文本输入框 字数统计 限制字数
Stars: ✭ 31 (-93.46%)
Mutual labels:  edittext
currency edittext
Simple currency formatter for Android EditText
Stars: ✭ 64 (-86.5%)
Mutual labels:  edittext
android-prefix-suffix-edit-text
EditText with support for non editable prefix and suffix.
Stars: ✭ 36 (-92.41%)
Mutual labels:  edittext
Autocomplete
Simple yet powerful autocomplete behavior for EditTexts, to avoid working with MultiAutoCompleteTextView APIs.
Stars: ✭ 307 (-35.23%)
Mutual labels:  edittext
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-96.84%)
Mutual labels:  edittext
CustomEditText
Simple Custom EditText for Android like Instagram
Stars: ✭ 23 (-95.15%)
Mutual labels:  edittext
Androidedit
Android EditText的撤销和恢复(反撤销)
Stars: ✭ 449 (-5.27%)
Mutual labels:  edittext
Pinview
A PIN view library for Android. Use to enter PIN/OTP/password etc.
Stars: ✭ 387 (-18.35%)
Mutual labels:  edittext
Bankcardformat
💳 自动格式化银行卡号的EditText,卡号格式化、归属银行及卡别判断
Stars: ✭ 273 (-42.41%)
Mutual labels:  edittext

Download

XEditText

Wrapped common usage of EditText.

Features

  • To clear all text content just by one click on the right. The clear drawable is customizable.
  • Perfectly fit for password input scenario. The toggle drawable is also customizable.
  • You can customize the Separator or Pattern to separate the text content. But the text content by COPY, CUT, and PASTE will no longer be affected by Separator or Pattern you set.
  • Disable Emoji input.
  • Support RTL.🆕
  • Support drawable tint.🆕
  • Customizable padding of drawables' interaction rect area.🆕

Screenshot


demo1 demo2

demo3

Gradle

AndroidX:

    dependencies{
        //e.g.:implementation 'com.xw.repo:xedittext-androidx:2.3.0'
        implementation 'com.xw.repo:xedittext-androidx:${LATEST_VERSION}'
    }

Support:

    dependencies{
        //e.g.:implementation 'com.xw.repo:xedittext:2.3.0'
        implementation 'com.xw.repo:xedittext:${LATEST_VERSION}'
    }

Usage

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="default, just like EditText"
      app:x_disableClear="true"/>

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="clear drawable"/>

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="default password input"
      android:inputType="textPassword"/>

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="password input, custom drawables"
      android:inputType="textPassword" <!-- don't set gravity to center, center_horizontal, right or end, otherwise the ClearDrawable will not appear. -->
      app:x_clearDrawable="@mipmap/ic_clear" <!--support vector drawable-->
      app:x_hidePwdDrawable="@mipmap/ic_hide" <!--support vector drawable-->
      app:x_showPwdDrawable="@mipmap/ic_show"/> <!--support vector drawable-->

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="the pattern to separate the content"
      app:x_pattern="3,4,4"
      app:x_separator=" "/>

  <com.xw.repo.XEditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="custom interaction padding"
      android:inputType="textPassword"
      app:x_interactionPadding="16dp"/>

Call .setOnXTextChangeListener() instead of .addTextChangedListener() Call .setOnXFocusChangeListener() instead of .setOnFocusChangeListener()

Check the sample for more details.

License

The MIT License (MIT)

Copyright (c) 2016 woxingxiao

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].