
Under your main package create a fragment named OneFragment.java and add the below code. All these fragment activities contains very simple UI with only one TextView.Ĩ. But before that we’ll create few fragment activities for testing purpose. If you see the notification bar color changed, it means that the material design theme is applied successfully.
#Android selected text color android#
These styles are specific to Android Finally open AndroidManifest.xml and modify the theme to our customized theme by changing the android:theme attribute the app and verify the material theme by observing the notification bar color. item>Below is the above example’s XML source code. Below is an example of the solid XML element. If you are not aware of android material design, my previous article Android Getting Started with Material Design gives you a good start.ġ. Android:color: The color value that is used to fill the shape.
#Android selected text color code#
Below is a step by step source code to change the color of navigation drawer indicator icon in android. You can copy and adopt this source code example to your android project without reinventing the wheel.
