<TextView        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_alignParentBottom="true"        android:layout_gravity="center"        android:layout_marginLeft="15dip"        android:layout_marginRight="15dip"        android:ellipsize="marquee"        android:focusable="true"        android:focusableInTouchMode="true"        android:marqueeRepeatLimit="marquee_forever"        android:paddingBottom="15dip"        android:singleLine="true"        android:text="@string/hello_world"        android:textColor="@android:color/black" />


其实最重要的4个属性就是:

android:ellipsize="marquee"android:focusable="true"android:focusableInTouchMode="true"android:marqueeRepeatLimit="marquee_forever"


更多相关文章

  1. ANDROID 控件常用属性
  2. android 开发零起步学习笔记(二十五):Android(安卓)layout属性大全
  3. Android:EditText 所有属性
  4. android 相对布局属性
  5. linearLayout 和 relativeLayout的属性区别
  6. android属性收集
  7. android android:gravity 和 android:layout_Gravity属性
  8. android:paddingLeft和android:layout_marginLeft区别
  9. Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区

随机推荐

  1. DistilBERT Understanding
  2. 第四课 box-sizing功能示例、相对定位
  3. 模型压缩实践系列之——layer dropout
  4. 厉害了!今日头条的"Zhang*"竟然在Top5刊发
  5. 我来北京干嘛?
  6. 结果不显著但成功发在Top期刊上的论文有
  7. flex基础:flex项目上的三个属性以及利用fl
  8. 用 GPT-2 自动写诗,从五言绝句开始
  9. 数学之美中盛赞的 Michael Collins 教授,
  10. 敖丙离职了