Nothing Special   »   [go: up one dir, main page]

WO2022063158A1 - Local screen adaptation method and device - Google Patents

Local screen adaptation method and device Download PDF

Info

Publication number
WO2022063158A1
WO2022063158A1 PCT/CN2021/119825 CN2021119825W WO2022063158A1 WO 2022063158 A1 WO2022063158 A1 WO 2022063158A1 CN 2021119825 W CN2021119825 W CN 2021119825W WO 2022063158 A1 WO2022063158 A1 WO 2022063158A1
Authority
WO
WIPO (PCT)
Prior art keywords
view
standard
aspect ratio
screen
current screen
Prior art date
Application number
PCT/CN2021/119825
Other languages
French (fr)
Chinese (zh)
Inventor
杨华
Original Assignee
上海连尚网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海连尚网络科技有限公司 filed Critical 上海连尚网络科技有限公司
Publication of WO2022063158A1 publication Critical patent/WO2022063158A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Definitions

  • the embodiments of the present application relate to the field of computer technologies, and in particular, to a method and device for partially adapting a screen.
  • the width and height pixels of common terminal screens are very different, while the pixels of the application pages are fixed, which cannot be directly adapted to terminal screens of various width and height pixels. If the page of the application is directly displayed on an unsuitable terminal screen, the page will be deformed.
  • the more mainstream screen adaptation schemes now include the following two: first, generate multiple sets of resource files for different screens, and then select resource files for adaptation with the minimum width limit; second, modify the density of the system to perform global proportional adaptation.
  • the embodiments of the present application propose a method and device for partially adapting a screen.
  • an embodiment of the present application provides a method for locally adapting a screen, including: in response to application startup, obtaining the original width and height pixels of the current screen; Ratio, perform proportional operation on the original width and height pixels of the current screen and the width and height pixels of the standard screen to generate the standard width and height pixel ratio of the current screen; obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application; based on The standard width and height pixel ratio of the current screen is scaled to the view to be adapted to obtain the standard width and height pixels of the view to be adapted; the standard width and height pixels of the view to be adapted are set to the page to be displayed, and the page to be displayed is rendered. show.
  • scaling the to-be-adapted view based on the standard aspect ratio of the current screen includes: calling a reset scale view function to perform local dynamic transformation of the to-be-adapted view and a sub-view set of the to-be-adapted view.
  • calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted includes: if the view to be adapted consists of a sub-view set, traversing the sub-views of the view to be adapted Set, and call the reset scale view function to recursively transform the set of subviews of the view to be adapted.
  • calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: acquiring layout parameters of the view to be adapted; if based on the layout of the view to be adapted The parameters determine that the view to be adapted is a text view, and obtain the original text size of the view to be adapted; calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted .
  • calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: if it is determined based on the layout parameters of the view to be adapted that the width of the view to be adapted is greater than 0, calculate the product of the standard width and height pixel ratio of the current screen and the original width pixels of the view to be adapted to obtain the standard width pixels of the view to be adapted; if it is determined based on the layout parameters of the view to be adapted that the height of the view to be adapted is greater than 0, calculate the product of the standard aspect ratio of the current screen and the original height pixels of the view to be adapted to obtain the standard height pixels of the view to be adapted.
  • calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: performing a size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted Appropriate scaling; transforming the core of the view to be adapted based on the layout parameters of the view to be adapted; appropriately scaling the filling of the view to be adapted based on the layout parameters of the view to be adapted.
  • transforming the core of the view to be adapted based on the layout parameters of the view to be adapted includes: if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, Convert the product from float to integer.
  • scaling the view to be adapted based on the standard aspect ratio of the current screen includes: performing local dynamic transformation on all views of the page to be displayed by using a rescaled view function.
  • the method further includes: if the original aspect ratio of the current screen is the aspect ratio of a standard screen, rendering and displaying the page to be displayed.
  • an embodiment of the present application provides a device for partially adapting a screen, including: a first obtaining unit, configured to obtain the original width and height pixels of the current screen in response to application startup;
  • the original aspect ratio of the screen is not the aspect ratio of the standard screen, and the ratio operation is performed on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen;
  • the second obtaining unit is configured to obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application;
  • the transformation unit is configured to perform a scale transformation of the view to be adapted based on the standard aspect ratio of the current screen, to obtain the size of the view to be adapted.
  • the first rendering unit is configured to set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
  • the transformation unit includes: a first transformation sub-unit configured to call a reset scale view function to perform local dynamic transformation of the view to be adapted and the set of sub-views of the view to be adapted.
  • the first transform sub-unit is further configured to: if the view to be adapted consists of a set of subviews, traverse the set of subviews of the view to be adapted, and call the reset scale view function of the subviews of the view to be adapted The set is recursively transformed.
  • the first transformation subunit is further configured to: obtain layout parameters of the view to be adapted; if it is determined based on the layout parameters of the view to be adapted that the view to be adapted is a text view, obtain the original Text size: Calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
  • the first transforming subunit is further configured to: if it is determined based on the layout parameters of the view to be adapted that the width of the view to be adapted is greater than 0, calculate the standard aspect ratio of the current screen and the ratio of the pixels to be adapted to the standard aspect ratio of the view to be adapted.
  • the product of the original width pixels is used to obtain the standard width pixels of the view to be adapted; if the height of the view to be adapted is determined to be greater than 0 based on the layout parameters of the view to be adapted, calculate the ratio of the standard width to height pixels of the current screen and the size of the view to be adapted.
  • the first transformation sub-unit is further configured to: appropriately scale the size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted; and the core of the view to be adapted based on the layout parameters of the view to be adapted Transform; appropriately scale the padding of the view to be adapted based on the layout parameters of the view to be adapted.
  • the first transform subunit is further configured to: if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, convert the product from a floating point type to an integer type.
  • the transformation unit includes a second transformation sub-unit configured to locally dynamically transform all views of the page to be displayed using the reset scale view function.
  • the apparatus further includes: a second rendering unit configured to render and display the page to be displayed if the original aspect ratio of the current screen is the aspect ratio of a standard screen.
  • embodiments of the present application provide a computer device, the computer device includes: one or more processors; a storage device on which one or more programs are stored; when one or more programs are stored by one or more The multiple processors execute such that the one or more processors implement a method as described in any one of the implementations of the first aspect.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any implementation manner of the first aspect.
  • the original aspect ratio of the current screen is not the aspect ratio of the standard screen
  • the original aspect ratio of the current screen and the width of the standard screen are compared.
  • a screen adaptation solution with high flexibility and high stability is provided to solve the unification of the styles of application pages displayed on terminals with different screen densities.
  • FIG. 1 is an exemplary system architecture to which some embodiments of the present application may be applied;
  • FIG. 2 is a flowchart of an embodiment of a method for partially adapting a screen according to the present application
  • Fig. 3 is a flow chart of still another embodiment of a method for partially adapting a screen according to the present application
  • FIG. 4 is a flowchart of another embodiment of a method for partially adapting a screen according to the present application
  • FIG. 5 is a schematic structural diagram of a computer system suitable for implementing the computer device of the embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the locally adapted screen method of the present application may be applied.
  • the system architecture 100 may include devices 101 , 102 and a network 103 .
  • the network 103 may include various connection types, such as wired, wireless target communication links, or fiber optic cables, among others.
  • the devices 101, 102 may be hardware devices or software that support network connections to provide various network services.
  • the device can be a variety of electronic devices including, but not limited to, smart phones, tablet computers, laptop computers, desktop computers, and servers, among others.
  • a hardware device it can be implemented as a distributed device group composed of multiple devices, or can be implemented as a single device.
  • the device is software, it can be installed in the electronic devices listed above.
  • software it may be implemented as a plurality of software or software modules for providing distributed services, or may be implemented as a single software or software module. There is no specific limitation here.
  • the device can provide corresponding network services by installing a corresponding client application or server application.
  • client application After the client application is installed on the device, it can be embodied as a client in network communication.
  • server application After the server application is installed, it can be embodied as a server in network communication.
  • device 101 is embodied as a client, and device 102 is embodied as a server.
  • the device 101 may be a client installed with an Android application, and the device 102 may be a server of the Android application.
  • the partial screen adaptation method provided by the embodiment of the present application may be executed by the device 101 .
  • FIG. 2 it shows a flow 200 of one embodiment of a method for locally adapting a screen according to the present application.
  • the partial screen adaptation method includes the following steps:
  • Step 201 in response to application startup, obtain the original width and height pixels of the current screen.
  • various applications are installed on the terminal, and when the user starts the application, the terminal can obtain the original width and height pixels of the current screen and save them in the memory.
  • the application may be any application installed on the terminal.
  • the pixels of the screen of the terminal may be different for different brands and models.
  • the screen of a terminal with a high resolution is high in pixels. Pixels are usually represented as width pixels ⁇ height pixels. Common pixels such as 1920 ⁇ 1080, 1280 ⁇ 720, 1280 ⁇ 800, 1024 ⁇ 768 and so on.
  • Step 202 if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
  • the terminal may calculate the original aspect ratio of the current screen and compare it with the aspect ratio of the standard screen. If the original aspect ratio of the current screen is not the aspect ratio of the standard screen, the terminal can perform a ratio operation between the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
  • the pixels of the standard screen may be the pixels of the prototype image of the UI design of the application. For example, if the width and height pixels of the prototype image are 1920 ⁇ 1080, then the width and height pixels of the standard screen are 1920 ⁇ 1080. At this time, the aspect ratio of the standard screen is 1920/1080. If the original aspect ratio of the current screen is 1024 ⁇ 768, then the original aspect ratio of the current screen is 1024/768. Since 1024/768 is not equal to 1920/1080, the current screen is not a standard screen.
  • the terminal can directly render and display the page to be displayed, which can display a page with the same ratio as the standard screen.
  • Step 203 Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
  • the terminal may acquire the original width and height pixels of the view to be adapted on the page to be displayed of the application.
  • the page to be displayed may be a page that needs to be displayed during the running of the application. For example, when the user clicks the icon of the application, the page to be displayed is the main page of the application.
  • the view to be adapted can be a view that does not match the aspect ratio of the page to be displayed and the standard screen. If the sub-current screen is displayed without adaptation, part of the display on the current screen will be deformed.
  • the attempts to be adapted can be all views of the system, not limited to custom views.
  • the to-be-adapted attempt is the unit that needs to be adapted, which can be the controls on the page to be displayed, or the entire page.
  • Step 204 scale-transform the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard aspect ratio of the view to be adapted.
  • the terminal may perform scale transformation of the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard aspect ratio of the view to be adapted.
  • the ratio transformation may be the standard width pixel ratio obtained by multiplying the standard width pixels of the view to be adapted by the standard width pixel ratio of the current screen, and at the same time multiplying the standard height pixels of the view to be adapted by the standard height pixel ratio of the current screen. High pixels can be adapted to the current screen, showing the same ratio as the standard screen, so that the page is not deformed.
  • Step 205 Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
  • the terminal may set the standard width and height pixels of the view to be adapted into the page to be displayed, and replace the width and height pixels of the to-be-adapted view. Then, the page to be displayed is rendered and displayed, and the page with the same proportion as the standard screen can be displayed.
  • the original aspect ratio of the current screen is not the aspect ratio of the standard screen
  • the original aspect ratio of the current screen and the aspect ratio of the standard screen are compared.
  • Perform scale operation to generate the standard aspect ratio of the current screen; then obtain the original aspect ratio of the view to be adapted on the page to be displayed of the application; then scale the view to be adapted based on the standard aspect ratio of the current screen.
  • obtain the standard width and height pixels of the view to be adapted to finally, the standard width and height pixels of the view to be adapted are set in the page to be displayed, and the page to be displayed is rendered and displayed.
  • a screen adaptation solution with high flexibility and high stability is provided to solve the unification of the styles of application pages displayed on terminals with different screen densities.
  • FIG. 3 it shows a process 300 of yet another embodiment of the method for locally adapting a screen according to the present application.
  • the partial screen adaptation method includes the following steps:
  • Step 301 in response to application startup, obtain the original width and height pixels of the current screen.
  • Step 302 if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
  • Step 303 Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
  • steps 301-303 have been described in detail in steps 201-203 in the embodiment shown in FIG. 2, and will not be repeated here.
  • Step 304 calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted, so as to obtain standard width and height pixels of the view to be adapted.
  • the terminal may call the reset scale view function resetViewWithScale(view) to perform local dynamic transformation of the view to be adapted and the subview set of the view to be adapted, so as to obtain standard width and height pixels of the view to be adapted.
  • Local dynamic transformation is performed only on the view to be adapted and the subview set of the view to be adapted, and the width and height pixels of other views on the page to be displayed are not affected.
  • the terminal may also use the rescale view function to perform local dynamic transformation of all views of the page to be displayed.
  • Step 305 Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
  • step 305 has been described in detail in step 205 in the embodiment shown in FIG. 2 , and details are not repeated here.
  • the process 300 of the method for local adaptation to the screen in this embodiment highlights the local dynamic transformation step. Therefore, the solution described in this embodiment only performs partial dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted, and does not affect the width and height pixels of other views on the page to be displayed. Provides a screen adaptation solution with small impact scope, small code changes, and less intrusion to the original code.
  • FIG. 4 shows a process 400 of another embodiment of a method for locally adapting a screen according to the present application.
  • the partial screen adaptation method includes the following steps:
  • Step 401 in response to application startup, obtain the original width and height pixels of the current screen.
  • Step 402 if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
  • Step 403 Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
  • steps 401-403 have been described in detail in steps 301-303 in the embodiment shown in FIG. 3, and are not repeated here.
  • Step 404 if the view to be adapted consists of a sub-view set, traverse the sub-view set of the view to be adapted, and call the reset scale view function to recursively transform the sub-view set of the view to be adapted.
  • the terminal may traverse the sub-view sets of the view to be adapted, and call the reset scale view function to recursively transform the sub-view sets of the view to be adapted.
  • each subview calls the reset scale view function to transform.
  • Step 405 Obtain layout parameters of the view to be adapted.
  • the terminal may acquire the layout parameters of the adapted view.
  • the layout parameters may include, but are not limited to, the type of the view to be adapted, width and height attributes, text size, margin size, core, padding, and the like.
  • the types of views to be adapted may include, but are not limited to, text, images, and the like.
  • Step 406 if it is determined based on the layout parameters of the view to be adapted that the view to be adapted is a text view, obtain the original text size of the view to be adapted.
  • the terminal may extract the type of the view to be adapted from the layout parameters of the view to be adapted. If the view to be adapted is a text view, the terminal may obtain the original text size of the view to be adapted.
  • Step 407 Calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
  • the terminal may perform proportional transformation on the original text size of the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard text size of the view to be adapted. Specifically, the terminal may calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
  • Step 408 if it is determined that the width of the view to be adapted is greater than 0 based on the layout parameters of the view to be adapted, calculate the product of the standard aspect ratio of the current screen and the original width pixel of the view to be adapted to obtain the standard of the view to be adapted. width in pixels.
  • the terminal may extract the width of the view to be adapted from the layout parameters of the view to be adapted. If the width of the to-be-adapted view is greater than 0, the terminal may scale-transform the original width pixels of the to-be-adapted view based on the standard aspect ratio of the current screen to obtain the standard-width pixels of the to-be-adapted view. Specifically, the terminal may calculate the product of the standard width and height pixel ratio of the current screen and the original width pixels of the view to be adapted to obtain the standard width pixels of the view to be adapted.
  • Step 409 if it is determined that the height of the view to be adapted is greater than 0 based on the layout parameters of the view to be adapted, calculate the product of the standard aspect ratio of the current screen and the original height pixel of the view to be adapted to obtain the standard of the view to be adapted. height in pixels.
  • the terminal may extract the height of the view to be adapted from the layout parameters of the view to be adapted. If the height of the view to be adapted is greater than 0, the terminal may perform proportional transformation on the original height pixels of the view to be adapted based on the standard aspect ratio of the current screen to obtain standard height pixels of the view to be adapted. Specifically, the terminal may calculate the product of the standard aspect ratio of the current screen and the original height pixels of the view to be adapted to obtain the standard height pixels of the view to be adapted.
  • Step 410 Appropriately scale the size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted.
  • the terminal may extract the margin size of the view to be adapted from the layout parameters of the view to be adapted, and appropriately scale the margin size of the view to be adapted.
  • Step 411 transform the core of the view to be adapted based on the layout parameters of the view to be adapted.
  • the terminal may extract the core of the view to be adapted from the layout parameters of the view to be adapted, and transform the core of the view to be adapted. For example, if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, the terminal may convert the product from a floating point type to an integer type.
  • Step 412 Appropriately scale the filling of the view to be adapted based on the layout parameters of the view to be adapted.
  • the terminal may extract the padding of the view to be adapted from the layout parameters of the view to be adapted, and appropriately scale the padding of the view to be adapted.
  • Step 413 Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
  • step 413 has been described in detail in step 305 in the embodiment shown in FIG. 3 , and will not be repeated here.
  • the process 400 of the method for local adaptation to the screen in this embodiment highlights the local dynamic transformation step. Therefore, the solution described in this embodiment performs corresponding transformation on the views according to different layout parameters of the views, thereby providing a screen adaptation solution with a wide range of adaptation.
  • FIG. 5 shows a schematic structural diagram of a computer system 500 suitable for implementing the computer device of the embodiment of the present application.
  • the computer device shown in FIG. 5 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
  • a computer system 500 includes a central processing unit (CPU) 501 which can be loaded into a random access memory (RAM) 503 according to a program stored in a read only memory (ROM) 502 or a program from a storage section 508 Instead, various appropriate actions and processes are performed.
  • RAM random access memory
  • ROM read only memory
  • various programs and data required for the operation of the system 500 are also stored.
  • the CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to bus 504 .
  • the following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc. ; and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet.
  • a drive 510 is also connected to the I/O interface 505 as needed.
  • a removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication portion 509 and/or installed from the removable medium 511 .
  • CPU central processing unit
  • the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages - such as Java, Smalltalk, C++, but also conventional procedures, or a combination thereof programming language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or electronic device.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described unit may also be provided in the processor, for example, it may be described as: a processor includes a first obtaining unit, an arithmetic unit, a second obtaining unit, a transforming unit and a first rendering unit.
  • a processor includes a first obtaining unit, an arithmetic unit, a second obtaining unit, a transforming unit and a first rendering unit.
  • the names of these units do not constitute a limitation on the unit itself.
  • the first obtaining unit may also be described as "a unit that obtains the original width and height pixels of the current screen in response to application startup".
  • the present application also provides a computer-readable medium.
  • the computer-readable medium may be included in the computer device described in the above embodiments; it may also exist independently without being assembled into the computer device. middle.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the computer equipment, the computer equipment: in response to application startup, obtain the original width and height pixels of the current screen; The original aspect ratio is not the aspect ratio of the standard screen.
  • the ratio operation is performed on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen;
  • the original width and height pixels of the view to be adapted scale the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard width and height pixels of the view to be adapted; set the standard width and height pixels of the view to be adapted to the page to be displayed, and the page to be displayed is rendered and displayed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Disclosed are a local screen adaptation method and a device. One particular embodiment of the method comprises: in response to the startup of an application, acquiring original width and height pixels of a current screen; if an original width-to-height pixel ratio of the current screen is not a width-to-height pixel ratio of a standard screen, performing ratio calculation on the original width and height pixels of the current screen and width and height pixels of the standard screen, so as to generate a standard width-to-height pixel ratio of the current screen; acquiring original width and height pixels of a view to be adapted on a page to be displayed of the application; on the basis of the standard width-to-height pixel ratio of the current screen, performing ratio transformation on the view to be adapted, so as to obtain standard width and height pixels of the view to be adapted; and setting, in the page to be displayed, the standard width and height pixels of the view to be adapted, and rendering and displaying the page to be displayed. A screen adaptation solution with a high flexibility and a high stability is provided, and the unification of the styles of application pages displayed on terminals with different screen densities is realized.

