TextView restartuje Marquee podczas zmiany innego TextView w tym samym LinearLayout
Mam LinearLayout i wewnątrz 2 TextView mają markizę, a kiedy aktualizuję tekst w pierwszym, drugim TextView ponownie uruchamia markizę.
<LinearLayout
android:id="@+id/panel"
android:layout_width="320dp"
android:layout_height="match_parent"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:gravity="center_vertical"
android:orientation="vertical" >
<TextView
android:id="@+id/first"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:gravity="bottom|center_horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true" />
<TextView
android:id="@+id/second"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:gravity="top|center_horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"
/>
</LinearLayout>
Znalazłem to, jeśli dlaR.id.first
iR.id.second
ustawiłemlayout_width="320dp"
efekt nie występuje. Ale chcę ustawićandroid:layout_width="match_parent"
jest jakieś obejście?
Znalazłem podobny problem, ale bez rozwiązania:Android, RelativeLayout ponownie uruchamia Marquee-TextView podczas zmiany ImageView w tym samym RelativeLayout