我想在我的应用程序中使用 2 个字幕。但只有一个始终在工作。如果我评论第一个,那么第二个就可以了。否则第一个。或者一次只有一个选取框获得焦点。如果我们按下向下箭头,那么第二个将获得焦点。这两个选框如何获得焦点?
如何同时显示 2 个选取框?以下是我的代码:
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/imgLogotb">
<TextView
android:id="@+id/txt1"
android:layout_width="wrap_content"
android:text="START | lunch 20.00 | Dinner 60.00 | Travel 60.00 | Doctor 5000.00 | lunch 20.00 | Dinner 60.00 | Travel 60.00 | Doctor 5000.00 | END"
android:layout_height="20dip"
android:singleLine="false"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true">
</TextView>
<TextView
android:id="@+id/txt2"
android:layout_width="wrap_content"
android:text="START | lunch 1.00 | Dinner 2.00 | Travel 3.00 | Doctor 4.00 | lunch 5.00 | Dinner 6.00 | Travel 7.00 | Doctor 8.00 | END"
android:layout_height="20dip"
android:singleLine="false"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true">
</TextView>
</RelativeLayout>
请通过提供解决方案帮助我....谢谢...