Description

局部适配屏幕方法和设备Partial adaptation screen method and device 技术领域technical field
本申请实施例涉及计算机技术领域,具体涉及局部适配屏幕方法和设备。The embodiments of the present application relate to the field of computer technologies, and in particular, to a method and device for partially adapting a screen.
背景技术Background technique
目前,常见的终端屏幕的宽高像素差异很大,而应用的页面的像素却是固定的,无法直接适配各种宽高像素的终端屏幕。若在不适配的终端屏幕上直接显示应用的页面,就会使页面变形。At present, the width and height pixels of common terminal screens are very different, while the pixels of the application pages are fixed, which cannot be directly adapted to terminal screens of various width and height pixels. If the page of the application is directly displayed on an unsuitable terminal screen, the page will be deformed.
现在比较主流的屏幕适配方案包括以下两种:其一,生成相对于不同屏幕的多套资源文件,再配合最小宽度限定来选择资源文件进行适配;其二,修改系统的密度来进行全局的比例的适配。The more mainstream screen adaptation schemes now include the following two: first, generate multiple sets of resource files for different screens, and then select resource files for adaptation with the minimum width limit; second, modify the density of the system to perform global proportional adaptation.
发明内容SUMMARY OF THE INVENTION
本申请实施例提出了局部适配屏幕方法和设备。The embodiments of the present application propose a method and device for partially adapting a screen.
第一方面,本申请实施例提供了一种局部适配屏幕方法,包括:响应于应用启动,获取当前屏幕的原始宽高像素;若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例;获取应用的待显示页面上的待适配视图的原始宽高像素;基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素;将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。In a first aspect, an embodiment of the present application provides a method for locally adapting a screen, including: in response to application startup, obtaining the original width and height pixels of the current screen; Ratio, perform proportional operation on the original width and height pixels of the current screen and the width and height pixels of the standard screen to generate the standard width and height pixel ratio of the current screen; obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application; based on The standard width and height pixel ratio of the current screen is scaled to the view to be adapted to obtain the standard width and height pixels of the view to be adapted; the standard width and height pixels of the view to be adapted are set to the page to be displayed, and the page to be displayed is rendered. show.
在一些实施例中,基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,包括:调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换。In some embodiments, scaling the to-be-adapted view based on the standard aspect ratio of the current screen includes: calling a reset scale view function to perform local dynamic transformation of the to-be-adapted view and a sub-view set of the to-be-adapted view.
在一些实施例中,调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换,包括:若待适配视图由子视图集组成,遍历待适 配视图的子视图集,以及调用重置比例视图函数对待适配视图的子视图集进行递归变换。In some embodiments, calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted includes: if the view to be adapted consists of a sub-view set, traversing the sub-views of the view to be adapted Set, and call the reset scale view function to recursively transform the set of subviews of the view to be adapted.
在一些实施例中,调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换,还包括:获取待适配视图的布局参数;若基于待适配视图的布局参数确定待适配视图是文字视图,获取待适配视图的原始文字大小;计算当前屏幕的标准宽高像素比例与待适配视图的原始文字大小的乘积,得到待适配视图的标准文字大小。In some embodiments, calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: acquiring layout parameters of the view to be adapted; if based on the layout of the view to be adapted The parameters determine that the view to be adapted is a text view, and obtain the original text size of the view to be adapted; calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted .
在一些实施例中,调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换,还包括:若基于待适配视图的布局参数确定待适配视图的宽度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始宽度像素的乘积,得到待适配视图的标准宽度像素;若基于待适配视图的布局参数确定待适配视图的高度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始高度像素的乘积,得到待适配视图的标准高度像素。In some embodiments, calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: if it is determined based on the layout parameters of the view to be adapted that the width of the view to be adapted is greater than 0, calculate the product of the standard width and height pixel ratio of the current screen and the original width pixels of the view to be adapted to obtain the standard width pixels of the view to be adapted; if it is determined based on the layout parameters of the view to be adapted that the height of the view to be adapted is greater than 0, calculate the product of the standard aspect ratio of the current screen and the original height pixels of the view to be adapted to obtain the standard height pixels of the view to be adapted.
在一些实施例中,调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换,还包括:基于待适配视图的布局参数对待适配视图的外边距大小进行适当缩放;基于待适配视图的布局参数对待适配视图的核心进行变换;基于待适配视图的布局参数对待适配视图的填充进行适当缩放。In some embodiments, calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the subview set of the view to be adapted further includes: performing a size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted Appropriate scaling; transforming the core of the view to be adapted based on the layout parameters of the view to be adapted; appropriately scaling the filling of the view to be adapted based on the layout parameters of the view to be adapted.
在一些实施例中,基于待适配视图的布局参数对待适配视图的核心进行变换,包括:若待适配视图的大小与当前屏幕的标准宽高像素比例的乘积在预设数值区间内,将乘积从浮点型转换为整数型。In some embodiments, transforming the core of the view to be adapted based on the layout parameters of the view to be adapted includes: if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, Convert the product from float to integer.
在一些实施例中,基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,包括:利用重置比例视图函数对待显示页面的所有视图进行局部动态变换。In some embodiments, scaling the view to be adapted based on the standard aspect ratio of the current screen includes: performing local dynamic transformation on all views of the page to be displayed by using a rescaled view function.
在一些实施例中,该方法还包括:若当前屏幕的原始宽高像素比例是标准屏幕的宽高像素比例,对待显示页面进行渲染显示。In some embodiments, the method further includes: if the original aspect ratio of the current screen is the aspect ratio of a standard screen, rendering and displaying the page to be displayed.
第二方面,本申请实施例提供了一种局部适配屏幕装置,包括:第一获取单元,被配置成响应于应用启动,获取当前屏幕的原始宽高像素;运算单元,被配置成若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的 标准宽高像素比例;第二获取单元,被配置成获取应用的待显示页面上的待适配视图的原始宽高像素;变换单元,被配置成基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素;第一渲染单元,被配置成将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。In a second aspect, an embodiment of the present application provides a device for partially adapting a screen, including: a first obtaining unit, configured to obtain the original width and height pixels of the current screen in response to application startup; The original aspect ratio of the screen is not the aspect ratio of the standard screen, and the ratio operation is performed on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen; the second obtaining unit, is configured to obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application; the transformation unit is configured to perform a scale transformation of the view to be adapted based on the standard aspect ratio of the current screen, to obtain the size of the view to be adapted. Standard width and height pixels; the first rendering unit is configured to set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
在一些实施例中,变换单元包括:第一变换子单元,被配置成调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换。In some embodiments, the transformation unit includes: a first transformation sub-unit configured to call a reset scale view function to perform local dynamic transformation of the view to be adapted and the set of sub-views of the view to be adapted.
在一些实施例中,第一变换子单元进一步被配置成:若待适配视图由子视图集组成,遍历待适配视图的子视图集,以及调用重置比例视图函数对待适配视图的子视图集进行递归变换。In some embodiments, the first transform sub-unit is further configured to: if the view to be adapted consists of a set of subviews, traverse the set of subviews of the view to be adapted, and call the reset scale view function of the subviews of the view to be adapted The set is recursively transformed.
在一些实施例中,第一变换子单元进一步被配置成:获取待适配视图的布局参数;若基于待适配视图的布局参数确定待适配视图是文字视图,获取待适配视图的原始文字大小;计算当前屏幕的标准宽高像素比例与待适配视图的原始文字大小的乘积,得到待适配视图的标准文字大小。In some embodiments, the first transformation subunit is further configured to: obtain layout parameters of the view to be adapted; if it is determined based on the layout parameters of the view to be adapted that the view to be adapted is a text view, obtain the original Text size: Calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
在一些实施例中,第一变换子单元进一步被配置成:若基于待适配视图的布局参数确定待适配视图的宽度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始宽度像素的乘积,得到待适配视图的标准宽度像素;若基于待适配视图的布局参数确定待适配视图的高度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始高度像素的乘积,得到待适配视图的标准高度像素。In some embodiments, the first transforming subunit is further configured to: if it is determined based on the layout parameters of the view to be adapted that the width of the view to be adapted is greater than 0, calculate the standard aspect ratio of the current screen and the ratio of the pixels to be adapted to the standard aspect ratio of the view to be adapted. The product of the original width pixels is used to obtain the standard width pixels of the view to be adapted; if the height of the view to be adapted is determined to be greater than 0 based on the layout parameters of the view to be adapted, calculate the ratio of the standard width to height pixels of the current screen and the size of the view to be adapted. The product of the original height pixels to get the standard height pixels of the view to be adapted.
在一些实施例中,第一变换子单元进一步被配置成:基于待适配视图的布局参数对待适配视图的外边距大小进行适当缩放;基于待适配视图的布局参数对待适配视图的核心进行变换;基于待适配视图的布局参数对待适配视图的填充进行适当缩放。In some embodiments, the first transformation sub-unit is further configured to: appropriately scale the size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted; and the core of the view to be adapted based on the layout parameters of the view to be adapted Transform; appropriately scale the padding of the view to be adapted based on the layout parameters of the view to be adapted.
在一些实施例中,第一变换子单元进一步被配置成:若待适配视图的大小与当前屏幕的标准宽高像素比例的乘积在预设数值区间内,将乘积从浮点型转换为整数型。In some embodiments, the first transform subunit is further configured to: if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, convert the product from a floating point type to an integer type.
在一些实施例中,变换单元包括:第二变换子单元,被配置成利用重置比例视图函数对待显示页面的所有视图进行局部动态变换。In some embodiments, the transformation unit includes a second transformation sub-unit configured to locally dynamically transform all views of the page to be displayed using the reset scale view function.
在一些实施例中,该装置还包括:第二渲染单元,被配置成若当前屏幕的原始宽高像素比例是标准屏幕的宽高像素比例,对待显示页面进行渲染显示。In some embodiments, the apparatus further includes: a second rendering unit configured to render and display the page to be displayed if the original aspect ratio of the current screen is the aspect ratio of a standard screen.
第三方面,本申请实施例提供了一种计算机设备,该计算机设备包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的方法。In a third aspect, embodiments of the present application provide a computer device, the computer device includes: one or more processors; a storage device on which one or more programs are stored; when one or more programs are stored by one or more The multiple processors execute such that the one or more processors implement a method as described in any one of the implementations of the first aspect.
第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any implementation manner of the first aspect.
本申请实施例提供的局部适配屏幕方法和设备,在应用启动时,若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例;之后获取应用的待显示页面上的待适配视图的原始宽高像素;然后基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素;最后将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。提供了一种灵活性高、稳定性高的屏幕适配方案,解决在不同屏幕密度终端上展示的应用页面的风格的统一。According to the local screen adaptation method and device provided by the embodiments of the present application, when the application starts, if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, the original aspect ratio of the current screen and the width of the standard screen are compared. Perform the ratio operation on the high pixels to generate the standard aspect ratio of the current screen; then obtain the original aspect ratio of the view to be adapted on the page to be displayed of the application; then based on the standard aspect ratio of the current screen Scale transformation to obtain standard width and height pixels of the view to be adapted; finally, the standard width and height pixels of the view to be adapted are set in the page to be displayed, and the page to be displayed is rendered and displayed. A screen adaptation solution with high flexibility and high stability is provided to solve the unification of the styles of application pages displayed on terminals with different screen densities.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请一些实施例可以应用于其中的示例性系统架构;FIG. 1 is an exemplary system architecture to which some embodiments of the present application may be applied;
图2是根据本申请的局部适配屏幕方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for partially adapting a screen according to the present application;
图3是根据本申请的局部适配屏幕方法的又一个实施例的流程图;Fig. 3 is a flow chart of still another embodiment of a method for partially adapting a screen according to the present application;
图4是根据本申请的局部适配屏幕方法的另一个个实施例的流程图;FIG. 4 is a flowchart of another embodiment of a method for partially adapting a screen according to the present application;
图5是适于用来实现本申请实施例的计算机设备的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing the computer device of the embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的局部适配屏幕方法的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the locally adapted screen method of the present application may be applied.
如图1所示,系统架构100中可以包括设备101、102和网络103。网络103用以在设备101和设备102之间提供通信链路的介质。网络103可以包括各种连接类型,例如有线、无线目标通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include devices 101 , 102 and a network 103 . The medium used by network 103 to provide a communication link between device 101 and device 102 . The network 103 may include various connection types, such as wired, wireless target communication links, or fiber optic cables, among others.
设备101、102可以是支持网络连接从而提供各种网络服务的硬件设备或软件。当设备为硬件时,其可以是各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机和服务器等等。这时,作为硬件设备,其可以实现成多个设备组成的分布式设备群,也可以实现成单个设备。当设备为软件时,可以安装在上述所列举的电子设备中。这时,作为软件,其可以实现成例如用来提供分布式服务的多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。The devices 101, 102 may be hardware devices or software that support network connections to provide various network services. When the device is hardware, it can be a variety of electronic devices including, but not limited to, smart phones, tablet computers, laptop computers, desktop computers, and servers, among others. At this time, as a hardware device, it can be implemented as a distributed device group composed of multiple devices, or can be implemented as a single device. When the device is software, it can be installed in the electronic devices listed above. At this time, as software, it may be implemented as a plurality of software or software modules for providing distributed services, or may be implemented as a single software or software module. There is no specific limitation here.
在实践中,设备可以通过安装相应的客户端应用或服务端应用来提供相应的网络服务。设备在安装了客户端应用之后,其可以在网络通信中体现为客户端。相应地,在安装了服务端应用之后,其可以在网络通信中体现为服务端。In practice, the device can provide corresponding network services by installing a corresponding client application or server application. After the client application is installed on the device, it can be embodied as a client in network communication. Correspondingly, after the server application is installed, it can be embodied as a server in network communication.
作为示例,在图1中,设备101体现为客户端,而设备102体现为服务端。具体地,设备101可以是安装有安卓应用的客户端,设备102可以是安卓应用的服务端。As an example, in FIG. 1, device 101 is embodied as a client, and device 102 is embodied as a server. Specifically, the device 101 may be a client installed with an Android application, and the device 102 may be a server of the Android application.
需要说明的是,本申请实施例所提供的局部适配屏幕方法可以由设备101执行。It should be noted that the partial screen adaptation method provided by the embodiment of the present application may be executed by the device 101 .
应该理解,图1中的网络和设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的网络和设备。It should be understood that the number of networks and devices in Figure 1 is merely illustrative. There can be any number of networks and devices depending on the implementation needs.
继续参考图2,其示出了根据本申请的局部适配屏幕方法的一个实施例的流程200。该局部适配屏幕方法包括以下步骤:Continuing to refer to FIG. 2 , it shows a flow 200 of one embodiment of a method for locally adapting a screen according to the present application. The partial screen adaptation method includes the following steps:
步骤201,响应于应用启动,获取当前屏幕的原始宽高像素。 Step 201, in response to application startup, obtain the original width and height pixels of the current screen.
在本实施例中,终端上安装有各种应用,当用户启动应用时,终端可以获取当前屏幕的原始宽高像素,并保存至内存。In this embodiment, various applications are installed on the terminal, and when the user starts the application, the terminal can obtain the original width and height pixels of the current screen and save them in the memory.
其中,应用可以是终端上安装的任何应用。终端的屏幕的像素可以因不同品牌、不同型号而不同。通常,分辨率高的终端的屏幕的像素高。像素通常以宽度像素×高度像素的方式来表示。常见的像素如1920×1080、1280×720、1280×800、1024×768等等。The application may be any application installed on the terminal. The pixels of the screen of the terminal may be different for different brands and models. Generally, the screen of a terminal with a high resolution is high in pixels. Pixels are usually represented as width pixels×height pixels. Common pixels such as 1920×1080, 1280×720, 1280×800, 1024×768 and so on.
步骤202,若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例。 Step 202, if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
在本实施例中,终端可以计算当前屏幕的原始宽高像素比例,并与标准屏幕的宽高像素比例进行比较。若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,终端可以对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例。In this embodiment, the terminal may calculate the original aspect ratio of the current screen and compare it with the aspect ratio of the standard screen. If the original aspect ratio of the current screen is not the aspect ratio of the standard screen, the terminal can perform a ratio operation between the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
其中,标准屏幕的像素可以是应用的UI设计的原型图的像素。例如,若原型图的宽高像素为1920×1080,那么标准屏幕的宽高像素,那么标准屏幕的宽高像素就是1920×1080。此时,标准屏幕的宽高像素比例就是1920/1080。若当前屏幕的原始宽高像素是1024×768,那么当前屏幕的原始宽高像素比例就是1024/768。由于1024/768不等于1920/1080,那么当前屏幕就不是标准屏幕。此时,将当前屏幕的原始宽度像素除以标准屏幕的宽度像素,即1024/1920为当前屏幕的标准宽度像素比例,同时,将当前屏幕的原始高度像素除以标准屏幕的高度像素,即768/1080为当前屏幕的标准高度像素比例。The pixels of the standard screen may be the pixels of the prototype image of the UI design of the application. For example, if the width and height pixels of the prototype image are 1920×1080, then the width and height pixels of the standard screen are 1920×1080. At this time, the aspect ratio of the standard screen is 1920/1080. If the original aspect ratio of the current screen is 1024×768, then the original aspect ratio of the current screen is 1024/768. Since 1024/768 is not equal to 1920/1080, the current screen is not a standard screen. At this time, divide the original width pixels of the current screen by the width pixels of the standard screen, that is, 1024/1920 is the standard width pixel ratio of the current screen, and at the same time, divide the original height pixels of the current screen by the height pixels of the standard screen, that is, 768 /1080 is the standard height pixel ratio of the current screen.
在一些实施例中,若当前屏幕的原始宽高像素比例是标准屏幕的宽高像素比例,终端可以直接对待显示页面进行渲染显示,即可展现出与标准屏幕相同比例的页面。In some embodiments, if the original aspect ratio of the current screen is the aspect ratio of a standard screen, the terminal can directly render and display the page to be displayed, which can display a page with the same ratio as the standard screen.
步骤203,获取应用的待显示页面上的待适配视图的原始宽高像素。Step 203: Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
在本实施例中,终端可以获取应用的待显示页面上的待适配视图的原始宽高像素。In this embodiment, the terminal may acquire the original width and height pixels of the view to be adapted on the page to be displayed of the application.
其中,待显示页面可以是应用运行过程中需要显示的页面。例如,当用户 点击应用的图标时,待显示页面就是应用的主页面。待适配试图(view)可以待显示页面与标准屏幕的宽高像素比例不适配的视图,如不进行适配而子当前屏幕上显示,会导致当前屏幕上部分显示出现变形。待适配试图可以是系统的所有视图,不局限于自定义视图。待适配试图是需要适配的单位,可以是待显示页面上的控件,也可以是整个页面。The page to be displayed may be a page that needs to be displayed during the running of the application. For example, when the user clicks the icon of the application, the page to be displayed is the main page of the application. The view to be adapted can be a view that does not match the aspect ratio of the page to be displayed and the standard screen. If the sub-current screen is displayed without adaptation, part of the display on the current screen will be deformed. The attempts to be adapted can be all views of the system, not limited to custom views. The to-be-adapted attempt is the unit that needs to be adapted, which can be the controls on the page to be displayed, or the entire page.
步骤204,基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素。 Step 204 , scale-transform the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard aspect ratio of the view to be adapted.
在本实施例中,终端可以基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素。其中,比例变换可以是将待适配视图的标准宽度像素乘以当前屏幕的标准宽度像素比例,同时将待适配视图的标准高度像素乘以当前屏幕的标准高度像素比例比例变换得到的标准宽高像素可以适配当前屏幕,和标准屏幕展现一样的比例,使得页面不变形。In this embodiment, the terminal may perform scale transformation of the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard aspect ratio of the view to be adapted. The ratio transformation may be the standard width pixel ratio obtained by multiplying the standard width pixels of the view to be adapted by the standard width pixel ratio of the current screen, and at the same time multiplying the standard height pixels of the view to be adapted by the standard height pixel ratio of the current screen. High pixels can be adapted to the current screen, showing the same ratio as the standard screen, so that the page is not deformed.
步骤205,将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。Step 205: Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
在本实施例中,终端可以将待适配视图的标准宽高像素设置到待显示页面中,替换待适配试图的宽高像素。随后,对待显示页面进行渲染显示,即可展现出与标准屏幕相同比例的页面。In this embodiment, the terminal may set the standard width and height pixels of the view to be adapted into the page to be displayed, and replace the width and height pixels of the to-be-adapted view. Then, the page to be displayed is rendered and displayed, and the page with the same proportion as the standard screen can be displayed.
本申请实施例提供的局部适配屏幕方法,在应用启动时,若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例;之后获取应用的待显示页面上的待适配视图的原始宽高像素;然后基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素;最后将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。提供了一种灵活性高、稳定性高的屏幕适配方案,解决在不同屏幕密度终端上展示的应用页面的风格的统一。In the partial screen adaptation method provided by the embodiment of the present application, when the application starts, if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, the original aspect ratio of the current screen and the aspect ratio of the standard screen are compared. Perform scale operation to generate the standard aspect ratio of the current screen; then obtain the original aspect ratio of the view to be adapted on the page to be displayed of the application; then scale the view to be adapted based on the standard aspect ratio of the current screen. to obtain the standard width and height pixels of the view to be adapted; finally, the standard width and height pixels of the view to be adapted are set in the page to be displayed, and the page to be displayed is rendered and displayed. A screen adaptation solution with high flexibility and high stability is provided to solve the unification of the styles of application pages displayed on terminals with different screen densities.
继续参考图3,其示出了是根据本申请的局部适配屏幕方法的又一个实施例的流程300。该局部适配屏幕方法包括以下步骤:Continuing to refer to FIG. 3 , it shows a process 300 of yet another embodiment of the method for locally adapting a screen according to the present application. The partial screen adaptation method includes the following steps:
步骤301,响应于应用启动,获取当前屏幕的原始宽高像素。 Step 301, in response to application startup, obtain the original width and height pixels of the current screen.
步骤302,若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例, 对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例。 Step 302, if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
步骤303,获取应用的待显示页面上的待适配视图的原始宽高像素。Step 303: Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
在本实施例中,步骤301-303具体操作已在图2所示的实施例中步骤201-203进行了详细的介绍,在此不再赘述。In this embodiment, the specific operations of steps 301-303 have been described in detail in steps 201-203 in the embodiment shown in FIG. 2, and will not be repeated here.
步骤304,调用重置比例视图函数对待适配视图以及待适配视图的子视图集进行局部动态变换,得到待适配视图的标准宽高像素。 Step 304 , calling the reset scale view function to perform local dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted, so as to obtain standard width and height pixels of the view to be adapted.
在本实施例中,终端可以调用重置比例视图函数resetViewWithScale(view)对待适配视图以及待适配视图的子视图集进行局部动态变换,得到待适配视图的标准宽高像素。仅对待适配视图以及待适配视图的子视图集进行局部动态变换,不影响待显示页面上的其他视图的宽高像素。In this embodiment, the terminal may call the reset scale view function resetViewWithScale(view) to perform local dynamic transformation of the view to be adapted and the subview set of the view to be adapted, so as to obtain standard width and height pixels of the view to be adapted. Local dynamic transformation is performed only on the view to be adapted and the subview set of the view to be adapted, and the width and height pixels of other views on the page to be displayed are not affected.
可替代的,终端也可以利用重置比例视图函数对待显示页面的所有视图进行局部动态变换。Alternatively, the terminal may also use the rescale view function to perform local dynamic transformation of all views of the page to be displayed.
步骤305,将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。Step 305: Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
在本实施例中,步骤305具体操作已在图2所示的实施例中步骤205进行了详细的介绍,在此不再赘述。In this embodiment, the specific operation of step 305 has been described in detail in step 205 in the embodiment shown in FIG. 2 , and details are not repeated here.
从图3中可以看出,与图2对应的实施例相比,本实施例中的局部适配屏幕方法的流程300突出了局部动态变换步骤。由此,本实施例描述的方案仅对待适配视图以及待适配视图的子视图集进行局部动态变换,不影响待显示页面上的其他视图的宽高像素。提供了一种影响范围小、代码改动小、对原代码入侵性小的屏幕适配方案。As can be seen from FIG. 3 , compared with the embodiment corresponding to FIG. 2 , the process 300 of the method for local adaptation to the screen in this embodiment highlights the local dynamic transformation step. Therefore, the solution described in this embodiment only performs partial dynamic transformation on the view to be adapted and the sub-view set of the view to be adapted, and does not affect the width and height pixels of other views on the page to be displayed. Provides a screen adaptation solution with small impact scope, small code changes, and less intrusion to the original code.
进一步参考图4,其示出了是根据本申请的局部适配屏幕方法的另一个实施例的流程400。该局部适配屏幕方法包括以下步骤:Referring further to FIG. 4, it shows a process 400 of another embodiment of a method for locally adapting a screen according to the present application. The partial screen adaptation method includes the following steps:
步骤401,响应于应用启动,获取当前屏幕的原始宽高像素。 Step 401, in response to application startup, obtain the original width and height pixels of the current screen.
步骤402,若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例。 Step 402, if the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen.
步骤403,获取应用的待显示页面上的待适配视图的原始宽高像素。Step 403: Obtain the original width and height pixels of the view to be adapted on the page to be displayed of the application.
在本实施例中,步骤401-403具体操作已在图3所示的实施例中步骤301-303进行了详细的介绍,在此不再赘述。In this embodiment, the specific operations of steps 401-403 have been described in detail in steps 301-303 in the embodiment shown in FIG. 3, and are not repeated here.
步骤404,若待适配视图由子视图集组成,遍历待适配视图的子视图集,以及调用重置比例视图函数对待适配视图的子视图集进行递归变换。 Step 404 , if the view to be adapted consists of a sub-view set, traverse the sub-view set of the view to be adapted, and call the reset scale view function to recursively transform the sub-view set of the view to be adapted.
在本实施例中,若待适配视图由子视图集组成,终端可以遍历待适配视图的子视图集,以及调用重置比例视图函数对待适配视图的子视图集进行递归变换。其中,每个子视图均调用重置比例视图函数进行变换。In this embodiment, if the view to be adapted consists of sub-view sets, the terminal may traverse the sub-view sets of the view to be adapted, and call the reset scale view function to recursively transform the sub-view sets of the view to be adapted. Among them, each subview calls the reset scale view function to transform.
步骤405,获取待适配视图的布局参数。Step 405: Obtain layout parameters of the view to be adapted.
在本实施例中,终端可以获取适配视图的布局参数。其中,布局参数可以包括但不限于待适配视图的类型、宽高属性、文字大小、外边距大小、核心、填充等等。待适配视图的类型可以包括但不限于文字、图像等等。In this embodiment, the terminal may acquire the layout parameters of the adapted view. The layout parameters may include, but are not limited to, the type of the view to be adapted, width and height attributes, text size, margin size, core, padding, and the like. The types of views to be adapted may include, but are not limited to, text, images, and the like.
步骤406,若基于待适配视图的布局参数确定待适配视图是文字视图,获取待适配视图的原始文字大小。 Step 406 , if it is determined based on the layout parameters of the view to be adapted that the view to be adapted is a text view, obtain the original text size of the view to be adapted.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的类型。若待适配视图是文字视图,终端可以获取待适配视图的原始文字大小。In this embodiment, the terminal may extract the type of the view to be adapted from the layout parameters of the view to be adapted. If the view to be adapted is a text view, the terminal may obtain the original text size of the view to be adapted.
步骤407,计算当前屏幕的标准宽高像素比例与待适配视图的原始文字大小的乘积,得到待适配视图的标准文字大小。Step 407: Calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
在本实施例中,终端可以基于当前屏幕的标准宽高像素比例对待适配视图的原始文字大小进行比例变换,得到待适配视图的标准文字大小。具体的,终端可以计算当前屏幕的标准宽高像素比例与待适配视图的原始文字大小的乘积,得到待适配视图的标准文字大小。In this embodiment, the terminal may perform proportional transformation on the original text size of the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard text size of the view to be adapted. Specifically, the terminal may calculate the product of the standard aspect ratio of the current screen and the original text size of the view to be adapted to obtain the standard text size of the view to be adapted.
步骤408,若基于待适配视图的布局参数确定待适配视图的宽度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始宽度像素的乘积,得到待适配视图的标准宽度像素。 Step 408, if it is determined that the width of the view to be adapted is greater than 0 based on the layout parameters of the view to be adapted, calculate the product of the standard aspect ratio of the current screen and the original width pixel of the view to be adapted to obtain the standard of the view to be adapted. width in pixels.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的宽度。若待适配视图的宽度大于0,终端可以基于当前屏幕的标准宽高像素比例对待适配视图的原始宽度像素进行比例变换,得到待适配视图的标准宽度像素。具体的,终端可以计算当前屏幕的标准宽高像素比例与待适配视图的原始宽度像素的乘积,得到待适配视图的标准宽度像素。In this embodiment, the terminal may extract the width of the view to be adapted from the layout parameters of the view to be adapted. If the width of the to-be-adapted view is greater than 0, the terminal may scale-transform the original width pixels of the to-be-adapted view based on the standard aspect ratio of the current screen to obtain the standard-width pixels of the to-be-adapted view. Specifically, the terminal may calculate the product of the standard width and height pixel ratio of the current screen and the original width pixels of the view to be adapted to obtain the standard width pixels of the view to be adapted.
步骤409,若基于待适配视图的布局参数确定待适配视图的高度大于0,计算当前屏幕的标准宽高像素比例与待适配视图的原始高度像素的乘积,得到待适配视图的标准高度像素。 Step 409, if it is determined that the height of the view to be adapted is greater than 0 based on the layout parameters of the view to be adapted, calculate the product of the standard aspect ratio of the current screen and the original height pixel of the view to be adapted to obtain the standard of the view to be adapted. height in pixels.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的高度。若待适配视图的高度大于0,终端可以基于当前屏幕的标准宽高像素比例对待适配视图的原始高度像素进行比例变换,得到待适配视图的标准高度像素。具体的,终端可以计算当前屏幕的标准宽高像素比例与待适配视图的原始高度像素的乘积,得到待适配视图的标准高度像素。In this embodiment, the terminal may extract the height of the view to be adapted from the layout parameters of the view to be adapted. If the height of the view to be adapted is greater than 0, the terminal may perform proportional transformation on the original height pixels of the view to be adapted based on the standard aspect ratio of the current screen to obtain standard height pixels of the view to be adapted. Specifically, the terminal may calculate the product of the standard aspect ratio of the current screen and the original height pixels of the view to be adapted to obtain the standard height pixels of the view to be adapted.
步骤410,基于待适配视图的布局参数对待适配视图的外边距大小进行适当缩放。Step 410: Appropriately scale the size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的外边距大小,并对待适配视图的外边距大小进行适当缩放。In this embodiment, the terminal may extract the margin size of the view to be adapted from the layout parameters of the view to be adapted, and appropriately scale the margin size of the view to be adapted.
步骤411,基于待适配视图的布局参数对待适配视图的核心进行变换。 Step 411 , transform the core of the view to be adapted based on the layout parameters of the view to be adapted.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的核心,并对待适配视图的核心进行变换。例如,若待适配视图的大小与当前屏幕的标准宽高像素比例的乘积在预设数值区间内,终端可以将乘积从浮点型转换为整数型。In this embodiment, the terminal may extract the core of the view to be adapted from the layout parameters of the view to be adapted, and transform the core of the view to be adapted. For example, if the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, the terminal may convert the product from a floating point type to an integer type.
步骤412,基于待适配视图的布局参数对待适配视图的填充进行适当缩放。Step 412: Appropriately scale the filling of the view to be adapted based on the layout parameters of the view to be adapted.
在本实施例中,终端可以从待适配视图的布局参数中提取待适配视图的填充,并对待适配视图的填充进行适当缩放。In this embodiment, the terminal may extract the padding of the view to be adapted from the layout parameters of the view to be adapted, and appropriately scale the padding of the view to be adapted.
步骤413,将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。Step 413: Set standard width and height pixels of the view to be adapted into the page to be displayed, and render and display the page to be displayed.
在本实施例中,步骤413具体操作已在图3所示的实施例中步骤305进行了详细的介绍,在此不再赘述。In this embodiment, the specific operation of step 413 has been described in detail in step 305 in the embodiment shown in FIG. 3 , and will not be repeated here.
从图4中可以看出,与图3对应的实施例相比,本实施例中的局部适配屏幕方法的流程400突出了局部动态变换步骤。由此,本实施例描述的方案针对视图的不同布局参数,对视图进行相应的变换,从而提供了一种适应范围广的屏幕适配方案。As can be seen from FIG. 4 , compared with the embodiment corresponding to FIG. 3 , the process 400 of the method for local adaptation to the screen in this embodiment highlights the local dynamic transformation step. Therefore, the solution described in this embodiment performs corresponding transformation on the views according to different layout parameters of the views, thereby providing a screen adaptation solution with a wide range of adaptation.
为了便于理解,下面提供可以实现本申请实施例的局部适配屏幕方法的部 分代码,具体如下:For ease of understanding, the partial codes that can realize the local adaptation screen method of the embodiment of the present application are provided below, and the details are as follows:
Figure PCTCN2021119825-appb-000001
Figure PCTCN2021119825-appb-000001
Figure PCTCN2021119825-appb-000002
Figure PCTCN2021119825-appb-000002
Figure PCTCN2021119825-appb-000003
Figure PCTCN2021119825-appb-000003
Figure PCTCN2021119825-appb-000004
Figure PCTCN2021119825-appb-000004
下面参考图5,其示出了适于用来实现本申请实施例的计算机设备的计算 机系统500的结构示意图。图5示出的计算机设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring next to FIG. 5, it shows a schematic structural diagram of a computer system 500 suitable for implementing the computer device of the embodiment of the present application. The computer device shown in FIG. 5 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, a computer system 500 includes a central processing unit (CPU) 501 which can be loaded into a random access memory (RAM) 503 according to a program stored in a read only memory (ROM) 502 or a program from a storage section 508 Instead, various appropriate actions and processes are performed. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504 .
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc. ; and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本申请的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 509 and/or installed from the removable medium 511 . When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the method of the present application are performed.
需要说明的是,本申请的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者 器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,程序设计语言包括面向目标的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或电子设备上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages - such as Java, Smalltalk, C++, but also conventional procedures, or a combination thereof programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or electronic device. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描 述为:一种处理器包括第一获取单元、运算单元、第二获取单元、变换单元和第一渲染单元。其中,这些单元的名称在种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“响应于应用启动,获取当前屏幕的原始宽高像素的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit may also be provided in the processor, for example, it may be described as: a processor includes a first obtaining unit, an arithmetic unit, a second obtaining unit, a transforming unit and a first rendering unit. In this case, the names of these units do not constitute a limitation on the unit itself. For example, the first obtaining unit may also be described as "a unit that obtains the original width and height pixels of the current screen in response to application startup".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的计算机设备中所包含的;也可以是单独存在,而未装配入该计算机设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该计算机设备执行时,使得该计算机设备:响应于应用启动,获取当前屏幕的原始宽高像素;若当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对当前屏幕的原始宽高像素和标准屏幕的宽高像素进行比例运算,生成当前屏幕的标准宽高像素比例;获取应用的待显示页面上的待适配视图的原始宽高像素;基于当前屏幕的标准宽高像素比例对待适配视图进行比例变换,得到待适配视图的标准宽高像素;将待适配视图的标准宽高像素设置到待显示页面中,以及对待显示页面进行渲染显示。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the computer device described in the above embodiments; it may also exist independently without being assembled into the computer device. middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the computer equipment, the computer equipment: in response to application startup, obtain the original width and height pixels of the current screen; The original aspect ratio is not the aspect ratio of the standard screen. The ratio operation is performed on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard aspect ratio of the current screen; The original width and height pixels of the view to be adapted; scale the view to be adapted based on the standard aspect ratio of the current screen to obtain the standard width and height pixels of the view to be adapted; set the standard width and height pixels of the view to be adapted to the page to be displayed, and the page to be displayed is rendered and displayed.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (11)

  1. 一种局部适配屏幕方法,包括:A method of partial adaptation to the screen, comprising:
    响应于应用启动,获取当前屏幕的原始宽高像素;In response to application startup, get the original width and height pixels of the current screen;
    若所述当前屏幕的原始宽高像素比例不是标准屏幕的宽高像素比例,对所述当前屏幕的原始宽高像素和所述标准屏幕的宽高像素进行比例运算,生成所述当前屏幕的标准宽高像素比例;If the original aspect ratio of the current screen is not the aspect ratio of the standard screen, perform a ratio operation on the original aspect ratio of the current screen and the aspect ratio of the standard screen to generate the standard screen of the current screen. Aspect ratio;
    获取所述应用的待显示页面上的待适配视图的原始宽高像素;obtaining the original width and height pixels of the view to be adapted on the page to be displayed of the application;
    基于所述当前屏幕的标准宽高像素比例对所述待适配视图进行比例变换,得到所述待适配视图的标准宽高像素;Perform scale transformation on the view to be adapted based on the standard aspect ratio of the current screen to obtain standard width and height pixels of the view to be adapted;
    将所述待适配视图的标准宽高像素设置到所述待显示页面中,以及对所述待显示页面进行渲染显示。The standard width and height pixels of the to-be-adapted view are set in the to-be-displayed page, and the to-be-displayed page is rendered and displayed.
  2. 根据权利要求1所述的方法,其中,所述基于所述当前屏幕的标准宽高像素比例对所述待适配视图进行比例变换,包括:The method according to claim 1, wherein the scaling of the to-be-adapted view based on a standard aspect ratio of the current screen comprises:
    调用重置比例视图函数对所述待适配视图以及所述待适配视图的子视图集进行局部动态变换。The reset scale view function is called to perform local dynamic transformation on the to-be-adapted view and the sub-view set of the to-be-adapted view.
  3. 根据权利要求2所述的方法,其中,所述调用重置比例视图函数对所述待适配视图以及所述待适配视图的子视图集进行局部动态变换,包括:The method according to claim 2, wherein the invoking the reset scale view function to perform local dynamic transformation on the to-be-adapted view and the sub-view set of the to-be-adapted view comprises:
    若所述待适配视图由子视图集组成,遍历所述待适配视图的子视图集,以及调用重置比例视图函数对所述待适配视图的子视图集进行递归变换。If the to-be-adapted view consists of a sub-view set, traverse the sub-view set of the to-be-adapted view, and call the reset scale view function to recursively transform the sub-view set of the to-be-adapted view.
  4. 根据权利要求3所述的方法,其中,所述调用重置比例视图函数对所述待适配视图以及所述待适配视图的子视图集进行局部动态变换,还包括:The method according to claim 3, wherein the invoking the reset scale view function to perform local dynamic transformation on the to-be-adapted view and the sub-view set of the to-be-adapted view further comprises:
    获取所述待适配视图的布局参数;Obtain the layout parameters of the view to be adapted;
    若基于所述待适配视图的布局参数确定所述待适配视图是文字视图,获取所述待适配视图的原始文字大小;If it is determined that the to-be-adapted view is a text view based on the layout parameters of the to-be-adapted view, obtain the original text size of the to-be-adapted view;
    计算所述当前屏幕的标准宽高像素比例与所述待适配视图的原始文字大小的 乘积,得到所述待适配视图的标准文字大小。Calculate the product of the standard aspect ratio of the current screen and the original text size of the to-be-adapted view to obtain the standard text size of the to-be-adapted view.
  5. 根据权利要求4所述的方法,其中,所述调用重置比例视图函数对所述待适配视图以及所述待适配视图的子视图集进行局部动态变换,还包括:The method according to claim 4, wherein the invoking the reset scale view function to perform local dynamic transformation on the to-be-adapted view and the sub-view set of the to-be-adapted view further comprises:
    若基于所述待适配视图的布局参数确定所述待适配视图的宽度大于0,计算所述当前屏幕的标准宽高像素比例与所述待适配视图的原始宽度像素的乘积,得到所述待适配视图的标准宽度像素;If it is determined based on the layout parameters of the to-be-adapted view that the width of the to-be-adapted view is greater than 0, calculate the product of the standard aspect ratio of the current screen and the original width pixels of the to-be-adapted view to obtain the Describe the standard width pixels of the view to be adapted;
    若基于所述待适配视图的布局参数确定所述待适配视图的高度大于0,计算所述当前屏幕的标准宽高像素比例与所述待适配视图的原始高度像素的乘积,得到所述待适配视图的标准高度像素。If it is determined based on the layout parameters of the to-be-adapted view that the height of the to-be-adapted view is greater than 0, calculate the product of the standard aspect ratio of the current screen and the original height pixels of the to-be-adapted view to obtain the Describes the standard height pixels of the view to be adapted.
  6. 根据权利要求5所述的方法,其中,所述调用重置比例视图函数对所述待适配视图以及所述待适配视图的子视图集进行局部动态变换,还包括:The method according to claim 5, wherein the invoking the reset scale view function to perform local dynamic transformation on the to-be-adapted view and the sub-view set of the to-be-adapted view further comprises:
    基于所述待适配视图的布局参数对所述待适配视图的外边距大小进行适当缩放;appropriately scaling the size of the outer margin of the view to be adapted based on the layout parameters of the view to be adapted;
    基于所述待适配视图的布局参数对所述待适配视图的核心进行变换;transforming the core of the to-be-adapted view based on the layout parameters of the to-be-adapted view;
    基于所述待适配视图的布局参数对所述待适配视图的填充进行适当缩放。The padding of the to-be-adapted view is appropriately scaled based on the layout parameters of the to-be-adapted view.
  7. 根据权利要求6所述的方法,其中,所述基于所述待适配视图的布局参数对所述待适配视图的核心进行变换,包括:The method according to claim 6, wherein the transforming the core of the to-be-adapted view based on the layout parameters of the to-be-adapted view comprises:
    若所述待适配视图的大小与所述当前屏幕的标准宽高像素比例的乘积在预设数值区间内,将所述乘积从浮点型转换为整数型。If the product of the size of the view to be adapted and the standard aspect ratio of the current screen is within a preset value range, the product is converted from a floating point type to an integer type.
  8. 根据权利要求1所述的方法,其中,所述基于所述当前屏幕的标准宽高像素比例对所述待适配视图进行比例变换,包括:The method according to claim 1, wherein the scaling of the to-be-adapted view based on a standard aspect ratio of the current screen comprises:
    利用重置比例视图函数对所述待显示页面的所有视图进行局部动态变换。Local dynamic transformation is performed on all views of the to-be-displayed page by using the rescaled view function.
  9. 根据权利要求1-7之一所述的方法,其中,所述方法还包括:The method of any one of claims 1-7, wherein the method further comprises:
    若所述当前屏幕的原始宽高像素比例是标准屏幕的宽高像素比例,对所述待 显示页面进行渲染显示。If the original aspect ratio of the current screen is the aspect ratio of the standard screen, the page to be displayed is rendered and displayed.
  10. 一种计算机设备,包括:A computer device comprising:
    一个或多个处理器;one or more processors;
    存储装置,其上存储一个或多个程序;a storage device on which one or more programs are stored;
    当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如权利要求1-9中任一的方法。When executed by one or more processors, one or more programs cause the one or more processors to implement a method as in any of claims 1-9.
  11. 一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如权利要求1-9中任一的方法。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method according to any one of claims 1-9.
