CN109614176B - Application interface layout method, terminal and computer readable storage medium - Google Patents

Application interface layout method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109614176B
CN109614176B CN201811279967.2A CN201811279967A CN109614176B CN 109614176 B CN109614176 B CN 109614176B CN 201811279967 A CN201811279967 A CN 201811279967A CN 109614176 B CN109614176 B CN 109614176B
Authority
CN
China
Prior art keywords
interface display
layout
interface
display objects
display object
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.)
Active
Application number
CN201811279967.2A
Other languages
Chinese (zh)
Other versions
CN109614176A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811279967.2A priority Critical patent/CN109614176B/en
Publication of CN109614176A publication Critical patent/CN109614176A/en
Application granted granted Critical
Publication of CN109614176B publication Critical patent/CN109614176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 invention provides an application interface layout method, a terminal and a computer readable storage medium, which are used for acquiring all interface display objects of a plurality of running interface display processes when a target application interface is started; determining the layout priority of each interface display object; according to the arrangement sequence of the layout priorities, completely loading the interface display objects corresponding to the layout priorities to a preset layout area from high to low; and when the layout area is tense, performing layout area saving processing on the loading of the display objects of the rest interfaces. The interface display objects are sequentially loaded from high to low according to the priority sequence, the interface display objects with high priority are preferentially loaded, and the loading of the rest interface display objects is carried out layout area saving processing when the layout area is tense, so that the cross-process overall layout of the application interface is realized, the reasonable layout of the application interface on machine types with different resolutions is ensured, and the maintenance cost during later-period demand expansion is reduced.

Description

