Chrome Custom Tabs

I want to use Chrome Custom Tabs to open a web page faster compared to the webview component.

Any possibility to have Chrome Custom Tabs support on Makeroid?

CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
builder.setToolbarColor(ContextCompat.getColor(context, R.color.appthemecolor));
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.launchUrl(context, Uri.parse(url));

This is the intent I successfully added Chrome Custom Tabs to my Android Studio app.

setToolbarColor —> Sets the toolbar color where the target page title and link is located.
launchUrl —> Sets the target URL.
appthemecolor —> Default app theme color set by me.

Small speed test of comparison between custom tabs and webview (You can easily see the difference it makes):

performance

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

That would be a really cool feature and maybe its not that hard to implement too

2 Likes

Allright…

2 Likes