[英]Textview with marquee with out end space
I have created Textview with marquee by using below code.But some space between the marquee text and starting position.How to resolve that ? 我使用下面的代码创建了带有字幕的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"
/>
Screen is below. 屏幕如下。
Note: I need to add two textview with marquee.But first one is only scrolling, another one is idle.How to add two textview with marquee. 注意:我需要添加两个带有字幕的textview,但是第一个只是滚动,另一个是空闲的。如何添加两个带有marquee的textview。
Try this un your textview: 在您的textview中尝试一下:
android:gravity="left" android:gravity =“ left”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.