Android How to change text color according to background image
问题 On Android, I have a header with a background image (Random image according to API). On this header I have texts with some data. My text is every time black but sometimes image is black too. So, we can't see the text. I'm looking for library or snippet for resolve this problem. Thanks. 回答1: You can use the palatte library for this. Please see the following: https://developer.android.com/reference/android/support/v7/graphics/Palette.html https://developer.android.com/training/material/palette