备忘一个TextView的跑马灯

代码

  <TextView
                android:id="@+id/tv_learn_login_time"
                android:layout_width="70dp"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginStart="@dimen/space_lv"
                android:layout_marginEnd="@dimen/space_lv1"
                android:layout_toEndOf="@+id/tv_learn_login_time_hint"
                android:textColor="#ff4bb1ff"
                android:textSize="14sp"
                android:ellipsize="marquee"
                android:singleLine="true"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:marqueeRepeatLimit="marquee_forever"//跑马灯是否无限循环
                tools:text="36h"/>

猜你喜欢

转载自blog.csdn.net/weixin_33851604/article/details/87417759
今日推荐