Git Product home page Git Product logo

xedittext's Introduction

XEditText

image image


###Attributes

attr format describe
x_separator String 分隔符,默认是一个空格
x_customizeMarkerEnable boolean 是否自定义Marker
x_showMarkerTime enum 显示Marker的时间:after_input(default), before_input, always
x_iOSStyleEnable boolean 是否使用iOS风格

###Methods:

方法名 描述
setSeparator(String separator) 自定义分隔符,默认是一个空格
setHasNoSeparator(boolean hasNoSeparator) 设置无分隔符,功能同普通EditText
setPattern(int[] pattern) 自定义模板,默认常见手机号分割,即int[]{3,4,4}
setClearDrawable(int resId) 自定义删除图标的图片资源
setTextToSeparate(CharSequence c) 设置需要自动模板转换的内容
getNonSeparatorText() 获得无分割符的内容
setOnTextChangeListener(OnTextChangeListener listener) 设置输入监听,功能与EditText的addOnTextChangeListener()完全一样
setCustomizeMarkerEnable(boolean customizeMarkerEnable) 设置是否自定义Marker
setOnMarkerClickListener(OnMarkerClickListener markerClickListener) 自定义Marker的点击监听
setShowMarkerTime(ShowMarkerTime showMarkerTime) 设置显示Marker的时间
setiOSStyleEnable(boolean iOSStyleEnable) 设置是否使用iOS风格

xedittext's People

Contributors

woxingxiao avatar

Watchers

James Cloos avatar lijianqun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.