截断edittext的焦点

来源:互联网 发布:好布业软件jshby 编辑:程序博客网 时间:2024/04/29 02:14
感觉挺好的做法。
在edittext组件前添加一个LinearLayout,捕获焦点
       android:layout_width="0px"
      android:layout_height="0px"
      android:focusable="true"
      android:focusableInTouchMode="true">
任意组件均可采用此方法截断
0 0
原创粉丝点击