
Cool, right?Īnd what if I want to change the colors of my icons?

As you may know, there are also many other properties for changing the appearance of our Toolbar.ģ - Editing the layout /res/layout/activity_main.xml (Applying the visual style) Įxplanations: We're applying our visual style to the Toolbar using the android:theme tag, and to the text using the tag app:titleTextAppearance.ĭon't forget to also edit the file in /res/layout-land/activity_main.xml in order to apply the visual style to landscape mode as well. In our case, we've decided to only edit the color of the title (textColorPrimary). We'll also edit our colors.xml file (which manages all the colors in our app) in order to add our own palette of colors.Ī whole course will be dedicated to these files and how to customize your design, don't worry!įinally, we'll apply this visual style to our Toolbar from our activity's layout (activity_main.xml).ġ - Editing the file /res/values/colors.xml (Editing the main colors in our app) Ģ - Editing the file /res/values/styles.xml (Adding a new visual style) we are creating a personalized style for our Toolbar (using tags) that inherit from a parent style already defined in Android. To do so, we're going to create a visual style that we'll apply to our Toolbar, all directly from our styles.xml file. However, we'd like to improve the appearance of our Toolbar, in order to make it… A tad sexier! We'll therefore continue the development of our ToolMyBar mini-app available at this link. Next, we'll also see how to navigate using it in smart ways by creating a second activity. In this chapter, we'll see how to edit the visual appearance of our fantastic Toolbar.
