如何移除EditText自动焦点
2024-08-28 13:33:42
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"> <EditText
android:id="@+id/myUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" /> </LinearLayout>
给EditText加一个父控件,设置父控件的属性:
android:focusable="true"
android:focusableInTouchMode="true"
最新文章
- Oralce 重建EM服务,OracleDBConsoleOracle
- 初刷LeetCode的感受
- 谢欣伦 - OpenDev原创教程 - 客户端套接字类CxClientSocket
- iphone 开源汇总(转)
- Git 查看文件的历史
- javascript元素绑定事件
- MyFragment
- careercup-中等难题
- C++ 知识点 2
- Windows下Apache 虚拟主机 VirtualHost 配置
- 关于mac地址的一点感想
- Python多层目录模块调用
- NCS8801S芯片RGB/LVDS转EDP功能简介
- JVM内存模型与垃圾回收
- PIL、Pillow安装使用方法
- java类型的小知识List 等
- Python基础-内置函数、模块、函数、json
- ORACLE 内置函数之 GREATEST 和 LEAST(转)
- Python中什么是变量
- 配置Hanlp自然语言处理进阶
热门文章
- csv读入数据,用julia/matplotlib/pyplot 画矢量图导入word中
- oracle 导出导入不含数据的空库
- GridView根据一列自动计算(转载)
- linear map (also called a linear mapping, linear transformation or, in some contexts, linear function
- Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
- [m() for i in range(8)]
- eclipse 重启/打开内置浏览器
- 《CMake实践》笔记一:PROJECT/MESSAGE/ADD_EXECUTABLE【转】
- HDU2819 Swap —— 二分图最大匹配
- html5--项目实战-仿360囧图