跑马灯(横向滚动)






          //设置为跑马灯显示
          android:ellipsize="marquee"

          //获取焦点
          android:focusable="true"

          //可以通过toucth来获得focus
          android:focusableInTouchMode="true"

          //设置重复的次数
          android:marqueeRepeatLimit="marquee_forever"

          //单行显示文字
          android:singleLine="true"

  

           
         

你可能感兴趣的:(跑马灯(横向滚动))