- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 Android 设置imeOptions无效,解决方案
需要在Edittext设置,android:inputType="text"或者android:singleLine="true"
2016-09-06 16:17:55
2343
原创 Edittext光标始终在最后面
1、首先要清楚EditText一个方法setSelection(int index),能够设置选中位置。2、我们需要监听光标移动事件,重写 onSelectionChanged(int selStart, int selEnd)即可。3、接下来就自定义一个EditText就可以啦 代码:public class LastInputEditText extends EditText {public
2016-05-19 13:13:43
12059
转载 Android 屏幕透明度控制
//改变屏幕透明度 public void startAlphAnimotion() { WindowManager.LayoutParams ll = getWindow().getAttributes(); ll.alpha = 0.7f; getWindow().setAttributes(ll); }
2016-04-01 14:19:57
843
空空如也
android 调试问题 困扰好久了 求解答
2014-12-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人