Webpage Zooming via Custom WebView Control and Tiled Display
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing webpage zooming technologies on electronic devices face issues such as incomplete content display due to zooming, poor readability, slow zooming speeds, and the need for kernel component modifications, which can lead to browser breakdowns and inaccurate manual alignment.
Innovation Solution
A method for webpage zooming that involves generating a custom zooming processor object and touch event method, detecting touch operations, and determining if the operating system supports the zooming processor object, allowing for seamless zooming and alignment without modifying the kernel component, leveraging hardware acceleration for improved speed and accuracy.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If the built-in WebView control zooming function is used, then the zooming function is simple to implement, but the contents outside the zoomed region cannot be displayed and readability deteriorates
Solution Approach 1:
The patent segments the webpage content into multiple regions and uses multiple WebView controls to display different regions simultaneously. When zooming occurs, the system divides the webpage into a zoomed region and surrounding regions, displaying them in a tiled manner so that both detailed and contextual content remain visible, thus preventing information loss while maintaining implementation simplicity.
Solution Approach 2:
The patent transitions from single-region display to multi-region tiled display by adding spatial dimensions. Instead of displaying one zoomed region at a time, the system arranges multiple content regions in a two-dimensional grid layout, allowing users to view both zoomed details and surrounding context simultaneously, thereby improving content display completeness without complicating the implementation.
2Loss of information
If the browser kernel component is modified to re-compose text contents, then the content display completeness is improved, but the zooming speed decreases and application package size increases
Solution Approach 1:
The patent creates a custom WebView control that copies and extends the functionality of the built-in WebView control rather than modifying the original kernel component. This approach allows the system to implement tiled content display and improved zooming functionality while maintaining the original kernel's performance characteristics, thus preserving zooming speed while achieving complete content display.
Solution Approach 2:
The patent introduces a custom WebView control as an intermediary layer between the user interface and the browser kernel. This intermediary handles the complex tasks of content composition and region management, allowing the kernel to focus on rendering and maintaining fast zooming performance, thereby resolving the contradiction between complete content display and zooming speed.
3Loss of information
If the browser kernel component is modified, then the content display completeness is improved, but the reliability decreases due to potential browser breakdowns
Solution Approach 1:
The patent creates a custom WebView control that inherits from the built-in WebView control rather than directly modifying the kernel component. This copying approach allows the system to implement enhanced functionality while maintaining the original kernel's stability and reliability. The custom control acts as a safe extension that doesn't risk breaking the core browser functionality.
Solution Approach 2:
The patent extracts the content composition and region management functionality from the kernel modification approach and implements it separately in the custom WebView control. This separation ensures that the kernel remains unchanged and stable, while the enhanced features are implemented in a isolated layer that cannot cause browser breakdowns, thus improving reliability while maintaining content display completeness.
4Adaptability or versatility
If manual touch operations are used for alignment, then the adaptability is improved, but the measurement precision deteriorates due to limited touch accuracy
Solution Approach 1:
The patent implements automatic alignment functionality within the custom WebView control that eliminates the need for manual touch operations. The system automatically calculates and adjusts the positioning of tiled content regions based on the zoomed region coordinates, performing the alignment task itself without requiring user intervention. This self-service approach achieves high alignment precision while maintaining display adaptability across different devices.
Data Source
AI summary
Disclosed is a method and device for webpage zooming on an electronic apparatus. The method comprises: constructing a custom zooming processor object and replacing an original zooming processor object with it; inheriting a webpage display control to construct a custom touch event method; detecting an operation of touching an electronic apparatus as an operation of releasing n−1 touch points in n touch points; judging whether a zooming processor object is supported; if supported, the zooming processor object performs operations, in the zooming ending method a webpage text zooming scale is set to be a display zooming scale of the webpage display control, and executing the zooming ending method; and if not supported, setting the webpage text zooming scale to be the display zooming scale of the webpage display control, reflectively setting and enabling a zooming scale method, and executing a touch event method of the inherited webpage display control.


