hai, Ich habe benutzerdefinierte Listenansicht in dieser Seite sollte den horizontalen Lauftext haben. Aber der horizontale Text scrollt nicht. also hilf mir bitte.
Ich habe folgenden XML-Code verwendet.
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:layout_x="2px"
android:layout_y="690px"
android:background="@drawable/bg_1"
android:textColor="#cc0000"
android:scrollHorizontally="true"
android:singleLine="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
/>
Vielen Dank im Voraus.
Antworten:
0 für die Antwort № 1Ist ein Tippfehler nicht "ellipsen"? Meinst du nicht "Ellipse"?
0 für die Antwort № 2
set listview focusable ist falsch
listview.setfocusable(false);