我使用下面的代码创建了带选取框的 Textview。但是选取框文本和起始位置之间有一些空间。如何解决这个问题?
<TextView
android:id="@+id/capture_mode"
android:layout_width="200px"
android:layout_height="wrap_content"
android:text="This is a test of marquee on the text view in android."
android:ellipsize="marquee"
android:scrollHorizontally="true"
android:singleLine="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
/>
屏幕如下。
注意:我需要添加两个带字幕的textview。但是第一个只是滚动,另一个是空闲的。如何添加两个带字幕的textview。
最佳答案
在你的 TextView 中试试这个:
android:gravity="左"
关于android - 带字幕的 TextView ,没有结束空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20773404/