How to change Android Titlebar theme color from Purple

When you create your first ever application or select a new project in Android Studio you must have seen that the default color theme of the Titlebar (Toolbar) is purple. If you want to change the color theme, follow the below steps,

  1. Go to res folder,
  2. Now go to values ->colors.xml
  3. Now add the new colors that you want, example,

#888888
   
Change Android App Titlebar color from purple

Note: You can change the other theme colors here such as statusBarColor, colorSecondary, colorSecondaryVariant and so on in the same way!

Have Questions? Post them here!