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

How to make Gradient Toolbar and Status bar in Android

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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-gujjar

Akshay Rana


Receive Stories from @akshay-rana-gujjar

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa