Ich habe ein Laufschrift für die Textansicht und seine Scrolling in Pre-Lollipop-Versionen reibungslos. Aber kann nicht in Lollipop-Versionen und höher arbeiten. Bitte helfen Sie mir dabei.Textview Marquee scrollt nicht in der Lollipop-Version
Folgende sind Code für XML.
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/textView1"
android:layout_gravity="center_horizontal"
android:ellipsize="marquee"
android:singleLine="true"
android:layout_marginTop="-12dp"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:textColor="@color/white"
android:background="#00AEEF"
android:focusable="true"
android:focusableInTouchMode="true"
android:fadingEdge="horizontal"
android:freezesText="true"
/>
Haben Sie „txtView.setSelected hinzugefügt (true) in deinem Code? –
@sunilsunny: Ja, ich habe .. Text-Festzelt in Pre-Lollipop-Versionen, aber nicht in Lollipop und oben .. aber danke – theP