PCT/CN2021/119825 2020-09-27 2021-09-23 Local screen adaptation method and device WO2022063158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011031901.9A CN112181568A (en) 2020-09-27 2020-09-27 Locally adapting screen method and apparatus
CN202011031901.9 2020-09-27

Publications (1)

Publication Number Publication Date
WO2022063158A1 true WO2022063158A1 (en) 2022-03-31

Family

ID=73944117

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119825 WO2022063158A1 (en) 2020-09-27 2021-09-23 Local screen adaptation method and device

Country Status (2)

Country Link
CN (1) CN112181568A (en)
WO (1) WO2022063158A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181568A (en) * 2020-09-27 2021-01-05 上海连尚网络科技有限公司 Locally adapting screen method and apparatus
CN113535645B (en) * 2021-03-11 2023-08-18 北京字跳网络技术有限公司 Display method and device of shared document, electronic equipment and storage medium
CN113486280B (en) * 2021-07-02 2024-07-23 北京达佳互联信息技术有限公司 Page rendering display method, device, equipment, storage medium and program product
CN113626126A (en) * 2021-08-18 2021-11-09 平安普惠企业管理有限公司 Application program start page adaptation method, device, equipment and medium
CN114281458A (en) * 2021-12-22 2022-04-05 珠海豹趣科技有限公司 Local scaling method and device for program interface
CN114595022A (en) * 2022-03-23 2022-06-07 平安普惠企业管理有限公司 Method, device and equipment for dynamically adapting picture to mobile terminal screen and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167403A1 (en) * 2009-12-04 2011-07-07 Jason Townes French Methods for platform-agnostic definitions and implementations of applications
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN106406794A (en) * 2016-09-14 2017-02-15 乐视控股(北京)有限公司 Screen adapting method and device
CN106484424A (en) * 2016-10-18 2017-03-08 武汉斗鱼网络科技有限公司 A kind of method and system obtaining the control being adapted to screen
CN110083415A (en) * 2019-03-25 2019-08-02 厦门网宿有限公司 Device screen adaptation method, terminal device and storage medium
CN110738598A (en) * 2019-08-28 2020-01-31 咪咕文化科技有限公司 Image adaptation method, electronic device and storage medium
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI (user interface) adaptation method of electronic equipment, electronic equipment and storage medium
CN112181568A (en) * 2020-09-27 2021-01-05 上海连尚网络科技有限公司 Locally adapting screen method and apparatus

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6825860B1 (en) * 2000-09-29 2004-11-30 Rockwell Automation Technologies, Inc. Autoscaling/autosizing user interface window
US20030222889A1 (en) * 2002-03-26 2003-12-04 Kenneth Parulski Portable imaging display device employing an aspect ratio dependent user interface control window
JP2004272743A (en) * 2003-03-11 2004-09-30 Tadashi Oba Computer-aided prepress processing method
US7487118B2 (en) * 2005-05-06 2009-02-03 Crutchfield Corporation System and method of image display simulation
JP2012095007A (en) * 2010-10-25 2012-05-17 Kyocera Mita Corp Image forming apparatus and image forming program
CN102314502B (en) * 2011-09-01 2017-03-01 百度在线网络技术(北京)有限公司 A kind of method and apparatus for showing webpage body content on mobile terminals
CN102662616B (en) * 2012-03-28 2015-12-16 北京邮电大学 For screen graph adaptive approach and the system of mobile terminal
CN108172200B (en) * 2018-01-25 2021-02-05 腾讯科技(深圳)有限公司 Method for displaying text in application and terminal equipment
CN109783181B (en) * 2019-01-31 2019-12-20 掌阅科技股份有限公司 Screen adaptive display method, electronic device and computer storage medium
CN110865812B (en) * 2019-10-24 2024-04-23 腾讯科技(深圳)有限公司 User interface identification method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167403A1 (en) * 2009-12-04 2011-07-07 Jason Townes French Methods for platform-agnostic definitions and implementations of applications
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN106406794A (en) * 2016-09-14 2017-02-15 乐视控股(北京)有限公司 Screen adapting method and device
CN106484424A (en) * 2016-10-18 2017-03-08 武汉斗鱼网络科技有限公司 A kind of method and system obtaining the control being adapted to screen
CN110083415A (en) * 2019-03-25 2019-08-02 厦门网宿有限公司 Device screen adaptation method, terminal device and storage medium
CN110738598A (en) * 2019-08-28 2020-01-31 咪咕文化科技有限公司 Image adaptation method, electronic device and storage medium
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI (user interface) adaptation method of electronic equipment, electronic equipment and storage medium
CN112181568A (en) * 2020-09-27 2021-01-05 上海连尚网络科技有限公司 Locally adapting screen method and apparatus

