Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 118 completely display webview content #120

Conversation

walkingice
Copy link
Member

@walkingice walkingice commented Oct 27, 2022

This PR overhaul fragment_browser.xml, and implementing a custom Behavior to slide up/down UrlBar. to fix #118

The AppBar/ToolBar/TopBar, is hide-able and will expand again on user
scrolling. This commit tries to remove the behavior, and make it always
stick at top.

Instead of using Material library, we are going to implement it by
ourself in subsequent commits.
We are not using HideBottomViewOnScrollBehavior anymore.
We are not using Behavior to slide up/down the BottomBar. Now let
BottomBar do the task itself.
FrameLayout is enought. It does not really need to be a CoordinatorLayout
In previous commits, the meterial appbar layout was removed. The whole
layout could be rewrote for better performance.

Also rename some id to make IDE happy.
UrlBar are layouting itself along with WebView(slot) and BottomBar. To
make them stay in same parent makes more sense.

By doing this, the xml file becomes clear, and we only need to care
about height of `insetCover`. That is for showing background under
System StatusBar.
This is for the WebViewSlot that contains a NestedWebView. To make the
NestedWebView cooperate with CooridnatorLayout, we needs a
Nested-ViewGroup to bridge them.
This is a dedicate Behavior for Rocket's scrolling. When user scroll the
WebView, Top/BottomBar will be changed along with WebView.

The Behavior receives events from CoordinatorLayout, and pass events to
the controller to decide how to layout AppBar, WebView and BottomBar.
do not control the BottomBar directly, move all tasks to Controller.

* We are going to remove all Shopping* stuffs later.
@walkingice walkingice force-pushed the issue-118-completely_display_webview_content branch from e8d0e7c to c3940be Compare October 28, 2022 13:36
@walkingice walkingice merged commit dabfb5e into RocketScientists:master Oct 28, 2022
@walkingice walkingice deleted the issue-118-completely_display_webview_content branch October 28, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] web page content is not displayed completely
1 participant