android讲义2之输入界面
16lz
2021-01-23
布局文件:
android:selectAllOnFocus="true" //如图"ggg"表示当EditText取得焦点会全选所有内容
android:password="true" //表示输入的内容为密码保护形式
android:phoneNumber="true" //表示输入的内容为数字形式
android:background="@drawable/bg_border" //指示background的内容在drawable文件夹的bg_border.xml文件名中
bg_border.xml:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#000000"/>
<stroke android:width="2dip" android:color="#ff0000" />
</shape>
更多相关文章
- 系出名门Android(9) - 数据库支持(SQLite), 内容提供器(ContentP
- android获取短信所有内容
- android广播监听短信并显示内容
- Dialog窗口形式的Activity
- Android 如何获取RadioGroup选中RadioButton的内容
- Android调用输入法软键盘,返回输入的内容