Disclosure of Invention
The invention aims to provide an application display method, a vehicle machine and a computer storage medium, which can enable the vehicle machine to be better compatible with display vertical screen applications and effectively improve the user experience.
In a first aspect, the present invention provides an application display method applied to a vehicle machine, including:
after receiving an application starting instruction, detecting whether the application is a vertical screen application or not;
when the application is determined to be a vertical screen application, dividing the display screen of the vehicle machine into at least two display areas, and displaying the application in at least one display area.
Further, the detecting whether the application is a vertical screen application includes:
acquiring an application grouping list where the application is located;
detecting whether the application is a vertical screen application or not according to a grouping label corresponding to an application grouping list where the application is located; the grouping label comprises one of a horizontal screen application, a vertical screen application and a preset application.
Further, before the obtaining of the application grouping list where the application is located, the method further includes:
after receiving an application installation instruction, inquiring the corresponding relation between each preset application grouping list and the corresponding grouping label according to the label attribute of the application, and acquiring the application grouping list corresponding to the label attribute of the application;
and adding the application into an application grouping list corresponding to the label attribute of the application, and updating the application grouping list.
Further, before displaying the application in at least one of the display areas, the method further includes:
determining a display area allocated for the application.
Further, the determining a display area allocated for the application includes:
and after the touch operation on a display area is monitored, determining the display area as the display area allocated by the application.
Further, after the displaying the application in at least one of the display areas, the method further includes:
receiving a display area adjusting instruction;
and acquiring the boundary coordinates of the display area according to the received display area adjusting instruction, and adjusting the boundary of the display area.
Further, the receiving a display area adjustment instruction includes:
receiving an opening instruction on a display area to move the boundary of the display area outwards and expand the display area; or,
and receiving a kneading instruction on a display area to move the boundary of the display area to the inner side and reduce the display area.
Further, before dividing the display screen of the car machine into at least two display areas, the method further includes:
outputting a prompt message whether to divide a display screen of the car machine into at least two display areas;
and if the confirmation instruction is received, executing the step of dividing the display screen of the vehicle machine into at least two display areas.
In a second aspect, the present invention provides a car machine, specifically, the car machine includes a memory and a processor; the memory is configured to store a computer program, and the processor is configured to execute the computer program to perform the application display method of the first aspect.
In a third aspect, the present invention provides a computer storage medium storing a computer program which, when executed by a processor, implements the application display method according to the first aspect.
According to the application display method, the vehicle machine and the computer storage medium provided by the invention, when the vehicle machine starts the vertical screen type application, the display screen of the vehicle machine is split into at least two display areas, and the vertical screen type application is applied to at least one display area for displaying, so that the vehicle machine can better compatibly display the vertical screen type application, and the user experience is effectively improved.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, for an application display method provided in the embodiment of the present invention, the application display method may be executed by an application display device provided in the embodiment of the present invention, and the application display device may be implemented in a software and/or hardware manner, and in a specific application, the application display device may be a car machine. In this embodiment, taking an execution subject of the application display method as an example, the application display method includes the following steps:
step S101: after receiving an application starting instruction, detecting whether the application is a vertical screen application or not;
here, when the user needs to open an application installed in the car machine, the car machine will receive an application start instruction when the application icon displayed on the display screen of the car machine is clicked. Or when the user needs to open another application in the process of using the application through the car machine, clicking the shortcut start icon displayed on the application by the another application, and then the car machine receives the application start instruction. It should be noted that the receiving, by the car machine, the application start instruction includes receiving a start instruction of any application installed in the car machine, which specifically includes but is not limited to the foregoing situations.
It can be understood that, for any application, when the car machine needs to start the application to display the application, the car machine needs to acquire the identification information of the application, and the identification information may include not only fixed attribute information such as an application name and a memory size occupied by the application, but also non-fixed attribute information such as a group list of the application where the car machine is located. In an embodiment, the detecting whether the application is a portrait application includes: acquiring an application grouping list where the application is located; detecting whether the application is a vertical screen application or not according to a grouping label corresponding to an application grouping list where the application is located; the grouping label comprises one of a horizontal screen application, a vertical screen application and a preset application. Here, the in-vehicle device may group different applications in advance and form corresponding application grouping lists, where each application grouping list corresponds to a different grouping tag, that is, the grouping tags of the applications included in the different application grouping lists are different. For convenience of application type differentiation, in this embodiment, the grouping tag may include a horizontal screen type application, a vertical screen type application, and a preset type application. The horizontal screen type application refers to an application designed or developed for equipment with a horizontal screen display screen, the vertical screen type application refers to an application designed or developed for equipment with a vertical screen display screen, the preset type application refers to an application pre-installed in the equipment before leaving a factory, and the application can automatically adapt to the screen of the equipment when being displayed. Here, each application grouping list may include an identifier, such as a name, of a corresponding application, and accordingly, the obtaining of the application grouping list where the application is located may be to query whether each application grouping list includes the identifier, such as the name, of the application according to the identifier, such as the name, of the application, so as to obtain the application grouping list including the identifier, such as the name, of the application. It can be understood that the grouping labels corresponding to the different application grouping lists are preset, and the corresponding grouping labels can be correspondingly known according to the application grouping list where the application is located, so that whether the application is a vertical screen type application or not can be known. Therefore, whether the application is the vertical screen application or not is detected according to the grouping label corresponding to the application grouping list where the application is located by acquiring the application grouping list where the application is located, the processing speed is high, and the detection accuracy is high.
In an embodiment, before the obtaining the application grouping list where the application is located, the method may further include:
when the application is installed, inquiring the corresponding relation between each preset application grouping list and the corresponding grouping label according to the label attribute of the application, and acquiring the application grouping list corresponding to the label attribute of the application;
and adding the application into an application grouping list corresponding to the label attribute of the application, and updating the application grouping list.
It can be appreciated that, in order to facilitate uniform management of the applications, the car machine may group the applications when the applications are installed, so as to add the applications with different tag attributes into different application group lists. Here, the tag attribute of the application refers to the type of display screen that the application is most suitable for displaying, and may include a landscape screen type and a portrait screen type. Different application grouping lists corresponding to different grouping labels can be preset in the car machine, and when new applications are added into any one application grouping list, the adding operation can be completed by updating the application grouping list. Therefore, when the vehicle machine is used for installing the applications, the corresponding application grouping list is added into the applications, so that the query or calling operation can be rapidly carried out during subsequent use, the processing speed and the processing efficiency are improved, and the user use experience is further improved.
Step S102: when the application is determined to be a vertical screen application, dividing the display screen of the vehicle machine into at least two display areas, and displaying the application in at least one display area.
Specifically, when the car machine determines that the application to be started is a vertical screen application according to step S101, the display screen of the car machine is split into at least two display areas, and the application is displayed in at least one of the display areas, so that the car machine can better compatibly display the vertical screen application.
It is to be understood that the displaying the application in at least one of the display regions may be displaying the application in one of the at least two display regions, and may be displaying the application in more than one or all of the at least two display regions. It should be noted that, after the display screen of the vehicle-mounted device is split into at least two display areas, the width of each display area is smaller than the height of the display area, so as to better adapt to the requirements of displaying vertical screen applications.
In one embodiment, before displaying the application in at least one of the display areas, the method further includes: determining a display area allocated for the application. Specifically, the car machine determines a display area allocated to the application before displaying the application in at least one display area, so as to display the application in the display area allocated to the application. It can be understood that after the display screen of the in-vehicle device is split into at least two display areas, the user may want to display the application in a designated display area thereof, or the in-vehicle device needs to display the application in a certain designated display area according to the operating condition, and therefore, the in-vehicle device needs to determine a display area allocated to the application before displaying the application in at least one display area. In one embodiment, the determining the display area allocated for the application includes: and after the touch operation on a display area is monitored, determining the display area as the display area allocated by the application. That is to say, after a user touches a display area with a finger or a stylus pen, the in-vehicle device monitors the touch operation on the display area, and determines the display area as the display area allocated to the application, so as to display the application in the display area. Therefore, the display area touched by the user is determined as the display area allocated to the application, the operation is flexible and convenient, and the use experience of the user is further improved. In practical application, the car machine may also determine a display area near the left side, the right side, or the middle of the display screen as the display area allocated by the application.
In summary, in the application display method provided in the above embodiment, when the car machine starts a vertical screen type application, the car machine divides a display screen of the car machine into at least two display areas, and displays the vertical screen type application in at least one of the display areas, so that the car machine can better compatibly display the vertical screen type application, and user experience is effectively improved.
In an embodiment, before splitting the display screen of the in-vehicle device into at least two display areas, the method further includes:
outputting a prompt message whether to divide a display screen of the car machine into at least two display areas;
and if the confirmation instruction is received, executing the step of dividing the display screen of the vehicle machine into at least two display areas.
It can be understood that a user may only need to open an application in some scenarios without performing a specific operation on the application, and at this time, when the car machine determines that a vertical screen application needs to be started, the display screen of the car machine may not need to be split in order to pursue a good display effect. Therefore, before the display screen of the car machine is split into at least two display areas, the car machine can output a prompt message indicating whether the display screen of the car machine is split into the at least two display areas or not, so that a user confirms whether the display screen of the car machine is split into the at least two display areas or not, and if a confirmation instruction input by the user and indicating that the display screen of the car machine is split into the at least two display areas is received, the display screen of the car machine is split into the at least two display areas. Therefore, whether the display screen of the vehicle machine is split into at least two display areas or not is determined according to the user requirements, and the user use experience is further improved.
In one embodiment, after the displaying the application in at least one of the display areas, the method further includes:
receiving a display area adjusting instruction;
and acquiring the boundary coordinates of the display area according to the received display area adjusting instruction, and adjusting the boundary of the display area.
It can be understood that, a user may need to adjust the display area according to a use requirement, for example, to expand or reduce the display area, and accordingly, the car machine may provide a corresponding function so that the user may flexibly adjust according to a requirement. For example, the car machine may display a button for adjusting the size of the display area on each display area, and when the user clicks the button, the car machine will adjust the display area accordingly, such as moving the boundary of the display area to the left or right. Or the vehicle machine correspondingly adjusts the boundary of the display area according to the operation instruction of the finger of the user in the display area. Here, the obtaining of the boundary coordinates of the display area may be obtaining boundary coordinates between the display area and another adjacent display area, and correspondingly, the performing of the boundary adjustment on the display area may be performing an adjustment on the boundary coordinates of the display area, such as an outward movement or an inward movement of the position of the boundary coordinates. Therefore, the size of the display area where the started application is located can be adjusted in real time, namely the size of the display interface of the started application is adjusted, the operation of a user is facilitated, and the use experience of the user is further improved.
In one embodiment, the receiving a display area adjustment instruction includes: receiving an opening instruction on a display area to move the boundary of the display area outwards and expand the display area; or receiving a kneading instruction on a display area to move the boundary of the display area to the inner side and reduce the display area. Referring to fig. 2, it is assumed that the car machine divides the display screen into two display areas, which are respectively denoted as a and B, the adjacent boundaries of the area a and the area B are shown by dashed lines in fig. 2, and an application to be started is displayed in the area a, if a user needs to expand the area a, the two fingers can be controlled to be away from each other on the area a to present a finger opening operation, and the car machine receives an opening instruction on the area a at this time, so as to move the dashed lines in fig. 2 to the direction of the area B, where fig. 2(a) is a schematic diagram before the display area is adjusted, and fig. 2(B) is a schematic diagram after the display area is adjusted. Therefore, the display area can be quickly adjusted according to the user operation, the operation is flexible and convenient, and the user experience is further improved.
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes technical solutions of the foregoing embodiments in detail through specific examples. Referring to fig. 3, a specific flowchart of an application display method provided in an embodiment of the present invention is schematically illustrated, including the following steps:
step S201: the vehicle machine groups the applications when the applications are installed;
specifically, the car machine monitors application installation, and groups applications when the applications are installed, that is, allocates the installed applications to corresponding groups, specifically including a preset application group, a vertical screen application group, and a horizontal screen application group.
Step S202: the vehicle machine updates the grouping list of the application;
specifically, after the car machine allocates a newly installed application to a corresponding group, the group list of the application is updated in time.
Step S203: when the application is started, the car machine determines whether to start the application on the attached screen according to the grouping of the application.
Specifically, when the application is started, the car machine firstly judges the grouping of the application, and if the application is a preset application, the car machine directly starts and displays the application without separating a screen; if the application is a mobile phone application, namely a vertical screen application, splitting the screen, and starting the application to display on an attached screen; and if the application is a landscape application, directly starting and displaying the application without splitting the screen.
In summary, in the application display method provided in the above embodiment, when the application is started, it is first determined whether the application belongs to a program for a mobile phone, a horizontal screen program, or a system preset program, and for the mobile phone program, an additional screen for a mainstream mobile phone resolution is specially split, and the application is started on the additional screen for display, so as to solve the problem that the vehicle-mounted entertainment system is perfectly compatible with the ecological application of the mobile phone.
Based on the same inventive concept of the foregoing embodiments, an embodiment of the present invention provides a vehicle machine, as shown in fig. 4, the vehicle machine includes: a processor 310 and a memory 311 for storing computer programs capable of running on the processor 310; the processor 310 illustrated in fig. 4 is not used to refer to the number of the processors 310 as one, but is only used to refer to the position relationship of the processor 310 relative to other devices, and in practical applications, the number of the processors 310 may be one or more; similarly, the memory 311 shown in fig. 4 is also used in the same sense, i.e. it is only used to refer to the position relationship of the memory 311 with respect to other devices, and in practical applications, the number of the memory 311 may be one or more. The processor 310 is configured to implement the application display method applied to the car machine when running the computer program.
This car machine still can include: at least one network interface 312. The various components in the vehicle machine are coupled together by a bus system 313. It will be appreciated that the bus system 313 is used to enable communications among the components connected. The bus system 313 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 313 in FIG. 4.
The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 311 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 311 in the embodiment of the present invention is used for storing various types of data to support the operation of the car machine. Examples of such data include: any computer program for operating on the locomotive, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. When the computer program stored in the computer storage medium is run by the processor, the application display method applied to the vehicle machine is realized. Please refer to the description of the embodiment shown in fig. 1 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
As used herein, the ordinal adjectives "first", "second", etc., used to describe an element are merely to distinguish between similar elements and do not imply that the elements so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
As used herein, the meaning of "a plurality" or "a plurality" is two or more unless otherwise specified.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and all such changes or substitutions are included in the scope of the present disclosure. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.