Also Published As

Publication number Publication date
CN112181568A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
WO2022063158A1 (en) Local screen adaptation method and device
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
CN113031946B (en) Method and device for rendering page component
US20230410380A1 (en) Method and apparatus for generating page
WO2021197161A1 (en) Icon updating method and apparatus, and electronic device
CN115600629B (en) Vehicle information two-dimensional code generation method, electronic device and computer readable medium
CN110069191A (en) Image based on terminal pulls deformation implementation method and device
WO2023103430A1 (en) Data visualization display method and apparatus, medium and electronic device
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN110377273B (en) Data processing method, device, medium and electronic equipment
CN113553123B (en) Data processing method, device, electronic equipment and storage medium
CN112486482A (en) Page display method and device
CN113961280B (en) View display method and device, electronic equipment and computer readable storage medium
CN113760438A (en) Page display method and device for webpage application
CN112818267A (en) Data processing method and device, computer readable storage medium and electronic equipment
CN113296771B (en) Page display method, device, equipment and computer readable medium
CN115291993A (en) Page adjusting method, device, computer system and readable storage medium
CN110618811A (en) Information presentation method and device
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN116628366A (en) Floor page processing method and device
CN113778566A (en) Native application calling method and device, electronic equipment and computer readable medium
CN112596729A (en) Target application interface generation method and device, readable medium and electronic equipment
CN112148417A (en) Page adjusting method and device, electronic equipment and computer readable medium
CN117315172B (en) Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871527

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 230823)

122 Ep: pct application non-entry in european phase

Ref document number: 21871527

Country of ref document: EP

Kind code of ref document: A1