Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for obtaining control adaptive to screen

A screen and adaptation technology, applied in the computer field, can solve problems such as the control that cannot be automatically obtained for screen adaptation, and achieve the effect of reducing development costs

Inactive Publication Date: 2017-03-08
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Therefore, there is a technical problem in the prior art that controls adapted to the screen cannot be automatically obtained

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for obtaining control adaptive to screen
  • Method and system for obtaining control adaptive to screen
  • Method and system for obtaining control adaptive to screen

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Embodiments of the present invention provide a method and system for obtaining controls adapted to a screen, which are used for automatically obtaining controls adapted to a screen.

[0039] In order to solve the above technical problems, the technical solution idea provided by the present invention is as follows:

[0040] In the technical solution of the embodiment of the present invention, after the target aspect ratio of the target screen is obtained, the automatic layout function tool class AutoLayoutHelper is called to automatically calculate the new rendering parameters of the target control adapted to the target screen based on the target aspect ratio. It can be seen that, through the technical solution of the embodiment of the present invention, developers do not need to do adaptation work for different target screens one by one, and only need to provide the target aspect ratio to AutoLayoutHelper to obtain the rendering adapted to the target screen. parameters,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and system for obtaining a control adaptive to a screen. The method comprises the following steps of: obtaining the target screen aspect ratio of a target screen; and calling an automatic layout function AutoLayoutHelper to enable the AutoLayoutHelper to calculate a new rendering parameter, which is adaptive to the target screen, of a target control on the basis of the target screen aspect ratio. By use of the method, the technical effect that the control adaptive to the screen can be automatically obtained is realized.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and system for obtaining a control adapted to a screen. Background technique [0002] At present, there are many types of UE (User Equipment) of the Android operating system, and different UEs may have different screen sizes, resolutions, and resolutions. This causes developers to adapt controls to different screen sizes (or screen aspect ratios, resolutions) when developing applications. The adaptation work not only requires developers to invest money in purchasing different types of UEs, but also spends a lot of time adapting to different UEs. [0003] Therefore, there is a technical problem in the prior art that controls adapted to the screen cannot be automatically obtained. Contents of the invention [0004] Embodiments of the present invention provide a method and system for obtaining controls adapted to a screen, which are used for automatically obta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F3/0481
CPCG06F8/38G06F3/0481
Inventor 丁鹏
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products