疯狂android讲义学习总结---TextView
16lz
2021-01-23
这里只想说一句,在EditText中 如果想让输入框中的有默认的内容,用hint
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_marginLeft="34dp"
android:layout_toRightOf="@+id/textView1"
android:ems="10"
android:hint="请填写登录账号" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_marginLeft="34dp"
android:layout_toRightOf="@+id/textView1"
android:ems="10"
android:hint="请填写登录账号" >
<requestFocus />
</EditText>
更多相关文章
- android webview处理下载内容
- android Edittext内容字体大小动态变化
- Android调用浏览器打开网页内容
- Android 使用内容解析者往短信数据库里插入一条数据
- Android登录页面制作并且记住账号密码
- Android 采用Pull解析XML内容 【学习记录】
- android RecyclerView 设置设置选中的一行的内容
- 2015年11月广师android群内容分享
- Android: 打印Bundle内容