[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112612468A - Implementation method and implementation device of global floating window, terminal and storage medium - Google Patents

Implementation method and implementation device of global floating window, terminal and storage medium Download PDF

Info

Publication number
CN112612468A
CN112612468A CN202011560508.9A CN202011560508A CN112612468A CN 112612468 A CN112612468 A CN 112612468A CN 202011560508 A CN202011560508 A CN 202011560508A CN 112612468 A CN112612468 A CN 112612468A
Authority
CN
China
Prior art keywords
window
display
application program
floating
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011560508.9A
Other languages
Chinese (zh)
Inventor
陈涌
王永亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202011560508.9A priority Critical patent/CN112612468A/en
Publication of CN112612468A publication Critical patent/CN112612468A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a method and a device for realizing a global floating window, a terminal and a storage medium. The method comprises the steps of determining an application program window to be globally hovered; generating indication information indicating that the application program window is floated globally based on the application program window, wherein the indication information at least comprises the level information of the application program window; and performing global floating display on the application program window according to the indication information. When different application programs are switched, the application program window after global suspension can always be suspended on the upper layer of other application programs in the form of a suspended window. When the globally suspended application program needs to be operated, the globally suspended application program can be directly operated without closing other application programs in an open state. For the application program with high switching frequency among different application programs, the operation complexity can be reduced, and the operation efficiency can be improved.

Description

Implementation method and implementation device of global floating window, terminal and storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for implementing a global floating window.
Background
The window types in the system generally comprise application windows, child windows, system windows and the like. In the display interface, the application window is in an open state, and at this time, when operating other application windows, the application window in the open state needs to be closed. And when the operation on other application windows is finished, opening the original application window again. But this is too complicated for application windows that operate more frequently. In this regard, there is a need for a window implementation that reduces the complexity of operation.
Disclosure of Invention
In view of this, embodiments of the present disclosure are intended to provide an implementation method, an implementation apparatus, a terminal, and a storage medium for a global floating window.
The technical scheme of the disclosure is realized as follows:
in one aspect, the present disclosure provides a method for implementing a global floating window.
The implementation method of the global floating window provided by the embodiment of the disclosure includes:
determining an application program window to be globally floated;
generating indication information indicating that the application program window is floated globally based on the application program window, wherein the indication information at least comprises the level information of the application program window;
and performing global floating display on the application program window according to the indication information.
In some embodiments, the performing, according to the indication information, global floating display on the application program window includes:
and drawing the application program window to be globally floated on the topmost layer of the display interface of the electronic equipment through an interface service component surface flicker.
In some embodiments, the performing, according to the indication information, global floating display on the application program window further includes:
and setting the display level of the application program window in the display interface through a layer interface set layer according to the indication information, so that the interface service component surface flicker can draw the application program window to be globally floated on the display interface of the electronic equipment according to the display level.
In some embodiments, the hierarchical information indicates that a drawing layer of the application window is a topmost layer.
In some embodiments, the display interface further comprises: a system window for global floating display; the method further comprises the following steps:
determining a third window parameter of the system window to be displayed in a floating manner and a fourth window parameter of the application program window to be displayed in a floating manner in parallel according to the first window parameter of the system window to be displayed in the floating manner and the second window parameter of the application program window to be displayed in the floating manner in the whole manner;
the performing global floating display on the application program window according to the indication information includes:
and according to the indication information, displaying the application program window in a global suspension mode according to a fourth window parameter.
In some embodiments, the determining, according to the first window parameter of the system window to be globally hover-displayed and the second window parameter of the application window to be globally hover-displayed, a third window parameter of the system window to be globally hover-displayed and a fourth window parameter of the application window to be globally hover-displayed in parallel includes:
determining whether at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window or not according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
In some embodiments, the method further comprises:
if the system window displayed in the global suspension mode and the application program window to be displayed in the global suspension mode are small windows, whether display areas of the small windows of the system window and the small windows of the application program window are overlapped or not is determined;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
In some embodiments, the electronic device has a plurality of display interfaces;
the performing global floating display on the application program window comprises:
and carrying out global floating display on the application program window on a plurality of display interfaces.
In some embodiments, the globally hovering display of the application window on the plurality of display interfaces includes:
and performing global floating display of the same application program window on a plurality of display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
In another aspect, the present disclosure provides an apparatus for implementing a global floating window. The implementation apparatus for a global floating window provided in the embodiments of the present disclosure includes:
the system comprises a first processing unit, a second processing unit and a control unit, wherein the first processing unit is used for determining an application program window to be globally floated;
the second processing unit is used for generating indication information for indicating the application program window to carry out global floating based on the application program window, and the indication information at least comprises the level information of the application program window;
and the third processing unit is used for carrying out global floating display on the application program window according to the indication information.
In some embodiments, the third processing unit, configured to perform global floating display on the application window according to the indication information, includes:
the third processing unit is specifically configured to draw the application window to be globally hovered on a topmost layer of a display interface of the electronic device through an interface service component surface flicker.
In some embodiments, the third processing unit is configured to perform global floating display on the application program window according to the indication information, and further includes:
the third processing unit is specifically configured to set, according to the indication information and through a layer interface set layer, a display level of the application program window in the display interface, so that the interface service component surface flicker draws the application program window to be globally floated on the display interface of the electronic device according to the display level.
In some embodiments, the hierarchical information indicates that a drawing layer of the application window is a topmost layer.
In some embodiments, the display interface further comprises: a system window for global floating display; the device further comprises:
the fourth processing unit is used for determining a third window parameter of the system window to be displayed in a floating manner and a fourth window parameter of the application program window to be displayed in a floating manner in parallel according to the first window parameter of the system window to be displayed in a floating manner and the second window parameter of the application program window to be displayed in a floating manner in the whole manner; and
the third processing unit is configured to perform global floating display on the application program window according to the indication information, and includes:
and the third processing unit is specifically configured to display the application program window in a global floating manner according to the indication information and a fourth window parameter.
In some embodiments, the fourth processing unit is configured to determine, according to the first window parameter of the system window to be globally hover-displayed and the second window parameter of the application window to be globally hover-displayed, a third window parameter of the system window to be globally hover-displayed and a fourth window parameter of the application window to be globally hover-displayed, which are displayed in parallel, and includes:
the fourth processing unit is specifically configured to determine whether at least one of the system window and the application window to be globally hovered, which are globally hovered, is a full-screen window according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
In some embodiments, the fourth processing unit is further configured to determine whether display areas of a widget of a system window and a widget of an application window are overlapped if the system window displayed in global hover and the application window to be displayed in global hover are both widgets;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
In some embodiments, the electronic device has a plurality of display interfaces;
and the third processing unit is also used for carrying out global floating display on the application program window on a plurality of display interfaces.
In some embodiments, the third processing unit, configured to perform global floating display on the application program window on a plurality of display interfaces, includes:
the third processing unit is specifically configured to perform global floating display on the same application program window on multiple display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
In another aspect, the present disclosure also provides a terminal.
The terminal provided by the embodiment of the disclosure comprises: the system comprises a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the implementation method of the global floating window provided by the embodiment of the present disclosure when the processor runs the computer program.
In yet another aspect, the present disclosure also provides a computer-readable storage medium.
The computer-readable storage medium provided by the embodiments of the present disclosure stores thereon a computer program, which when executed by a processor implements the steps of the implementation method of the global floating window provided by the embodiments of the present disclosure.
The embodiment of the disclosure generates the indication information indicating the application window to be globally floated for global floating, and performs global floating display on the determined application window to be globally floated according to the indication information. When different application programs are switched, the application program window after global suspension can always be suspended on the upper layer of other application programs in the form of a suspended window. When the globally suspended application program needs to be operated, the globally suspended application program can be directly operated without closing other application programs in an open state. For the application program with high switching frequency among different application programs, the operation complexity can be reduced, and the operation efficiency can be improved.
Drawings
FIG. 1 is a flow diagram illustrating a method for implementing a global floating window in accordance with an exemplary embodiment;
FIG. 2 is a block diagram of a system implementing a global floating window in accordance with an illustrative embodiment;
FIG. 3 is a diagram illustrating an apparatus for implementing a global floating window in accordance with an illustrative embodiment;
fig. 4 is a schematic diagram of a terminal structure shown in accordance with an example embodiment.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Three window types are generally defined in the system. The three types are defined in the Layout parameter Layout Params of the Window Manager. The three window types include an application window, a child window, and a system window. An application window means that the window corresponds to an Activity. An activity is the place most easily attracted to the user, which is a component containing a user interface, primarily for interacting with the user. An application may contain zero or more activities. Activity is mainly used for processing the overall work of an application, such as monitoring system events (key events, touch screen events and the like), displaying specified views for a user, starting other activities and the like. For example, FIRST _ APPLICATION _ WINDOW ═ 1 represents the FIRST generic APPLICATION WINDOW. A child window means that the window must have a parent window, which may be an application type window or any other type of window.
FIRST _ SUB _ WINDOW 1000 represents the FIRST SUB-WINDOW. The system window does not need to correspond to any Activity, and does not need to have a parent window. For applications, it is theoretically impossible to create system windows because all applications do not have this privilege. However, the system process may create a system window.
Firstsystem WINDOW 2000 represents the FIRST SYSTEM WINDOW,
TYPE _ STATUS _ BAR represents a STATUS BAR WINDOW,
TYPE _ SEARCH _ BAR ═ FIRST _ SYSTEM _ WINDOW +1 represents the SEARCH BAR WINDOW.
In the related art, the realization of the global floating window in the Android system can only be realized by a system process in a system window creating mode. The general application program has no authority to create a floating window, and the Activity interface of the application is only a common window. The system process creation generally includes the steps of declaring and applying for permissions, constructing controls needed for the floating Window, adding the controls to the "Window Manager", and updating the layout of the "Window Manager" if necessary.
The floating window implementation requires that a specific window type be specified in the system process at development time. However, in a complex system, there are many related modules and complicated operations, and if all the modules are developed by using a system process, the efficiency is low and the modules are coupled with each other. For example, in a car machine system, the associated modules may be involved in multiple parties. For example, CAR-related vehicle control (displaying vehicle speed), navigation (displaying navigation summary on interfaces such as desktop and music), and intelligent identification AI chip (giving an alarm when detecting fatigue driving), there are demands for displaying related interfaces in a global suspension manner in different scenes.
The disclosure provides a method for realizing a global floating window, which can be applied to the middle screen display or head-up screen display of vehicle-mounted equipment but is not limited to the vehicle-mounted equipment. FIG. 1 is a flow diagram illustrating a method for implementing a global floating window in accordance with an exemplary embodiment. As shown in fig. 1, the implementation method of the global floating window includes:
step 10, determining an application program window to be globally floated;
step 11, generating indication information indicating that the application program window performs global floating based on the application program window, wherein the indication information at least comprises the level information of the application program window;
and 12, performing global floating display on the application program window according to the indication information.
In the exemplary embodiment, the global floating means that the application program window always floats on the display interface in the form of a floating window in the display interface, including when other application programs or system programs are operated. Determining the application window to be globally hovered comprises: and determining the corresponding application program window to be globally floated according to different functional applications or scene applications. For example, when an application window with a function of displaying the vehicle speed is required to be globally hovered, the application window displaying the vehicle speed can be determined as the application window to be globally hovered. And after determining the application program window to be globally hovered, generating globally hovered indication information corresponding to the application program based on the package name of the application program. The indication information includes at least hierarchical information of the application window. The hierarchy information includes a specific display hierarchy (or a drawing layer drawn by the application window on the display interface) for specifying the display of the application window on the display interface.
According to the indication information, performing global floating display on the application program window, including: and performing global floating display on the application program window according to the level information in the indication information. And according to the hierarchy information, the application program window is displayed in the display interface at the display hierarchy specified by the hierarchy information.
The embodiment of the disclosure generates the indication information indicating the application window to be globally floated for global floating, and performs global floating display on the determined application window to be globally floated according to the indication information. When different application programs are switched, the application program window after global suspension can always be suspended on the upper layer of other application programs in the form of a suspended window. When the globally suspended application program needs to be operated, the globally suspended application program can be directly operated without closing other application programs in an open state. For the application program with high switching frequency among different application programs, the operation complexity can be reduced, and the operation efficiency can be improved.
In some embodiments, the performing, according to the indication information, global floating display on the application program window includes:
and drawing the application program window to be globally floated on the topmost layer of the display interface of the electronic equipment through an interface service component surface flicker.
In this exemplary embodiment, when the hierarchy information indicates that the application window is displayed on the topmost display interface in the hierarchy, the application window to be globally hovered may be drawn on the topmost display interface of the electronic device through the interface service component surface flicker.
In some embodiments, the performing, according to the indication information, global floating display on the application program window further includes:
and setting the display level of the application program window in the display interface through a layer interface set layer according to the indication information, so that the interface service component surface flicker can draw the application program window to be globally floated on the display interface of the electronic equipment according to the display level.
In the present exemplary embodiment, the function module and the information interface may be established at a system Framework layer (Framework). And generating indication information through the functional module, and calling the hierarchy interface Z-layer through the information interface to set the hierarchy attribute Z-order according to the hierarchy information. The hierarchy attribute Z-order includes a display order (or a stacking order) of each application window in the display hierarchy of the display interface. For example, if the display hierarchy of the application window a is the top layer and the display hierarchy of the application window B is the bottom layer, the display order of the application window a is the first display and the display order of the application window B is the last display in the display order of the hierarchy attribute Z-order. And drawing the application program windows which are respectively and correspondingly displayed in each display level on the display interface by the interface service component surface flicker according to the set level attribute.
In some embodiments, the hierarchical information indicates that a drawing layer of the application window is a topmost layer.
In this exemplary embodiment, the level information indicates that the drawing layer of the application window is the topmost layer. I.e., instruct the application window to be displayed at the top of the display hierarchy of the display interface, corresponding to the first display in the hierarchy attribute Z-order, or the first level of the hierarchy.
In some embodiments, the display interface further comprises: a system window for global floating display; the method further comprises the following steps:
determining a third window parameter of the system window to be displayed in a floating manner and a fourth window parameter of the application program window to be displayed in a floating manner in parallel according to the first window parameter of the system window to be displayed in the floating manner and the second window parameter of the application program window to be displayed in the floating manner in the whole manner;
the performing global floating display on the application program window according to the indication information includes:
and according to the indication information, displaying the application program window in a global suspension mode according to a fourth window parameter.
In the present exemplary embodiment, the first window parameter of the system window may be a display area occupied by the system window when the display interface displays, including a display position and/or a window size and/or a window type.
The second window parameter of the application window may be a display area occupied by the application window when the display interface is displayed, including a display position and/or a window size and/or a window type.
The window types can be divided into: a full screen window displayed using the entire screen, or a small window displayed using a smaller display area than the screen.
The third window parameter of the system window may be a display area occupied by the adjusted system window when the display interface displays, including the adjusted display position and/or window size and/or window type.
The fourth window parameter of the application program window may be a display area occupied by the adjusted application program window when the display interface displays, including the adjusted display position and/or window size and/or window type.
Determining a third window parameter of the system window which is displayed in a global floating mode in parallel and a fourth window parameter of the application program window to be displayed in the global floating mode, wherein the determining comprises the following steps:
when the display area occupied by the system window and the display area occupied by the application program window on the display interface are overlapped, adjusting the display area occupied by the system window and the display area occupied by the application program window on the display interface;
determining that the display area occupied by the adjusted system window and the display area occupied by the application program window do not overlap, determining that the display area occupied by the adjusted system window is a third window parameter, and determining that the display area occupied by the adjusted application program window is a fourth window parameter;
adjusting the display area occupied by the system window comprises adjusting the display position and the window size of the system window; adjusting the display area occupied by the application program window comprises adjusting the display position and the window size of the application program window;
and performing global floating display on the application program window at the display area occupied by the adjusted application program. Therefore, through window parameter adjustment, the non-shielding suspension display of the system window and the application program window can be realized.
In some embodiments, the determining, according to the first window parameter of the system window to be globally hover-displayed and the second window parameter of the application window to be globally hover-displayed, a third window parameter of the system window to be globally hover-displayed and a fourth window parameter of the application window to be globally hover-displayed in parallel includes:
determining whether at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window or not according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
In the present exemplary embodiment, the first window parameter of the system window may be a display area occupied by the system window when the display interface displays, including a display position and a window size; the second window parameter of the application program window may be a display area occupied by the application program window when the display interface is displayed, including a display position and a window size. The third window parameter of the system window may be a display area occupied by the adjusted system window when the display interface displays, including the adjusted display position and the adjusted window size. The fourth window parameter of the application program window may be a display area occupied by the adjusted application program window when the display interface displays, including the adjusted display position and the adjusted window size.
When at least one of the system window and the application program window is a full-screen window, converting the full-screen window into a small window, wherein the full-screen window comprises at least one of the following:
when the system window is a full screen window, converting the system window into a small window;
when the application program window is a full screen window, converting the application program window into a small window; and when the system window and the application program window are full screen windows, converting the system window and the application program window into small windows.
Respectively determining the third window parameter and the fourth window parameter according to the converted small window, wherein the third window parameter and the fourth window parameter comprise at least one of the following parameters:
when the system window is converted into a small window, determining a display area occupied by the converted system window as a third window parameter of the system window;
when the application window is converted into a widget; determining a display area occupied by the converted application program window as a fourth window parameter of the application program window; or,
and when the system window and the application program window are converted into small windows, determining the display area occupied by the converted system window as the third window parameter of the system window, and determining the display area occupied by the converted application program window as the fourth window parameter of the application program window.
In some embodiments, the method further comprises:
if the system window displayed in the global suspension mode and the application program window to be displayed in the global suspension mode are small windows, whether display areas of the small windows of the system window and the small windows of the application program window are overlapped or not is determined;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
In the present exemplary embodiment, when both the system window and the application window are small windows, both the system window and the application window are converted into small windows; the display areas of the system window and the application window respectively comprise the display positions and the window sizes of the system window and the application window in the display interface.
When the display areas of the small window of the system window and the small window of the application program window are determined to be overlapped, adjusting the display position and/or the window size of at least one of the small window of the system window and the small window of the application program window;
determining the display area of the adjusted system window widget as a third window parameter, and/or,
and determining the display area of the small window of the adjusted application program window as a fourth window parameter.
When the system window and the application program window are both small windows, the system window and the application program window are determined to be displayed in a staggered mode in the first direction or in the second direction according to the widths of the system window and the application program window in the first direction and/or the second direction.
The first direction and the second direction are perpendicular to each other. For example, the first direction is a horizontal screen direction of the display screen, and the second direction is a vertical screen direction of the display screen; and if the first direction is the vertical screen direction of the display screen, the second direction is the transverse screen direction of the display screen.
For example, when both the system window and the application window are small windows, determining to staggeredly display the system window and the application window in the first direction according to widths of the system window and the application window in the first direction and/or the second direction, or staggeredly display the system window and the application window in the second direction includes:
when the system window and the application program window are both small windows, the sum of the widths of the system window and the application program window in the first direction is smaller than the width of the display screen in the first direction, and the system window and the application program window are determined to be displayed in a staggered mode in the first direction. Then determining a third window parameter and a fourth window parameter which are used for displaying the system window and the application program window in a staggered mode in the first direction;
when the system window and the application program window are small windows, the width sum of the system window and the application program window in the second direction is smaller than the width sum of the display screen in the second direction, and the system window and the application program window are determined to be displayed in a staggered mode in the second direction; then determining a third window parameter and a fourth window parameter which are used for displaying the system window and the application program window in a staggered manner in a second direction;
when the system window and the application program window are small windows, the width sum of the system window and the application program window in the second direction is larger than the width sum of the display screen in the second direction, and the width sum of the system window and the application program window in the first direction is larger than the width sum of the display screen in the first direction, at least one of the system window and the application program window is reduced in at least one direction of the first direction and the second direction, and the third window parameter and the fourth window parameter are determined according to staggered display of the reduced system window and application program window in the first direction or the second direction.
In an embodiment, the first direction and the second direction are respectively provided with an adjustment priority, and if the width of the system window and the width of the application window in the second direction are both smaller than the width of the display screen in the second direction, and the width of the system window and the width of the application window in the first direction are both larger than the width of the display screen in the first direction, it may be determined that at least one window is reduced in the first direction or the second direction for parallel staggered display according to the priority. For example, if the priority in the first direction is higher than the priority in the second direction, it is determined that the zoom-out is performed in the first direction. The priority may be set according to user input or generated according to a history of user operations for moving the widget.
In some embodiments, the method further comprises:
determining a sorting mode according to the type of a display screen for displaying at least two small windows which are displayed in a global floating manner and the information content of the two small windows which are displayed in parallel;
and determining the third window parameter and the fourth window parameter by combining a sorting mode.
For example, the display screen is a mid-screen; if the small window of the global floating display comprises: and if the small windows of the map application or the navigation application are displayed, determining that the small windows are displayed in a parallel staggered manner according to a first sequencing mode, and displaying the small windows of the map application or the navigation application as the small windows closest to a driving position on a display screen in the first sequencing mode so as to facilitate a driver to view the floating display content of the map application or the navigation application at the best viewing angle.
In this embodiment of the present disclosure, the first window parameter, the second window parameter, the third window parameter, and the fourth window parameter may all be parameters used by a surfefringer to perform drawing of a layer.
The application program corresponding to the window of the application program which is displayed in a global suspension mode runs in the background, and therefore interface data required by drawing of the surfaceflinger can be generated; because the window of the application program is marked as a window of the global floating display, the small window of the global floating display can be drawn on the topmost layer when the surfefringer conducts interface drawing through the hierarchy information, and therefore no other window can block the window of the global floating application program.
The method further comprises the following steps:
activating a function that allows global floating display of at least one application program according to an enabling operation that acts on the setup page;
or,
the function of allowing a global floating display of at least one application is activated according to the function of starting the application.
After the system is started, at least one application program can be activated to have the function of global floating display through page setting, or a type of application program with a specific function is started to have the function of global floating display according to the function of the application program.
After the global floating display function of the application program is activated, the global floating display function can be automatically started according to the monitored data change in the application program or the application importance degree under the scene, and the method comprises the following steps:
the global hover display may be self-initiated based on how often the application is operated. For example, when a vehicle is driven under a complex road condition, the vehicle speed is monitored more, and at the moment, the frequency of using the vehicle speed display application program is higher. When the system judges that the frequency of the operation of the vehicle speed display application program is greater than the preset threshold value, the system automatically starts the global floating display of the vehicle speed display application program, or,
when the system judges that the vehicle speed changes too frequently under the road condition, and the vehicle speed control becomes very important for driving, the global suspension display of the vehicle speed display application program is automatically started so that a driver can control the vehicle speed change conveniently.
In some embodiments, the electronic device has a plurality of display interfaces;
the performing global floating display on the application program window comprises:
and carrying out global floating display on the application program window on a plurality of display interfaces.
In the present exemplary embodiment, when the electronic device has multiple display interfaces, the synchronous global floating display of the application windows can be performed on the multiple display interfaces at the same time. Therefore, multi-angle screen synchronous display in a larger application place is facilitated, and the information synchronous display effect is improved.
In some embodiments, the globally hovering display of the application window on the plurality of display interfaces includes:
and performing global floating display of the same application program window on a plurality of display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
In the exemplary embodiment, one application window may be synchronously displayed in a global hover mode on a plurality of display interfaces, or a plurality of different application windows may be synchronously displayed in a global hover mode on a plurality of different display interfaces. I.e., each display interface displays a different application window. For example, when a plurality of modules need to work simultaneously, CAR related vehicle control (displaying vehicle speed), navigation (displaying navigation summary on interfaces such as desktop and music), and the like, at this time, global floating display of a plurality of different application windows can be performed simultaneously on a plurality of display interfaces, so as to facilitate information interaction operations among different modules.
In the method for realizing the Global floating Window, an Enter Global flow Window interface can be provided through a system _ server; FIG. 2 is a block diagram of a system for implementing a global floating window in accordance with an exemplary embodiment. As shown in figure 2 of the drawings, in which,
(1) an Enter Global Float Window method is provided on a system framework layer, an ACTIVITY for starting an application can be designated as a Global floating Window, and the display position, the Window size and the like of the floating Window can be designated. For example,
public void EnterGlobalFloatWindow(Activity activity,Rect rect){
GlobalFloatWindowParams.Builder
builder=new GlobalFloatWindowParams.Builder();
builder.setSourceRectHint(rect);
activity.enterGlobalFloatWindowMode(builder.build());
}
(2) increasing Global suspension GlobolFloatWindowContainers
Uniformly managing the Activities started by the EnterGlobALFloatWindow, and adding the Activities to the DisplayContent; the DisplayContent contains mglobalfloatwandowcontainers (type globafloat windowcontainers) all of global suspension activities.
(3) Setting a hierarchy of globally floating GlobolFloatWindowContainers
Layer in the surfaflinger is set to always be displayable above other activities as follows:
the native window hierarchy is defined in dependence on type as follows:
application windows (Application windows) 1-99
Sub-windows 1000-1999
System windows 2000-2999
Now, in order to support the application window (ordinary ACTIVITY) to be displayed as a high-level floating window, the window type is not directly modified, and the display level of the Surface flag is directly informed through setting Z-order (level attribute) by an interface set layer of the Surface Control.
(4) And (4) overloading the output equipment to be displayed by the EnterGlobFloatWindow to realize double-screen different display.
public void EnterGlobalFloatWindow(Activity activity,Rect rect,int id){
GlobalFloatWindowParams.Builder
builder=new GlobalFloatWindowParams.Builder();
builder.setSourceRectHint(rect);
builder.setDisplay(id);
activity.enterGlobalFloatWindowMode(builder.build());
}
(5) The system _ server provides the ExitGloblalFloatWindow interface to delete the global floating window.
In another aspect, the present disclosure provides an apparatus for implementing a global floating window. Fig. 3 is a schematic structural diagram illustrating an implementation apparatus of a global floating window according to an exemplary embodiment. As shown in fig. 3, an apparatus for implementing a global floating window provided in the embodiment of the present disclosure includes:
a first processing unit 31, configured to determine an application window to be globally hovered;
the second processing unit 32 is configured to generate, based on the application program window, indication information indicating that the application program window is globally hovered, where the indication information at least includes hierarchical information of the application program window;
and the third processing unit 33 is configured to perform global floating display on the application program window according to the indication information.
In the exemplary embodiment, the global floating means that the application program window always floats on the display interface in the form of a floating window in the display interface, including when other application programs or system programs are operated. Determining the application window to be globally hovered comprises: and determining the corresponding application program window to be globally floated according to different functional applications or scene applications. For example, when an application window with a function of displaying the vehicle speed is required to be globally hovered, the application window displaying the vehicle speed can be determined as the application window to be globally hovered. And after determining the application program window to be globally hovered, generating globally hovered indication information corresponding to the application program based on the package name of the application program. The indication information includes at least hierarchical information of the application window. The hierarchy information includes a specific display hierarchy (or a drawing layer drawn by the application window on the display interface) for specifying the display of the application window on the display interface.
According to the indication information, performing global floating display on the application program window, including: and performing global floating display on the application program window according to the level information in the indication information. And according to the hierarchy information, the application program window is displayed in the display interface at the display hierarchy specified by the hierarchy information.
The embodiment of the disclosure generates the indication information indicating the application window to be globally floated for global floating, and performs global floating display on the determined application window to be globally floated according to the indication information. When different application programs are switched, the application program window after global suspension can always be suspended on the upper layer of other application programs in the form of a suspended window. When the globally suspended application program needs to be operated, the globally suspended application program can be directly operated without closing other application programs in an open state. For the application program with high switching frequency among different application programs, the operation complexity can be reduced, and the operation efficiency can be improved.
In some embodiments, the third processing unit, configured to perform global floating display on the application window according to the indication information, includes:
the third processing unit is specifically configured to draw the application window to be globally hovered on a topmost layer of a display interface of the electronic device through an interface service component surface flicker.
In this exemplary embodiment, when the hierarchy information indicates that the application window is displayed on the topmost display interface in the hierarchy, the application window to be globally hovered may be drawn on the topmost display interface of the electronic device through the interface service component surface flicker.
In some embodiments, the third processing unit is configured to perform global floating display on the application program window according to the indication information, and further includes:
the third processing unit is specifically configured to set, according to the indication information and through a layer interface set layer, a display level of the application program window in the display interface, so that the interface service component surface flicker draws the application program window to be globally floated on the display interface of the electronic device according to the display level.
In the present exemplary embodiment, the function module and the information interface may be established at a system framework layer. And generating indication information through the functional module, and calling the hierarchy interface Z-layer through the information interface to set the hierarchy attribute Z-order according to the hierarchy information. The hierarchy attribute Z-order includes a display order (or a stacking order) of each application window in the display hierarchy of the display interface. For example, if the display hierarchy of the application window a is the top layer and the display hierarchy of the application window B is the bottom layer, the display order of the application window a is the first display and the display order of the application window B is the last display in the display order of the hierarchy attribute Z-order. And drawing the application program windows which are respectively and correspondingly displayed in each display level on the display interface by the interface service component surface flicker according to the set level attribute.
In some embodiments, the hierarchical information indicates that a drawing layer of the application window is a topmost layer.
In this exemplary embodiment, the level information indicates that the drawing layer of the application window is the topmost layer. I.e., instruct the application window to be displayed at the top of the display hierarchy of the display interface, corresponding to the first display in the hierarchy attribute Z-order, or the first level of the hierarchy.
In some embodiments, as shown in fig. 3, the display interface further includes: a system window for global floating display; the device further comprises:
a fourth processing unit 34, configured to determine, according to the first window parameter of the system window to be globally floating-displayed and the second window parameter of the application window to be globally floating-displayed, a third window parameter of the system window to be globally floating-displayed and a fourth window parameter of the application window to be globally floating-displayed in parallel; and
the third processing unit is configured to perform global floating display on the application program window according to the indication information, and includes:
and the third processing unit is specifically configured to display the application program window in a global floating manner according to the indication information and a fourth window parameter.
In the present exemplary embodiment, the first window parameter of the system window may be a display area occupied by the system window when the display interface displays, including a display position and a window size; the second window parameter of the application program window may be a display area occupied by the application program window when the display interface is displayed, including a display position and a window size. The third window parameter of the system window may be a display area occupied by the adjusted system window when the display interface displays, including the adjusted display position and the adjusted window size. The fourth window parameter of the application program window may be a display area occupied by the adjusted application program window when the display interface displays, including the adjusted display position and the adjusted window size.
Determining a third window parameter of the system window which is displayed in a global floating mode in parallel and a fourth window parameter of the application program window to be displayed in the global floating mode, wherein the determining comprises the following steps:
when the display area occupied by the system window and the display area occupied by the application program window on the display interface are overlapped, adjusting the display area occupied by the system window and the display area occupied by the application program window on the display interface;
determining that the display area occupied by the adjusted system window and the display area occupied by the application program window do not overlap, determining that the display area occupied by the adjusted system window is a third window parameter, and determining that the display area occupied by the adjusted application program window is a fourth window parameter;
adjusting the display area occupied by the system window comprises adjusting the display position and the window size of the system window; adjusting the display area occupied by the application program window comprises adjusting the display position and the window size of the application program window;
and performing global floating display on the application program window at the display area occupied by the adjusted application program.
In some embodiments, the fourth processing unit is configured to determine, according to the first window parameter of the system window to be globally hover-displayed and the second window parameter of the application window to be globally hover-displayed, a third window parameter of the system window to be globally hover-displayed and a fourth window parameter of the application window to be globally hover-displayed, which are displayed in parallel, and includes:
the fourth processing unit is specifically configured to determine whether at least one of the system window and the application window to be globally hovered, which are globally hovered, is a full-screen window according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
In the present exemplary embodiment, the first window parameter of the system window may be a display area occupied by the system window when the display interface displays, including a display position and a window size; the second window parameter of the application program window may be a display area occupied by the application program window when the display interface is displayed, including a display position and a window size. The third window parameter of the system window may be a display area occupied by the adjusted system window when the display interface displays, including the adjusted display position and the adjusted window size. The fourth window parameter of the application program window may be a display area occupied by the adjusted application program window when the display interface displays, including the adjusted display position and the adjusted window size.
When at least one of the system window and the application program window is a full-screen window, converting the full-screen window into a small window, comprising the following steps:
when the system window is a full screen window, converting the system window into a small window;
when the application program window is a full screen window, converting the application program window into a small window; or
And when the system window and the application program window are both small windows, converting the system window and the application program window into the small windows.
Respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion, including:
when the system window is converted into a small window, determining a display area occupied by the converted system window as a third window parameter of the system window;
when the application window is converted into a widget; determining a display area occupied by the converted application program window as a fourth window parameter of the application program window; or,
and when the system window and the application program window are converted into small windows, determining the display area occupied by the converted system window as the third window parameter of the system window, and determining the display area occupied by the converted application program window as the fourth window parameter of the application program window.
In some embodiments, the fourth processing unit is further configured to determine whether display areas of a widget of a system window and a widget of an application window are overlapped if the system window displayed in global hover and the application window to be displayed in global hover are both widgets;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
In the present exemplary embodiment, when both the system window and the application window are small windows, both the system window and the application window are converted into small windows; the display areas of the system window and the application window respectively comprise the display positions and the window sizes of the system window and the application window in the display interface.
When the display areas of the small window of the system window and the small window of the application program window are determined to be overlapped, adjusting the display position and/or the window size of at least one of the small window of the system window and the small window of the application program window;
determining the display area of the adjusted system window widget as a third window parameter, and/or,
and determining the display area of the small window of the adjusted application program window as a fourth window parameter.
How to perform overlap-and-stagger, write:
when the system window and the application program window are both small windows, the system window and the application program window are determined to be displayed in a staggered mode in the first direction or in the second direction according to the widths of the system window and the application program window in the first direction and/or the second direction.
The first direction and the second direction are perpendicular to each other. For example, the first direction is a horizontal screen direction of the display screen, and the second direction is a vertical screen direction of the display screen; and if the first direction is the vertical screen direction of the display screen, the second direction is the transverse screen direction of the display screen.
For example, when both the system window and the application window are small windows, determining to staggeredly display the system window and the application window in the first direction according to widths of the system window and the application window in the first direction and/or the second direction, or staggeredly display the system window and the application window in the second direction includes:
when the system window and the application program window are both small windows, the sum of the widths of the system window and the application program window in the first direction is smaller than the width of the display screen in the first direction, and the system window and the application program window are determined to be displayed in a staggered mode in the first direction. Then determining a third window parameter and a fourth window parameter which are used for displaying the system window and the application program window in a staggered mode in the first direction;
when the system window and the application program window are small windows, the width sum of the system window and the application program window in the second direction is smaller than the width sum of the display screen in the second direction, and the system window and the application program window are determined to be displayed in a staggered mode in the second direction; then determining a third window parameter and a fourth window parameter which are used for displaying the system window and the application program window in a staggered manner in a second direction;
when the system window and the application program window are small windows, the width sum of the system window and the application program window in the second direction is larger than the width sum of the display screen in the second direction, and the width sum of the system window and the application program window in the first direction is larger than the width sum of the display screen in the first direction, at least one of the system window and the application program window is reduced in at least one direction of the first direction and the second direction, and the third window parameter and the fourth window parameter are determined according to staggered display of the reduced system window and application program window in the first direction or the second direction.
In an embodiment, the first direction and the second direction are respectively provided with an adjustment priority, and if the width of the system window and the width of the application window in the second direction are both smaller than the width of the display screen in the second direction, and the width of the system window and the width of the application window in the first direction are both larger than the width of the display screen in the first direction, it may be determined that at least one window is reduced in the first direction or the second direction for parallel staggered display according to the priority. For example, if the priority in the first direction is higher than the priority in the second direction, it is determined that the zoom-out is performed in the first direction. The priority may be set according to user input or generated according to a history of user operations for moving the widget.
In some embodiments, the method further comprises:
determining a sorting mode according to the type of a display screen for displaying at least two small windows which are displayed in a global floating manner and the information content of the two small windows which are displayed in parallel;
and determining the third window parameter and the fourth window parameter by combining a sorting mode.
For example, the display screen is a mid-screen; if the small window of the global floating display comprises: and if the small windows of the map application or the navigation application are displayed, determining that the small windows are displayed in a parallel staggered manner according to a first sequencing mode, and displaying the small windows of the map application or the navigation application as the small windows closest to a driving position on a display screen in the first sequencing mode so as to facilitate a driver to view the floating display content of the map application or the navigation application at the best viewing angle.
In this embodiment of the present disclosure, the first window parameter, the second window parameter, the third window parameter, and the fourth window parameter may all be parameters used by a surfefringer to perform drawing of a layer.
The application program corresponding to the window of the application program which is displayed in a global suspension mode runs in the background, and therefore interface data required by drawing of the surfaceflinger can be generated; because the window of the application program is marked as a window of the global floating display, the small window of the global floating display can be drawn on the topmost layer when the surfefringer conducts interface drawing through the hierarchy information, and therefore no other window can block the window of the global floating application program.
The method further comprises the following steps:
activating a function that allows global floating display of at least one application program according to an enabling operation that acts on the setup page;
or,
the function of allowing a global floating display of at least one application is activated according to the function of starting the application.
After the system is started, at least one application program can be activated to have the function of global floating display through page setting, or a type of application program with a specific function is started to have the function of global floating display according to the function of the application program.
After the global floating display function of the application program is activated, the global floating display function can be automatically started according to the monitored data change in the application program or the application importance degree under the scene, and the method comprises the following steps:
the global hover display may be self-initiated based on how often the application is operated. For example, when a vehicle is driven under a complex road condition, the vehicle speed is monitored more, and at the moment, the frequency of using the vehicle speed display application program is higher. When the system judges that the frequency of the operation of the vehicle speed display application program is greater than the preset threshold value, the system automatically starts the global floating display of the vehicle speed display application program, or,
when the system judges that the vehicle speed changes too frequently under the road condition, and the vehicle speed control becomes very important for driving, the global suspension display of the vehicle speed display application program is automatically started so that a driver can control the vehicle speed change conveniently.
In some embodiments, the electronic device has a plurality of display interfaces;
and the third processing unit is also used for carrying out global floating display on the application program window on a plurality of display interfaces.
In the present exemplary embodiment, when the electronic device has multiple display interfaces, the synchronous global floating display of the application windows can be performed on the multiple display interfaces at the same time. Therefore, multi-angle screen synchronous display in a larger application place is facilitated, and the information synchronous display effect is improved.
In some embodiments, the third processing unit, configured to perform global floating display on the application program window on a plurality of display interfaces, includes:
the third processing unit is specifically configured to perform global floating display on the same application program window on multiple display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
In the exemplary embodiment, one application window may be synchronously displayed in a global hover mode on a plurality of display interfaces, or a plurality of different application windows may be synchronously displayed in a global hover mode on a plurality of different display interfaces. I.e., each display interface displays a different application window. For example, when a plurality of modules need to work simultaneously, CAR related vehicle control (displaying vehicle speed), navigation (displaying navigation summary on interfaces such as desktop and music), and the like, at this time, global floating display of a plurality of different application windows can be performed simultaneously on a plurality of display interfaces, so as to facilitate information interaction operations among different modules.
The present disclosure also provides a terminal. Fig. 4 is a schematic diagram of a terminal structure shown in accordance with an example embodiment. As shown in fig. 4, a terminal provided in the embodiment of the present disclosure includes: a processor 630 and a memory 620 for storing a computer program capable of running on the processor, wherein the processor 630 is configured to execute the steps of the method provided by the embodiments described above when running the computer program.
The present disclosure also provides a computer-readable storage medium. The computer readable storage medium provided by the embodiments of the present disclosure has a computer program stored thereon, and the computer program realizes the steps of the method provided by the above embodiments when being executed by a processor.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
In some cases, any two of the above technical features may be combined into a new method solution without conflict.
In some cases, any two of the above technical features may be combined into a new device solution without conflict.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (20)

1. A method for implementing a global floating window is applied to an electronic device, and the method comprises the following steps:
determining an application program window to be globally floated;
generating indication information indicating that the application program window is floated globally based on the application program window, wherein the indication information at least comprises the level information of the application program window;
and performing global floating display on the application program window according to the indication information.
2. The method for implementing the global floating window according to claim 1, wherein the performing global floating display on the application program window according to the indication information includes:
and drawing the application program window to be globally floated on the topmost layer of the display interface of the electronic equipment through an interface service component surface flicker.
3. The method for implementing the global floating window according to claim 2, wherein the performing the global floating display on the application program window according to the indication information further comprises:
and setting the display level of the application program window in the display interface through a layer interface set layer according to the indication information, so that the interface service component surface flicker can draw the application program window to be globally floated on the display interface of the electronic equipment according to the display level.
4. The method according to claim 1, wherein the hierarchical information indicates that the drawing layer of the application program window is the topmost layer.
5. The method of claim 2, wherein the display interface further comprises: a system window for global floating display; the method further comprises the following steps:
determining a third window parameter of the system window to be displayed in a floating manner and a fourth window parameter of the application program window to be displayed in a floating manner in parallel according to the first window parameter of the system window to be displayed in the floating manner and the second window parameter of the application program window to be displayed in the floating manner in the whole manner;
the performing global floating display on the application program window according to the indication information includes:
and according to the indication information, displaying the application program window in a global suspension mode according to a fourth window parameter.
6. The method according to claim 5, wherein the determining, according to the first window parameter of the system window to be globally floating-displayed and the second window parameter of the application window to be globally floating-displayed, a third window parameter of the system window to be globally floating-displayed and a fourth window parameter of the application window to be globally floating-displayed in parallel to be displayed includes:
determining whether at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window or not according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
7. The method of claim 6,
the method further comprises the following steps:
if the system window displayed in the global suspension mode and the application program window to be displayed in the global suspension mode are small windows, whether display areas of the small windows of the system window and the small windows of the application program window are overlapped or not is determined;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
8. The implementation method of the global floating window according to claim 1, wherein the number of the display interfaces of the electronic device is multiple;
the performing global floating display on the application program window comprises:
and carrying out global floating display on the application program window on a plurality of display interfaces.
9. The method for implementing the global floating window according to claim 8, wherein the performing global floating display on the application program window on a plurality of display interfaces includes:
and performing global floating display of the same application program window on a plurality of display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
10. An implementation apparatus of a global floating window, applied in an electronic device, the apparatus comprising:
the system comprises a first processing unit, a second processing unit and a control unit, wherein the first processing unit is used for determining an application program window to be globally floated;
the second processing unit is used for generating indication information for indicating the application program window to carry out global floating based on the application program window, and the indication information at least comprises the level information of the application program window;
and the third processing unit is used for carrying out global floating display on the application program window according to the indication information.
11. The apparatus for implementing a global floating window according to claim 10, wherein the third processing unit is configured to perform global floating display on the application program window according to the indication information, and includes:
the third processing unit is specifically configured to draw the application window to be globally hovered on a topmost layer of a display interface of the electronic device through an interface service component surface flicker.
12. The apparatus for implementing a global floating window according to claim 11, wherein the third processing unit is configured to perform global floating display on the application program window according to the indication information, and further comprising:
the third processing unit is specifically configured to set a display level of the application window in the display interface through a layer interface setlayer according to the indication information, so that the interface service component surface flicker draws the application window to be globally floated on the display interface of the electronic device according to the display level.
13. The apparatus according to claim 10, wherein the hierarchy information indicates that the drawing layer of the application window is the topmost layer.
14. The apparatus for implementing a global floating window according to claim 11, wherein the display interface further comprises: a system window for global floating display; the device further comprises:
the fourth processing unit is used for determining a third window parameter of the system window to be displayed in a floating manner and a fourth window parameter of the application program window to be displayed in a floating manner in parallel according to the first window parameter of the system window to be displayed in a floating manner and the second window parameter of the application program window to be displayed in a floating manner in the whole manner; and
the third processing unit is configured to perform global floating display on the application program window according to the indication information, and includes:
and the third processing unit is specifically configured to display the application program window in a global floating manner according to the indication information and a fourth window parameter.
15. The apparatus according to claim 14, wherein the fourth processing unit is configured to determine, according to the first window parameter of the system window to be globally floating-displayed and the second window parameter of the application window to be globally floating-displayed, a third window parameter of the system window to be globally floating-displayed and a fourth window parameter of the application window to be globally floating-displayed, and the determining unit is configured to:
the fourth processing unit is specifically configured to determine whether at least one of the system window and the application window to be globally hovered, which are globally hovered, is a full-screen window according to the first window parameter and the second window parameter; if at least one of the system window displayed in the global floating mode and the application program window to be globally floated is a full-screen window, converting the full-screen window into a small window; the small window is a window with a display area smaller than that of the electronic equipment;
and respectively determining the third window parameter and the fourth window parameter according to the small window obtained by conversion.
16. The apparatus according to claim 15, wherein the fourth processing unit is further configured to determine whether display areas of a widget of a system window and a widget of an application window are overlapped if the system window displayed in global floating and the application window to be displayed in global floating are both widgets;
and if the display areas are overlapped, adjusting at least one display area of the small window of the system window and the small window of the application program window to obtain the third window parameter and the fourth window parameter.
17. The apparatus for implementing the global floating window according to claim 10, wherein the electronic device has a plurality of display interfaces;
and the third processing unit is also used for carrying out global floating display on the application program window on a plurality of display interfaces.
18. The apparatus according to claim 17, wherein the third processing unit is configured to perform global floating display on the application program window on a plurality of display interfaces, and includes:
the third processing unit is specifically configured to perform global floating display on the same application program window on multiple display interfaces, or,
and performing global floating display of different application program windows on a plurality of display interfaces.
19. A terminal, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of claims 1 to 9 when executing the computer program.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 9.
CN202011560508.9A 2020-12-25 2020-12-25 Implementation method and implementation device of global floating window, terminal and storage medium Pending CN112612468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011560508.9A CN112612468A (en) 2020-12-25 2020-12-25 Implementation method and implementation device of global floating window, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011560508.9A CN112612468A (en) 2020-12-25 2020-12-25 Implementation method and implementation device of global floating window, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112612468A true CN112612468A (en) 2021-04-06

Family

ID=75245609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011560508.9A Pending CN112612468A (en) 2020-12-25 2020-12-25 Implementation method and implementation device of global floating window, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112612468A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416079A (en) * 2021-12-29 2022-04-29 惠州市德赛西威汽车电子股份有限公司 Layer management method based on Android system and storage medium
CN114489898A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Processing method of floating window, electronic equipment and computer readable storage medium
CN114911383A (en) * 2022-06-02 2022-08-16 亿咖通(湖北)技术有限公司 Window display method and vehicle-mounted terminal
CN115599255A (en) * 2022-12-16 2023-01-13 深圳蓝普视讯科技有限公司(Cn) Large-screen visual intelligent interactive data processing method and device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239027A (en) * 2013-06-07 2014-12-24 北京三星通信技术研究有限公司 Method and device for calling programs and terminal device
CN106126236A (en) * 2016-06-24 2016-11-16 北京奇虎科技有限公司 The multi-screen display method of terminal screen, device and terminal
CN106909383A (en) * 2017-02-24 2017-06-30 上海与德信息技术有限公司 The display methods and display device of application program
CN106980441A (en) * 2017-03-29 2017-07-25 杭州弗凡科技有限公司 The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal
US20170308861A1 (en) * 2015-05-11 2017-10-26 Tencent Technology (Shenzhen) Company Limited Instant messaging window display method and apparatus, and computer readable medium
WO2018001218A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video playing method, device, program and medium
CN108549519A (en) * 2018-04-19 2018-09-18 Oppo广东移动通信有限公司 split screen processing method, device, storage medium and electronic equipment
CN108829304A (en) * 2018-05-29 2018-11-16 维沃移动通信有限公司 A kind of display control method and terminal
CN109445572A (en) * 2018-09-10 2019-03-08 华为技术有限公司 The method, graphical user interface and terminal of wicket are quickly recalled in full screen display video
CN109582189A (en) * 2018-11-26 2019-04-05 珠海格力电器股份有限公司 Application window management method and device and mobile terminal
CN109840127A (en) * 2018-12-29 2019-06-04 努比亚技术有限公司 Terminal and its display control method, computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239027A (en) * 2013-06-07 2014-12-24 北京三星通信技术研究有限公司 Method and device for calling programs and terminal device
US20170308861A1 (en) * 2015-05-11 2017-10-26 Tencent Technology (Shenzhen) Company Limited Instant messaging window display method and apparatus, and computer readable medium
CN106126236A (en) * 2016-06-24 2016-11-16 北京奇虎科技有限公司 The multi-screen display method of terminal screen, device and terminal
WO2018001218A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video playing method, device, program and medium
CN106909383A (en) * 2017-02-24 2017-06-30 上海与德信息技术有限公司 The display methods and display device of application program
CN106980441A (en) * 2017-03-29 2017-07-25 杭州弗凡科技有限公司 The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal
CN108549519A (en) * 2018-04-19 2018-09-18 Oppo广东移动通信有限公司 split screen processing method, device, storage medium and electronic equipment
CN108829304A (en) * 2018-05-29 2018-11-16 维沃移动通信有限公司 A kind of display control method and terminal
CN109445572A (en) * 2018-09-10 2019-03-08 华为技术有限公司 The method, graphical user interface and terminal of wicket are quickly recalled in full screen display video
CN109582189A (en) * 2018-11-26 2019-04-05 珠海格力电器股份有限公司 Application window management method and device and mobile terminal
CN109840127A (en) * 2018-12-29 2019-06-04 努比亚技术有限公司 Terminal and its display control method, computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416079A (en) * 2021-12-29 2022-04-29 惠州市德赛西威汽车电子股份有限公司 Layer management method based on Android system and storage medium
CN114489898A (en) * 2022-01-21 2022-05-13 阿里巴巴(中国)有限公司 Processing method of floating window, electronic equipment and computer readable storage medium
CN114911383A (en) * 2022-06-02 2022-08-16 亿咖通(湖北)技术有限公司 Window display method and vehicle-mounted terminal
CN114911383B (en) * 2022-06-02 2024-10-11 亿咖通(湖北)技术有限公司 Window display method and vehicle-mounted terminal
CN115599255A (en) * 2022-12-16 2023-01-13 深圳蓝普视讯科技有限公司(Cn) Large-screen visual intelligent interactive data processing method and device and storage medium

Similar Documents

Publication Publication Date Title
CN112612468A (en) Implementation method and implementation device of global floating window, terminal and storage medium
US7216293B2 (en) Display control method, program product, and information processing apparatus for controlling objects in a container based on the container's size
US7017118B1 (en) Method and apparatus for reordering data items
US8621032B2 (en) Method and apparatus for intuitively administering networked computer systems
CN1177274C (en) Display system of data processor control of overlap window voice frequency identifier
EP3782024A1 (en) Interactive event creation control console
US20030067497A1 (en) Method and device for modifying a pre-existing graphical user interface
US20030142140A1 (en) Adjusting the tint of a translucent window to convey status
US20030033402A1 (en) Method and apparatus for intuitively administering networked computer systems
US20020008699A1 (en) Method for preemptive screen rendering
US8462018B1 (en) Systems and method for controlling the simultaneous display of multi-level classified information on the same surface of an aircraft display unit
CN1072518A (en) The method and apparatus of utiliging multi-demensional data icons
US20030142141A1 (en) Displaying specified resource usage
WO2007094268A1 (en) Control device, control program, and control method for controlling display of display device for displaying superimposed windows
WO2022078199A1 (en) Applet control method and apparatus, device, and storage medium
US20060020902A1 (en) Interactive graphical user interfaces for computer display systems with simplified implementation for exposing completely hidden windows
CN106155768A (en) Split screen runs the method and device of application
JP2642041B2 (en) Method for pseudo-direct editing of graphic elements and data processing system
CN114896002A (en) Browser application window level switching method and device based on Wayland protocol
US20040230918A1 (en) Window display controlling method, window display controlling apparatus, and computer readable record medium containing a program
CN111124562A (en) Application program double-screen display method and device
CN109800039A (en) A kind of user interface presentation method, apparatus, electronic equipment and storage medium
CN112433723B (en) Personalized list development method and device
CN111459600B (en) Interaction method and system for single-page multi-dimensional penetrating scene visual display
CN107391144A (en) View methods of exhibiting and device

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