王学岗ToolBar,DrawLayout+Navigation的使用(四)——InputTextLayout
来源:互联网 发布:三福百货 java开发 编辑:程序博客网 时间:2024/06/02 05:25
InputTextLayout 属于design包,是一个容器,容器中只能放置一个元素,这和ScroollView类似;不同的是,InputtextLayout里面只能放置EditText;
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent" tools:context="com.example.inputtextlayouttest.MainActivity"> <android.support.design.widget.TextInputLayout android:id="@+id/til_one" android:layout_width="match_parent" app:hintAnimationEnabled="true" app:errorEnabled="true" android:layout_height="wrap_content"> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入用户名"/> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:id="@+id/til_two" android:layout_marginTop="300dp" android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入密码"/> </android.support.design.widget.TextInputLayout></LinearLayout>
阅读全文
0 0
- 王学岗ToolBar,DrawLayout+Navigation的使用(四)——InputTextLayout
- 王学岗ToolBar,DrawLayout+Navigation的使用(一)
- 王学岗ToolBar,DrawLayout+Navigation的使用(二)
- 王学岗ToolBar,DrawLayout+Navigation的使用(三)
- DrawLayout的使用
- drawlayout的使用
- drawlayout的使用
- DrawLayout的简单使用
- DrawLayout的使用
- DrawLayout的使用
- DrawLayout的使用
- toolbar 与drawlayout使用,左上角图标切换动画
- DrawLayout结合materialmenu实现带动画的ToolBar
- ReactNative开发——Navigation的使用
- Androd Toolbar 的简单使用四
- Android – Toolbar 上的 Navigation Drawer
- Android – Toolbar 上的 Navigation Drawer
- Android – Toolbar 上的 Navigation Drawer
- Ubuntu14.04下搜狗输入法安装(亲测)
- 欢迎使用CSDN-markdown编辑器
- Python中map,filter和apply函数
- 小 Y 的问题
- hdu 6130 Kolakoski
- 王学岗ToolBar,DrawLayout+Navigation的使用(四)——InputTextLayout
- 如何限制窗口只在桌面工作区(不包括任务栏)活动?
- unity播放开始动画
- 素数打表
- PHP基础教程-22 课后作业05
- 存储过程的例子(二)
- Java 异常应用 异常代码快的封装
- HDU-2017 多校训练赛7-1010-Just do it
- 堆的基本操作