android开机后弹出AlertDialog按钮无默认焦点 本帖最后由 phph122741486 于 2014-11-25 11:09:45 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把确认的默认focuseable设置为true mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).setFocusable(true); mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).setOnFocusChangeListener(mDialogOnFocusListener); mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).requestFocus(); mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).setSelected(true);这些我都试过了!就是不行! 感觉在对话框上做动作 没用 大家能发表一下自己对android发展前景的看法么? TableLayout中动态生成的Textview,怎么让它能居中显示? Android来电界面的滑动按钮如何实现啊?有无源代码 摄像的视频压缩格式? 根据源码,检测startActivity的启动。 android SAX解析XML文件 cygwin调试android native code时出现问题,请大家指点。 android端如何控制同一局域网内的电脑 怎样取得andriod中APP安装的位置 GridLayout中addView方法报错的问题 android NDK开发 模拟器作为服务器端 通过代码实现调用C可执行文件的问题
mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).setOnFocusChangeListener(mDialogOnFocusListener);
mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).requestFocus();
mAlertDlg.getButton(DialogInterface.BUTTON_POSITIVE).setSelected(true);
这些我都试过了!就是不行! 感觉在对话框上做动作 没用