摘要:
使用TextInputLayout创建一个登陆界面1.导入支持库使用TextInputLayout 控件需要导入两个库,一个是appcompat-v7,保证material styles可以向下兼容。另一个是Design Support Library。在项目的build.gradle文件中,添加下... 阅读全文
posted @ 2016-01-20 16:23
Michelle's Home
阅读(2679)
评论(0)
推荐(0)
摘要:
editText.addTextChangedListener(new TextWatcher() { /** * 内容改变前调用 * 原有的文本s中,从start开始的count个字符将会被一个新的长度为after的文本替换,注... 阅读全文
posted @ 2016-01-20 15:45
Michelle's Home
阅读(1817)
评论(0)
推荐(0)
摘要:
1.当页面中有多个EditText时,第一个EditText会自动获取焦点,取消的办法:在EditText的父View中调用:android:focusable="true"android:focusableInTouchMode="true"eg: 阅读全文
posted @ 2016-01-20 15:14
Michelle's Home
阅读(953)
评论(0)
推荐(0)
摘要:
在系统控件中输入“a”能提示出android:id等所有属性。而在第三方库的控件中输入“a”只会提示“appNs”,但如果手动写app:id="@+id/aaa"系统也是可以识别的。命名空间已经引入。如下图:解决办法:删除.idea文件夹和所有的.iml文件,然后重启as,重新buildprojec... 阅读全文
posted @ 2016-01-20 14:01
Michelle's Home
阅读(3508)
评论(0)
推荐(0)

浙公网安备 33010602011771号