hint特效

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hint特效相关的知识,希望对你有一定的参考价值。

使用

android.support.design.widget.TextInputLayout
例如:
技术分享
 1  <android.support.design.widget.TextInputLayout
 2         android:id="@+id/passwordWrapper"
 3         android:layout_width="match_parent"
 4         android:layout_height="wrap_content"
 5         android:layout_marginTop="4dp">
 6 
 7         <EditText
 8             android:id="@+id/login_et_password"
 9             android:layout_width="match_parent"
10             android:layout_height="wrap_content"
11             android:hint="@string/login_hint_pwd"
12             android:inputType="textPassword"
13             android:padding="10dp"
14             android:textSize="14sp" />
15     </android.support.design.widget.TextInputLayout>
View Code

如何使用Android Design中的TextInputLayout:

http://www.jianshu.com/p/35080eb5a28f

以上是关于hint特效的主要内容,如果未能解决你的问题,请参考以下文章