Application interface layout method, terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to an application interface layout method, a terminal and a computer readable storage medium.
Background
With the continuous development of terminal technology, the popularization rate of the intelligent terminal in social life is higher and higher, the frequency of using the intelligent terminal by a user in daily life is higher and higher, and the intelligent terminal applying various new technologies is produced, so that the intelligent terminal becomes an indispensable important tool for people. Because more and more applications are running on the terminal, the User Interface (UI) of the application on the terminal plays a crucial role in its use, and the excellent UI design enables the operation of the application to be comfortable and simple, so that the functions of the application can be better played.
Under the condition that the interface display area is limited at present, how to reasonably distribute space and reasonably organize an interface is a very urgent need, one user interface is usually adapted to multiple terminals at present, however, different terminals have difference of resolution or difference of needs, when the interfaces are too many, the interface display overlapping or covering on partial terminals can be caused by adopting the existing sub-interfaces to be sequentially and independently distributed according to the levels, so that the interface information can not be fully displayed, the functional requirements of users can not be met, and inconvenience is brought to the users.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an application interface layout method, a terminal and a computer-readable storage medium, in order to solve the technical problem that in the prior art, a manner of individually and sequentially laying out sub-interfaces of an application interface according to different levels is adopted, so that interface information cannot be sufficiently displayed and functional requirements of a user cannot be met due to overlapping or covering of interface displays on a part of terminals.
In order to solve the above technical problem, the present invention provides an application interface layout method, including:
when a target application interface is started, all interface display objects of a plurality of running interface display processes are obtained;
determining the layout priority of each interface display object in all the interface display objects;
according to the arrangement sequence of the layout priorities, completely loading the interface display objects corresponding to the layout priorities to a preset layout area from high to low;
and when the layout area is tense and the residual interface display objects cannot be continuously and completely loaded in the residual layout area, performing layout area saving processing on the loading of the residual interface display objects, and ensuring the complete display of the loaded interface display objects.
Optionally, the interface display object includes at least one of the following: an interface Window Window and an interface View View.
Optionally, determining the layout priority of each interface display object in all the interface display objects includes:
and determining the layout priority corresponding to each interface display object in all the interface display objects according to the interface display objects and the preset mapping relation between the interface display objects and the layout priorities.
Optionally, the mapping relationship between the interface display object and the layout priority is obtained by counting the layout priorities of different interface display objects when loaded in a preset historical time period;
or, the mapping relation between the interface display object and the layout priority is obtained by predefining through an application service provider;
or, the mapping relation between the interface display object and the layout priority is obtained by the customization of the terminal user.
Optionally, determining the layout priority of each interface display object in all the interface display objects includes:
determining attribute information of each interface display object in all the interface display objects;
calculating the weight of each interface display object according to the attribute information; the weight is associated with the necessity of each interface display object being completely presented to the user;
and determining the layout priority of each interface display object according to the weight of each interface display object.
Optionally, the attribute information includes at least one of: object function information, object trigger information and object return information.
Optionally, before acquiring all interface display objects of the multiple interface display processes that are executed, the method further includes:
judging whether the target application interface meets a preset application interface layout triggering condition or not;
and if so, acquiring all interface display objects of the running multiple interface display processes.
Optionally, the performing layout area saving processing on the loading of the remaining interface display objects includes:
loading the residual interface display objects after performing boundary compression processing;
or, loading after partial hiding processing is carried out on the remaining interface display objects;
or, the rest interface display objects are loaded after being folded;
or, the loading of the remaining interface display objects is rejected.
Furthermore, the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing the connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the application interface layout method described above.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the application interface layout method described above.
Advantageous effects
The invention provides an application interface layout method, a terminal and a computer readable storage medium, aiming at the defects that interface information can not be sufficiently displayed and the function requirement of a user can not be met because interface display overlapping or covering can occur on part of terminals by adopting a mode of independently and sequentially laying out all sub-interfaces of an application interface according to different levels in the prior art, the application interface layout method comprises the following steps: when a target application interface is started, all interface display objects of a plurality of running interface display processes are acquired; determining the layout priority of each interface display object in all the interface display objects; according to the arrangement sequence of the layout priorities, completely loading the interface display objects corresponding to the layout priorities to a preset layout area from high to low; and when the layout area is tense and the residual interface display objects cannot be continuously and completely loaded in the residual layout area, performing layout area saving processing on the loading of the residual interface display objects, and ensuring the complete display of the loaded interface display objects. According to the priority sequence of all interface display objects of the target application interface, the interface display objects are sequentially loaded from high to low, the interface display objects with high priority are preferentially loaded, and the loading of the rest interface display objects is carried out layout area saving processing when the layout area is tense, so that the cross-process overall layout of the application interface is realized, the reasonable layout of the application interface on machine types with different resolutions is ensured, the maintenance cost when the later-period requirement expands is reduced, and the use experience of a user is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a basic flowchart of an application interface layout method according to a first embodiment of the present invention;
FIG. 4 is a schematic interface diagram of a desktop application according to a first embodiment of the present invention;
FIG. 5 is a flowchart illustrating a detailed layout method of an application interface according to a second embodiment of the present invention;
FIG. 6-1 is a schematic diagram of an interface after an interface display object is loaded directly without performing boundary compression processing according to a second embodiment of the present invention;
fig. 6-2 is a schematic interface diagram illustrating loading after performing boundary compression processing on an interface display object according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 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 processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
In order to overcome the defects that interface information cannot be sufficiently displayed and the functional requirements of a user cannot be met due to the fact that interface display overlapping or covering occurs on part of terminals in a mode of individually arranging sub-interfaces of an application interface in sequence according to different hierarchies in the prior art, the embodiment provides an application interface arrangement method, and as shown in fig. 3, the application interface arrangement method is a basic flow chart of the application interface arrangement method provided by the embodiment, and specifically comprises the following steps:
s301, when the target application interface is started, all interface display objects of the running multiple interface display processes are obtained.
In the embodiment, when the target application interface is started according to the trigger instruction, the display of the target application interface can be ensured only by the simultaneous cooperation of a plurality of processes, in a preferred embodiment, the target application interface is an interface of a desktop application, that is, a main interface of the terminal, and generally includes a status bar, a navigation bar and an application icon placement area, specifically referring to the interface schematic diagram of the desktop application shown in fig. 4, wherein A, B, C areas respectively represent a status bar, a navigation bar, and an application icon placement area, the user triggers the start of a desktop application after unlocking the terminal, wherein the desktop application interface generally requires the simultaneous execution of two processes to ensure the display thereof, wherein the execution of each process ensures the display of one level of sub-interfaces, the status bar and the navigation bar belong to the same sub-interface, and the application icon placement area is the other sub-interface. It should be understood that the interface display object in the present embodiment is used for representing one basic element of the display target application interface.
Optionally, the interface display object includes at least one of the following: an interface Window Window and an interface View View.
Specifically, View is a base class of all controls in the Android system display framework, is an abstraction of a control of an interface layer, can be used for representing one control, occupies a rectangular range in a screen, and is responsible for drawing images and performing event processing. View is the basis for all widgets to create interactive UI components, such as Button, TextView, ImageView, etc. The contents visible in the windows are views layer by layer, that is, views are entities in which windows exist, the windows are layered, each Window has a corresponding level, and a large level can be covered on a small level.
Optionally, before acquiring all interface display objects of the multiple interface display processes that are executed, the method further includes: judging whether the target application interface meets a preset application interface layout triggering condition or not; and if so, acquiring all interface display objects of the running multiple interface display processes.
Specifically, in practical application, it is necessary to evaluate whether the terminal currently has a requirement for performing the application interface layout processing in this embodiment, and a subsequent application interface layout flow is triggered when it is determined that the terminal has the requirement. For example, by determining whether the resolution of the target application interface is greater than a preset resolution threshold, if so, triggering a subsequent application interface layout process, or by determining whether the required number of the target application interface is greater than a preset number threshold, if so, triggering a subsequent application interface layout process, thereby avoiding interface display overlap or coverage caused by a conventional application interface layout manner. And when the triggering condition is not met, the subsequent application interface layout process can not be triggered, so that the processing performance of the terminal is saved.
S302, determining the layout priority of each interface display object in all the interface display objects.
Specifically, in practical applications, determining the layout priority of each interface display object of the target application interface includes, but is not limited to, the following two ways:
the first method is as follows: and determining the layout priority corresponding to each interface display object in all the interface display objects according to the interface display objects and the preset mapping relation between the interface display objects and the layout priorities.
In one embodiment, a layout priority determination model including a mapping relationship between interface display objects and layout priorities is directly preset, and then, the current interface display objects are input into the model, that is, the layout priorities corresponding to the interface display objects can be directly output.
In practical application, the mapping relationship between the interface display object and the layout priority can be obtained in at least three ways, wherein one way is to obtain the mapping relationship by counting the layout priorities of different interface display objects when loaded in a preset historical time period, that is, by adopting a statistical method, the mapping relationship is obtained by counting the historical layout priorities when the layout priorities of the interface display objects are determined each time in the historical time period; the second mapping relation is obtained by the application service provider through predefining, namely the application service provider predefines a reasonable mapping relation based on empirical data; and thirdly, the mapping relation is obtained by the self-definition of the terminal user, namely the user defines the mapping relation which accords with the self habit according to the actual use requirement of the user.
The second method comprises the following steps: determining attribute information of each interface display object in all the interface display objects; calculating the weight of each interface display object according to the attribute information; the weight is associated with the necessity of each interface display object being completely presented to the user; and determining the layout priority of each interface display object according to the weight of each interface display object.
In another embodiment, the mapping relationship between an interface display object and the layout priority is not preset in advance, but the layout priority of each interface display object is calculated in real time according to a certain calculation rule. The method adopted in this embodiment is to calculate a weight value positively correlated to the layout priority according to the attribute information of each interface display object, and then determine the layout priority according to the weight value, where the weight may represent the necessity of completely displaying the interface display object to the user when the target application interface is displayed, that is, a certain interface display object needs to be displayed to the user urgently, and then corresponds to a higher weight value.
Optionally, the attribute information includes at least one of: object function information, object trigger information and object return information.
Specifically, attribute information of the interface display object can be considered from two aspects, on one hand, the attribute information is associated with the self condition of the interface display object, namely object function information and the like, the object function information is based on the fact that most of the interface display objects can perform event processing, and the embodied functions have different importance relative to the user, the higher the importance is, the higher the use requirement of the user on the interface display object in the actual use process is, and therefore the necessity of the user for using the interface display object is completely displayed to the user is higher; the interface display object can be related to the interaction condition between the user and the interface display object, that is, the object trigger information, the object return information, and the like, when the interface display object performs the event processing to realize the self function, the trigger is usually triggered based on the operation of the user, and the interface display object exits under the operation of the user when the event processing is finished after the user requirement is realized, so the importance of the interface display object relative to the user can be indirectly reflected by counting the trigger information and the return information of the interface display object, for example, if the frequency of triggering or returning a certain object in a specific time period is determined to be higher according to the object trigger information or the object return information, the user has higher use requirement on the interface display object, and the necessity of completely showing the interface display object to the user for use by the user is higher.
And S303, completely loading the interface display object corresponding to the layout priority to a preset layout area from high to low according to the arrangement sequence of the layout priorities.
Specifically, after determining the layout priorities of all the interface display objects, the present embodiment performs layout of the corresponding interface display objects from high to low according to the ranking order of the layout priorities, that is, preferentially loads the interface display objects with high priority, so as to ensure display of the interface display objects with high priority, for example, in the present embodiment, the interface display objects with three priorities, that is, P1, P2, and P3, are included, and the priority levels are sequentially decreased from P1 to P3, then the loading processing of the interface display objects is performed sequentially from the P1 priority, the loading of the interface display objects with low priority needs to give way to the interface display objects with high priority, and the loading behavior of the interface display objects with low priority is more similar to the available interface size and available layout position left after loading the interface display objects with high priority.
S304, when the layout area is tense and the remaining interface display objects cannot be continuously and completely loaded in the remaining layout area, the loading of the remaining interface display objects is subjected to layout area saving processing, and the complete display of the loaded interface display objects is ensured.
Specifically, in this embodiment, the interface display object is loaded from high to low according to the layout priority, the remaining available interface size and the available layout position are counted in real time, and when it is determined that the interface display object to be loaded cannot be loaded to the default layout position according to the default interface size according to the remaining available interface size and the available layout position, the interface display object to be loaded is subjected to layout area saving processing at this time, the size of the required layout area is reduced, and the interface display object is prevented from being loaded to the default position according to the default size, so that the high-priority interface display object that has been completely loaded to the default position according to the default size before is covered, that is, the complete display of the high-priority interface display object is ensured. It should be understood that the full loading in this embodiment refers to loading according to the default size of the interface display object, and the full display refers to the complete display of the interface display object after loading without being covered. It should be noted that, in practical application, if a new demand needs to be added to a certain process that is run when a target application interface is started in a later period, other processes that are run do not need to be modified, and later maintenance is easier.
Optionally, the performing layout area saving processing on the loading of the remaining interface display objects includes: loading the residual interface display objects after performing boundary compression processing; or, loading after partial hiding processing is carried out on the remaining interface display objects; or, the rest interface display objects are loaded after being folded; or, the loading of the remaining interface display objects is rejected.
Specifically, in practical applications, when the interface display object cannot be loaded to the default position according to the default size, the layout area saving processing on the loading of the interface display object may be performed on the boundary compression processing on the interface display object to be loaded under one condition, that is, the default interface size of the interface display object is subjected to geometric compression, and the boundary is adjusted to reduce the size of the occupied area; in another case, the interface display object may be partially hidden, that is, a partial area is cut off from the interface display object with the default interface size, so that the remaining size of the interface display object is adapted to the current available interface size; in another case, the interface display object can be folded, that is, the content density of the interface display object is improved, so as to ensure higher space utilization rate and reduce the size of the interface required by loading the interface display object; in addition, in some cases, the loading of the remaining interface display objects may also be discarded directly. The specific processing strategy may be determined according to the actual use requirement of the user, and is not limited herein.
The invention provides an application interface layout method, which comprises the following steps: when a target application interface is started, all interface display objects of a plurality of running interface display processes are acquired; determining the layout priority of each interface display object in all the interface display objects; according to the arrangement sequence of the layout priorities, completely loading the interface display objects corresponding to the layout priorities to a preset layout area from high to low; and when the layout area is tense and the residual interface display objects cannot be continuously and completely loaded in the residual layout area, performing layout area saving processing on the loading of the residual interface display objects, and ensuring the complete display of the loaded interface display objects. According to the priority sequence of all interface display objects of the target application interface, the interface display objects are sequentially loaded from high to low, the interface display objects with high priority are preferentially loaded, and the loading of the rest interface display objects is carried out layout area saving processing when the layout area is tense, so that the cross-process overall layout of the application interface is realized, the reasonable layout of the application interface on machine types with different resolutions is ensured, the maintenance cost when the later-period requirement expands is reduced, and the use experience of a user is improved.
Second embodiment
In order to better understand the present invention, this embodiment describes an application interface layout method with a specific example, and fig. 5 is a detailed flowchart of an application interface layout method provided by a second embodiment of the present invention, where the application interface layout method includes:
s501, when the target application interface is started, judging whether the target application interface meets a preset application interface layout triggering condition; if yes, go to step S502, otherwise go to step S501.
In practical application, it is necessary to evaluate whether the terminal currently has a requirement for performing the application interface layout processing in this embodiment, and a subsequent application interface layout flow is triggered when it is determined that the terminal has the requirement. The evaluated factors can be the resolution of the target application interface, the required number of the target application interface and the like.
And S502, acquiring all interface display objects of the operated interface display processes.
When the target application interface is started according to the trigger instruction, a plurality of processes are required to be simultaneously cooperated to realize the display of the target application interface. It should be understood that the interface display object in the present embodiment is used for representing one basic element of the display target application interface. In practical applications, the interface display object may include at least one of the following: an interface Window Window and an interface View View.
S503, determining the layout priority corresponding to each interface display object in all the interface display objects according to the interface display objects and the mapping relation between the preset interface display objects and the layout priorities.
The layout priority is associated with the necessity that the interface display object needs to be completely displayed to the user, that is, the higher the necessity is, the higher the layout priority is, and the two are positively correlated. In practical application, the mapping relationship between the interface display object and the layout priority can be obtained in at least three ways, wherein one way is to obtain the mapping relationship by counting the layout priorities of different interface display objects when loaded in a preset historical time period, that is, by adopting a statistical method, the mapping relationship is obtained by counting the historical layout priorities when the layout priorities of the interface display objects are determined each time in the historical time period; the second mapping relation is obtained by the application service provider through predefining, namely the application service provider predefines a reasonable mapping relation based on empirical data; and thirdly, the mapping relation is obtained by the self-definition of the terminal user, namely the user defines the mapping relation which accords with the self habit according to the actual use requirement of the user.
S504, according to the arrangement sequence of the layout priorities, the interface display objects corresponding to the layout priorities are loaded to the default layout positions from high to low according to the default interface sizes.
S505, judging whether the size and the layout position of the residual loadable interface can not be loaded continuously according to the default interface size and the default layout position of the interface display object to be loaded; if yes, go to step S506, otherwise go to step S504.
S506, the interface display object to be loaded is loaded after boundary compression processing is carried out, and therefore complete display of the interface display object which is loaded completely is guaranteed.
In this embodiment, after the layout priorities of all the interface display objects are determined, the layout of the corresponding interface display objects is performed from high to low according to the arrangement order of the layout priorities, that is, the interface display objects with high priorities are preferentially loaded, so that the display of the interface display objects with high priorities is ensured. In addition, in this embodiment, after an interface display object is loaded, the remaining available interface size and the available layout position are counted in real time, and it is determined whether the layout area remaining at present causes a tension in the layout area, and the loading cannot be continued according to the default interface size and the default layout position of the interface display object to be loaded. Fig. 6-1 is a schematic interface diagram of the interface display object provided by the present embodiment after being directly loaded without performing boundary compression processing, and fig. 6-2 is a schematic interface diagram of the interface display object provided by the present embodiment after being subjected to boundary compression processing, where fig. 6-1 and 6-2 relate to two interface display objects X and Y with different priorities, where the priority of the X interface display object is higher than that of the Y interface display object, so that the X interface display object is loaded to a default layout position according to the default interface size of the X interface display object, and then the Y interface display object is loaded at a layout position with the remaining interface size, and as shown in fig. 6-1, since the default size of the Y interface display object is larger than the size remaining after the X interface display object is completely loaded, if the X interface display object is still loaded to the default position according to the default size, a part of the X interface display object is blocked by the Y interface display object, based on this, the embodiment performs boundary compression on the default interface size of the Y interface display object, so that the actual interface size during loading is adapted to the current remaining interface size, and thus as shown in fig. 6-2, after the loading of the Y interface display object is completed, the X interface display object completely loaded before can still be completely displayed.
The invention provides an application interface layout method, which loads interface display objects corresponding to layout priorities to default layout positions of interface display objects from high to low according to the priority arrangement sequence of all the interface display objects of a target application interface, and loads the interface display objects to be loaded after performing boundary compression processing when judging that the residual loadable interface sizes and layout positions cannot be continuously loaded according to the default interface sizes and the default layout positions of the interface display objects to be loaded, thereby ensuring the complete display of the interface display objects which are loaded before. The cross-process overall layout of the application interface is realized, the reasonable layout of the application interface on the machine types with different resolutions is ensured, the maintenance cost during the expansion of the later-stage requirements is reduced, and the user experience is improved.
Third embodiment
The present embodiment provides a terminal, as shown in fig. 7, including a processor 701, a memory 702, and a communication bus 703;
the communication bus 703 is used for realizing connection and communication between the processor 701 and the memory 702;
the memory 702 is configured to store one or more programs, and the processor 701 is configured to execute the one or more programs stored in the memory 702 to implement the steps of the application interface layout method in the embodiments described above, which are not described herein again.
Fourth embodiment
The present invention further provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement the steps of the application interface layout method in the embodiments described above, which are not described herein again.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 invention 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, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. An application interface layout method, characterized in that the application interface layout method comprises:
when a target application interface is started, all interface display objects of a plurality of running interface display processes are obtained;
determining the layout priority of each interface display object in all the interface display objects;
according to the arrangement sequence of the layout priorities, completely loading the interface display objects corresponding to the layout priorities to a preset layout area from high to low;
when the layout area is tense and the remaining interface display objects cannot be continuously and completely loaded in the remaining layout area, performing layout area saving processing on the loading of the remaining interface display objects, and ensuring the complete display of the loaded interface display objects;
the method for layout of the application interface is characterized in that the determining the layout priority of each interface display object in all the interface display objects comprises:
and determining the layout priority corresponding to each interface display object in all the interface display objects according to the interface display objects and the mapping relation between the preset interface display objects and the layout priorities.
2. The application interface layout method of claim 1 wherein the interface display object comprises at least one of: an interface Window Window and an interface View View.
3. The application interface layout method according to claim 2, wherein the mapping relationship between the interface display objects and the layout priorities is obtained by counting the layout priorities of different interface display objects when loaded within a preset historical time period;
or, the mapping relation between the interface display object and the layout priority is predefined by an application service provider;
or, the mapping relation between the interface display object and the layout priority is obtained by the customization of the terminal user.
4. The application interface layout method of claim 1 wherein said determining a layout priority for each of said all interface display objects comprises:
determining attribute information of each interface display object in all the interface display objects;
calculating the weight of each interface display object according to the attribute information; the weight is associated with the necessity of complete presentation of each interface display object to a user;
and determining the layout priority of each interface display object according to the weight of each interface display object.
5. The application interface layout method of claim 4 wherein the attribute information comprises at least one of: object function information, object trigger information and object return information.
6. The application interface layout method of claim 1, prior to obtaining all interface display objects of the executed plurality of interface display processes, further comprising:
judging whether the target application interface meets a preset application interface layout triggering condition or not;
and if so, acquiring all interface display objects of the running multiple interface display processes.
7. The application interface layout method of any of claims 1 to 6 wherein said performing layout area saving processing on the loading of the remaining interface display objects comprises:
loading the residual interface display objects after performing boundary compression processing;
or, loading the residual interface display object after partial hiding processing;
or, the residual interface display objects are loaded after being folded;
or, refusing the loading of the remaining interface display objects.
8. A terminal, characterized in that the terminal comprises a processor, a memory, a communication bus;
the communication bus is used for realizing the connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the application interface layout method of any of claims 1 to 7.
9. A computer-readable storage medium, storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the application interface layout method as claimed in any one of claims 1 to 7.
CN201811279967.2A 2018-10-30 2018-10-30 Application interface layout method, terminal and computer readable storage medium Active CN109614176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811279967.2A CN109614176B (en) 2018-10-30 2018-10-30 Application interface layout method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811279967.2A CN109614176B (en) 2018-10-30 2018-10-30 Application interface layout method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109614176A CN109614176A (en) 2019-04-12
CN109614176B true CN109614176B (en) 2021-10-15

