MaterialEditText
================
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MaterialEditText-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1085)
![MaterialEditText](./images/material_edittext.png)
2.0.0 snapshot:
```groovy
maven { url 'https://oss.sonatype.org/content/groups/public' }
```
```groovy
compile 'com.rengwuxian.materialedittext:library:2.0.0-SNAPSHOT'
```
**NOTE: There is no doc or sample for `MaterialEditText` v2.0 for now. They will come together with the lib's release version within several days.**
AppCompat v21 makes it easy to use Material Design EditText in our apps, but it's so limited. If you've tried that, you know what I mean. So I wrote MaterialEditText, the EditText in Material Design, with more features that [Google Material Design Spec](http://www.google.com/design/spec/components/text-fields.html) has introduced.
## Features
1. **Basic**
![Basic](./images/basic.png)
2. **Floating Label**
normal:
![FloatingLabel](./images/floating_label.png)
highlight:
![HighlightFloatingLabel](./images/highlight.png)
custom floating label text:
![CustomFloatingLabelText](./images/custom_floating_label_text.png)
3. **Single Line Ellipsis**
![SingLineEllipsis](./images/ellipsis.png)
4. **Max/Min Characters**
![MaxCharacters](./images/max_characters.png)
![MinCharacters](./images/min_characters.png)
![MinAndMaxCharacters](./images/min_and_max.png)
5. **Helper Text and Error Text**
![HelperTextAndErrorText](./images/helper_error_text.png)
6. **Custom Base/Primary/Error/HelperText Colors**
![CustomColors](./images/custom_colors.png)
7. **Custom accent typeface**
floating label, error/helper text, character counter, etc.
![CustomAccentTypeface](./images/custom_accent_typeface.png)
8. **Hide Underline**
![HideUnderLine](./images/hide_underline.png)
8. **Material Design Icon**
![MaterialDesignIcon](./images/material_design_icon.png)
## Sample
[MaterialEditText-1.8.3-sample.apk](https://github.com/rengwuxian/MaterialEditText/releases/download/1.8.3/MaterialEditText-1.8.3-sample.apk)
## Download
Eclipse:
[MaterialEditText-1.8.3.aar](https://github.com/rengwuxian/MaterialEditText/releases/download/1.8.3/MaterialEditText-1.8.3.aar)
gradle:
```groovy
compile 'com.rengwuxian.materialedittext:library:1.8.3'
```
Maven:
```xml
<dependency>
<groupId>com.rengwuxian.materialedittext</groupId>
<artifactId>library</artifactId>
<version>1.8.3</version>
<type>aar</type>
</dependency>
```
## Usage
See on [Wiki Page](https://github.com/rengwuxian/MaterialEditText/wiki) or [中文看这里](http://www.rengwuxian.com/post/materialedittext)
## Thanks to
[NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids/)
## License
Copyright 2014 rengwuxian
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
没有合适的资源?快使用搜索试试~ 我知道了~
MaterialEditText-master.zip_android
共74个文件
png:32个
xml:13个
java:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 153 浏览量
2022-09-21
19:50:58
上传
评论
收藏 461KB ZIP 举报
温馨提示
Android material design样式的输入框,一种新颖的输入框程序
资源推荐
资源详情
资源评论
收起资源包目录
MaterialEditText-master.zip (74个子文件)
MaterialEditText-master
gradlew.bat 2KB
gradlew 5KB
images
hide_underline.png 8KB
basic.png 14KB
custom_colors.png 14KB
helper_error_text.png 16KB
highlight.png 19KB
material_edittext.png 46KB
material_design_icon.png 16KB
max_characters.png 16KB
min_characters.png 13KB
ellipsis.png 13KB
floating_label.png 14KB
min_and_max.png 15KB
custom_accent_typeface.png 17KB
custom_floating_label_text.png 15KB
gradle.properties 682B
maven_push.gradle 2KB
sample
proguard-rules.pro 645B
src
androidTest
java
com
rengwuxian
materialedittext
sample
ApplicationTest.java 361B
main
res
menu
menu_main.xml 365B
drawable-hdpi
ic_launcher.png 9KB
ic_phone.png 444B
drawable-xhdpi
ic_launcher.png 14KB
ic_phone.png 536B
drawable
text_cursor_cyan.xml 191B
color
text_color.xml 239B
drawable-xxhdpi
ic_launcher.png 19KB
ic_phone.png 739B
values
colors.xml 190B
strings.xml 358B
styles.xml 416B
dimens.xml 205B
drawable-mdpi
ic_launcher.png 5KB
ic_phone.png 346B
layout
activity_main.xml 15KB
values-w820dp
dimens.xml 350B
assets
fonts
Roboto-LightItalic.ttf 143KB
java
com
rengwuxian
materialedittext
sample
MainActivity.java 3KB
AndroidManifest.xml 645B
.gitignore 7B
build.gradle 722B
library
gradle.properties 76B
proguard-rules.pro 645B
src
androidTest
java
com
rengwuxian
materialedittext
MaterialEditTextTest.java 948B
ApplicationTest.java 354B
main
res
drawable-hdpi
met_ic_clear.png 501B
met_ic_close.png 301B
drawable-xhdpi
met_ic_clear.png 639B
met_ic_close.png 360B
drawable-xxhdpi
met_ic_clear.png 897B
met_ic_close.png 425B
values
attrs.xml 3KB
dimens.xml 461B
drawable-mdpi
met_ic_clear.png 386B
met_ic_close.png 257B
drawable-xxxhdpi
met_ic_clear.png 1KB
met_ic_close.png 565B
java
com
rengwuxian
materialedittext
MaterialMultiAutoCompleteTextView.java 46KB
MaterialEditText.java 46KB
validation
RegexpValidator.java 533B
METValidator.java 1KB
Density.java 437B
Colors.java 532B
MaterialAutoCompleteTextView.java 46KB
AndroidManifest.xml 54B
.gitignore 7B
build.gradle 682B
gradle
wrapper
gradle-wrapper.jar 49KB
gradle-wrapper.properties 232B
.gitignore 57B
README.md 3KB
settings.gradle 30B
build.gradle 493B
共 74 条
- 1
资源评论
刘良运
- 粉丝: 66
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功