Android文本框编辑的浮动提示:FloatLabeledEditText

jopen 9年前

FloatLabeledEditText可以设置Android文本编辑框的默认值,当用户输入内容时。默认值提示会浮动</span>在EditText的顶部。687474703a2f2f692e696d6775722e636f6d2f75635264316a6d2e676966.gif

   <com.wrapp.floatlabelededittext.FloatLabeledEditText          android:layout_width="match_parent"          android:layout_height="wrap_content">            <EditText              android:layout_width="match_parent"              android:layout_height="wrap_content"              android:hint="This is the hint" />      </com.wrapp.floatlabelededittext.FloatLabeledEditText>        <com.wrapp.floatlabelededittext.FloatLabeledEditText          android:layout_width="match_parent"          android:layout_height="wrap_content"          float:fletPadding="10dp">            <EditText              android:layout_width="match_parent"              android:layout_height="wrap_content"              android:hint="Username" />      </com.wrapp.floatlabelededittext.FloatLabeledEditText>        <com.wrapp.floatlabelededittext.FloatLabeledEditText          android:layout_width="match_parent"          android:layout_height="wrap_content"          float:fletPaddingBottom="10dp">            <EditText              android:layout_width="match_parent"              android:layout_height="wrap_content"              android:hint="Password"              android:inputType="textPassword" />      </com.wrapp.floatlabelededittext.FloatLabeledEditText>

项目主页:http://www.open-open.com/lib/view/home/1414653003809