Skip to content

danbrough/webnavdemo

Repository files navigation

Android Jetpack Navigation with WebView Demo

This demo project illustrates one solution on how to integrate Android Navigation with the Android WebView component.

You can install this demo from Google Play

This link is a deeplink and will take you to the settings page when viewed in the demo.

Deep link test: https://webnavdemo/settings

The objective was to make each new page opening in the webview correspond with a new Destination in the NavGraph so that the WebView coordinates with navigation stack. This is done by adding a custom Navigator to the NavController in a trivial subclass of NavHostFragment. This Navigator provides the placeholder URLDestination that corresponds to each opening of a webpage in the WebView fragment

About

Android Jetpack Navigation with WebView Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages