Android WebView:仅显示网页的一半内容

huangapple 未分类评论43阅读模式
英文:

Android WebView: Display only half of a webpage

问题

目前我有一个HTML页面,其中一个容器在左侧包含元素A,而在右侧有元素B。我尝试使用ViewPager查看此页面,其中有两个选项卡,即在选项卡1上仅显示网页的一半,在选项卡2上显示另一半。这样即使用户选择在选项卡1上滚动到底,他也只能在滑动到选项卡2时才能看到右侧的内容。如果可能的话,大小可以在水平方向上由0-50%和51%-100%来确定。

有关如何实现此功能的任何想法吗?

英文:

Currently I have a HTML page with a container containing element A on the left side and element B on the right side. I'm trying to view this page using ViewPager with two tabs ie. have only half of the webpage displayed on Tab1 and the other half on 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. The size can be determined by 0-50% and 51% - 100% horizontally if possible.

Any idea how this can be implemented?

答案1

得分: 0

Android webview是一种浏览器,它的行为与另一个浏览器显示网页的行为相同,根据您的要求,请您的Web开发团队使其与浏览器兼容,并在您的设备上的Chrome、Firefox浏览器中检查它们的输出,然后集成到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 integrate into Android Webview.

huangapple
  • 本文由 发表于 2020年7月24日 13:50:56
  • 转载请务必保留本文链接:https://java.coder-hub.com/63067603.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定