开发者

Text flickering when using LinkMovementMethod

I'm using setMovementMethod(Lin开发者_如何学运维kMovementMethod.getInstance()) on a TextView instance but the text is flickering when touched. Is there any solution to this?


Use @android:color/primary_text_dark_nodisable or android:color/secondary_text_dark_nodisable as the text color of your text view. You can do this either in XML:

<TextView
  android:textColor="@android:color/secondary_text_dark_nodisable"
/>

or programmatically:

textView.setTextColor(activity.getResources().getColor(android.R.color.primary_text_dark_nodisable));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