Reputation: 174
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?
Upvotes: 0
Views: 2740
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
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