在EditText所在的父控件中设置如下属性:

android:focusable="true" android:focusableInTouchMode="true"

例如:

<LinearLayout         android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="vertical" android:focusable="true" android:focusableInTouchMode="true">                <com.wzh.view.ClearEditText            android:layout_marginTop="5dp"            android:id="@+id/etBqyshwjlw"            style="@style/cetStyle"            android:maxLength="12"            android:hint="本期应税货物及劳务"/>            <com.wzh.view.ClearEditText            android:layout_marginTop="5dp"            android:id="@+id/etBqysfw"            style="@style/cetStyle"            android:maxLength="12"            android:hint="本期应税服务"/>                <com.wzh.view.ClearEditText            android:layout_marginTop="5dp"            android:id="@+id/etBnyshwjlw"            style="@style/cetStyle"            android:maxLength="12"            android:hint="本年累计应税货物及劳务"/>                <com.wzh.view.ClearEditText            android:layout_marginTop="5dp"            android:id="@+id/etBnysfw"            style="@style/cetStyle"            android:maxLength="12"            android:hint="本年累计应税服务"/>    </LinearLayout>

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android中的通信机制总结1:使用handler来
  2. Android学习笔记(一)---一定要看的 Android
  3. Android(安卓)彻底组件化方案实践
  4. Android(安卓)API Guides---Building Web
  5. Android(安卓)LifecycleObserver & Sched
  6. Android-手机归属地和座机归属地查询
  7. 转:APK程序卸载二次确认的实现
  8. SDK频频升级,android开发面临挑战如何抉择
  9. Android调用照相机拍照
  10. Android(安卓)吊炸天的酷炫Menu菜单交互,