paint-brush
How to make Gradient Toolbar and Status bar in Androidby@akshay-rana-gujjar
6,679 reads
6,679 reads

How to make Gradient Toolbar and Status bar in Android

by Akshay Rana4mMarch 2nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Today we are going to learn how we can make an amazing custom toolbar with gradient effect and also apply the gradient to the status bar. To make gradient to status bar and toolbar we need to edit our styles.xml file to make it no action bar theme and apply full-screen so that we can add our custom status bar. The color of title in the toolbar is in black color which makes our toolbar look ugly. To make it look amazing we are adding white color to the toolbar title by calling method setTitleTextColor of toolbar widget.

Company Mentioned

Mention Thumbnail
featured image - How to make Gradient Toolbar and Status bar in Android
Akshay Rana HackerNoon profile picture
Akshay Rana

Akshay Rana

@akshay-rana-gujjar

Android and Web Developer

Learn More
LEARN MORE ABOUT @AKSHAY-RANA-GUJJAR'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Akshay Rana HackerNoon profile picture
Akshay Rana@akshay-rana-gujjar
Android and Web Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite