我在我的窗口小部件文本認爲,像滾動字幕一文。現在,它工作在正常狀態。但是,如果我滾動(滑動)通過我的主屏幕其他頁面,然後此文本視圖停止滾動。任何想法如何解決這個問題?Android小工具:TextView的字幕停止在主頁上滾動
我的XML文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="8dip"
android:background="@drawable/myshape" >
<TextView
android:id="@+id/update"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:gravity="center_vertical|center_horizontal"
android:layout_gravity="center"
android:textColor="@android:color/black"
android:marqueeRepeatLimit="marquee_forever"
android:paddingLeft="15dip"
android:paddingRight="15dip"
android:scrollHorizontally="true"
android:singleLine="true"
android:textSize="25dp" >
<requestFocus
android:duplicateParentState="true"
android:focusable="true"
android:focusableInTouchMode="true" />
</TextView>
</LinearLayout>
感謝。
嗨,我知道這一個老問題,但我面臨着類似的問題。你找到了解決辦法嗎? –