您的位置:首页 > 其它

安卓跑马灯的效果

2013-11-11 21:04 218 查看
直接在布局里写代码就好了

<TextView

android:id="@+id/menu_desc"

android:layout_width="300dip"

android:layout_height="wrap_content"

android:text="温馨提示:左右可以滑动 。点击可以进入啊"

android:textSize="22dip"

android:singleLine="true"

android:ellipsize="marquee"

android:focusable="true"

android:focusableInTouchMode="true"

android:scrollHorizontally="true"

android:marqueeRepeatLimit="marquee_forever"

android:layout_centerHorizontal="true"

android:layout_centerVertical="true"

/>

主要是这几句:

android:singleLine="true"

android:ellipsize="marquee"

android:focusable="true"

android:focusableInTouchMode="true"

android:scrollHorizontally="true"

android:marqueeRepeatLimit="marquee_forever"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: