1
在我的音樂播放器應用程序中,我有一個帶有Artist,Title等的TextView,它在View中水平滾動。 (像舊的HTML選取標記)。它適用於Xperia Arc上的Android 2.3.4,但不適用於Samsung Galaxy Nexus(該文本僅顯示,不滾動)。 TextView是這樣定義的。在代碼中,它只是與匹配的Songtext一起設置。android:scrollHorizontally在Samsung Galaxy Nexus上無法正常工作
<TextView
android:id="@+id/songArtist"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:textColor="#FFFFFA"/