How to make Gradient Toolbar and Status bar in Android

Written by akshay-rana-gujjar | Published 2020/03/02
Tech Story Tags: android | android-app-development | android-studio | android-development | android-mobile-app | android-tutorial | android-gradient | java

TLDR 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.via the TL;DR App

no story

Written by akshay-rana-gujjar | Android and Web Developer
Published by HackerNoon on 2020/03/02