CN116266206A - Page display method and device and electronic equipment - Google Patents

Page display method and device and electronic equipment Download PDF

Info

Publication number
CN116266206A
CN116266206A CN202111547735.2A CN202111547735A CN116266206A CN 116266206 A CN116266206 A CN 116266206A CN 202111547735 A CN202111547735 A CN 202111547735A CN 116266206 A CN116266206 A CN 116266206A
Authority
CN
China
Prior art keywords
page
display
target
display state
screen
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111547735.2A
Other languages
Chinese (zh)
Inventor
李鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202111547735.2A priority Critical patent/CN116266206A/en
Publication of CN116266206A publication Critical patent/CN116266206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page display method, a page display device and electronic equipment. One embodiment of the method comprises the following steps: determining a target display state of the mobile terminal, wherein the display state is a horizontal screen display state or a vertical screen display state; determining whether the target application supports a first display mode, wherein the first display mode is a mode of transversely displaying pages in a transverse screen display state; if the target display state is a horizontal screen display state and the target application does not support the first display mode, converting a target display page of the target application into a first target page for display in the horizontal screen display state; and displaying the first target page in the horizontal screen display state. Therefore, the user experience of viewing the page of the target application by the user through the mobile terminal can be improved.

Description

Page display method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a page display method, a page display device and electronic equipment.
Background
One or more applications (apps) may be installed on the terminal. Therefore, the terminal presents various information to the user by displaying the page of the APP.
Some APPs only support vertically displayed pages. Thus, in some cases, the content presented in the page may be caused to be inconsistent with the user's perspective.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a page display method, a page display device and electronic equipment, which can improve the user experience of a user for viewing a page of a target application by using a mobile terminal.
In a first aspect, embodiments of the present disclosure provide a page display method, including: determining a target display state of the mobile terminal, wherein the display state is a horizontal screen display state or a vertical screen display state; determining whether the target application supports a first display mode, wherein the first display mode is a mode of transversely displaying pages in a transverse screen display state; if the target display state is a horizontal screen display state and the target application does not support the first display mode, converting a target display page of the target application into a first target page for display in the horizontal screen display state; and displaying the first target page in the horizontal screen display state.
In a second aspect, embodiments of the present disclosure provide a page display device, including: the first determining unit is used for determining a target display state of the mobile terminal, wherein the display state is a horizontal screen display state or a vertical screen display state; the second determining unit is used for determining whether the target application supports a first display mode, wherein the first display mode is a mode of transversely displaying pages in a transverse screen display state; the conversion unit is used for converting the target display page of the target application into a first target page for display in the horizontal screen display state if the target display state is the horizontal screen display state and the target application does not support the first display mode; and the display unit is used for displaying the first target page in the horizontal screen display state.
In a third aspect, embodiments of the present disclosure provide an electronic device, comprising: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the page display method as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which when executed by a processor implements the steps of the page display method as described in the first aspect.
According to the page display method, the page display device and the electronic equipment, even if the target application does not support the first display mode (namely, the page is horizontally displayed in the horizontal screen display state), the page matched with the visual angle of the user can be displayed when the mobile terminal is in the horizontal screen display state and the user holds the mobile terminal horizontally. Therefore, the user experience of viewing the page of the target application by the user through the mobile terminal can be improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a page display method of the present disclosure;
FIGS. 2A and 2B are schematic views of a page display method of the present disclosure displaying a page of a target application in a first display manner;
FIGS. 2C and 2D are schematic views of a page display method of the present disclosure displaying a page of a target application in a second display mode;
FIG. 3 is a flow diagram of a page display method of the present disclosure in some embodiments transforming a target display page to a first target page;
FIG. 4 is a schematic view of a scenario in which a page display method of the present disclosure transforms a target display page into a first target page in some embodiments;
FIG. 5 is a flow chart of other embodiments of the page display method of the present disclosure;
FIG. 6 is a schematic view of a scene in which a page display method of the present disclosure transforms a first screen coordinate into a second screen coordinate in some embodiments;
FIG. 7 is a schematic diagram of some embodiments of a page display device described in the present disclosure;
FIG. 8 is an exemplary system architecture in which page display methods of some embodiments of the present disclosure may be applied;
fig. 9 is a schematic diagram of a basic structure of an electronic device provided according to some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow of some embodiments of a page display method according to the present disclosure is shown. As shown in fig. 1, the page display method includes the steps of:
step 101, determining a target display state of the mobile terminal.
The display state of the mobile terminal is a horizontal screen display state or a vertical screen display state. It is understood that in the landscape display state, the length of the screen display area of the mobile terminal is greater than the width. In the vertical screen display state, the length of the screen display area of the mobile terminal is smaller than the width.
Step 102, determining whether the target application supports the first display mode.
The first display mode is a mode of displaying a page horizontally in a horizontal screen display state.
As an example, fig. 2A and 2B illustrate a scene in which a page of a target application is displayed in a first display manner. It can be seen that in this case, if the user holds the mobile terminal in his or her hand, the content displayed by the mobile terminal matches the user's viewing angle. If the user holds the mobile terminal upright, the content displayed by the mobile terminal does not match the viewing angle of the user.
Step 103, if the target display state is a horizontal screen display state and the target application does not support the first display mode, converting the target display page of the target application into a first target page for display in the horizontal screen display state.
In some scenarios, the execution subject of the page display method may transform the target display page into a first target page for landscape display in the landscape display state.
And 104, displaying the first target page in the horizontal screen display state.
As can be seen, in this embodiment, even if the target application does not support the first display mode (i.e., the page is displayed horizontally in the horizontal screen display state), it is possible to display a page that matches the viewing angle of the user when the mobile terminal is in the horizontal screen display state and the user holds the mobile terminal horizontally. Therefore, the user experience of viewing the page of the target application by the user through the mobile terminal can be improved.
In some embodiments, the executing entity may determine the target display state of the mobile terminal in the following manner.
Specifically, a target display state of the mobile terminal is determined in response to a rotation of a screen of the mobile terminal.
The display state of the mobile terminal can be switched along with the rotation of the screen. The user can switch the display state of the mobile terminal by rotating the screen of the mobile terminal. Therefore, when the screen of the mobile terminal rotates, the target display state of the mobile terminal is determined, and the page matched with the visual angle of the user can be displayed in different display states of the mobile terminal.
In some embodiments, the executing entity may determine whether the target application supports the first display mode by the following method.
Specifically, whether the target application supports the first display mode is determined in response to a page state change of the target application and/or rotation of a screen of the mobile terminal.
The page state may include various states that the page has during the time the target application is open to closed, and may include, but is not limited to, open, closed, zoom in, zoom out, etc.
The developer can set the display mode supported by the target application on the server side. Therefore, when the page state of the target application changes and/or the screen of the mobile terminal rotates, it can be accurately determined whether the target application supports the first display mode (i.e., the page is displayed horizontally in the horizontal screen display state). Therefore, the page matched with the view angle of the user can be displayed according to whether the target application supports the first display mode or not.
In some embodiments, the display mode supported by the target application is the second display mode, or the first display mode and the second display mode.
The second display mode is a mode of vertically displaying a page in a vertical screen display state.
As an example, fig. 2C and 2D illustrate a scene in which a page of a target application is displayed in a second display manner. It can be seen that in this case, if the user holds the mobile terminal upright, the content displayed by the mobile terminal matches the user's viewing angle. If the user holds the mobile terminal horizontally, the content displayed by the mobile terminal does not match the viewing angle of the user.
It will be appreciated that in these embodiments, the target application supports only the second display mode (i.e., vertically displaying the page in the portrait display state) or both the second display mode and the first display mode (i.e., horizontally displaying the page in the landscape display state).
In some embodiments, the executing entity may transform the target display page of the target application into the first target page for displaying in the landscape display state according to the flow shown in fig. 3. The process includes the following steps.
In step 301, a first transformation matrix is obtained.
The first transformation matrix can transform pages for vertical display in a vertical screen display state into pages for vertical display in a horizontal screen display state.
Elements for rotating, scaling and translating the page are included in the first transformation matrix, thereby for rotating, scaling and translating the page.
Step 302, using a first transformation matrix, transforming a target display page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state, and taking the page as a first target page.
It will be appreciated that if the target application does not support the first display mode, this means that the target application only supports the second display mode. In this case, the target display page of the target application is used for vertical display in the vertical screen display state.
Specifically, the execution body may use the first transformation matrix to rotate, scale, and translate the target display page, thereby transforming the target display page into the first target page.
As an example, fig. 4 shows a scene in which a target display page for vertical display in a vertical screen display state is converted into a first target page for vertical display in a horizontal screen display state, and the first target page is displayed in the horizontal screen display state. It can be seen that in this case, the first target page, after display, occupies only a small area of the screen of the mobile terminal. It can be seen that even though the target application supports only the second display mode (i.e., vertically displays the page in the portrait display state), a smaller page matching the user's viewing angle can be displayed when the mobile terminal is in the landscape display state and the user holds the mobile terminal horizontally.
In some embodiments, the executing body may execute the page display method according to the present disclosure according to the flow shown in fig. 5. The flow includes steps 501 to 507, wherein the descriptions of steps 501 to 504 can be referred to the descriptions of steps 101 to 104 in the embodiment shown in fig. 1, and are not repeated here.
In step 505, in response to a screen touch operation of the mobile terminal, a first screen coordinate corresponding to the screen touch operation is obtained.
After the first target page is displayed, the user can operate the page object displayed in the first target page by executing screen touch operation.
The screen touch operation may include various operations performed on a screen of the mobile terminal, and may include, for example, but not limited to, a single click, a double click, a long press, a slide, and the like.
The page objects may include various objects presented in the first target page, for example, objects that may include, but are not limited to, pictures, links, icons, controls, and the like.
With reference to the foregoing analysis, the first target page is transformed from the target display page. Thus, the first target page is identical to the page object presented in the target display. Also, the page object indicated in the first target page and the target display page by the same screen coordinates may be different.
Step 506, transforming the first screen coordinates into second screen coordinates.
The page object indicated by the first screen coordinates in the first target page is consistent with the page object indicated by the second screen coordinates in the target display page.
Alternatively, the execution body may acquire the first transformation matrix and transform the first screen coordinates into the second screen coordinates using the first transformation matrix. It can be understood that, in a scene in which the first transformation matrix is used to transform the target display page for vertical display in the vertical screen display state into the first target page for vertical display in the horizontal screen display state, after the first target page is displayed in the horizontal screen display state, the first transformation matrix can be used to correspondingly transform the first screen coordinates corresponding to the screen touch operation executed by the user into the second screen coordinates.
As an example, referring to fig. 6, a first target page 602 is transformed from a target display page 601. After the first target page 602 is displayed, the user may perform a screen touch operation on a screen of the mobile terminal with respect to the control a displayed in the first target page 602. The first screen coordinates corresponding to the screen touch operation are (a, b). It will be appreciated that the first screen coordinates indicate control a in the first target page 602, but not control a in the target display page 601. By converting the first screen coordinates into second screen coordinates (c, d), screen coordinates indicating control a in the target display page 601 can be obtained.
And step 507, transmitting the second screen coordinates to the target application, so that the target application uses the page object indicated by the second screen coordinates in the target display page as a page object triggered by the screen touch operation, and responds to the screen touch operation of the page object.
It can be appreciated that if the first screen coordinates corresponding to the screen touch operation performed by the user are directly transferred to the target application, the target application directly determines the page object indicated by the first screen coordinates in the target display page, and responds to the screen touch operation performed on the page object. Thus, the target application may be caused to erroneously determine a page object operated by the user and respond with an error.
As an example, with continued reference to fig. 6, if the first screen coordinates (a, b) are passed directly to the target application, the target application determines that the page object indicated by the first screen coordinates in the target display page 601 is not control a. In this case, the target application may erroneously determine a page object operated by the user and respond with an error. If the first screen coordinates (a, b) are transformed into second screen coordinates (c, d), then the second screen coordinates are transferred to the target application, and the target application determines that the page object indicated by the second screen coordinates in the target display page 601 is control a. In this case, the target application can correctly determine the page object operated by the user and respond correctly.
Therefore, after the first target page is displayed in the horizontal screen display state, if the user executes screen touch operation on the page object displayed in the first target page, the target application can accurately determine the page object operated by the user and make an accurate response.
In some embodiments, the execution body may further execute steps S1 to S2, and/or step S3.
Step S1, if the target display state is a vertical screen display state and the target application supports a first display mode, converting a target display page for vertical display in the vertical screen display state into a second target page for vertical display in the vertical screen display state.
It will be understood that if the target application supports the first display mode (i.e., the page is displayed horizontally in the landscape display state), it means that the target application supports both the first display mode and the second display mode (i.e., the page is displayed vertically in the portrait display state).
Alternatively, the execution body may acquire the second transformation matrix. Wherein the second transformation matrix is used to translate and/or scale the page. Further, the executing body may use a second transformation matrix to transform the target display page for vertical display in the vertical screen display state into a second target page for vertical display in the vertical screen display state.
And step S2, displaying a second target page in the vertical screen display state. And S3, if the target display state is a horizontal screen display state, and the target application supports the first display mode, displaying the target display page horizontally in the horizontal screen display state.
Therefore, if the target application supports the first display mode and the second display mode at the same time, the page of the target application can be displayed vertically when the mobile terminal is in the vertical screen display state, and the page can be displayed horizontally when the mobile terminal is in the horizontal screen display state.
In some embodiments, the executing body may display the first target page in a landscape display state in the following manner.
The first step, obtaining page rendering information of a target application.
The page rendering information includes identification information of the full-screen display page or the display page according to the third display mode. The third display mode is a mode of vertically displaying the page in a horizontal screen display state.
It can be appreciated that when the mobile terminal is in a landscape display state, the page is displayed full screen, i.e., the page of the target application is displayed full screen and landscape. When the mobile terminal is in a vertical screen display state, displaying the page in a full screen mode, namely displaying the page of the target application in a full screen mode and in a vertical mode.
The execution body may acquire page rendering information of the target application from a local or server.
And a second step of displaying the first target page in a horizontal screen display state according to the identification information.
If the identification information indicates a full-screen display page, the execution subject may display the first target page in full screen in a horizontal screen display state. If the identification information indicates that the page is displayed according to the third display mode, the execution body can vertically display the first target page in the horizontal screen display state.
In some embodiments, the executing body may further execute the following steps before displaying the first target page in the landscape display state.
And if the target display state is a horizontal screen display state and the target application does not support the first display mode, updating the identification information to display the page according to a third display mode.
And a second step, otherwise, updating the identification information into a full-screen display page.
Therefore, the identification information can be updated according to the target display state of the mobile terminal and whether the target application supports the first display mode, so that the page of the target application can be displayed in a full screen mode or in a horizontal screen display state according to the target display state of the mobile terminal and whether the target application supports the first display mode.
Specifically, when the mobile terminal is in the landscape display state and the target application does not support the first display mode (i.e., the page is displayed horizontally in the landscape display state), the page of the target application is displayed vertically, and in the rest cases, the page of the target application is displayed full screen.
With further reference to fig. 7, as an implementation of the method shown in the foregoing figures, the present disclosure provides some embodiments of a page display device, where the device embodiments correspond to the method embodiments shown in fig. 1, and the device may be specifically applied to various electronic apparatuses.
As shown in fig. 7, the page display device of the present embodiment includes a first determination unit 701, a second determination unit 702, a conversion unit 703, and a display unit 704. The first determining unit 701 is configured to determine a target display state of the mobile terminal, where the display state is a horizontal screen display state or a vertical screen display state; a second determining unit 702, configured to determine whether the target application supports a first display mode, where the first display mode is a mode of displaying a page horizontally in a horizontal screen display state; a conversion unit 703, configured to convert, if the target display state is a landscape display state and the target application does not support the first display mode, the target display page of the target application into a first target page for displaying in the landscape display state; and a display unit 704, configured to display the first target page in a landscape display state.
In this embodiment, the specific processes and the technical effects of the first determining unit 701, the second determining unit 702, the transforming unit 703 and the displaying unit 704 of the page display device may refer to the relevant descriptions of the steps 101, 102, 103 and 104 in the corresponding embodiment of fig. 1, and are not repeated herein.
In some embodiments, the display mode supported by the target application is a second display mode, or is a first display mode and a second display mode, where the second display mode is a mode of vertically displaying a page in a vertical screen display state.
In some embodiments, the transform unit 703 is further to: acquiring a first transformation matrix, wherein the first transformation matrix can transform a page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state; and using a first transformation matrix to transform a target display page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state, and taking the page as a first target page.
In some embodiments, the page display device further includes a transfer unit (not shown in the figure). The transmission unit is used for responding to the screen touch operation of the mobile terminal and acquiring a first screen coordinate corresponding to the screen touch operation; transforming the first screen coordinates into second screen coordinates, wherein the page objects indicated by the first screen coordinates in the first target page are consistent with the page objects indicated by the second screen coordinates in the target display page; and transmitting the second screen coordinates to the target application, so that the target application takes the page object indicated by the second screen coordinates in the target display page as a page object triggered by the screen touch operation, and responds to the screen touch operation of the page object.
In some embodiments, the transfer unit is further to: acquiring a first transformation matrix, wherein the first transformation matrix can transform a page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state;
the first screen coordinates are transformed into second screen coordinates using the first transformation matrix.
In some embodiments, the display unit 704 is further configured to: if the target display state is a vertical screen display state and the target application supports a first display mode, converting a target display page for vertical display in the vertical screen display state into a second target page for vertical display in the vertical screen display state; displaying a second target page in a vertical screen display state; and/or if the target display state is a horizontal screen display state, and the target application supports the first display mode, and the target display page is horizontally displayed in the horizontal screen display state.
In some embodiments, the display unit 704 is further configured to: acquiring a second transformation matrix, wherein the second transformation matrix is used for translating and/or scaling the page; and using a second transformation matrix to transform the target display page for vertical display in the vertical screen display state into a second target page for vertical display in the vertical screen display state.
In some embodiments, the display unit 704 is further configured to: acquiring page rendering information of a target application, wherein the page rendering information comprises identification information of a full-screen display page or a display page according to a third display mode, and the third display mode is a mode of vertically displaying the page in a horizontal screen display state; and displaying the first target page in a horizontal screen display state according to the identification information.
In some embodiments, the page display device further includes an updating unit (not shown in the figure). The updating unit is used for updating the identification information into a page displayed according to a third display mode if the target display state is a horizontal screen display state and the target application does not support the first display mode; otherwise, the identification information is updated into a full-screen display page.
In some embodiments, the first determining unit 701 is further configured to: and determining a target display state of the mobile terminal in response to the rotation of the screen of the mobile terminal.
In some embodiments, the second determining unit 702 is further configured to: and determining whether the target application supports the first display mode or not according to the page state change of the target application and/or the rotation of the screen of the mobile terminal.
With further reference to fig. 8, fig. 8 illustrates an exemplary system architecture in which the page display method of some embodiments of the present disclosure may be applied.
As shown in fig. 8, the system architecture may include a mobile terminal 801 and a target application 802. The target application 802 is an application installed on the mobile terminal 801.
The target application 802 may be various types of applications, for example, may be a shopping-type application, an audio-video-type application, a news information-type application, and the like.
The mobile terminal 801 may be hardware or software. When the mobile terminal 801 is hardware, it may be various mobile terminals having a display screen and supporting information interaction, including but not limited to a smart phone, a tablet computer, etc. When the mobile terminal 801 is software, it may be installed in the above-listed mobile terminal, and may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not particularly limited herein.
The mobile terminal 801 may display a page of the target application 802 in a landscape display state or a portrait display state.
In some scenarios, the mobile terminal 801 may determine its target display state and determine whether the target application 802 supports the first display mode. If the target display state is a landscape display state and the target application 802 does not support the first display mode, the mobile terminal 801 may transform the target display page of the target application 802 into a first target page for display in the landscape display state, and further, display the first target page in the landscape display state.
In some scenarios, after displaying the first target page, in response to a screen touch operation of the mobile terminal, the mobile terminal 801 may acquire a first screen coordinate corresponding to the screen touch operation, and transform the first screen coordinate into a second screen coordinate, where a page object indicated by the first screen coordinate in the first target page is consistent with a page object indicated by the second screen coordinate in the target display page, and further, the mobile terminal 801 may transfer the second screen coordinate to the target application 802, so that the target application 802 may use the page object indicated by the second screen coordinate in the target display page as a page object triggered by the screen touch operation, and respond to the screen touch operation of the page object.
It should be noted that, the page display method provided by the embodiments of the present disclosure may be performed by the mobile terminal 801, and accordingly, the page display device may be disposed in the mobile terminal 801.
It should be understood that the number of target applications in fig. 8 is merely illustrative. There may be any number of target applications, as desired for implementation.
Referring now to fig. 9, a schematic diagram of an electronic device (e.g., the mobile terminal of fig. 8) suitable for use in implementing some embodiments of the present disclosure is shown. Mobile terminals in some embodiments of the present disclosure may include, but are not limited to, devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like. The electronic device shown in fig. 9 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure. The electronic device shown in fig. 9 is merely an example, and should not impose any limitation on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 9, the electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 901, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage means 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
In general, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. Communication means 909 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 9 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 9 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When executed by the processing device 901, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium according to some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a target display state of the mobile terminal, wherein the display state is a horizontal screen display state or a vertical screen display state; determining whether the target application supports a first display mode, wherein the first display mode is a mode of transversely displaying pages in a transverse screen display state; if the target display state is a horizontal screen display state and the target application does not support the first display mode, converting a target display page of the target application into a first target page for display in the horizontal screen display state; and displaying the first target page in the horizontal screen display state.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. 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 server. In the case of a remote computer, 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 (for example, through the Internet using an Internet service provider).
The flowcharts 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 disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the display unit may also be described as a unit that "displays the first target page in the landscape display state".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the disclosure is not limited to the specific combination of features described above, but encompasses other technical solutions formed by any combination of features described above or their equivalents without departing from the spirit of the disclosure. Such as those described above, are provided in the present disclosure in place of, but not limited to, features having similar functions.
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (14)

