我如何在闪烁的字母闪烁中写一封信(t)?
这个问题与
我使我的侯爵夫人旋转得很好。请在下面查看我的代码。现在,我想让字母“ t”闪烁,但< blink> t</blink>
似乎不起作用。有人可以给我一份MWE,因为这将使我闪烁的“ t”?
我有一个想法,但是我无法以某种方式意识到这一点:
我可以将新的文本视图中的“ t”部分设置为“ T”部分,并设置隐形性和可见性打开和关闭。
TextView tv7 = (TextView) findViewById(R.id.tvMarque2);
tv7.setSingleLine(true);
tv7.setMarqueeRepeatLimit(-1);
tv7.setEllipsize(TextUtils.TruncateAt.MARQUEE);
tv7.setSelected(true);
tv7.setText(Html.fromHtml("**<p style=color:green> * T*</p>\n<ul><li>* * * <p style=color:green;>*</p> <p style=color:red;>*</p>* * * </li></ul>"));
XML
<TextView
android:id="@+id/tvMarque2"
android:layout_width="24mm"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textColor="#00E5FF"
android:layout_gravity="center_horizontal"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:padding="15dp"
android:textSize="12sp"
android:text="AHA2"
android:visibility="visible" />
This question is related to this one.
I have made my MARQUEE rotating quite well. Please see my code below. Now I would like to make the letter "T" blinking but <blink>T</blink>
doesn't seem to work. Can someone give me a MWE for this matter which would make "T" below blinking?
I have an idea how to do it, but I'm somehow unable to realize it:
I could make the "T" part of a new TextView and let it set invisibility and visibility turn on and off.
TextView tv7 = (TextView) findViewById(R.id.tvMarque2);
tv7.setSingleLine(true);
tv7.setMarqueeRepeatLimit(-1);
tv7.setEllipsize(TextUtils.TruncateAt.MARQUEE);
tv7.setSelected(true);
tv7.setText(Html.fromHtml("**<p style=color:green> * T*</p>\n<ul><li>* * * <p style=color:green;>*</p> <p style=color:red;>*</p>* * * </li></ul>"));
XML
<TextView
android:id="@+id/tvMarque2"
android:layout_width="24mm"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textColor="#00E5FF"
android:layout_gravity="center_horizontal"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:padding="15dp"
android:textSize="12sp"
android:text="AHA2"
android:visibility="visible" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论