How can I change the color of my text based on the color of the ImageView it overlays?
问题 So I've got transparant buttons with white text labels set up over a user uploaded ImageView . If the user uploads an image that is mostly white, then the buttons are hard to see if not completely invisible. Does anyone know of a way to get the average color of a ImageView 's source picture/drawable? If I can do this, I can compare it to a certain threshold I can trial and error for... If I can get this, then I can change the color of the text on my buttons to the inverted version of this