简体   繁体   English

Android WebView:只显示网页的一半

[英]Android WebView: Display only half of a webpage

Currently I have a HTML page with a container containing element A on the left side and element B on the right side.目前,我有一个 HTML 页面,其中包含左侧的元素 A 和右侧的元素 B 的容器。 I'm trying to view this page using ViewPager with two tabs ie.我正在尝试使用带有两个选项卡的 ViewPager 来查看此页面,即。 have only half of the webpage displayed on Tab1 and the other half on Tab2. Tab1 只显示一半网页,Tab2 显示另一半。 This makes it so that even if the user chooses to scroll all the way on Tab1, he can never see the content on the right side unless he swipes to Tab2.这使得即使用户选择在 Tab1 上一直滚动,他也永远无法看到右侧的内容,除非他滑动到 Tab2。 The size can be determined by 0-50% and 51% - 100% horizontally if possible.如果可能,大小可以由 0-50% 和 51% - 100% 水平确定。

Any idea how this can be implemented?知道如何实现吗?

Android webview is a kind of browser, it will behave the same as another bowser is doing for showing webpage, as per your requirement ask your Web development team to make it browser compatible, and check their output in Chrome, Firefox browser in your device then integrate into Android Webview. Android webview is a kind of browser, it will behave the same as another bowser is doing for showing webpage, as per your requirement ask your Web development team to make it browser compatible, and check their output in Chrome, Firefox browser in your device then集成到 Android Webview。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM