CN112486616A - Interface display method, interface display device, electronic equipment and storage medium - Google Patents

Interface display method, interface display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112486616A
CN112486616A CN202011377461.2A CN202011377461A CN112486616A CN 112486616 A CN112486616 A CN 112486616A CN 202011377461 A CN202011377461 A CN 202011377461A CN 112486616 A CN112486616 A CN 112486616A
Authority
CN
China
Prior art keywords
interface
display
screen
coordinate
display area
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
CN202011377461.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011377461.2A priority Critical patent/CN112486616A/en
Publication of CN112486616A publication Critical patent/CN112486616A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an interface display method, an interface display device, an electronic device and a storage medium, which belong to the technical field of computers, and the method comprises the following steps: acquiring a first parameter of a missing display area under the condition that the corner of the screen is a non-right angle, wherein the size of the missing display area is associated with the non-right angle; adjusting the display of the first interface under the condition that the display position of the first display content in the first interface is positioned in the missing display area; wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen. The scheme ensures that the adjusted interface can be completely displayed in the screen, thereby ensuring the integrity of the content of the non-right-angle screen display interface.

Description

Interface display method, interface display device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an interface display method, an interface display apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, the performance of electronic devices such as mobile phones, tablet computers, notebook computers and the like is also continuously improved.
At first, the corners of the screen of the electronic device are mostly right-angled to meet the requirement that the program interface is mostly right-angled, but later, for example, in the presence of portable electronic devices such as mobile phones and tablet computers, the corners of the screen are designed to be non-right-angled for the convenience of carrying and the requirement of beauty of users. However, the program interface still adopts the right-angle design, so that the problem that the interface content of the program interface is not completely displayed due to the fact that the interface content of the corner part in the right-angle display interface can not be normal when the screen with the non-right angle as the corner displays the right-angle display interface is caused, and the normal use of the program interface by a user is influenced.
Disclosure of Invention
The embodiment of the application provides an interface display method, an interface display device, electronic equipment and a storage medium, and can solve the problems that in the prior art, because the corners of a screen are not right-angled, and the corners of a program interface are right-angled, the interface content of the corners in the program interface cannot be normally displayed, and the interface content of the program interface is incompletely displayed.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an interface display method, including:
acquiring a first parameter of a missing display area under the condition that the corner of the screen is a non-right angle, wherein the size of the missing display area is associated with the non-right angle;
adjusting the display of the first interface under the condition that the display position of the first display content in the first interface is positioned in the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
In a second aspect, an embodiment of the present application provides an interface display apparatus, including:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first parameter of a missing display area under the condition that the corner of a screen is a non-right angle, and the size of the missing display area is associated with the non-right angle;
the adjusting module is used for adjusting the display of the first interface under the condition that the display position of the first display content in the first interface is positioned in the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, where the program or the instruction, when executed by the processor, implements the steps of the interface display method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the interface display method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the interface display method according to the first aspect.
The embodiment of the application provides an interface display method, an interface display device, electronic equipment and a storage medium.
Drawings
Fig. 1 is a flowchart illustrating steps of an interface display method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating an interface display method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating steps of another interface display method according to an embodiment of the present disclosure;
FIG. 4 is a second schematic diagram illustrating an interface display method according to an embodiment of the present disclosure;
FIG. 5 is a third schematic diagram illustrating an interface display method according to an embodiment of the present disclosure;
FIG. 6 is a fourth schematic diagram illustrating an interface display method according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating an effect of an interface display method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating steps of a method for acquiring a missing display area according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a fifth embodiment of an interface display method;
fig. 10 is a second schematic view illustrating an effect of an interface display method according to an embodiment of the present application;
fig. 11 is a block diagram illustrating an interface display apparatus according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 13 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
An interface display method, an interface display apparatus, an electronic device, and a storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart illustrating steps of an interface display method provided in an embodiment of the present application, where the method includes:
step 101, under the condition that the corner of the screen is a non-right angle, acquiring a first parameter of a missing display area, wherein the size of the missing display area is associated with the non-right angle.
In the embodiment of the present application, the screen may be a display component provided on an electronic device having an image display function, and the electronic device may further have functions of data processing, data transmission, data storage, and the like. With the development of the design of the appearance of electronic devices, the conventional right-angle screen cannot meet the requirements of designers and users, and non-right angles such as round angles and trapezoid angles appear as the design of the corners of the screen. However, because the program interface of the application program is mostly designed with right-angled corners, when the program interface is displayed adjacent to or attached to the corners of the display screen, the interface content at the right-angled corners of the program interface may not be completely displayed at the non-right-angled corners, which may not only cause the user to miss the interface content, but also cause the user to not normally use the function keys included in part of the interface content, and the like, and whether the corners of the screen are non-right angles may be specifically determined according to the specification parameters of the screen.
In the case that the corners of the screen are not right-angled, the missing display area refers to a screen display area in the screen where the program interface cannot be completely displayed due to the non-right-angled corners.
Illustratively, referring to fig. 2, where 1 is a screen, 2 is a first interface, 3 is a missing display area, and 4 is a part of the content in the first interface. Because the corner of the screen 1 is a rounded corner, there is a missing display area 3 that cannot be displayed in the screen, so that part of the content 4 in the first interface at the left and right lower corners in the first interface 2 is located in the missing display area 3 due to the display position, and cannot be displayed in the screen 1.
Step 102, in a case that a display position of first display content in a first interface is located within the missing display area, adjusting display of the first interface, wherein the first parameter includes at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
In the embodiment of the present application, the first interface refers to an interface that needs to be displayed in the screen, and the first display content is a part or whole content of the first interface located in a missing display area position of the screen. The size information is a parameter for describing the outline of the missing display area, and the position information is a parameter for describing the position of the missing display area on the screen.
For example, as shown in fig. 2, the first interface may be a region 2, the first display content may be a region portion of 4, specifically, the region 4 is a part of the region 2, the actual display region may be a region 3, specifically, the region 3 is a triangle-like region composed of two sides of a dotted line and an arc-shaped side.
The method includes the steps of obtaining display positions of display contents in a first interface displayed currently in a screen, if it is confirmed that the first display contents exist in the first interface and are displayed in a missing display area, determining that the first display contents cannot be displayed in the screen due to non-right angles, namely the first interface cannot be completely displayed, adjusting relevant parameters such as the position and the size of the first display area at the moment to enable the display positions of the first display area in the screen to be adjusted, and setting specific first parameters to be adjusted according to actual requirements as long as the first display contents can be displayed in the screen, wherein the display positions are not limited.
According to the interface display method provided by the embodiment of the application, when the corners of the screen are not at right angles, the adjusted interface can be completely displayed in the screen by acquiring the missing display area which cannot be normally displayed on the screen due to the non-right angles and by displaying and adjusting the interface with the interface content located in the missing display area, so that the integrity of the non-right-angle screen display interface content is ensured.
Fig. 3 is a flowchart illustrating steps of another interface display method provided in an embodiment of the present application, where the method includes:
step 201, under the condition that the corner of the screen is a non-right angle, acquiring first size information of the screen, wherein the size of the missing display area is associated with the non-right angle.
It can be understood that the first size information of the screen may be obtained by sensing the screen parameters of the manufacturer when the screen leaves the factory, or may be calculated according to the number of pixels displayed when the screen is displayed in full screen.
This step can refer to the detailed description of step 101, which is not repeated herein.
Step 202, a first side edge and a second side edge of the screen are obtained, and second size information of the target screen is determined according to the first side edge and the second side edge, wherein the first side edge is adjacent to the second side edge, and the target screen is a screen when the corner of the screen is a right angle.
In the embodiment of the present application, the first side and the second side are adjacent vertical side and horizontal side in the screen, respectively. The first side edge and the second side edge are respectively used as the length and the width, so that second size information when the screen is a right-angled corner can be obtained, the screen corresponding to the second size information is called a target screen, and the target screen is understood to be the screen obtained by replacing the corner of the current screen with the right angle.
Step 203, determining the size information of the missing display area according to the difference value between the second size information and the first size information.
In the embodiment of the present application, due to the difference between the size information, the current screen has a smaller part of the display area relative to the target screen whose corner is at a right angle, that is, a missing display area. By comparing the first size information and the second size information of the screen, the size of the screen is reduced due to non-right angles, so that the second size information is larger than the first size information, the first size information can be subtracted from the second size information, and the obtained difference value is used as the size information of the missing display area.
For example, referring to fig. 4, an embodiment of the present application provides a method for determining a missing display area, where a lower left corner and a lower right corner of a screen are rounded corners, an outer horizontal line and an outer vertical line of the rounded corner at a lower left of the screen and a tangent line of the rounded corner may be taken, the tangent points are M, N respectively, an intersection point of the two tangent lines is P, perpendicular lines of the rounded corner are taken from M, N respectively, the intersection point of the two perpendicular lines is O, i.e., the center of the rounded corner, OM and ON are radii r of a circle where the rounded corner is located, and MPN (triangle-like region) is the missing display area of the rounded corner at the lower left of a display target. Similarly, the fillet of the lower right can be the outside horizontal line and the outside vertical line of the fillet of the lower left of the screen and the tangent line of the fillet, the tangent points are respectively M ' and N ', the intersection point of the two tangent lines is P ', the perpendicular line of the fillet is respectively made from M ' and N ', the intersection point of the two perpendicular lines is O ', namely the center of the fillet, O ' M ' and O ' N ' are the radius r of the circle where the fillet is located, and then M ' P ' N ' (similar triangular region) is the missing display region of the fillet below the left of the display target. The above description is only exemplary, and the corner of the screen is not limited herein, and other non-right angles may also be applied to the embodiments of the present application.
For example, referring to fig. 5, taking the rounded corners at the lower left and lower right of the display screen as an example, taking the first vertical tangents of the two rounded corners and the outer vertical line of the display screen, the tangent points are C and C ', taking the first horizontal tangents of the two circles and the outer horizontal line of the display screen, and the intersection points of the first horizontal tangents and the two first vertical tangents are D and D', respectively, then the display area CDD 'D' may be used as the missing display area. It is to be understood that not all of the missing display regions determined by this method may not display content.
Referring to fig. 6, taking the rounded corners at the upper left and lower left of the display screen as an example, taking two rounded corners of the display screen and the second vertical tangents of the outer horizontal lines, the tangent points are E and E ', taking the second horizontal tangents of the two circles of the display screen and the outer vertical lines, and the intersection points of the second vertical tangents and the two second horizontal tangents are F and F', respectively, then the display area EFF 'E' can be taken as a missing display area. As described above, the missing display area determined by this method is not all areas that cannot display the content.
According to the embodiment of the application, the size information of the missing display area is determined according to the size difference value between the non-right-angle screen and the right-angle screen, the missing display area can be rapidly determined in the interface adjusting process to adjust the interface display, and the efficiency of adjusting the interface display is improved.
Step 204, a first coordinate range of the first display content in the first interface and a second coordinate range of the missing display area are obtained.
Step 205, determining that the display position of the first display content in the first interface is located within the missing display area when the second coordinate range includes the first coordinate range, where coordinate systems selected by all coordinates in the first coordinate range and the second coordinate range are the same.
In this embodiment of the application, the first coordinate range refers to a coordinate value range of the first display content in the first interface, and the second coordinate range refers to a coordinate value range of the missing display area in the current screen.
By establishing a rectangular coordinate system based on the first coordinate axis and the second coordinate axis in the screen, the coordinate values of all display positions in the screen can be obtained, and then the second coordinate range of the missing display area and the first coordinate range of the first display content in the first interface can be obtained. If each coordinate value in the first coordinate value range is located within a second coordinate range of the missing display area, it can be determined that the second coordinate range includes the first coordinate range, that is, the first display content is not displayed in the screen.
Illustratively, taking fig. 4 as an example, the determination of the missing display area of the lower right screen may be as follows:
if a coordinate system is established with the outer horizontal line (M 'P' as X-axis, positive direction pointing from M 'to P') as X-axis and the outer vertical line (P 'N' as Y-axis, positive direction pointing from P 'to N') as Y-axis, the function of the coordinate range of the missing display area is the following formula 1:
Figure BDA0002808544730000081
where (x1, y1) is the coordinate range of the missing display area, it can be understood that the first interface and the screen both determine the coordinate range in the coordinate system, and each coordinate of the first display content in the first interface is within the second coordinate range of the missing display area, i.e. the second coordinate range can be considered to include the first coordinate range. It is to be understood that points on the curve segment M 'N', points on the line segment M 'P', and points on the line segment N 'P' are all considered to be within the second coordinate range. Of course, the above description is only exemplary, and may be determined according to actual requirements, and is not limited herein.
According to the method and the device, whether the first display content is located in the missing display area or not is determined according to the coordinate area range of the missing display area and the first display content in the first interface in the same coordinate system, and the accuracy of determining that the first interface corresponding to the first display content cannot be completely displayed due to non-right-angle interface content is improved.
Step 206, under the condition that the display position of the first display content in the first interface is located in the missing display area, moving the display position of the first display content in the first interface, or displaying the first display content in the first interface in a reduced mode; and displaying the adjusted first interface completely in the screen.
In the embodiment of the application, in order to ensure that the first display content of the first interface can be displayed in the screen, the first display content in the missing display area in the first interface needs to be adjusted to the displayable area of the screen for displaying.
Optionally, considering that the first display content has a positional relationship with other display content in the first interface, the first interface may be integrally adjusted to ensure that the positional relationship between the first display content and other display content in the first interface is unchanged. In addition, only the display of the first display content can be adjusted, and other display contents in the first interface are kept unchanged, as long as the adjusted first display content and the other display contents which are not adjusted can be completely displayed.
The following takes the overall adjustment of the first interface as an example:
in an alternative embodiment, the first interface may be displaced as a whole, so that the first display content in the first interface is moved to a display area that can be normally displayed in the screen for display, where the moving direction may be any direction toward the center of the screen and away from the missing display area, and in order to improve the efficiency of moving the interface, a moving method with the minimum required moving distance is preferred as long as the display content of the first interface after being adjusted and displayed can be completely displayed in the screen.
In another optional implementation, the first interface may be wholly reduced to the second display area for displaying, and the missing first display content in the first interface may be displayed in the displayable area of the screen after reduction. Of course, the adjustment process of the first interface from the first display area to the second display area can also be realized in a mode of combining movement and reduction, as long as the first interface after the display area is adjusted can be completely displayed in the screen.
For example, referring to fig. 7, taking the first interface as a program interface of the input method and corners of the screen as a round corner as an example, where the left image is a part of display contents of the input method interface and is drawn by a round corner (part of areas of the lower right corner and the lower left corner), the lower line of the input method interface is a, and after the input method interface (the first interface) is moved upward by a certain distance as a whole, the right image interface is obtained, that is, the lower line of the input method interface is moved from a to b, and the input method interface is completely displayed on the screen.
Optionally, coordinate axes corresponding to the first coordinate range and the second coordinate range are a first coordinate axis and a second coordinate axis, and the first coordinate axis and the second coordinate axis are perpendicular to each other, with reference to fig. 8, the step 206 includes:
substep 2061, obtaining a maximum value and a minimum value of the first coordinate range on the target coordinate axis, and determining a difference value between the maximum value and the minimum value as a first moving distance.
In the embodiment of the present application, referring to fig. 9, taking a rounded corner at the lower right of the screen as an example, the rounded corner is an arc of a circle, a rectangular coordinate system is set at the center of the circle, the zero point of the coordinate system is O, and the first interface also obtains the coordinate of the vertex a at the lower right in the first interface (the minimum value of the first display content on the y axis) and the coordinate of the non-rectangular intersection B in the coordinate system (the maximum value of the first display content on the y axis) based on the coordinate system, so as to' calculate the distance from a to B, and the length AB is the first moving distance m to be calculated.
Sub-step 2062, moving the display position of the first display content by the first moving distance along the direction corresponding to the target coordinate axis, where the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
In the embodiment of the application, the coordinate range of the first interface is moved by a first movement distance along the direction in which the first coordinate axis is far away from the corner, so that the first display content in the first interface is moved to the second display area in the screen, where the content can be displayed, and the first interface is completely displayed.
According to the method and the device, the first moving distance required to move is determined according to the coordinate value of the first display content, so that the first interface can move accurately, the first display content after adjustment is not neutralized with the original display content as far as possible under the condition that the display content of the first interface is more, and the first interface can be completely displayed in a screen.
In another embodiment of the present application, substeps 2061 and 2062 may be replaced with substeps 2063 and 2064.
Substep 2063, obtaining a maximum value and a minimum value of the second coordinate range on the target coordinate axis, and determining a difference between the maximum value and the minimum value as a second moving distance.
In this embodiment of the application, because the first display content is located in the missing display area, the display area where the first display content is located is smaller than the missing display area, that is, the coordinate value of the first display content does not exceed the second coordinate range of the missing display area, and in view of this, the difference between the maximum value and the minimum value of the first display area on the target coordinate axis in the vertical direction or the horizontal direction may be directly used as the second movement distance to be moved, so that it is ensured that the first interface may be moved from the missing display area after the movement.
Sub-step 2064, moving the display position of the first display content by the second moving distance along the direction corresponding to the target coordinate axis, where the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
In the embodiment of the present application, referring to fig. 10, where a solid line border is a screen, a dashed line border is a screen, and a diagonal shading border is a first interface, it can be seen that the first interface content in the first interface in the right side is displayed in the missing display area, if X2Y2 is an X axis, where the positive direction is directed from X2 to Y2, and X2X1 is a Y axis, where the positive direction is directed from X2 to X1, when the distance between X1 (the maximum value of the second coordinate range on the Y axis) and X2 (the minimum value of the second coordinate range on the Y axis), or the distance between Y1 and Y2 is taken as the second movement distance, the first interface is moved right above with reference to the left side map by the second movement distance, the first interface is completely displayed in the screen, and the first interface content does not exist and the missing display area.
According to the method and the device, the second moving distance required to move is determined according to the coordinate value of the missing display area in the screen, so that the same second moving distance can be adopted for any first display content, and the adjusting speed is accelerated on the basis that the first display is ensured to be displayed in the screen.
In addition, the display size of the first interface can be directly adjusted, so that the adjusted interface does not have the first display content located in the missing display area, that is, the reduced first interface can be completely displayed in the screen.
According to the other interface display method provided by the embodiment of the application, when the corners of the screen are not right angles, after the missing display area which cannot be normally displayed due to the non-right angles of the screen is obtained, the interface with the interface content located in the missing display area is displayed and adjusted, so that the adjusted interface can be completely displayed in the screen, and the integrity of the content displayed on the non-right angle screen is ensured. And the first movement distance required to move is determined according to the coordinate value of the first display area of the first interface, so that the first interface can be accurately moved, and the first interface can be ensured to be completely displayed on the screen. And whether the defect display area and the first interface are overlapped or not is determined according to the coordinate area range of the defect display area and the first interface in the same coordinate system, so that the accuracy of determining that the interface content cannot completely display the first interface corresponding to the first display content due to non-right angles is improved. And the size information of the missing display area is determined according to the size difference between the non-right-angle screen and the right-angle screen, so that the missing display area can be quickly determined in the interface adjusting process to adjust the interface display, and the efficiency of adjusting the interface display is improved.
It should be noted that, in the interface display method provided in the embodiment of the present application, the execution main body may be an interface display device, or a control module used for executing the interface display method in the interface display device. In the embodiment of the present application, an example in which an interface display apparatus executes a method for displaying a loading interface is taken to describe the method for displaying an interface provided in the embodiment of the present application.
Fig. 11 is a block diagram of a structure of an interface display device 30 according to an embodiment of the present application, where the interface display device includes:
an obtaining module 301, configured to obtain a first parameter of a missing display area when a corner of a screen is a non-right angle, where a size of the missing display area is associated with the non-right angle;
an adjusting module 302, configured to adjust display of a first interface when a display position of first display content in the first interface is located within the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
Optionally, in a case that the first parameter includes size information of the missing display area, the obtaining module 301 further includes:
acquiring first size information of the screen;
acquiring a first side edge and a second side edge of the screen, and determining second size information of a target screen according to the first side edge and the second side edge, wherein the first side edge is adjacent to the second side edge, and the target screen is a screen when the corner of the screen is a right angle;
and determining the size information of the missing display area according to the difference value of the second size information and the first size information.
Optionally, the adjusting module 302 is further configured to:
acquiring a first coordinate range of first display content in a first interface and a second coordinate range of the missing display area;
determining that a display position of first display content in a first interface is located within the missing display area if the second coordinate range includes the first coordinate range;
and the coordinate systems selected by all the coordinates in the first coordinate range and the second coordinate range are the same.
Optionally, the adjusting module 302 is further configured to:
moving a display position of the first display content in the first interface;
or, zooming out and displaying the first display content in the first interface.
Optionally, the coordinate axes corresponding to the first coordinate range and the second coordinate range are a first coordinate axis and a second coordinate axis, the first coordinate axis and the second coordinate axis are perpendicular,
the adjusting module 302 is further configured to:
acquiring a maximum value and a minimum value of the first coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a first moving distance;
moving the display position of the first display content by the first moving distance along the direction corresponding to the target coordinate axis;
alternatively, the first and second electrodes may be,
the moving the display position of the first display content in the first interface includes:
acquiring a maximum value and a minimum value of the second coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a second moving distance;
moving the display position of the first display content by the second moving distance along the direction corresponding to the target coordinate axis;
wherein the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
The embodiment of the application provides an interface display device, through when the screen corner is the non-right angle, through obtaining the screen because the non-right angle and behind the disappearance display area that can't normally show, through the interface that is located this disappearance display area with interface content show the adjustment for the interface after the adjustment can be in complete demonstration in the screen, thereby has guaranteed the integrality of non-right angle screen display interface content.
The interface display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The interface display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The interface display device provided in the embodiment of the present application can implement each process implemented by the interface display device in the method embodiments of fig. 1 to fig. 10, and is not described here again to avoid repetition.
Optionally, as shown in fig. 12, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the above-mentioned embodiment of the interface display method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 13 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 510 is further configured to obtain a first parameter of a missing display area in a case where a corner of the screen is a non-right angle, where a size of the missing display area is associated with the non-right angle;
a display unit 506, configured to adjust display of the first interface when a display position of first display content in the first interface is located within the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
According to the embodiment of the application, when the corners of the screen are non-right angles, after the missing display area of the screen which cannot be normally displayed due to the non-right angles is obtained, the interface content is located in the missing display area, the interface content is displayed and adjusted, the adjusted interface can be completely displayed in the screen, and therefore the integrity of the non-right angle screen display interface content is guaranteed.
Optionally, in a case that the first parameter includes size information of the missing display area, the processor 510 is further configured to:
acquiring first size information of the screen;
acquiring a first side edge and a second side edge of the screen, and determining second size information of a target screen according to the first side edge and the second side edge, wherein the first side edge is adjacent to the second side edge, and the target screen is a screen when the corner of the screen is a right angle;
and determining the size information of the missing display area according to the difference value of the second size information and the first size information.
Optionally, the processor 510 is further configured to:
acquiring a first coordinate range of first display content in a first interface and a second coordinate range of the missing display area;
determining that a display position of first display content in a first interface is located within the missing display area if the second coordinate range includes the first coordinate range;
and the coordinate systems selected by all the coordinates in the first coordinate range and the second coordinate range are the same.
Optionally, the display unit 506 is further configured to:
moving a display position of the first display content in the first interface;
or, zooming out and displaying the first display content in the first interface.
Optionally, the coordinate axes corresponding to the first coordinate range and the second coordinate range are a first coordinate axis and a second coordinate axis, the first coordinate axis and the second coordinate axis are perpendicular,
optionally, the processor 510 is further configured to:
acquiring a maximum value and a minimum value of the first coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a first moving distance;
the processor display unit 506 is further configured to:
moving the display position of the first display content by the first moving distance along the direction corresponding to the target coordinate axis;
alternatively, the first and second electrodes may be,
optionally, the processor 510 is further configured to:
acquiring a maximum value and a minimum value of the second coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a second moving distance;
the processor display unit 506 is further configured to:
moving the display position of the first display content by the second moving distance along the direction corresponding to the target coordinate axis;
wherein the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
According to the scheme, the first moving distance required to move is determined according to the coordinate value of the first display area of the first interface, so that the first interface can be moved accurately, and the first interface can be displayed on a screen completely. And whether the defect display area and the first interface are overlapped or not is determined according to the coordinate area range of the defect display area and the first interface in the same coordinate system, so that the accuracy of determining that the interface content cannot completely display the first interface corresponding to the first display content due to non-right angles is improved. And the size information of the missing display area is determined according to the size difference between the non-right-angle screen and the right-angle screen, so that the missing display area can be quickly determined in the interface adjusting process to adjust the interface display, and the efficiency of adjusting the interface display is improved.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (image processor) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the interface display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the interface display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An interface display method, characterized in that the method comprises:
acquiring a first parameter of a missing display area under the condition that the corner of the screen is a non-right angle, wherein the size of the missing display area is associated with the non-right angle;
adjusting the display of the first interface under the condition that the display position of the first display content in the first interface is positioned in the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
2. The method according to claim 1, wherein in the case that the first parameter includes size information of the missing display area, the obtaining the first parameter of the missing display area includes:
acquiring first size information of the screen;
acquiring a first side edge and a second side edge of the screen, and determining second size information of a target screen according to the first side edge and the second side edge, wherein the first side edge is adjacent to the second side edge, and the target screen is a screen when the corner of the screen is a right angle;
and determining the size information of the missing display area according to the difference value of the second size information and the first size information.
3. The method according to claim 1, wherein in a case where the display position of the first display content in the first interface is located within the missing display area, before adjusting the display of the first display screen, the method further comprises:
acquiring a first coordinate range of first display content in a first interface and a second coordinate range of the missing display area;
determining that a display position of first display content in a first interface is located within the missing display area if the second coordinate range includes the first coordinate range;
and the coordinate systems selected by all the coordinates in the first coordinate range and the second coordinate range are the same.
4. The method of claim 1, wherein said adjusting the display of the first interface comprises:
moving a display position of the first display content in the first interface;
or, zooming out and displaying the first display content in the first interface.
5. The method of claim 4, wherein the first coordinate range and the second coordinate range correspond to coordinate axes that are first coordinate axes and second coordinate axes, the first coordinate axes and the second coordinate axes being perpendicular,
the moving the display position of the first display content in the first interface includes:
acquiring a maximum value and a minimum value of the first coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a first moving distance;
moving the display position of the first display content by the first moving distance along the direction corresponding to the target coordinate axis;
alternatively, the first and second electrodes may be,
the moving the display position of the first display content in the first interface includes:
acquiring a maximum value and a minimum value of the second coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a second moving distance;
moving the display position of the first display content by the second moving distance along the direction corresponding to the target coordinate axis;
wherein the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
6. An interface display apparatus, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first parameter of a missing display area under the condition that the corner of a screen is a non-right angle, and the size of the missing display area is associated with the non-right angle;
the adjusting module is used for adjusting the display of the first interface under the condition that the display position of the first display content in the first interface is positioned in the missing display area;
wherein the first parameter comprises at least one of: size information of the missing display area, position information of the missing display area; and displaying the adjusted first interface completely in the screen.
7. The apparatus of claim 6, wherein in the case that the first parameter includes size information of the missing display area, the obtaining module further comprises:
acquiring first size information of the screen;
acquiring a first side edge and a second side edge of the screen, and determining second size information of a target screen according to the first side edge and the second side edge, wherein the first side edge is adjacent to the second side edge, and the target screen is a screen when the corner of the screen is a right angle;
and determining the size information of the missing display area according to the difference value of the second size information and the first size information.
8. The apparatus of claim 6, wherein the obtaining module is further configured to:
acquiring a first coordinate range of first display content in a first interface and a second coordinate range of the missing display area;
determining that a display position of first display content in a first interface is located within the missing display area if the second coordinate range includes the first coordinate range;
and the coordinate systems selected by all the coordinates in the first coordinate range and the second coordinate range are the same.
9. The apparatus of claim 6, wherein the adjustment module is specifically configured to:
moving a display position of the first display content in the first interface;
or, zooming out and displaying the first display content in the first interface.
10. The apparatus of claim 9, wherein the first coordinate range and the second coordinate range correspond to coordinate axes that are first coordinate axes and second coordinate axes, the first coordinate axes and the second coordinate axes being perpendicular,
the obtaining module is further configured to:
acquiring a maximum value and a minimum value of the first coordinate range on a target coordinate axis, and determining a difference value between the maximum value and the minimum value as a first moving distance;
the adjusting module is specifically configured to:
moving the display position of the first display content by the first moving distance along the direction corresponding to the target coordinate axis;
alternatively, the first and second electrodes may be,
the acquisition module is also used for acquiring a maximum value and a minimum value of the second coordinate range on a target coordinate axis and determining the difference value of the maximum value and the minimum value as a second moving distance;
the adjusting module is specifically configured to:
moving the display position of the first display content by the second moving distance along the direction corresponding to the target coordinate axis;
wherein the target coordinate axis is any one of the first coordinate axis and the second coordinate axis.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the interface display method of any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the interface display method according to any one of claims 1 to 5.
CN202011377461.2A 2020-11-30 2020-11-30 Interface display method, interface display device, electronic equipment and storage medium Pending CN112486616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011377461.2A CN112486616A (en) 2020-11-30 2020-11-30 Interface display method, interface display device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011377461.2A CN112486616A (en) 2020-11-30 2020-11-30 Interface display method, interface display device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112486616A true CN112486616A (en) 2021-03-12

