15
down vote accepted

I know you don't want to use anEditTextbut it's really easy to make it look like aTextView.

<EditText android:id="@+id/Id" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@android:color/transparent" > </EditText>

You can also useandroid:background="@null".

Edit:

TheTextView'seditableparamdoesmake it editable (with some restrictions).

If you setandroid:editable="true"you can access theTextViewvia the D-pad, or you could addandroid:focusableInTouchMode="true"to be able to gain focus on touch.

The problem is you cannot modify the existing text, and you cannot move the cursor. The text you write just gets added before the existing text.

更多相关文章

  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更新Ui的几种方法和见解
  2. 自定义android开机动画
  3. android文字阴影效果
  4. Android(安卓)Studio --- > [学习笔记]Bu
  5. Android(安卓)Text控件之属性:android:tex
  6. android 布局
  7. android 控件-TextView用法整理
  8. 创建android文件系统(Root file system)
  9. 【Android】EditText标签调用键盘
  10. [转]Jollen 的Android(安卓)教學,#1: And