android 跑马灯效果
16lz
2021-12-04
<TextView android:id="@+id/app_loc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:textSize="12dp"
android:layout_marginLeft="10dip"
android:singleLine="true"
android:focusableInTouchMode="true"
android:ellipsize="marquee"
android:scrollHorizontally="true"
android:marqueeRepeatLimit="marquee_forever"></TextView>
如果想不获取焦点就让TextView 的跑马灯效果 直接在自定义adapter中setView方法找到 该TextView 并设置 成 convertView.findViewById(R.id.app_loc).setSelected(true);
适用于任何情况,包括不在顶层容器上显示
更多相关文章
- android知识点记录
- 安卓动态时间获取
- Android的设计模式-迭代器模式
- Android绘图之drawText,getTextBounds,measureText,FontMetrics,
- Android(安卓)TextView 跑马灯滚动效果
- element ui级联选择器 通过axios获取数据源
- 不借助 Docker Desktop 在Mac上开发容器应用
- JavaScript制作日历
- 日历的制作