Family

ID=66001918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811279967.2A Active CN109614176B (en) 2018-10-30 2018-10-30 Application interface layout method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109614176B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347600A (en) * 2019-08-07 2021-02-09 广东博智林机器人有限公司 Optimization method and device of planar design, electronic equipment and storage medium
CN110990103B (en) * 2019-12-03 2020-11-27 深圳集智数字科技有限公司 Interface display method, device, equipment and storage medium
CN111240557B (en) * 2020-01-13 2021-04-06 口碑(上海)信息技术有限公司 Page display method, device and equipment
CN111338522B (en) * 2020-02-19 2021-06-18 望海康信(北京)科技股份公司 Display interface layout method and device, electronic equipment and storage medium
CN111790151A (en) * 2020-06-28 2020-10-20 上海米哈游天命科技有限公司 Method and device for loading object in scene, storage medium and electronic equipment
CN112181554B (en) * 2020-09-08 2023-06-20 安徽鸿程光电有限公司 Interactive interface display method, device, electronic device and storage medium
CN112657197A (en) * 2020-12-21 2021-04-16 北京像素软件科技股份有限公司 Game role data processing method and device, electronic equipment and storage medium
CN113411622B (en) * 2021-05-26 2022-03-15 广州方硅信息技术有限公司 Loading method and device of live broadcast interface, client and storage medium
CN114489897B (en) * 2022-01-21 2023-08-08 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium
CN114942811A (en) * 2022-05-31 2022-08-26 上海嘉车信息科技有限公司 Display interface layout method, device and system and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1867894A (en) * 2003-10-15 2006-11-22 皇家飞利浦电子股份有限公司 Automatic generation of user interface descriptions through sketching
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN103019730A (en) * 2012-12-24 2013-04-03 华为技术有限公司 Method for displaying interface element and electronic equipment
CN105138402A (en) * 2015-08-25 2015-12-09 海信集团有限公司 Method and device for adjusting priority of application process memory release
CN105824610A (en) * 2015-07-31 2016-08-03 广东维沃软件技术有限公司 Method and device for arranging application program icons based on terminal
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN108279960A (en) * 2017-02-04 2018-07-13 广州市动景计算机科技有限公司 Application program user interface is laid out configuration method, device and its mobile device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9329761B2 (en) * 2014-04-01 2016-05-03 Microsoft Technology Licensing, Llc Command user interface for displaying and scaling selectable controls and commands

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1867894A (en) * 2003-10-15 2006-11-22 皇家飞利浦电子股份有限公司 Automatic generation of user interface descriptions through sketching
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN103019730A (en) * 2012-12-24 2013-04-03 华为技术有限公司 Method for displaying interface element and electronic equipment
CN105824610A (en) * 2015-07-31 2016-08-03 广东维沃软件技术有限公司 Method and device for arranging application program icons based on terminal
CN105138402A (en) * 2015-08-25 2015-12-09 海信集团有限公司 Method and device for adjusting priority of application process memory release
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN108279960A (en) * 2017-02-04 2018-07-13 广州市动景计算机科技有限公司 Application program user interface is laid out configuration method, device and its mobile device

