TextView reinicia Marquee ao alterar outro TextView no mesmo LinearLayout
Eu tenho LinearLayout e dentro de 2 TextView ambos têm letreiro e quando eu atualizar o texto em primeiro, em seguida, segundo TextView reinicia o letreiro.
<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>
Eu achei que se porR.id.first
eR.id.second
eu colocolayout_width="320dp"
o efeito não ocorre. Mas eu quero definirandroid:layout_width="match_parent"
existe alguma solução alternativa?
Eu encontrei problema semelhante, mas sem solução:Android, o RelativeLayout reinicia o Marquee-TextView ao alterar o ImageView no mesmo RelativeLayout