摘要: 场景: 1、软件盘挡住了edittext框了,这个必须处理。 2、虽然设置了edittext的软键盘属性android:windowSoftInputMode="adjustPan"使得软键盘不阻挡edittext,但是为了提高用户体验,想把下面的button也显示出来 3、登录界面,输入用户名时, 阅读全文
posted @ 2017-03-12 14:34 epmouse 阅读(6386) 评论(0) 推荐(0) 编辑
摘要: 当布局没有设置 background属性的时候给其布局中加入一下代码就是系统默认的水波纹效果 比如在recyclerview的item布局中,或者其他任意布局中。 当UI有要求布局、按钮等的背景颜色时,使用ripple属性来设置背景。 在drawable-v21中加入: 由于ripple属性是21以 阅读全文
posted @ 2017-03-12 14:17 epmouse 阅读(3083) 评论(0) 推荐(0) 编辑