Skip to content

[Android] Keep nativeViews when navigating forward #4808

@hshristov

Description

@hshristov

When navigating forward through page.frame.navigate method we are destroying nativeViews. With this change we will no longer destroy nativeViews so this will make backward navigation faster. It will also improve forward navigation because we won't do anything with the current page.

Side changes done because of this feature:

  • As there is no API to get the default animation we are using reflection once in order to extract the default animator from resources.
  • When navigating without animation we create animation with duration 0
  • We now always wait for animation completion even if the default or no animation is used (because of the above changes)
  • Simplified and refactored navigation & transition classes
  • Removed cycling module dependency

All these should produce more fluid navigation between pages in both directions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions