码迷,mamicode.com
首页 >  
搜索关键字:setfocusable    ( 51个结果
java swing button和键盘监听冲突问题
原因: 点击button会让jframe失去焦点,然后键盘监听不起作用 解决: 让jframe重新获取焦点就行了 jf.setFocusable(true); // JFrame jf = new JFrame("美女"); ...
分类:编程语言   时间:2019-02-19 12:00:14    阅读次数:170
android 控件获取 获取焦点
控件.setEnabled(true);控件.setFocusable(true);控件.setFocusableInTouchMode(true);控件.requestFocus();控件.requestFocusFromTouch(); ...
分类:移动开发   时间:2018-05-10 13:24:10    阅读次数:188
PopupWindow的一些属性
void setOutsideTouchable(boolean touchable) Controls whether the pop-up will be informed of touch events outside of its window. void setFocusable(bool ...
分类:Windows程序   时间:2017-07-02 18:31:39    阅读次数:242
Dialog中EditText获取焦点,并且自动弹出软键盘
//解决dilaog中EditText无法弹出输入的问题 dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); //弹出对话框后直接弹出键盘 et_newReason.setFocusable... ...
分类:其他好文   时间:2017-06-03 14:08:05    阅读次数:239
android安卓editText自动弹出软键盘(输入键盘)
editext获取焦点并自动弹出输入键盘,代码如下:EditTexteditText.setFocusable(true); editText.setFocusableInTouchMode(true); editText.requestFocus(); InputMethodManagerinputManager=(InputMethodManager)editText.getContext().getSystemService(Context.INPUT_METHOD..
分类:移动开发   时间:2016-11-10 22:08:43    阅读次数:290
android 安卓edittext自动弹出数字键盘
et.setFocusable(true); et.setFocusableInTouchMode(true); et.setInputType(EditorInfo.TYPE_CLASS_NUMBER); Timertimer=newTimer(); timer.schedule(newTimerTask() { publicvoidrun() { InputMethodManagerinputManager=(InputMethodManager)et.getC..
分类:移动开发   时间:2016-11-10 22:07:53    阅读次数:182
Android Edittext 显示光标 获取焦点 监听焦点
Edittext java 代码控制获取焦点 EditText mEditText = (EditText) findViewById(R.id.et); mEditText.setFocusable(true); mEditText.setFocusableInTouchMode(true); 显 ...
分类:移动开发   时间:2016-09-20 10:22:02    阅读次数:135
ScrollView 嵌套ListView、RecyclerView(持续更新)
ListView: 只要重写ListView或GridView的onMeasure()方法即可: 注意:有时候会出现打开嵌套ListView的ScrollView的页面默认起始位置不在顶部的情况,这种情况有两种解决方案: (1)list.setFocusable(false); (2)scrollV ...
分类:其他好文   时间:2016-07-25 16:12:44    阅读次数:135
EditView不可编辑状态和可编辑状态动态切换 及 EditView的其它特效
不可编辑状态: 两种选择: 第一个 不可编辑但是会弹出输入法 android:editable="false"    第二个 不可编辑同时不会弹出输入法 android:focusable="false" 代码动态控制: editText.setFocusable(false);和editText.setEnabled(false);时不可编...
分类:其他好文   时间:2016-05-27 11:52:18    阅读次数:175
PopupWindow进阶
一、常用函数讲解 这段将会给大家讲下下面几个函数的意义及用法,使用上篇那个带背景的例子为基础。 [java] view plain copy public void setTouchable(boolean touchable)   public void setFocusable(boolean focusable)   publ...
分类:Windows程序   时间:2016-05-13 03:36:48    阅读次数:309
51条   1 2 3 4 ... 6 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!