1. The page display method is applied to the mobile terminal and is characterized by comprising the following steps:
determining a target display state of the mobile terminal, wherein the display state is a horizontal screen display state or a vertical screen display state;
determining whether a target application supports a first display mode, wherein the first display mode is a mode of transversely displaying a page in a transverse screen display state;
if the target display state is a horizontal screen display state and the target application does not support the first display mode, converting a target display page of the target application into a first target page for display in the horizontal screen display state;
and displaying the first target page in a horizontal screen display state.
2. The method of claim 1, wherein the display mode supported by the target application is a second display mode, or the first display mode and the second display mode, and wherein the second display mode is a mode of vertically displaying a page in a vertical screen display state.
3. The method of claim 2, wherein transforming the target display page of the target application into the first target page for display in the landscape display state comprises:
acquiring a first transformation matrix, wherein the first transformation matrix can transform a page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state;
and using the first transformation matrix to transform the target display page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state, and taking the page as the first target page.
4. The method according to claim 2, wherein the method further comprises:
responding to a screen touch operation of the mobile terminal, and acquiring a first screen coordinate corresponding to the screen touch operation;
transforming the first screen coordinates into second screen coordinates, wherein the page objects indicated by the first screen coordinates in the first target page are consistent with the page objects indicated by the second screen coordinates in the target display page;
and transmitting the second screen coordinates to the target application, so that the target application takes the page object indicated by the second screen coordinates in the target display page as the page object triggered by the screen touch operation, and responds to the screen touch operation of the page object.
5. The method of claim 4, wherein said transforming the first screen coordinates to second screen coordinates comprises:
acquiring a first transformation matrix, wherein the first transformation matrix can transform a page for vertical display in a vertical screen display state into a page for vertical display in a horizontal screen display state;
transforming the first screen coordinates into the second screen coordinates using the first transformation matrix.
6. The method of claim 2, further comprising at least one of:
if the target display state is a vertical display state and the target application supports the first display mode, converting the target display page for vertical display in the vertical display state into a second target page for vertical display in the vertical display state; displaying the second target page in a vertical screen display state;
and if the target display state is a horizontal screen display state, and the target application supports the first display mode, and the target display page is horizontally displayed in the horizontal screen display state.
7. The method of claim 6, wherein the converting the target display page for portrait display in portrait display state to a second target page for portrait display in portrait display state; displaying the second target page in a vertical screen display state, including:
Acquiring a second transformation matrix, wherein the second transformation matrix is used for translating and/or scaling a page;
and using the second transformation matrix to transform the target display page for vertical display in the vertical screen display state into the second target page for vertical display in the vertical screen display state.
8. The method of claim 1, wherein displaying the first target page in a landscape display state comprises:
acquiring page rendering information of the target application, wherein the page rendering information comprises identification information of a full-screen display page or a display page according to a third display mode, and the third display mode is a mode of vertically displaying the page in a horizontal screen display state;
and displaying the first target page in the horizontal screen display state according to the identification information.
9. The method of claim 8, wherein prior to displaying the first target page in a landscape display state, the method further comprises:
if the target display state is a horizontal screen display state and the target application does not support the first display mode, updating the identification information to display a page according to the third display mode;
Otherwise, updating the identification information into a full-screen display page.
10. The method of claim 1, wherein the determining the target display state of the mobile terminal comprises:
and determining a target display state of the mobile terminal in response to the rotation of the screen of the mobile terminal.
11. The method of claim 1, wherein determining whether the target application supports the first display mode comprises:
and responding to the page state change of the target application and/or the rotation of the screen of the mobile terminal, and determining whether the target application supports the first display mode.
12. A page display device applied to a mobile terminal, comprising:
a first determining unit, configured to determine a target display state of the mobile terminal, where the display state is a horizontal screen display state or a vertical screen display state;
the second determining unit is used for determining whether the target application supports a first display mode, wherein the first display mode is a mode of transversely displaying pages in a transverse screen display state;
the conversion unit is used for converting the target display page of the target application into a first target page for display in the horizontal screen display state if the target display state is the horizontal screen display state and the target application does not support the first display mode;
And the display unit is used for displaying the first target page in a horizontal screen display state.
13. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-11.
14. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-11.
CN202111547735.2A 2021-12-16 2021-12-16 Page display method and device and electronic equipment Pending CN116266206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111547735.2A CN116266206A (en) 2021-12-16 2021-12-16 Page display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111547735.2A CN116266206A (en) 2021-12-16 2021-12-16 Page display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116266206A true CN116266206A (en) 2023-06-20

Family

ID=86743446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111547735.2A Pending CN116266206A (en) 2021-12-16 2021-12-16 Page display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116266206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707661A (en) * 2023-07-19 2024-03-15 荣耀终端有限公司 Interface display method and related device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707661A (en) * 2023-07-19 2024-03-15 荣耀终端有限公司 Interface display method and related device

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN112015314B (en) Information display method and device, electronic equipment and medium
CN111291244B (en) House source information display method, device, terminal and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN110825286B (en) Image processing method and device and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111259636B (en) Document rendering method and device and electronic equipment
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
CN111259291B (en) View display method and device and electronic equipment
CN116266206A (en) Page display method and device and electronic equipment
CN111273884A (en) Image display method and device and electronic equipment
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN111338827B (en) Method and device for pasting form data and electronic equipment
CN111460334B (en) Information display method and device and electronic equipment
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN111309323B (en) Parameter initialization method and device and electronic equipment
CN114089891A (en) Display control method and device and electronic equipment
CN112711457A (en) Method and device for field drawing and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112346630B (en) State determination method, device, equipment and computer readable medium
US12020347B2 (en) Method and apparatus for text effect processing
CN113592734B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination