How to change the color of Title text in CheckBoxPreference?
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.
As zenob said this can be solved by a custom layout. Preference layout defined in the framework is used in the application:
custom_preferece_layout.xml
textColor attribute is defined for title TextView in the above layout. Use this layout with the checkbox preference in preference xml.
mypreference.xml
Checkbox preference title will have the color defined in the custom layout.