码迷,mamicode.com
首页 > 移动开发 > 详细

android跑马灯的效果

时间:2014-12-27 18:53:29      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

废话不说直接上代码吧

交流群: 386451316

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >


    <TextView
        android:id="@+id/tv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" 

        android:textSize="20dp"

 

        android:singleLine="true"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:focusable="true"
        android:focusableInTouchMode="true"
       />


</RelativeLayout>

 

 

原文地址:http://blog.csdn.net/u010982856/article/details/21030193

android跑马灯的效果

标签:

原文地址:http://www.cnblogs.com/Striver-zw/p/4188963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!