Family

ID=74937699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011377461.2A Pending CN112486616A (en) 2020-11-30 2020-11-30 Interface display method, interface display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112486616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661394A (en) * 2022-03-01 2022-06-24 网易(杭州)网络有限公司 Interface display control method and device, storage medium and processor
CN114936057A (en) * 2022-04-26 2022-08-23 深圳市大头兄弟科技有限公司 Interface layout method of program and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577495A (en) * 2017-09-05 2018-01-12 广东欧珀移动通信有限公司 interface display method, device and terminal
CN107632874A (en) * 2017-09-05 2018-01-26 广东欧珀移动通信有限公司 interface display method, device and terminal
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal
CN108984082A (en) * 2018-07-09 2018-12-11 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN109032445A (en) * 2018-07-16 2018-12-18 维沃移动通信有限公司 A kind of control method for screen display and terminal device
WO2019165997A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Display method, device, mobile terminal and storage medium
CN110262858A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 Method, system, storage medium and the electric terminal of the adaptive screen of UI control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577495A (en) * 2017-09-05 2018-01-12 广东欧珀移动通信有限公司 interface display method, device and terminal
CN107632874A (en) * 2017-09-05 2018-01-26 广东欧珀移动通信有限公司 interface display method, device and terminal
CN108182043A (en) * 2018-01-19 2018-06-19 维沃移动通信有限公司 A kind of method for information display and mobile terminal
WO2019165997A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Display method, device, mobile terminal and storage medium
CN110262858A (en) * 2018-03-12 2019-09-20 上海擎感智能科技有限公司 Method, system, storage medium and the electric terminal of the adaptive screen of UI control
CN108984082A (en) * 2018-07-09 2018-12-11 维沃移动通信有限公司 A kind of image display method and mobile terminal
CN109032445A (en) * 2018-07-16 2018-12-18 维沃移动通信有限公司 A kind of control method for screen display and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661394A (en) * 2022-03-01 2022-06-24 网易(杭州)网络有限公司 Interface display control method and device, storage medium and processor
CN114661394B (en) * 2022-03-01 2024-06-25 网易(杭州)网络有限公司 Interface display control method and device, storage medium and processor
CN114936057A (en) * 2022-04-26 2022-08-23 深圳市大头兄弟科技有限公司 Interface layout method of program and related equipment

