Activity中弹软键盘
2016-07-11 17:28
302 查看
name_ed.setFocusable(true); name_ed.setFocusableInTouchMode(true); Timer timer = new Timer(); timer.schedule(new TimerTask() { //让软键盘延时弹出,以更好的加载Activity public void run() { InputMethodManager inputManager = (InputMethodManager) name_ed.getContext(). getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(name_ed, 0); } }, 500);
相关文章推荐
- mysql 数字字段的类型选择
- 关于AOP使用的自我总结
- 人力资源管理能否靠数字说话
- C语言的标准
- android 调用百度地图SDK,出现 not found the liblocSDK4d.so 解决方法
- Win10+Caffe+CUDA7.5编译
- UIKIT详解之UILabel全面解析
- GMPL 转成 MPS/LP for CPLEX/Gurobi
- Netty的入门-UDP协议开发
- android dp深度解析
- 导出Excel帮助类
- 动态库的查找路径
- Eclipse中Maven工程缺少Maven Dependencies
- Largest Rectangle in Histogram
- 利用DCMTK将DCM图像像素数据转换为Mat数据
- RxAndroid
- 那些年用node接入微信走过的坑之(三)---微信事件监听
- 字符串分割函数
- Python中的for
- 修复ext4日志(jbd2)bug( Ext4 文件系统有以下 Bug)