### Implement XEditText in Android Layout XML
Source: https://github.com/woxingxiao/xedittext/blob/master/README.md
Examples demonstrating various configurations of XEditText in an Android XML layout. This includes basic usage, enabling clearable text, password input with custom drawables, text formatting with separators and patterns, and customizing interaction padding for drawables.
```xml
app:x_clearDrawable="@mipmap/ic_clear"
app:x_hidePwdDrawable="@mipmap/ic_hide"
app:x_showPwdDrawable="@mipmap/ic_show"/>
```
--------------------------------
### Add XEditText Dependency to Android Project
Source: https://github.com/woxingxiao/xedittext/blob/master/README.md
Instructions for adding the XEditText library to an Android project using Gradle. It provides separate dependencies for AndroidX and Support Library projects, allowing developers to choose based on their project's compatibility.
```groovy
dependencies{
//e.g.:implementation 'com.xw.repo:xedittext-androidx:2.3.0'
implementation 'com.xw.repo:xedittext-androidx:${LATEST_VERSION}'
}
```
```groovy
dependencies{
//e.g.:implementation 'com.xw.repo:xedittext:2.3.0'
implementation 'com.xw.repo:xedittext:${LATEST_VERSION}'
}
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.