android edittext打开窗口不获取焦点

android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:focusable="true"
        android:focusableInTouchMode="true"
        >
        ... ...
        其中:
        android:focusable="true"
        android:focusableInTouchMode="true"
        不叫界面中editText在打开界面时自动获得焦点	
要在edittext的父布局结构中(例如LinearLayout,RelativeLayout等)添加 


不可编辑同时不会弹出输入法 单击就可以出发事件
android:focusable="false" //在给edittext添加点击事件时不让软键盘弹出的方法

posted on 2016-08-18 14:15  oyl  阅读(146)  评论(0编辑  收藏  举报

导航