final EditText begintime=(EditText)view.findViewById(R.id.livebegintime);
begintime.setInputType(InputType.TYPE_NULL);
begintime.setOnClickListener(new OnClickListener() {
}
转自:http://www.reader8.cn/jiaocheng/20120910/1383771.html
补充:如果edittext需要点两次才能触发,Onclick事件 则在xml中添加:android:focusableInTouchMode="false"
xml代码:<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:id="@+id/livebegintime" android:focusableInTouchMode="false"/>