0

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.

SriDatta Yalla
  • 766
  • 8
  • 13
  • 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 Answers1

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

How to change app default theme to a different app theme?

Check these Doc Please

Tomin B Azhakathu
  • 2,656
  • 1
  • 19
  • 28