How do I change the R,G, B of an individual TextView?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
TextViews do not have the property of brightness. Their foreground and background colors are set with ARGB values, such as: 0xff000000 for an opaque black background, and 0xffffffff, for opaque white foreground.
To increase brightness, just increase all of R,G, and B by the same amount.
To change the color of a TextView, you can use the
android:backgroundandandroid:textColorxml attributes.