Tobias Redmann
Tobias Redmann

Reputation: 174

How to do a colored address bar in Chrome for Android like thenextweb.com

When you are visiting thenextweb.com with an Android Chrome Browser, you will see a red address bar. Is there a trick to do this?

Android Screenshot

Upvotes: 0

Views: 2740

Answers (3)

Raytin Smith
Raytin Smith

Reputation: 41

<meta name="theme-color" content="#db5945">

Upvotes: 4

Mrunal
Mrunal

Reputation: 348

You can refer following site that may help you get colored address bar: How to change the color of header bar and address bar in newest Android Chrome version on Lollipop?

Upvotes: 1

Sree Reddy Menon
Sree Reddy Menon

Reputation: 1311

Android introduced in-app browser webviews called Chrome CustomTabs. which is similar to launching intent for web browser.

You can specify the color for addressbar while passing url .

private static final String EXTRA_CUSTOM_TABS_TOOLBAR_COLOR = "android.support.customtabs.extra.TOOLBAR_COLOR";
intent.putExtra(EXTRA_CUSTOM_TABS_TOOLBAR_COLOR, colorInt);

for more details. please read.

https://developer.chrome.com/multidevice/android/customtabs

Upvotes: 0

Related Questions