Android 如何像选框一样设置文本视图的动画?
我有一个文本视图,我需要用动画在屏幕上选框(比如新闻频道上闪烁的快闪新闻)。现在我如何在我尝试过的android中实现这一点 但是没有得到解决方案,请帮助?main.xmlAndroid 如何像选框一样设置文本视图的动画?,android,animation,Android,Animation,我有一个文本视图,我需要用动画在屏幕上选框(比如新闻频道上闪烁的快闪新闻)。现在我如何在我尝试过的android中实现这一点 但是没有得到解决方案,请帮助?main.xml <TextView android:id="@+id/mywidget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRigh
<TextView
android:id="@+id/mywidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:lines="1"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:textColor="#ff4500"
android:text="Simple application that shows how to use marquee, with a long text"
/>
您是否尝试过动画框架。否我如何使用它请解释?检查链接:参考此链接[[1]:我是否需要在我的java文件中为此效果执行任何操作Android(用户):是的,我将编辑您的答案我们需要稍加修改才能执行此操作
TextView tv = (TextView) this.findViewById(R.id.mywidget);
tv.setSelected(true); // Set focus to the textview