Sample code, which demonstrates the usage of Chrome Custom Tabs with action buttons, menu items and compares it with opening a webpage in Chrome Browser and WebView.
Chrome Custom Tabs is a new way to show third party content in android, which allows you to change how chrome looks and feels making the transition from app to web seemless.
With Chrome Custom Tabs, you can have
- Toolbar color
- Start/Exit animation
- Up button
- Action buttons
- Menu items
- Include the gradle dependency
- Connecting to browser service
- Chrome warmup
- Prefetch the webpage
- Load the webpage in Chrome Custom Tabs
Chrome Custom Tabs is only supported in Chrome browsers which are version 45 & above.
Also google has forgot to add dependency name in their [sample codes on GitHub] (https://github.com/GoogleChrome/custom-tabs-client). The gradle dependency for Chrome Custom Tabs is
compile 'com.android.support:customtabs:23.0.0'
Anjith Sasindran