Similar Documents

Publication Publication Date Title
US9377901B2 (en) Display method, a display control method and electric device
US10863077B2 (en) Image photographing method, apparatus, and terminal
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN104461312A (en) Display control method and electronic equipment
CN112486616A (en) Interface display method, interface display device, electronic equipment and storage medium
WO2024037415A1 (en) Screen mirroring content display method and apparatus, device and storage medium
CN111190677A (en) Information display method, information display device and terminal equipment
CN112817376A (en) Information display method and device, electronic equipment and storage medium
CN112148167A (en) Control setting method and device and electronic equipment
CN112433693A (en) Split screen display method and device and electronic equipment
CN112017133A (en) Image display method and device and electronic equipment
CN111638849A (en) Screenshot method and device and electronic equipment
US9665232B2 (en) Information-processing device, storage medium, information-processing method, and information-processing system for enlarging or reducing an image displayed on a display device
CN113282213A (en) Interface display method and device
CN112929734A (en) Screen projection method and device and electronic equipment
CN116107531A (en) Interface display method and device
WO2023093661A1 (en) Interface control method and apparatus, and electronic device and storage medium
CN110989880A (en) Interface element processing method and device and readable storage medium
CN115529405A (en) Image display method and device of front camera
CN114416269A (en) Interface display method and display device
CN113687691A (en) Display method and device and electronic equipment
KR101832838B1 (en) Apparatus and method for controlling display size in portable terminal
CN112308767A (en) Data display method and device, storage medium and electronic equipment
CN111813473A (en) Screen capturing method and device and electronic equipment
CN112612437B (en) Picture display 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