Also Published As

Publication number Publication date
CN109614176A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109614176B (en) Application interface layout method, terminal and computer readable storage medium
CN107222613B (en) Display method and terminal
CN108322612B (en) Icon display method, mobile terminal and computer-readable storage medium
CN108553896B (en) State information display control method, terminal and computer readable storage medium
CN109040441B (en) Application body-separating display method, mobile terminal and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN107861663B (en) Method and device for displaying dockbar under comprehensive screen
CN112667181A (en) Screen projection method, screen projection equipment, screen projection control system and storage medium
CN107979667B (en) Dual-screen display method, mobile terminal and computer-readable storage medium
CN109683766B (en) Interactive interface control method, mobile terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN109375846B (en) Method and device for displaying breathing icon, mobile terminal and readable storage medium
CN108984063B (en) Desktop interaction regulation and control method and device and computer readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN109309762B (en) Message processing method, device, mobile terminal and storage medium
CN109889651B (en) Notification message processing method, terminal and computer readable storage medium
CN109408187B (en) Head portrait setting method and device, mobile terminal and readable storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN110427229B (en) Application non-response processing method, mobile terminal and computer readable storage medium
CN112494932A (en) Game frame supplementing method and device, terminal and computer readable storage medium
CN109840153B (en) Terminal resource optimization method, device, system, terminal and medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109561217B (en) Terminal incoming call answering method and device, mobile terminal and storage medium
CN109308147B (en) Application icon display method and device and computer 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
GR01 Patent grant
GR01 Patent grant