xml布局设置:

    <EditText        android:id="@+id/etInput"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_centerVertical="true"        android:cursorVisible="false"        android:focusable="false"        android:focusableInTouchMode="false"        android:layout_marginLeft="10dp"        android:layout_toLeftOf="@+id/tvMore"        android:layout_toRightOf="@+id/tvTitle"        android:digits="@string/digits_cedit_card"        android:inputType="text"        tools:text="title" />

代码动态设置:

editText.setCursorVisible(false);editText.setFocusable(false);editText.setFocusableInTouchMode(false);

更多相关文章

  1. android 相对布局例子代码
  2. Android:获取网页源代码
  3. Android软键盘之代码改变软键盘状态
  4. android 用代码设置margin属性,textView加粗
  5. Android调用百度地图API实现――实时定位代码
  6. android获取当前Canvas位图代码
  7. Android 代码获取手机ip地址(个人笔记)
  8. Android Studio 添加百分比布局库的依赖报错 第一行代码
  9. 简单布局收缩动画

随机推荐

  1. Android(安卓)Spinner与setDropDownViewR
  2. 解决Android编辑框在全屏模式下无法检测
  3. 解决Android模拟器打不开的问题!...
  4. 【Android(安卓)应用开发】Android(安卓)
  5. Windows环境下Android(安卓)源码模块下载
  6. Android(安卓)Toolbar
  7. Android(安卓)AppWidget系统框架
  8. Android中ListView中Item的设置
  9. Android(安卓)SDK版本更新
  10. 修改系统Android版本,版本号