Sei sulla pagina 1di 7

MaterialEditText (/details/1/2650)

 126 (https://github.com/DreaminginCodeZH/MaterialEditText/stargazers?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=2650) 7

(https://github.com/DreaminginCodeZH/MaterialEditText/watchers?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=2650)  20

(https://github.com/DreaminginCodeZH/MaterialEditText/network?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=2650)  0

(https://github.com/DreaminginCodeZH/MaterialEditText/issues?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=2650)

 (https://facebook.com/sharer.php?
General u=https://android-
Category
arsenal.com/details/1/2650)
Free (/free)

Tag
 (https://twitter.com/intent/twe
arsenal.com/details/1/2650&text=The%20An
Text Views (/tag/101)

License %2
%20MaterialEditText
Apache License, Version 2.0 (http://opensource.org/licenses/Apache-2.0?utm_source=android-arsenal.co
m&utm_medium=referral&utm_campaign=2650)

 (http://news.ycombinator.com/submitlink
Min SDK
14 (Android 4.0–4.0.2 Ice Cream Sandwich) (/api?level=14)
arsenal.com/details/1/2650&t=The%20Andro
Registered
Oct 18, 2015 %20Text%20Views%20-%2
Favorites
10

Link
https://github.com/DreaminginCodeZH/MaterialEditText (https://github.com/DreaminginCodeZH/MaterialE
ditText?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=2650)

See also
TriangleRectangleLabelView (/details/1/2532)
Android-PTTextView (/details/1/3263)
BouncyEditText (/details/1/1895)
 (https://plus.google.com/share?
ChipsLibrary (/details/1/1410)
ReadMoreOption (/details/1/7058)
url=https://android-
Additional arsenal.com/details/1/2650)
Language
Java
 (https://reddit.com/subm
arsenal.com/details/1/2650&title=The%20An
Version
%20Text%20Views%20-
v1.0.5 (Oct 23, 2016) (https://github.com/DreaminginCodeZH/MaterialEditText/releases/tag/v1.0.5?utm_s
ource=android-arsenal.com&utm_medium=referral&utm_campaign=2650)

Created
Oct 13, 2015

Updated
Jun 20, 2017

Owner
Zhang Hai (DreaminginCodeZH) (/user/DreaminginCodeZH)

Contributor
1 (https://github.com/DreaminginCodeZH/MaterialEditText/graphs/contributors?utm_source=android-arse
nal.com&utm_medium=referral&utm_campaign=2650)

Activity

Badge
 Generate

Download
 Source code
 APK file

Announcement
     

Si dispone de 350.000 € en
9 errores de activos, descargue esta guía
y actualizaciones
inversión periódicas.

MaterialEditText

Material Design EditText with a delightful linear ripple in background, compatible with Android
4.0+.

Preview

Native EditText (on Samsung S4 with Android 5.0.1):

(https://github.com/DreaminginCodeZH/MaterialEditText/raw/master/screenshot/native-edittext.gif?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=2650)

MaterialEditText :

(https://github.com/DreaminginCodeZH/MaterialEditText/raw/master/screenshot/materialedittext.gif
?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=2650)

Sample screenshot:
(https://github.com/DreaminginCodeZH/MaterialEditText/raw/master/screenshot/screenshot.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=2650)
Sample APK
(https://github.com/DreaminginCodeZH/MaterialEditText/blob/master//github.com/DreaminginCode
ZH/MaterialEditText/releases/download/v1.0.5/sample-release.apk?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650)

Design

This library took the framework implementation of RippleDrawable as reference to implement an


EditText background with a ripple on the line. The MaterialEditTextBackgroundDrawable is made
to behave just the same as the framework XML implementation of EditText background, so that a
drop-in replacement should not affect your layout and alignment.

For simplicity of usage, a MaterialEditText is created to set the background automatically, and
set the hotspot of ripple on platforms prior to Lollipop.

The InputTextLayout from Design Support Library can automatically set the red tint on
background when an error is set. An MaterialInputTextLayout is introduced to make the
background drawable show a bold red line consistent with Material Design Guideline when an error
is set.

Integration

Gradle:

compile 'me.zhanghai.android.materialedittext:library:1.0.5'

Usage

Simply replace your EditText with MaterialEditText and TextInputLayout with


MaterialTextInputLayout , then you can enjoy the delightful detail now.

For example:

<me.zhanghai.android.materialedittext.MaterialTextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<me.zhanghai.android.materialedittext.MaterialEditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</me.zhanghai.android.materialedittext.MaterialTextInputLayout>

ProGuard

The AAR of this library has already included a ProGuard configuration file to make ObjectAnimator
work properly.

Older versions
Neither Support v4 nor AppCompat v7 backported animation API to versions prior to ICS, and the
NineOldAndroids (https://github.com/JakeWharton/NineOldAndroids/?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650) library has already been deprecated
since people should all be using minSdkVersion="14" now, so versions older than ICS are not
supported.

License

Copyright 2015 Zhang Hai

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.

65% of Traders Lose


eToro™- No.1 in Money. Join 9M Users
Worldwide & Learn to
Social Trading Invest Better. Start Today!

Follow us on Twitter (https://twitter.com/Android_Arsenal?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=2650)

Read us in Telegram (https://telegram.me/AndroidArsenal?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=2650)

Get Android app on Google Play (https://play.google.com/store/apps/details?


id=com.android_arsenal.androidarsenal&utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650)

Stay informed with Pushbullet (https://www.pushbullet.com/channel?tag=android_arsenal&utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=2650)

Created by Vladislav Bauer (https://github.com/vbauer?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=2650)
 (https://twitter.com/BauerVlad?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650)
 (https://www.linkedin.com/in/vladislavbauer?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650)
 (https://www.paypal.me/VladislavBauer?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=2650)
© 2014-2018 - Android Arsenal (/) | Privacy (/privacy)

Potrebbero piacerti anche