开发者

Text flickering when using LinkMovementMethod

开发者 https://www.devze.com 2023-03-19 12:29 出处:网络
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

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

精彩评论

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