I beginner in UI designing, I'm trying to build an app that can change theme as an additional option. As the theme switches to black ToolBar and TabLayout Turns black and I'm using default font color "Black" as is suitable for white theme. Please help me, how to set text color such that it will change in theme.
Asked
Active
Viewed 301 times
0
-
Possible duplicate of [How to change default text color using custom theme?](https://stackoverflow.com/questions/9593133/how-to-change-default-text-color-using-custom-theme) – AskNilesh Dec 16 '17 at 11:40
1 Answers
0
You can try the Following
public void onCreate(Bundle savedInstanceState) {
setTheme(android.R.style.Theme);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second);
}
Where Theme is your Style that is to Be Implemented

Tomin B Azhakathu
- 2,656
- 1
- 19
- 28
-
I have edited my question, sorry for previous question. help me solve this problem – SriDatta Yalla Dec 16 '17 at 12:16
-
In your Theme use the variable textColor. Apply that Style to the textView. – Tomin B Azhakathu Dec 16 '17 at 12:34