---
title: "android 文本走马灯代码"
author: "fonter"
date: "2010-08-25T12:08:05Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2010-08-25T12:08:27Z"
id: 746710
url: "https://fonter.iteye.com/blog/746710"
---

```
	<LinearLayout android:id="@+id/information_plate"
		android:layout_width="fill_parent" android:layout_height="wrap_content"
		android:orientation="horizontal" android:background="@drawable/scrolling_message">
		<TextView android:layout_width="fill_parent" android:padding="10dip"
			android:layout_height="wrap_content"
			android:text="@string/main_information"
			android:textSize = "22sp"
			android:textColor="#000000"
			android:singleLine="true" android:ellipsize="marquee"
			android:marqueeRepeatLimit="marquee_forever" android:focusable="true"
			android:selectAllOnFocus="true"
			android:clickable="true" android:background="@drawable/scrolling_message_bg" android:focusableInTouchMode="true" android:freezesText="true">
			<requestFocus/>
			
			</TextView>
	</LinearLayout>
```