Disclosure of Invention
The embodiment of the invention provides a method and a device for constructing a menu bar for split-screen display, which can assist a user in conveniently performing split-screen operation, improve user experience and reduce errors in application triggering.
In a first aspect of the embodiments of the present invention, a method for constructing a menu bar for split-screen display is provided, where the method includes:
identifying all applications within the device as first applications;
processing the first application based on a first preset rule, and marking the first application with a display icon as a second application;
processing the second application based on a second preset rule, and marking the second application supporting multi-window display as a third application;
and acquiring an identifier of the third application, and arranging the identifier of the third application in a menu bar in a category manner, wherein the menu bar responds to a call instruction of a user and is displayed on a display interface of the equipment in a window form.
Optionally, in a possible implementation manner of the first aspect, processing the first application based on a first preset rule, and marking the first application with a display icon as a second application includes:
judging whether the first application has a display icon or not;
if not, the corresponding first application is screened out, and the rest first applications are marked as the second applications.
Optionally, in a possible implementation manner of the first aspect, processing the second application based on a second preset rule, and marking the second application that supports multi-window display as a third application includes:
acquiring code information of the second application, and judging whether the code information contains a code field of resizableActivity = 'false';
and if so, screening out the corresponding second application, and marking the rest second applications as the second applications.
Optionally, in a possible implementation manner of the first aspect, after the second application supporting multi-window display is marked as a third application, the method further includes:
acquiring a preset blacklist of a user, wherein the preset blacklist comprises at least one fourth application;
sifting the fourth application from the third application.
Optionally, in a possible implementation manner of the first aspect, the arranging the identifiers of the third applications in a menu bar by classes includes:
and respectively arranging the identifiers of the third application in the menu bar according to the APP type, the file type and the external signal source type.
Optionally, in a possible implementation manner of the first aspect, the APP types and the identifications of the third application within the circumscribed signal source type are sorted in a lexicographic order.
Optionally, in a possible implementation manner of the first aspect, the identification of the third application within the file type is ordered according to a most recent trigger time and a lexicographic order.
Optionally, in a possible implementation manner of the first aspect, a search bar is provided at a position of the menu bar corresponding to the file type;
receiving user search information for the third application of the file type based on the search bar.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
responding to information of a third application access device in an external signal source type, and highlighting a third application in the external signal source type;
and responding to the information that the third application in the external signal source type is separated from the equipment, and graying and displaying the third application in the external signal source type.
In a second aspect of the embodiments of the present invention, there is provided a menu bar constructing apparatus for split-screen display, including:
the device comprises an identification module, a processing module and a control module, wherein the identification module is used for identifying all applications in the device as first applications;
the first module is used for processing the first application based on a first preset rule and marking the first application with the display icon as a second application;
the second module is used for processing the second application based on a second preset rule and marking the second application supporting multi-window display as a third application;
and the menu module is used for acquiring the identifier of the third application and arranging the identifier of the third application in a menu bar in a category mode, wherein the menu bar responds to a call instruction of a user and is displayed on a display interface of the equipment in a window mode.
A third aspect of the embodiments of the present invention provides a menu bar constructing device for split-screen display, including: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of the first aspect of the invention as well as various possible aspects of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, the computer program being, when executed by a processor, configured to implement the method according to the first aspect of the present invention and various possible aspects of the first aspect.
According to the method and the device for constructing the menu bar for split-screen display, all applications in the equipment are screened out through the first preset rule and the second preset rule, the applications capable of being split-screen are screened out and displayed in the menu bar in a classified mode, a user can be assisted in conveniently and rapidly performing split-screen operation, user experience is improved, and meanwhile errors in application triggering are reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, which is a schematic diagram illustrating a menu bar for split-screen display according to an embodiment of the present invention, an execution main body of the method shown in fig. 1 may be a software and/or hardware device. The execution subject of the present application may include, but is not limited to, at least one of: user equipment, network equipment, etc. The user equipment may include, but is not limited to, a computer, a smart phone, a Personal Digital Assistant (PDA), the above mentioned electronic equipment, and the like. The network device may include, but is not limited to, a single network server, a server group of multiple network servers, or a cloud of numerous computers or network servers based on cloud computing, wherein cloud computing is one type of distributed computing, a super virtual computer consisting of a cluster of loosely coupled computers. The present embodiment does not limit this. The method comprises the following steps of S101 to S104:
s101, all applications in the device are identified as first applications.
Specifically, the device may be an electronic device with a display function, such as a mobile phone, a tablet, a computer, and the like, and it can be understood that a plurality of applications are added in the device for users to use, and the device is marked as a first application in the scheme, where the first application may be, for example, video software, a document, or other external devices.
S102, processing the first application based on a first preset rule, and marking the first application with the display icon as a second application.
Specifically, the step is to screen out second applications from the plurality of first applications, and the second applications are all applications with display icons.
It should be noted that, in order to enable the user to use the second application for split-screen, it is a prerequisite that the user can perform corresponding operation on the application, for example, perform an operation of triggering to start, it is understood that, in order to trigger application start, an icon of the application often needs to be clicked, for example, double-click start is performed, and therefore, this step screens out the application having the displayed icon from the plurality of first applications as the second application.
In practical application, when screening is performed, whether the first application has a display icon or not can be judged; if not, the corresponding first application is screened out, and the rest first applications are marked as the second applications.
S103, processing the second application based on a second preset rule, and marking the second application supporting multi-window display as a third application.
Specifically, after the screening in step S102, the remaining applications are all the second applications with display icons, and in this step, the second applications are processed by using a second preset rule, and the applications capable of being displayed in multiple windows are screened out as the third applications. It can be understood that, if the second application does not support multi-window display but displays in a fixed window, for example, full-screen display by default, the split-screen requirement of the present solution cannot be achieved, and therefore, an application capable of multi-window display is to be screened out.
In an actual application, the code information of the second application may be acquired, and whether a resizableactivity = "false" code field is included in the code information is determined; and if so, screening out the corresponding second application, and marking the rest second applications as the second applications.
It can be understood that, in this scheme, the code information of the second application is obtained, then query processing is performed on the code information, and whether a code field in which resizableactivity = "false" is included in the code information is found, if so, it is stated that the second application can satisfy multi-window display, and it can be put into the selected list.
S104, acquiring the identifier of the third application, and arranging the identifier of the third application in a menu bar in a category mode, wherein the menu bar responds to a call instruction of a user and is displayed on a display interface of the equipment in a window mode.
Specifically, after being filtered in steps S102 and S103, the third application is an application that can satisfy split screen.
In order to facilitate the user to perform the screen splitting operation more conveniently, the step also displays the identifier (or display icon) of the third application in the menu bar according to the category.
It should be noted that, in the prior art, applications are generally arranged on a display desktop, and a user cannot distinguish whether the applications meet split screen requirements, and often display errors occur when the applications are randomly opened. The scheme not only screens out the applications with the screen splitting function, but also displays the applications in a classified mode, and improves the user experience to at least two degrees.
In practical application, the menu bar of the scheme can be hidden, so that the influence of a user on the normal use of the equipment is avoided, and the menu bar can be displayed on a display interface of the equipment in a window form in response to a calling instruction of the user.
In some embodiments, the identifier of the third application may be arranged in the menu bar according to an APP type, a file type, and an add-on signal source type, respectively. It can be understood that the third application is divided into 3 types according to the present solution, which can cover basically all types commonly used by the user, and at the same time, can facilitate the user to search.
In other embodiments, the identities of said third application within the APP type and said circumscribed signal source type are sorted in a lexicographic order. For example, the identification of the third application may contain the name of the application, which may be sorted in a lexicographic order of the initials of the application names.
In still other embodiments, the identification of the third application within the file type is ordered by a most recent trigger time and a lexicographic order.
It can be understood that, because the application of the file types is more, the embodiment can sort the files according to the latest triggering time and the lexicographic order, so that the user can conveniently find the commonly used files.
In some embodiments, a search bar is provided at the position of the menu bar corresponding to the file type, and the search information of the third application of the file type is received by the user based on the search bar. It will be appreciated that the user may also search through the documents to quickly find the desired file.
It should be noted that, although the above fast search function is a conventional means in the prior art, the present solution combines the search function only into the document types, and not all types are loaded into the search function, which has a certain uniqueness.
In practical application, the method also comprises responding to information of a third application access device in an external signal source type, and highlighting the third application in the external signal source type; and responding to the information that the third application in the external signal source type is separated from the equipment, and graying and displaying the third application in the external signal source type.
It can be understood that the above operation can make the user easily distinguish whether there is a corresponding external signal source to access, thereby assisting the user to perform the screen splitting operation more conveniently.
In view of the above technology of the embodiment, in order to further improve user experience, in this embodiment, after the second application supporting multi-window display is marked as a third application, a preset blacklist of a user is further obtained, where the preset blacklist includes at least one fourth application, and the fourth application is screened out from the third application.
It can be understood that the user can make the blacklist according to the needs of the user, and the applications which do not need to be split into screens are directly discharged out of the menu bar, so that the user experience is further improved.
Referring to fig. 2, which is a schematic structural diagram of a menu bar constructing device for split-screen display according to an embodiment of the present invention, the menu bar constructing device for split-screen display includes:
the device comprises an identification module, a processing module and a control module, wherein the identification module is used for identifying all applications in the device as first applications;
the first module is used for processing the first application based on a first preset rule and marking the first application with the display icon as a second application;
the second module is used for processing the second application based on a second preset rule and marking the second application supporting multi-window display as a third application;
and the menu module is used for acquiring the identifier of the third application and arranging the identifier of the third application in a menu bar in a category mode, wherein the menu bar responds to a call instruction of a user and is displayed on a display interface of the equipment in a window mode.
The apparatus in the embodiment shown in fig. 2 can be correspondingly used to perform the steps in the method embodiment shown in fig. 1, and the implementation principle and technical effect are similar, which are not described herein again.
Referring to fig. 3, which is a schematic diagram of a hardware structure of a menu bar constructing device for split-screen display according to an embodiment of the present invention, the menu bar constructing device 30 for split-screen display includes: a processor 31, a memory 32 and a computer program; wherein
A memory 32 for storing the computer program, which may also be a flash memory (flash). The computer program is, for example, an application program, a functional module, or the like that implements the above method.
A processor 31 for executing the computer program stored in the memory to implement the steps performed by the apparatus in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 32 may be separate or integrated with the processor 31.
When the memory 32 is a device independent of the processor 31, the apparatus may further include:
a bus 33 for connecting the memory 32 and the processor 31.
The present invention also provides a readable storage medium, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the apparatus, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.