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));
精彩评论