我想在TextView上使用选取框效果,但只有在TextView获得焦点时才会滚动文本.这是一个问题,因为在我的情况下,它不能.
我在用:
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
Run Code Online (Sandbox Code Playgroud)
有没有办法让TextView始终滚动其文本?我已经看到这是在Android Market应用程序中完成的,其中应用程序名称将在标题栏中滚动,即使它没有获得焦点,但我无法在API文档中找到这一点.
不知何故,渐弱边缘似乎不适用于Android ics(android 4+)自己的视图.如果我在较低的Android版本上测试这个布局,它会描绘淡化边缘但不会在android 4.1上.
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdge="vertical"
android:focusableInTouchMode="true" <-- does not make any change
android:focusable="true" <--
/>
Run Code Online (Sandbox Code Playgroud)
有没有解决方法?