Android Lollipop issues with text color

760 views Asked by At

I have an app with android:Theme.Holo, navigation bar with black background and white textcolor for Button/TextView. It's fine on OS before Lollipop.

In Lollipop I can't see text, I suppose it's black too because, as I said, on previous OS it works fine.

Any well-known issues about text color in Android L?

1

There are 1 answers

0
SamIAmHarris On BEST ANSWER

I ran into this issue recently after upgrading my targetApi from 20 to 22. I have a button with textColor: white, but it was showing transparent because my background color was transparent

I am not sure why the textColor has issues on Lollipop, but I solved it by setting the textColor programmatically.

    loginBT = (Button) v.findViewById(R.id.beta_login);
    loginBT.setTextColor(getResources().getColor(R.color.white));