我想在水平方式自動滾動文本自動滾動文本。我嘗試了下面的方法,但文本不滾動。
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/bg_1"
android:textColor="#cc0000"
android:scrollHorizontally="true"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
android:focusable="true"
android:focusableInTouchMode="true"
/>
所以請告訴我如何滾動文本,如果有任何需要在類文件中添加一些代碼也。
感謝給重播。我用fill_parent替換了寬度,但它沒有滾動 – Ramakrishna 2011-01-31 13:02:43
好的,textview被選中了嗎? – Franco 2011-01-31 13:03:50