When to use Chrome custom tabs
Ever since WebView came out, applications have been using it in multiple ways, embedding content—local static content inside the APK and dynamic content as loading web pages that were not designed for mobile devices at the beginning. Later on we saw the rise of the mobile web era complete with hybrid applications).
Chrome custom tabs are a bit more than just loading local content or mobile-compatible web content. They should be used when you load web data and want to allow simple implementation and easier code maintenance and, furthermore, make the web content part of your application—as if it's always there within your app.
Among the reasons why you should use custom tabs are the following:
Easy implementation: you use the support library when required or just add extras to your
View
intent. It's that simple.In app UI modifications, you can do the following:
Set the toolbar color
Add/change the action button
Add custom menu items to the overflow menu
Set and create...