CN116594725A - Display method, display device, electronic equipment and readable storage medium - Google Patents
Display method, display device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN116594725A CN116594725A CN202310556759.7A CN202310556759A CN116594725A CN 116594725 A CN116594725 A CN 116594725A CN 202310556759 A CN202310556759 A CN 202310556759A CN 116594725 A CN116594725 A CN 116594725A
- Authority
- CN
- China
- Prior art keywords
- loss function
- display
- interface
- function
- control
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000006870 function Effects 0.000 claims description 405
- 239000000725 suspension Substances 0.000 description 14
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 10
- 230000000007 visual effect Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000002411 adverse Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a display method, a display device, electronic equipment and a readable storage medium, and belongs to the technical field of interface display. The display method comprises the following steps: acquiring size parameters of a control; determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface; determining an objective function according to the size parameter, the avoidance loss function, the usability loss function and the preference loss function, wherein the usability loss function is related to an interface display mode of a display interface, and the preference loss function is related to a position adjustment record of a control; and displaying the control in a first display area in the display interface according to the objective function.
Description
Technical Field
The application belongs to the technical field of interface display, and particularly relates to a display method, a display device, electronic equipment and a readable storage medium.
Background
Along with the development of intelligent devices, more and more intelligent devices are equipped with touch display screens, and operation controls are displayed through the touch display screens, so that users can control the intelligent devices through the operation controls.
In the related art, the display of the operation control can cause shielding to the display of the foreground interface, and the availability of the foreground running application and the usability of the operation control can be negatively affected by the improper operation control position.
Disclosure of Invention
The embodiment of the application aims to provide a display method, a display device, electronic equipment and a readable storage medium, which can be used for avoiding shielding of a suspension control on display content of a foreground interface and improving usability of the suspension control.
In a first aspect, an embodiment of the present application provides a display method, including: acquiring size parameters of a control; determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface; determining an objective function according to the size parameter, the avoidance loss function, the usability loss function and the preference loss function, wherein the usability loss function is related to an interface display mode of a display interface, and the preference loss function is related to a position adjustment record of a control; and displaying the control in a first display area in the display interface according to the objective function.
In a second aspect, an embodiment of the present application provides a display apparatus, including: the acquisition module is used for acquiring the size parameters of the control; the determining module is used for determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface; the determining module is used for determining an objective function according to the size parameter, the avoidance loss function, the usability loss function and the preference loss function, wherein the usability loss function is associated with an interface display mode of a display interface, and the preference loss function is associated with a position adjustment record of the control; and the display module is used for displaying the control in a first display area in the display interface according to the objective function.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the display method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the display method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the display method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to perform the steps of the display method as in the first aspect.
According to the embodiment of the application, the avoidance loss function, the usability loss function and the preference loss function of the control in the display interface are obtained, and the display position of the control is determined through the avoidance loss function, the usability loss function and the preference loss function, wherein the avoidance loss function can reduce the shielding of the control to interface elements in the target interface, the usability loss function can improve the usability of the control displayed in the first display area, and the preference loss function can improve the control displayed in the first display area to meet the use preference of a user, so that the display position of the control is obtained based on the avoidance loss function, the usability loss function and the preference loss function, the negative influence of the control to the interface elements is reduced, the convenience of the user to the control operation is improved, and the efficiency loss caused by secondary control display position adjustment of the user is reduced.
Drawings
FIG. 1 illustrates a flow diagram of a display method of some embodiments of the application;
FIG. 2 illustrates a schematic diagram of a display interface and corresponding tree structure of some embodiments of the present application;
FIG. 3 illustrates one of the schematic diagrams of a display interface of some embodiments of the application;
FIG. 4 illustrates a second schematic diagram of a display interface in accordance with some embodiments of the application;
FIG. 5 is a flow chart of a method of displaying a hover keyboard according to the present application;
FIG. 6 illustrates a block diagram of a display device according to some embodiments of the application;
FIG. 7 illustrates a block diagram of an electronic device in accordance with some embodiments of the application;
fig. 8 is a schematic diagram of a hardware architecture of an electronic device implementing some embodiments of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The display method, the display device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below with reference to fig. 1 to 8 through specific embodiments and application scenes thereof.
In some embodiments of the present application, a display method is provided, fig. 1 shows a flow chart of the display method of some embodiments of the present application, and as shown in fig. 1, the display method includes:
102, acquiring size parameters of a control;
in the embodiment of the application, the control is a control to be displayed in the display screen, and when the electronic equipment receives the input of the display interface display control, the system of the electronic equipment can acquire the size parameter corresponding to the control to be displayed. Different controls correspond to different dimensional parameters, including but not limited to: a 26-key keyboard, a 9-grid keyboard, a voice input box, and the like, are not particularly limited herein.
Illustratively, the control is a hover keyboard, and the size parameter includes a width and a height of the control displayed on the display interface for a user to click an input box in the display interface to request the hover keyboard to be displayed.
104, determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface;
In the embodiment of the application, the display interface displays a plurality of interface elements, each interface element corresponds to different associated loss functions, and the associated loss functions are used for representing the magnitude of negative influence on the display effect of the interface element when the control is displayed.
Illustratively, the association loss function is a user-defined association loss function for each interface element.
Illustratively, a default association loss function is stored in the system.
According to the embodiment of the application, the avoidance loss function can be calculated through the associated loss functions of the interface elements, and the avoidance loss function is used for representing the magnitude of negative influence on the display effect of all the interface elements in the display interface when the control is displayed.
Step 106, determining an objective function according to the size parameter, the avoidance loss function, the usability loss function and the preference loss function, wherein the usability loss function is associated with an interface display mode of a display interface, and the preference loss function is associated with a position adjustment record of the control;
in the embodiment of the application, when the usability loss function is used for representing the difficulty of the clicking operation of the control by the user, the usability loss function is related to the mode displayed by the display interface, namely the electronic equipment can construct the corresponding usability loss function based on the current interface display mode. Illustratively, the interface display modes include a landscape display mode and a portrait display mode, and the landscape display mode includes a landscape display mode and a portrait display mode. The interface operation modes include operation modes of a display interface by a user, including a one-hand operation mode and a two-hand operation mode.
In the embodiment of the application, when the preference loss function is used for representing the control display, the preference degree of the user on the control display position is related to the position adjustment record of the user on the control, namely the electronic equipment can call the position adjustment record of the user on the control, and the corresponding preference loss function is constructed according to the position adjustment record.
According to the technical scheme, the objective function is obtained through the avoidance loss function, the usability loss function and the preference loss function, and the objective function comprehensively considers the influence of the control on other interface elements in the display interface, the usability of the control operation by a user and the preference of the user on the control display position when the control is displayed, so that the position of the control displayed on the display interface most conforming to the user expectation can be determined according to the objective function.
And step 108, displaying the control in a first display area in the display interface according to the objective function.
In the technical scheme of the application, the first display area is a display area in which the control is displayed in the display interface. By displaying a point on the control on the coordinate point corresponding to the first display area, the position displayed by the control can not have excessive influence on other interface elements in the display interface, and the usability and preference of the user after the control is displayed are ensured. For example, the control is a hover keyboard, and the upper left corner of the hover keyboard is displayed at the first display area point.
For example, after the objective function is calculated, a particle swarm algorithm may be used to perform an optimization solution for the control display position to obtain the first display area.
According to the embodiment of the application, the avoidance loss function, the usability loss function and the preference loss function of the control in the display interface are obtained, so that the visibility of interface elements in the display interface, the usability of the control and user preference factors can be comprehensively considered, the display position of the control is selected, the negative influence of the control on the interface elements is reduced, the convenience of a user for the control operation is improved, and the efficiency loss caused by the secondary adjustment of the display position of the control by the user is reduced.
In some embodiments of the application, the number of interface elements is at least two; determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface, including: acquiring category information and coordinate information of each interface element; determining an association loss function of the corresponding interface element according to the coordinate information and the category information of the interface element; and determining an avoidance loss function according to the associated loss functions of at least two interface elements.
In the embodiment of the application, because the avoidance loss function is used for representing negative effects of the control displayed in the display interface on the display of all interface elements in the display interface, the avoidance loss function is required to be determined according to the association loss function of each interface element in the display interface. The display interface is provided with a plurality of interface elements, different interface elements are positioned at different positions, and different types of interface elements correspond to different association loss functions, and the association loss functions of each interface element can be determined by determining the type information and the coordinate information of each interface element.
It should be noted that, the associated loss function corresponding to each interface element may be set by user definition, and when the associated loss function set by user definition exists in the interface element, the associated loss function set by user is preferentially adopted.
Illustratively, the category information of the interface element includes: container class and visual class. Wherein, the interface elements of the container are used for organizing visual element arrangement, such as columns, rows, grids and the like, and the interface elements of the container comprise: interface elements for containing specific content, such as a web title bar, a web navigation bar, a web content page and the like, wherein the interface elements of the visual class are used for directly interacting with a user, and the visual class elements, such as buttons, input boxes, text segments and the like, comprise: specific characters in the text box, different buttons, specific characters in the edit box, pictures in the webpage and the like.
When the interface element is an interface element of a container class, the corresponding association loss function is as follows:
LWG(x,y,W,H)=0;
wherein x and y respectively represent the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, W is the width of the control, H is the height of the control, and LWG (x, y, W, H) is the association loss function of the interface elements of the container class.
When the interface element is a visual interface element, setting a corresponding association loss function according to the coordinate information of the interface element, wherein the association loss function corresponding to the visual interface element is as follows:
Wherein LW i (x, y, w, H) is the associated loss function of the ith interface element of the visual class, H i For the height of the ith interface element, W i For the width of the ith interface element, x and y respectively represent the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, and x i 、y i And respectively marking the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the ith interface element.
Fig. 2 is a schematic diagram of a display interface and a corresponding tree structure according to some embodiments of the present application, where, as shown in fig. 2, interface elements in the display interface 202 are parsed, and the interface elements are parsed into a tree structure 204 according to a hierarchical relationship of a plurality of interface elements in the display interface 202. Leaf nodes 206 in the tree 204 correspond to visual class interface elements, and non-leaf nodes 208 in the tree 204 are container class interface elements.
According to the embodiment of the application, according to the category information and the coordinate information of each interface element in the display interface, the corresponding association loss function of each interface element can be obtained, and then the corresponding association loss functions of a plurality of interface elements are used for obtaining the avoidance loss function of the control relative to the display interface, so that the objective function obtained through the avoidance loss function is ensured, the influence of the control on each interface element is fully considered, and the negative influence of the control displayed in the first display area on the interface element is reduced.
In some embodiments of the present application, determining the avoidance loss function from the associated loss function of at least two interface elements comprises: acquiring corresponding preset weight coefficients of at least two interface elements; and determining an avoidance loss function based on the at least two association loss functions and a preset weight coefficient.
In the embodiment of the application, the display interface comprises a plurality of interface elements, the importance degrees of different interface elements in the display interface are different, and the preset weight coefficient of each interface element represents the importance degree of each interface element in the display interface.
For example, the initial value of the preset weight coefficient of each interface element is 1, and the preset weight coefficient can be adjusted and set by a user according to actual requirements, or can be automatically adjusted and set by the electronic device according to the display position, the display content and the category information of each interface element.
In the embodiment of the application, the avoidance loss function is obtained by calculating a plurality of association loss functions and corresponding preset weight coefficients as follows:
wherein LWG (x, y, w, h) is an avoidance type loss function, x, y are respectively the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, w, h are respectively the width and the height of the control, LW i (x, y, W, h) is the associated loss function of the ith interface element, W i Width of the ith interface element, w i For the preset weight coefficient of the ith interface element, sigma i w i Is the sum of the preset weight coefficients of the i interface elements.
In the embodiment of the application, the association loss function and the corresponding preset weight coefficient of each interface element in the display interface are obtained, and the avoidance loss function is obtained by calculation according to the association loss function and the preset weight coefficient, so that the constructed avoidance loss function can fully consider the importance of different interface elements in the display interface, and the adverse effect of control display on other interface elements in the display interface is further reduced.
In some embodiments of the present application, before determining the objective function, according to the size parameter, the avoidance loss function, the usability loss function, and the preference loss function, the method further includes: acquiring an interface display mode of a display interface; and determining an usability loss function according to the operation difficulty function, wherein the operation difficulty function is matched with the interface display mode.
In the embodiment of the application, the usability loss function is used for representing the difficulty level of a user when operating the first control displayed in the first interface. The electronic device can determine a current interface display mode, determine a corresponding operation difficulty function through the interface display mode, and obtain an usability loss function according to the operation difficulty function.
For example, the interface operation mode may be obtained by dynamic analysis of touch conditions of a touch display screen of the electronic device. The interface operation mode may also be determined by a program running in the foreground of the electronic device, for example: and the electronic equipment foreground runs the game program, and operation controls of the game program are positioned on two sides of the screen, so that the current two-hand operation mode is judged.
Fig. 3 illustrates one of the schematic diagrams of the display interface according to some embodiments of the present application, where the display screen 300 is in a landscape display mode, and in a two-hand operation mode, as shown in fig. 3, the easy-operation area 302 is located in the middle of the display screen 300, and the edge of the display screen 300 is located in the hard-operation area 304.
FIG. 4 illustrates a second schematic diagram of a display interface according to some embodiments of the present application, wherein the display screen 400 is in a portrait display mode, and in a one-handed operation mode, the easy-to-operate region 402 is located on the left side of the display screen 400, and the difficult-to-operate region 404 is located on the right side of the display screen 400, as shown in FIG. 4.
In the embodiment of the application, the electronic equipment has obvious difference in the areas easy to operate by the user under different horizontal and vertical screen display modes and different interface operation modes. And determining a corresponding operation difficulty function by acquiring a horizontal and vertical screen display mode and an interface operation mode.
In the embodiment of the application, a plurality of different operation difficulty functions are stored in the electronic equipment system, and the different operation difficulty functions correspond to different interface display modes, so that the electronic equipment can find out the corresponding operation difficulty functions through the determined interface display modes.
Wherein the operation difficulty function is as follows:
wherein TD (x, y) is an operation difficulty function, and x and y respectively represent the horizontal and vertical coordinates of the touch point.
For example, the operation difficulty function may be pre-stored in a system of the electronic device, and the operation difficulty function may be preset through test data or obtained through statistics of historical screen click conditions of the user.
In the embodiment of the application, the usability loss function determined by the operation difficulty function is as follows:
wherein LM (x,, h) is an usability loss function, TD (j) is an operation difficulty function, i, j respectively represent the horizontal and vertical coordinates of a touch point, x, y respectively represent the horizontal and vertical coordinates of the upper left corner of the display position of the control, w, h respectively represent the width and the height of the control, and sigma is a sum symbol.
In the embodiment of the application, the operation difficulty function matched with the current display interface is searched through the interface display mode of the display interface, and the usability loss function is obtained by calculation based on the operation difficulty function, so that the obtained usability loss function can be ensured to be in line with the current mode of the display interface, and the display position of the control can be ensured to be convenient for a user to operate.
In some embodiments of the present application, before determining the objective function, based on the size parameter, the avoidance loss function, the ease of use loss function, and the preference loss function, further comprises: acquiring an initial preference function matched with an interface display mode and a position adjustment record of a control; and determining a preference loss function according to the initial preference function and the position adjustment record.
In the embodiment of the application, the preference loss function is used for representing the preference degree of the user on the control display position. The initial preference function is H (i, j), wherein H is in a two-dimensional data form, the parameters i, j represent the horizontal coordinates and the vertical coordinates of all points of the keyboard coverage area when the manual control adjustment is finished, and H (i, j) represents the times of the control covering the points (i, j) on the screen after the user actively adjusts the position of the control.
The initial preference function is related to an interface display mode of the display interface, the display interface is in different horizontal and vertical screen display modes and in different interface operation modes, the preference degree of a user on different display positions of the control is different, and different initial preference functions corresponding to different interface display modes are stored in the electronic equipment system, wherein the interface display mode of the display interface comprises at least one of the horizontal and vertical screen display modes and the interface operation mode.
In the embodiment of the application, the electronic equipment can also call the position adjustment records corresponding to different interface display modes, and store the position adjustment records in the initial preference function. The usability loss function determined by the initial preference function and the position adjustment record is as follows:
wherein LP (x, y, w, H) is a preference loss function, H (i, j) is an initial preference function, w, H are the width and the height of the control respectively, x and y respectively represent the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, and sigma is a sum symbol.
In the embodiment of the application, after the initial preference function and the corresponding position adjustment record are determined, the initial preference function can be updated through the position adjustment record, and then the preference loss function is constructed according to the updated initial preference function, so that the obtained preference loss function accords with the position adjustment record of the control by the user, and the displayed control can accord with the preference of the user.
In some embodiments of the application, determining the objective function based on the size parameter, the avoidance loss function, the ease of use loss function, and the preference loss function comprises: acquiring a first punishment coefficient corresponding to the avoidance loss function and a second punishment coefficient corresponding to the usability loss function; and determining an objective function according to the size parameter, the first penalty coefficient, the second penalty coefficient, the avoidance loss function, the usability loss function and the preference loss function.
In the embodiment of the application, after the electronic equipment determines the corresponding avoidance loss function, usability loss function and preference loss function, the electronic equipment calculates the avoidance loss function, the usability loss function and the preference loss function through the first penalty coefficient and the second penalty coefficient, so that the objective function can be obtained.
In the technical scheme of the application, the objective function is specifically as follows:
L(x,y)=a 1 ×LWG(x,y,W,H)+a 2 ×LM(x,y,W,H)+(1-a 1 -a 2 )×LP(x,y,W,H);
wherein L (x, y) is an objective function, LWG (x, y, W, H) is an avoidance loss function, LP (x, y, W, H) is a preference loss function, LM (x, y, W, H) is an ease of use loss function, a 1 For the first punishment coefficient, a2 is a second punishment coefficient, x and y respectively represent the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, W is the width of the control, and H is the height of the control.
The objective function needs to satisfy that x is more than or equal to 0 and x+W is less than or equal to W d ,y≥0,y+H≤H d . Wherein x and y respectively represent the horizontal coordinate and the vertical coordinate of the upper left corner of the display position of the control, W d 、H d Respectively the width and the height of the electronic equipment. a, a 1 For the first penalty coefficient, a 2 For the second penalty coefficient, fullFoot a 1 +a 2 ∈[0,1]The first punishment coefficient and the second punishment coefficient are preset values, W is the width of the control, and H is the height of the control.
For example, in a policy scenario focusing on avoiding an interface element in a display interface, a first penalty coefficient may be set to 0.7, and a second penalty coefficient may be set to 0.2.
According to the embodiment of the application, the display position of the control on the display interface can be determined by calculating the objective function in the mode, so that the influence of the control on the interface element in the display interface, the usability of the control operation by a user and the preference of the user on the display position of the control are combined when the control is displayed at the display position, the negative influence of the display control on the interface element is reduced, and the convenience of the control operation is improved.
In some embodiments of the present application, after displaying the control in the first display area in the display interface according to the objective function, the method further includes: under the condition that a second input for adjusting the display position of the control is received, determining a second display area of the control, wherein the second display area is a display area where the control after the position adjustment is positioned; and updating at least one of the avoidance loss function, the usability loss function and the preference loss function, the first penalty coefficient and the second penalty coefficient according to the second display area.
In the embodiment of the application, after the electronic equipment displays the control at the position corresponding to the first display area determined by the objective function, whether the user continuously adjusts the display position of the control is judged, and if the user does not adjust the display position of the control, the current display position of the control is maintained. And if the user adjusts the real position of the control, acquiring a second display area corresponding to the adjusted display position of the control, and updating at least one of the avoidance loss function, the usability loss function, the preference loss function, the first preference coefficient and the second preference coefficient based on the second display area.
The second display area is illustratively matched with the first display area, i.e., the second display area is the abscissa of the upper left corner of the adjusted control.
Specifically, when updating the preference loss function, the initial preference function H (i, j) of the preference loss function is updated as follows:
wherein H (i, j) is an initial preference function, i, j representing the abscissa and ordinate of the coordinate point, respectively.
Specifically, when updating the first penalty coefficient and the second penalty coefficient, the avoidance or usability weight considered when the user adjusts the control is enhanced, and the updating mode is as follows:
ΔLWG=LWG(X adj ,Y adj ,W,H)-LWG(X opt ,Y opt ,W,H);
ΔLM=LM(X adj ,Y adj ,W,H)-LM(X opt ,Y opt ,W,H);
B=max(|ΔLWG|,|ΔLM|,|ΔLWG+ΔLM|);
wherein s is the penalty factor adjustment step size. In general, the penalty factor adjustment step s has a value ranging from 0.05 to 0.2, ΔLWG is the variation of the evasive loss function, ΔLM is the variation of the easy-to-use loss function, B is the first factor, LWG (X) adj ,Y adj W, H) is the evasiveness loss function before adjustment, LWG (X) opt ,Y opt W, H) is the adjusted avoidance loss function, LM (X) adj ,Y adj W, H) is the loss function of ease of use before adjustment, LM (X) opt ,Y opt W, H) is an adjusted usability loss function.
Specifically, when updating the avoidance loss function, the preset weight coefficient corresponding to each interface element in the display interface is adjusted, and the updating mode is as follows:
ΔLW i =LW i (X adj ,Y adj ,W,H)-LW i (X adj ,Y adj ,W,H);
Wherein DeltaLW i LW is the associated loss function variance of interface elements i (X adj ,Y adj W, H) is the associated loss function of the interface element before adjustment, LW i (X adj ,Y adj W, H) is the adjusted associated loss function of the interface element, W i For the preset weight coefficient, p is the adjustment step length of the preset weight coefficient, T LW And adjusting a threshold value for a preset weight coefficient.
Illustratively, a weight coefficient adjustment threshold T is preset LW The following are provided:
wherein T is LW Adjusting a threshold value for a preset weight coefficient, LW i (x, y, W, H) is the associated loss function.
The value range of the adjustment step of the preset weight coefficient is 5 to 20.
In the embodiment of the application, after the user adjusts the position of the control displayed at the corresponding position of the first display area, the electronic equipment can update at least one of the avoidance loss function, the usability loss function, the preference loss function, the first preference coefficient and the second preference coefficient, so that the display position of the control determined by the updated avoidance loss function, the updated usability loss function, the updated preference loss function, the updated first preference coefficient and the updated second preference coefficient can be more in line with the requirements of the user.
The display method is used for displaying a floating keyboard, and fig. 5 is a schematic flow chart of the display method of the floating keyboard of the present application, and as shown in fig. 5, the display method of the floating keyboard includes:
Step 502, receiving a request for displaying a suspension keyboard, and obtaining size information expected to be displayed by the suspension keyboard;
step 504, analyzing interface elements in the display interface to obtain an associated loss function of each interface element, and further obtaining an avoidance loss function;
step 506, obtaining an usability loss function according to the current equipment horizontal and vertical screen display mode and the interface operation mode;
step 508, obtaining a preference loss function according to the initial preference function and the position adjustment record;
step 510, obtaining an objective function of a suspension keyboard display position by combining the size information, the avoidance loss function, the usability loss function and the preference loss function expected to be displayed by the suspension keyboard, and calculating to obtain an optimal position of the suspension keyboard display for display;
step 512, judging whether the user corrects the position of the suspension keyboard manually, if yes, executing step 514, and if not, ending;
and step 514, adjusting the internal parameters of the objective function of the display position of the suspension keyboard according to the user correction information.
The embodiment of the application can integrate the factors of interface element visibility, keyboard usability and user preference, automatically adjust the display position of the suspension keyboard, reduce the negative influence of suspension keyboard display on the interface element, improve the convenience of suspension keyboard typing operation, reduce the efficiency loss caused by secondary adjustment of the suspension keyboard position by a user, and further improve the use experience of the suspension keyboard of the user.
According to the display method provided by the embodiment of the application, the execution main body can be a display device. In the embodiment of the present application, a display device executing a display method is taken as an example, and the display device provided in the embodiment of the present application is described.
In some embodiments of the present application, a display device is provided, which is applied to the display method in any of the above embodiments, and fig. 6 shows a block diagram of the display device in some embodiments of the present application, and as shown in fig. 6, a display device 600 includes:
an obtaining module 602, configured to obtain a size parameter of a control;
a determining module 604, configured to determine an avoidance loss function according to the associated loss function of the interface element displayed in the display interface;
a determining module 604, configured to determine an objective function according to the size parameter, the avoidance loss function, the usability loss function, and the preference loss function, where the usability loss function is associated with an interface display mode of the display interface, and the preference loss function is associated with a position adjustment record of the control;
the display module 606 displays the control in a first display area in the display interface according to the objective function.
According to the embodiment of the application, the avoidance loss function, the usability loss function and the preference loss function of the control in the display interface are obtained, so that the visibility of interface elements in the display interface, the usability of the control and user preference factors can be comprehensively considered, the display position of the control is selected, the negative influence of the control on the interface elements is reduced, the convenience of a user for the control operation is improved, and the efficiency loss caused by the secondary adjustment of the display position of the control by the user is reduced.
In some embodiments of the application, the number of interface elements is at least two;
an obtaining module 602, configured to obtain category information and coordinate information of each interface element;
a determining module 604, configured to determine an association loss function of the corresponding interface element according to the coordinate information and the category information of the interface element;
a determining module 604, configured to determine an avoidance loss function according to the associated loss functions of at least two interface elements.
According to the embodiment of the application, according to the category information and the coordinate information of each interface element in the display interface, the corresponding association loss function of each interface element can be obtained, and then the corresponding association loss functions of a plurality of interface elements are used for obtaining the avoidance loss function of the control relative to the display interface, so that the objective function obtained through the avoidance loss function is ensured, the influence of the control on each interface element is fully considered, and the negative influence of the control displayed in the first display area on the interface element is reduced.
In some embodiments of the present application, an obtaining module 602 is configured to obtain preset weight coefficients corresponding to at least two interface elements;
a determining module 604, configured to determine an avoidance loss function based on at least two associated loss functions and a preset weight coefficient.
In the embodiment of the application, the association loss function and the corresponding preset weight coefficient of each interface element in the display interface are obtained, and the avoidance loss function is obtained by calculation according to the association loss function and the preset weight coefficient, so that the constructed avoidance loss function can fully consider the importance of different interface elements in the display interface, and the adverse effect of control display on other interface elements in the display interface is further reduced.
In some embodiments of the present application, an obtaining module 602 is configured to obtain an interface display mode of a display interface;
the determining module 604 is configured to determine an usability loss function according to an operation difficulty function, where the operation difficulty function matches the interface display mode.
In the embodiment of the application, the operation difficulty function matched with the current display interface is searched through the interface display mode of the display interface, and the usability loss function is obtained by calculation based on the operation difficulty function, so that the obtained usability loss function can be ensured to be in line with the current mode of the display interface, and the display position of the control can be ensured to be convenient for a user to operate.
In some embodiments of the present application, the obtaining module 602 is configured to obtain an initial preference function that matches the interface display mode, and a position adjustment record of the control;
A determining module 604 for determining a preference loss function based on the initial preference function and the position adjustment record.
In the embodiment of the application, after the initial preference function and the corresponding position adjustment record are determined, the initial preference function can be updated through the position adjustment record, and then the preference loss function is constructed according to the updated initial preference function, so that the obtained preference loss function accords with the position adjustment record of the control by the user, and the displayed control can accord with the preference of the user.
In some embodiments of the present application, an obtaining module 602 is configured to obtain a first penalty coefficient corresponding to the avoidance loss function and a second penalty coefficient corresponding to the usability loss function;
a determining module 604 is configured to determine the objective function according to the size parameter, the first penalty coefficient, the second penalty coefficient, the avoidance loss function, the usability loss function, and the preference loss function.
According to the embodiment of the application, the display position of the control on the display interface can be determined by calculating the objective function in the mode, so that the influence of the control on the interface element in the display interface, the usability of the control operation by a user and the preference of the user on the display position of the control are combined when the control is displayed at the display position, the negative influence of the display control on the interface element is reduced, and the convenience of the control operation is improved.
In some embodiments of the present application, the determining module 604 is configured to determine, when receiving a second input for adjusting the display position of the control, a second display area of the control, where the second display area is a display area where the control after the adjustment of the position is located;
the display device 600 further includes:
and the updating module is used for updating at least one of the avoidance loss function, the usability loss function, the preference loss function, the first penalty coefficient and the second penalty coefficient according to the second display area.
In the embodiment of the application, after the user adjusts the position of the control displayed at the corresponding position of the first display area, the electronic equipment can update at least one of the avoidance loss function, the usability loss function, the preference loss function, the first preference coefficient and the second preference coefficient, so that the display position of the control determined by the updated avoidance loss function, the updated usability loss function, the updated preference loss function, the updated first preference coefficient and the updated second preference coefficient can be more in line with the requirements of the user.
The display device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The display device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The display device provided by the embodiment of the application can realize each process realized by the embodiment of the method, and in order to avoid repetition, the description is omitted here.
Optionally, an embodiment of the present application further provides an electronic device, fig. 7 shows a block diagram of the electronic device according to some embodiments of the present application, as shown in fig. 7, where an electronic device 700 includes a processor 702, a memory 704, and a program or an instruction stored in the memory 704 and capable of running on the processor 702, where the program or the instruction implements each process of the foregoing method embodiment when executed by the processor 702, and the same technical effects are achieved, and are not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing some embodiments of the present application.
The electronic device 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
Those skilled in the art will appreciate that the electronic device 800 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 810 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 810 is configured to obtain a size parameter of the control;
a processor 810 for determining an avoidance loss function based on the associated loss function of the interface element displayed in the display interface;
a processor 810 configured to determine an objective function according to the size parameter, the avoidance loss function, the usability loss function, and the preference loss function, wherein the usability loss function is associated with an interface display mode of the display interface, and the preference loss function is associated with a position adjustment record of the control;
the processor 810 is configured to display a control in a first display area in the display interface according to the objective function.
According to the embodiment of the application, the avoidance loss function, the usability loss function and the preference loss function of the control in the display interface are obtained, so that the visibility of interface elements in the display interface, the usability of the control and user preference factors can be comprehensively considered, the display position of the control is selected, the negative influence of the control on the interface elements is reduced, the convenience of a user for the control operation is improved, and the efficiency loss caused by the secondary adjustment of the display position of the control by the user is reduced.
In some embodiments of the application, the number of interface elements is at least two;
a processor 810 for acquiring category information and coordinate information of each interface element;
a processor 810 for determining an association loss function of the corresponding interface element according to the coordinate information and the category information of the interface element;
a processor 810 is configured to determine an avoidance loss function based on the associated loss functions of the at least two interface elements.
According to the embodiment of the application, according to the category information and the coordinate information of each interface element in the display interface, the corresponding association loss function of each interface element can be obtained, and then the corresponding association loss functions of a plurality of interface elements are used for obtaining the avoidance loss function of the control relative to the display interface, so that the objective function obtained through the avoidance loss function is ensured, the influence of the control on each interface element is fully considered, and the negative influence of the control displayed in the first display area on the interface element is reduced.
In some embodiments of the present application, the processor 810 is configured to obtain preset weight coefficients corresponding to at least two interface elements;
the processor 810 is configured to determine an avoidance loss function based on at least two associated loss functions and a preset weight coefficient.
In the embodiment of the application, the association loss function and the corresponding preset weight coefficient of each interface element in the display interface are obtained, and the avoidance loss function is obtained by calculation according to the association loss function and the preset weight coefficient, so that the constructed avoidance loss function can fully consider the importance of different interface elements in the display interface, and the adverse effect of control display on other interface elements in the display interface is further reduced.
In some embodiments of the present application, the processor 810 is configured to obtain an interface display mode of the display interface;
the processor 810 is configured to determine an usability loss function according to an operation difficulty function, where the operation difficulty function matches the interface display mode.
In the embodiment of the application, the operation difficulty function matched with the current display interface is searched through the interface display mode of the display interface, and the usability loss function is obtained by calculation based on the operation difficulty function, so that the obtained usability loss function can be ensured to be in line with the current mode of the display interface, and the display position of the control can be ensured to be convenient for a user to operate.
In some embodiments of the application, the processor 810 is configured to obtain an initial preference function that matches the interface display mode, and a position adjustment record of the control;
a processor 810 for determining a preference loss function based on the initial preference function and the position adjustment record.
In the embodiment of the application, after the initial preference function and the corresponding position adjustment record are determined, the initial preference function can be updated through the position adjustment record, and then the preference loss function is constructed according to the updated initial preference function, so that the obtained preference loss function accords with the position adjustment record of the control by the user, and the displayed control can accord with the preference of the user.
In some embodiments of the present application, the processor 810 is configured to obtain a first penalty coefficient corresponding to the avoidance loss function and a second penalty coefficient corresponding to the usability loss function;
a processor 810 is configured to determine an objective function based on the size parameter, the first penalty coefficient, the second penalty coefficient, the avoidance loss function, the ease of use loss function, and the preference loss function.
According to the embodiment of the application, the display position of the control on the display interface can be determined by calculating the objective function in the mode, so that the influence of the control on the interface element in the display interface, the usability of the control operation by a user and the preference of the user on the display position of the control are combined when the control is displayed at the display position, the negative influence of the display control on the interface element is reduced, and the convenience of the control operation is improved.
In some embodiments of the present application, the processor 810 is configured to determine, when receiving a second input for adjusting the display position of the control, a second display area of the control, where the second display area is the display area of the control after the adjustment of the position;
the processor 810 is configured to update at least one of the avoidance loss function, the usability loss function, the preference loss function, the first penalty coefficient, and the second penalty coefficient according to the second display area.
In the embodiment of the application, after the user adjusts the position of the control displayed at the corresponding position of the first display area, the electronic equipment can update at least one of the avoidance loss function, the usability loss function, the preference loss function, the first preference coefficient and the second preference coefficient, so that the display position of the control determined by the updated avoidance loss function, the updated usability loss function, the updated preference loss function, the updated first preference coefficient and the updated second preference coefficient can be more in line with the requirements of the user.
It should be appreciated that in embodiments of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. Touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 809 can be used to store software programs as well as various data. The memory 809 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 809 may include volatile memory or nonvolatile memory, or the memory 809 may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (ProgrammableROM, PROM), an erasable programmable Read-only memory (ErasablePROM, EPROM), an electrically erasable programmable Read-only memory (ElectricallyEPROM, EEPROM), or a flash memory, among others. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 809 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in part in the form of a computer software product stored on a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (16)
1. A display method, comprising:
acquiring size parameters of a control;
determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface;
determining an objective function according to the size parameter, the avoidance loss function, the usability loss function and the preference loss function, wherein the usability loss function is associated with an interface display mode of the display interface, and the preference loss function is associated with a position adjustment record of the control;
and displaying the control in a first display area in the display interface according to the objective function.
2. The display method according to claim 1, wherein the number of the interface elements is at least two;
the determining the avoidance loss function according to the associated loss function of the interface element displayed in the display interface comprises the following steps:
acquiring category information and coordinate information of each interface element;
determining the association loss function of the corresponding interface element according to the coordinate information and the category information of the interface element;
and determining the avoidance loss function according to the associated loss functions of at least two interface elements.
3. The display method of claim 2, wherein said determining said avoidance loss function from said associated loss functions of at least two of said interface elements comprises:
acquiring corresponding preset weight coefficients of at least two interface elements;
and determining the avoidance loss function based on at least two association loss functions and the preset weight coefficient.
4. A display method according to any one of claims 1 to 3, wherein before determining an objective function from the size parameter, the avoidance loss function, the usability loss function and the preference loss function, further comprising:
acquiring the interface display mode of the display interface;
and determining the usability loss function according to an operation difficulty function, wherein the operation difficulty function is matched with the interface display mode.
5. A display method according to any one of claims 1 to 3, wherein before determining an objective function from the size parameter, the avoidance loss function, the usability loss function and the preference loss function, further comprising:
acquiring an initial preference function matched with the interface display mode and the position adjustment record of the control;
And determining the preference loss function according to the initial preference function and the position adjustment record.
6. A display method according to any one of claims 1 to 3, wherein said determining an objective function from said size parameter, said avoidance loss function, said usability loss function and said preference loss function comprises:
acquiring a first punishment coefficient corresponding to the avoidance loss function and a second punishment coefficient corresponding to the usability loss function;
and determining an objective function according to the size parameter, the first penalty coefficient, the second penalty coefficient, the avoidance loss function, the usability loss function and the preference loss function.
7. The display method of claim 6, wherein the displaying the control according to the objective function after the first display area in the display interface further comprises:
under the condition that an operation input for adjusting the display position of the control is received, determining a second display area of the control, wherein the second display area is a display area where the control is located after the position is adjusted;
and updating at least one of the avoidance loss function, the usability loss function, the preference loss function, the first penalty coefficient and the second penalty coefficient according to the second display area.
8. A display device, comprising:
the acquisition module is used for acquiring the size parameters of the control;
the determining module is used for determining an avoidance loss function according to the associated loss function of the interface element displayed in the display interface;
the determining module is configured to determine an objective function according to the size parameter, the avoidance loss function, the usability loss function, and the preference loss function, where the usability loss function is associated with an interface display mode of the display interface, and the preference loss function is associated with a position adjustment record of the control;
and the display module is used for displaying the control in a first display area in the display interface according to the objective function.
9. The display device of claim 8, wherein the number of interface elements is at least two;
the acquisition module is used for acquiring category information and coordinate information of each interface element;
the determining module is used for determining the association loss function of the corresponding interface element according to the coordinate information and the category information of the interface element;
the determining module is configured to determine the avoidance loss function according to the associated loss functions of at least two interface elements.
10. The display device according to claim 9, wherein the obtaining module is configured to obtain corresponding preset weight coefficients of at least two interface elements;
the determining module is configured to determine the avoidance loss function based on at least two associated loss functions and the preset weight coefficient.
11. The display device according to any one of claims 8 to 10, wherein,
the acquisition module is used for acquiring the interface display mode of the display interface;
the determining module is used for determining the usability loss function according to an operation difficulty function, and the operation difficulty function is matched with the interface display mode.
12. The display device according to any one of claims 8 to 10, wherein,
the acquisition module is used for acquiring an initial preference function matched with the interface display mode and the position adjustment record of the control;
the determining module is configured to determine the preference loss function according to the initial preference function and the location adjustment record.
13. The display device according to any one of claims 8 to 10, wherein,
The acquisition module is used for acquiring a first penalty coefficient corresponding to the avoidance loss function and a second penalty coefficient corresponding to the usability loss function;
the determining module is configured to determine an objective function according to the size parameter, the first penalty coefficient, the second penalty coefficient, the avoidance loss function, the usability loss function, and the preference loss function.
14. The display device of claim 13, wherein the display device comprises a display device,
the determining module is used for determining a second display area of the control under the condition that operation input for adjusting the display position of the control is received, wherein the second display area is a display area where the control is located after the position is adjusted;
the display device further includes:
and the updating module is used for updating at least one of the avoidance loss function, the usability loss function, the preference loss function, the first penalty coefficient and the second penalty coefficient according to the second display area.
15. An electronic device, comprising:
a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 1 to 7.
16. A readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310556759.7A CN116594725A (en) | 2023-05-17 | 2023-05-17 | Display method, display device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310556759.7A CN116594725A (en) | 2023-05-17 | 2023-05-17 | Display method, display device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116594725A true CN116594725A (en) | 2023-08-15 |
Family
ID=87600236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310556759.7A Pending CN116594725A (en) | 2023-05-17 | 2023-05-17 | Display method, display device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116594725A (en) |
-
2023
- 2023-05-17 CN CN202310556759.7A patent/CN116594725A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109298912B (en) | Theme color adjusting method and device, storage medium and electronic equipment | |
CN111831182B (en) | Application icon control method and device and electronic equipment | |
CN110246110B (en) | Image evaluation method, device and storage medium | |
CN113126862B (en) | Screen capture method and device, electronic equipment and readable storage medium | |
CN114564263A (en) | Page layout adjusting method and device | |
CN116126183A (en) | Interface display state adjusting method and device, equipment and storage medium | |
WO2023202570A1 (en) | Image processing method and processing apparatus, electronic device and readable storage medium | |
CN112269522A (en) | Image processing method, image processing device, electronic equipment and readable storage medium | |
CN112035877A (en) | Information hiding method and device, electronic equipment and readable storage medium | |
CN113689525B (en) | Word beautifying method and device, readable storage medium and electronic equipment | |
EP3876781A1 (en) | Protective cover device | |
CN114518822A (en) | Application icon management method and device and electronic equipment | |
CN113946250A (en) | Folder display method and device and electronic equipment | |
CN114242023A (en) | Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment | |
CN115866314B (en) | Video playing method and device | |
CN116594725A (en) | Display method, display device, electronic equipment and readable storage medium | |
CN115562539A (en) | Control display method and device, electronic equipment and readable storage medium | |
CN115729544A (en) | Desktop component generation method and device, electronic equipment and readable storage medium | |
CN114518859A (en) | Display control method, display control device, electronic equipment and storage medium | |
CN114518821A (en) | Application icon management method and device and electronic equipment | |
CN111695556A (en) | Processing method, system, equipment and storage medium for matching webpage | |
CN117631932A (en) | Screenshot method and device, electronic equipment and computer readable storage medium | |
CN112309449B (en) | Audio recording method and device | |
CN116452759A (en) | Building modeling method and device, electronic equipment, readable storage medium and chip | |
CN117270719A (en) | Interface display method, device, electronic equipment and readable storage medium |
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 |