CN108900693A - Window display method and device - Google Patents
Window display method and device Download PDFInfo
- Publication number
- CN108900693A CN108900693A CN201810515118.6A CN201810515118A CN108900693A CN 108900693 A CN108900693 A CN 108900693A CN 201810515118 A CN201810515118 A CN 201810515118A CN 108900693 A CN108900693 A CN 108900693A
- Authority
- CN
- China
- Prior art keywords
- window
- target application
- attribute information
- application window
- target
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure is directed to window display method and devices.This method includes:When monitoring the first operation, the target application window currently shown is obtained, wherein the first operation, which is used to indicate, handles the attribute information of target application window;According to the first operation, the attribute information of target application window is handled, so that the attribute information of target application window corner is consistent with the attribute information of current device screen edges and corners, wherein attribute information includes:Size and/or shape;By treated, target application window is shown.Pass through the technical solution of the disclosure, both the function of being equipped with the terminal of Android operation system had been enriched, so that window is consistent with the attribute information of screen edges and corners in non-comprehensive screen display state, visually it is no longer presented the feeling of window mutation, and due to can be achieved to handle the attribute information of real window to substitute the cutting to screenshot, thus supported scene is more, and can support the display of dynamic scene.
Description
Technical field
This disclosure relates to field of terminal technology more particularly to window display method and device.
Background technique
Currently, be equipped with the terminals such as comprehensive screen mobile phone of primary Android system, do not support to the attribute information of window into
Row processing, which limits the functions of the terminal of installation Android system, also affect user experience.Such as:
In order to cooperate the design shielded comprehensively, more and more mobile phone screens are made into the shape of fillet, this makes originally
It is the application widget of rectangle, becomes round rectangle due to the relationship of screen under full frame state.But work as application widget not
When full frame again (as reduced window or dragging window by screen gesture comprehensively), the shape of orthogonal rectangle just will become, visually
Have the feeling of mutation.
Summary of the invention
The embodiment of the present disclosure provides window display method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of window display method is provided, including:
When monitoring the first operation, the target application window currently shown is obtained, wherein first operation is for referring to
Show that the attribute information by the target application window is handled;
According to first operation, the attribute information of the target application window is handled, so that the target is answered
It is consistent with the attribute information of current device screen edges and corners with the attribute information of window corner, wherein the attribute information includes:Ruler
Very little and/or shape;
By treated, the target application window is shown.
In one embodiment, described when monitoring the first operation, obtain the target application window currently shown, packet
It includes:
When monitoring the described first operation, traversal is not turned off window;
All application widgets are obtained in window from described be not turned off;
By there are the windows of figure layer object to be determined as the target application window in all application widgets.
In one embodiment, described according to first operation, the attribute information of the target application window is carried out
Processing, so that the attribute information of target application window corner is consistent with the attribute information of current device screen edges and corners, including:
Determine the corresponding target Root View of the target application window;
The corner of the target Root View is cut according to the attribute information of the screen edges and corners, so that the target application window
The attribute information of mouth corner is consistent with the attribute information of the screen edges and corners.
In one embodiment, described when monitoring the first operation, obtain the target application window currently shown, packet
It includes:
In system service monitoring the process to when the described first operation, the system service process obtains the target application window
Mouthful;
The corresponding target Root View of the determination target application window, cuts out according to the attribute information of the screen edges and corners
The corner of the target Root View is cut, including:
Target process is receiving leading to what the target application window was cut for the system service process transmission
After knowing, the target Root View is determined, and the corner of the target Root View is cut according to the attribute information of the screen edges and corners,
Wherein, the target process is belonging to the target application window using corresponding process.
In one embodiment, after cutting the target Root View, the method also includes:
The color of the background of the target application window and transparency are adjusted separately, so that the color of the background
For white, the transparency is default transparency.
In one embodiment, the method also includes:
When monitoring the second operation, the processing to the target application window is cancelled, by the target application window tune
It is whole to shield window to be comprehensive, wherein second operation is used to indicate revocation and cuts.
In one embodiment, first operation includes any one of following:
Window is reduced into non-comprehensive screen display mode by shielding display mode comprehensively, and under non-comprehensive screen display mode
Carry out window scaling manipulations.
According to the second aspect of an embodiment of the present disclosure, a kind of window display is provided, including:
Module is obtained, for obtaining the target application window currently shown, wherein described when monitoring the first operation
First operation, which is used to indicate, handles the attribute information of the target application window;
Processing module, for handling the attribute information of the target application window, making according to first operation
The attribute information for obtaining target application window corner is consistent with the attribute information of current device screen edges and corners, wherein the category
Property information includes:Size and/or shape;
Display module, for the target application window to be shown by treated.
In one embodiment, the acquisition module includes:
Submodule is traversed, for when monitoring the described first operation, traversal to be not turned off window;
First acquisition submodule, for obtaining all application widgets in window from described be not turned off;
Submodule is determined, for by there are the windows of figure layer object to be determined as the target in all application widgets
Application widget.
In one embodiment, the processing module includes:
Submodule is handled, for determining the corresponding target Root View of the target application window, according to the screen edges and corners
Attribute information cut the corner of the target Root View so that the attribute information of target application window corner and the screen
The attribute information of curtain corner is consistent.
In one embodiment, the acquisition module includes:
Second acquisition submodule, for, to when the described first operation, being taken by the system in system service monitoring the process
Business process obtains the target application window;
The processing submodule includes:
Processing unit, for target process receive that the system service process sends to the target application window
After the notice cut, the target Root View is determined by the target process, and according to the attribute of the screen edges and corners
Information cuts the corner of the target Root View, wherein the target process is application pair belonging to the target application window
The process answered.
In one embodiment, after cutting the target Root View, described device further includes:
Module is adjusted, for the color of the background of the target application window and transparency to be adjusted separately, so that
The color of the background is white, and the transparency is default transparency.
In one embodiment, described device further includes:
Module is cancelled, for the processing to the target application window being cancelled, by the mesh when monitoring the second operation
Mark application widget is adjusted to shield window comprehensively, wherein second operation is used to indicate revocation and cuts.According to the embodiment of the present disclosure
The third aspect, provide a kind of window display, including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When monitoring the first operation, the target application window currently shown is obtained, wherein first operation is for referring to
Show that the attribute information by the target application window is handled;
According to first operation, the attribute information of the target application window is handled, so that the target is answered
It is consistent with the attribute information of current device screen edges and corners with the attribute information of window corner, wherein the attribute information includes:Ruler
Very little and/or shape;
By treated, the target application window is shown.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, meter is stored thereon with
Calculation machine instruction, when described instruction is executed by processor the step of realization first aspect embodiment the method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
When monitoring the first operation, by obtaining the target application window currently shown, can be operated according to described first,
The attribute information of the target application window is handled, so that the attribute information of target application window corner and current
The attribute information of device screen corner is consistent, and then the target application window is shown by treated, in this way, both enriching
The function of the terminal of Android operation system is installed, so that window is in non-comprehensive screen display state and the attributes of screen edges and corners
Information is consistent, is visually no longer presented the feeling of window mutation, and since the attribute information progress to real window can be achieved
Processing is to substitute the cutting to screenshot, thus supported scene is more, and can support the display of dynamic scene.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of window display method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another window display method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another window display method shown according to an exemplary embodiment.
Fig. 4 is the flow chart of another window display method shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of window display shown according to an exemplary embodiment.
Fig. 6 is the block diagram of another window display shown according to an exemplary embodiment.
Fig. 7 is the block diagram of another window display shown according to an exemplary embodiment.
Fig. 8 is the block diagram of another window display shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram suitable for window display shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Currently, be equipped with the terminals such as comprehensive screen mobile phone of primary Android system, do not support to the attribute information of window into
Row processing (such as handling the size and shape of window), which limits the function for the terminal for installing Android system, also shadows
User experience is rung.Such as:
In order to cooperate the design shielded comprehensively, more and more mobile phone screens are made into the shape of fillet, this makes originally
It is the application widget of rectangle, becomes round rectangle due to the relationship of screen under full frame state.But work as application widget not
When full frame again (as reduced window, dragging window by shielding gesture comprehensively), it just will become the shape of orthogonal rectangle, visually have
The feeling of mutation.
In order to solve visually to generate the feeling of window shape mutation, the solution of some manufacturers is:It will currently want
The application widget of cutting carries out screenshot, and the screenshot that will acquire is plotted on a transparent window, carries out later to this screenshot
The operation that fillet is cut, to simulate the effect that window is cut into round rectangle, so that window visually shape
It is consistent with screen shape.
But there are following disadvantages for the program:
(1) scene supported is few
Due to the scheme using screenshot substitution real window, thus limitation is larger, and it is some special to only can be used in
Scene, such as need third party manufacturer that must support that the function for cutting window can be simulated by cutting screenshot
Energy.However as in system transition cartoon (such as current window returns to animation when desktop) this primary scene, due to that can occur
The diminution behavior of real window, thus, and can not be applicable in.
(2) dynamic scene can not be supported
The program can only cut screenshot, and screenshot can only be it is static, the dynamic of window interior can not be embodied
Behavior.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure provides a kind of window display method, and this method can be used for
Window is shown in program, system or device, and the corresponding executing subject of this method can be the terminals such as comprehensive screen mobile phone, such as Fig. 1
It is shown, the method comprising the steps of S101 to step S103:
In step s101, when monitoring the first operation, the target application window currently shown is obtained, wherein described
First operation, which is used to indicate, handles the attribute information of the target application window;
In step s 102, according to first operation, the attribute information of the target application window is handled, is made
The attribute information for obtaining target application window corner is consistent with the attribute information of current device screen edges and corners, wherein the category
Property information includes:Size and/or shape;
In step s 103, by treated, the target application window is shown.
When monitoring the first operation, by obtaining the target application window currently shown, can be operated according to described first,
The attribute information of the target application window is handled, so that the attribute information of target application window corner and current
The attribute information of device screen corner is consistent, and then the target application window is shown by treated, in this way, both enriching
The function of the terminal of Android operation system is installed, so that window is in non-comprehensive screen display state and the attributes of screen edges and corners
Information is consistent, is visually no longer presented the feeling of window mutation, and since the attribute information progress to real window can be achieved
Processing is to substitute the cutting to screenshot, thus supported scene is more, and can support the display of dynamic scene.
As shown in Fig. 2, in one embodiment, step S101 in above-mentioned Fig. 1 is obtained that is, when monitoring the first operation
The target application window currently shown may include:
In step s 201, when monitoring the first operation, traversal is not turned off window;
Being not turned off window may include the window opened in the application for operate in foreground and backstage by user.
In step S202, all application widgets are obtained in window from being not turned off;
Wherein, being not turned off window may include application widget, the system-level windows such as status bar, input method window.
In step S203, by there are the windows of figure layer object to be determined as target application window in all application widgets.
When monitoring first operation, window is not turned off by traversal, can obtain and be not turned off application all in window
Window, and if due in application widget bottom there are figure layer object, illustrate the application widget it is current as it can be seen that thus, can will own
Application widget in there are the windows of figure layer object to be accurately determined as target application window.
The embodiment can execute in the following way:
Obtaining in the system server process (system service process) of system indicates current main screen
DisplayContent object (shows content object), and then traverses the whole windows being not turned off by the object
(WindowState object), the application widget that can be will be seen that filters out.And judge the logic of current visible application widget
For:Judge whether window (i.e. WindowState object) has AppWindowToken object (whether being application widget), in turn
The visibility (judging whether there is corresponding Layer object in bottom) for judging application widget, then will meet above-mentioned condition
Window (the target application window currently shown) saves.
In one embodiment, above-mentioned step S102 shown in FIG. 1, i.e., it is described according to first operation, to the mesh
The attribute information of mark application widget is handled, so that the attribute information of target application window corner and current device screen
The attribute information of corner is consistent, can be performed as:
Determine the corresponding target Root View of the target application window;
Wherein, each application program has corresponding Root View (i.e. root View), and different application corresponding view
Figure is different, and root View is the father View of all View in an application, and each View is substantially a control, and one
The root View of application is substantially father's control of all controls in the application.
The corner of the target Root View is cut according to the attribute information of the screen edges and corners, so that the target application window
The attribute information of mouth corner is consistent with the attribute information of the screen edges and corners.
Since Android primary system supports the cutting to Root View, while the size of the size of Root View and application widget is again
It is identical, thus, by cutting target Root View, it can achieve the effect for cutting target application window, in this way, both having enriched installation
There is the function of the terminal of Android primary system, so that window is visually no longer presented window mutation in non-comprehensive screen display state
Feeling, and the cutting since real window can be achieved, to substitute the cutting to screenshot, thus supported scene is more, and energy
Support the display of dynamic scene.
Such as:It can be round rectangle by the corner automatic cutting of target Root View, simultaneously when screen edges and corners are round rectangles
If the fillet of the screen edges and corners is round a part, when cutting target Root View, by the corner of target Root View according to
The radius of the corresponding circle of screen edges and corners carries out automatic cutting, so that the circle of the fillet of the target Root View after cutting and screen edges and corners
The radius at angle is consistent.
In one embodiment, above-mentioned step S101 shown in FIG. 1 is obtained current aobvious that is, when monitoring the first operation
The target application window shown, can be performed as:
In system service monitoring the process to when the first operation, system service process obtains target application window;
It determines the corresponding target Root View of target application window, the mesh is cut according to the attribute information of the screen edges and corners
The corner for marking Root View, can be performed as:
Target process determines after the notice cut to target application window for receiving the transmission of system service process
Target Root View cuts the corner of the target Root View according to the attribute information of the screen edges and corners, wherein target process is
Using corresponding process belonging to target application window.
System service process is notified that target process after monitoring that above-mentioned first operates and get target application window
Window clipping operation is carried out, and target process can determine after receiving above-mentioned notice according to the mark of the target application window
Its corresponding Root View, and then the automatic cutting to target application window is realized by cutting the target Root View.
The specific implementation procedure of the embodiment can it is following (wherein, above-mentioned target application window system server into
It is managed in journey by WindowManagerService (window management service), in client process (i.e. above-mentioned target application window
Mouthful belonging to using corresponding process) in by ViewRootImpl management):
System system server process is after getting above-mentioned target application window, WindowManagerService
Binder communication mechanism can be erected by IWindow.aidl interface with ViewRootImpl carries out IPC (Inter-Process
Communication, interprocess communication), it is cut it is possible thereby to reach system server process notice client process
The purpose of the relevant operation of fillet.
And after the ViewRootImpl component of client process receives the notice for cutting out fillet, the root of current window can be searched
View (i.e. Root View) prepares the operation for carrying out cutting fillet to root View.The root View of application widget in system is uniformly
The DecorView (top-level view, and can be described as Root View) of application, it is the father View of all View in the application, so obtaining
The root View got is exactly the DecorView. of the application widget
After finding root View (i.e. the DecorView of target application window), API primary in Android is used
(Application Programming Interface, application programming interface) carries out the operation of fillet cutting to it.By
In a kind of DecorView and View (fundamental type of Android component), its own supports the API of fillet cutting
(Application Programming Interface, application programming interface) thus can achieve pair by the API
The purpose of DecorView progress fillet cutting.And since DecorView is the father View of the View of all application widgets, area
Domain and application widget are equally big, so can achieve the effect that entire window is cut into round rectangle after cutting to its fillet.
As shown in figure 3, in one embodiment, after cutting target Root View, method further includes step S301:
In step S301, the color of the background of the target application window and transparency are adjusted separately, so that
The color of the background is white, and the transparency is default transparency.
Since the background colour of window is usually black, thus to target Root View cut after, the black background of window is just
Can expose, seem in this way fillet seem it is capped up, it is rather than cut-out, thus in order to reach fillet be to be cut out
The background of the target application window can be automatically regulated to be white by the effect cut, while its transparency is adjusted to preset transparent
It spends (being such as adjusted to fully transparent), so that showing fillet is the cropped effect come out.
The specific implementation procedure of the embodiment can be as follows:
Since after target Root View is carried out fillet cutting, fillet position can appear the original black background of window, this
Sample seems that fillet seems to be capped up, rather than be cut out.In order to achieve the effect that fillet is cropped, need
It sets transparent for the corresponding Surface of window, fillet position is made to appear subsequent content, reach the cropped effect of fillet
Fruit.Here it will be returned in system system server process and carry out the operation, due in system server
WindowManagerService component directly can be set Surface corresponding to base layer window by SurfaceControl
It is set to transparent or opaque, thus, after setting transparent for Surface, radius area will appear the content of window below, from
And showing fillet is the cropped effect come out, certainly, can also set the color of Surface to white.
As shown in figure 4, in one embodiment, the above method further includes step S401:
In step S401, when monitoring the second operation, the processing to target Root View is cancelled, by the target application
Window is adjusted to shield window comprehensively, wherein second operation is used to indicate revocation and cuts.
When monitoring the second operation, the cutting to target Root View can be cancelled automatically, so that target application window
Restore initial state, so can not only realize and window is cut, but also is convenient to revocation window clipping operation.
In one embodiment, the first operation includes any one of following:
Window is reduced into non-comprehensive screen display mode by shielding display mode comprehensively, and under non-comprehensive screen display mode
Carry out window scaling manipulations.
First operation includes but is not limited to be reduced into non-comprehensive screen display mode, in non-comprehensive screen by shielding display mode comprehensively
Window scaling manipulations are carried out under display mode (after window becomes non-comprehensive screen window, to zoom in or out behaviour to the window
Make), such as:It can also include after window becomes non-comprehensive screen window, carrying out the movement of window.
Finally, it should be clear that:Those skilled in the art can according to actual needs carry out above-mentioned multiple embodiments certainly
By combining.
The above-mentioned window display method that the corresponding embodiment of the present disclosure provides, the embodiment of the present disclosure also provide a kind of window and show
Device, as shown in figure 5, the device includes:
Module 501 is obtained, is configured as when monitoring the first operation, the target application window currently shown is obtained,
In, the first operation, which is used to indicate, handles the attribute information of target application window;
Processing module 502 is configured as handling the attribute information of target application window according to the first operation, making
The attribute information for obtaining target application window corner is consistent with the attribute information of current device screen edges and corners, wherein attribute information packet
It includes:Size and/or shape;
Display module 503, is configured as that target application window is shown by treated.
As shown in fig. 6, in one embodiment, obtaining module 501 may include:
Submodule 5011 is traversed, is configured as when monitoring the first operation, traversal is not turned off window;
First acquisition submodule 5012 is configured as obtaining all application widgets in window from being not turned off;
It determines submodule 5013, is configured as there are the windows of figure layer object to be determined as target in all application widgets
Application widget.
In one embodiment, processing module 502 may include:
Submodule is handled, the corresponding target Root View of target application window is configured to determine that, according to the category of screen edges and corners
Property information cut target Root View corner so that the attribute information of the attribute information of target application window corner and screen edges and corners
Unanimously.
In one embodiment, obtaining module 501 may include:
Second acquisition submodule, be configured as system service monitoring the process to first operation when, by system service into
Journey obtains target application window;
Handling submodule includes:
Processing unit is configured as receiving the carrying out target application window of system service process transmission in target process
After the notice of cutting, target Root View is determined by target process, and target root view is cut according to the attribute information of screen edges and corners
The corner of figure, wherein target process is belonging to target application window using corresponding process.
As shown in fig. 7, in one embodiment, device further includes:
Adjust module 701, be configured as after cutting target Root View, by the color of the background of target application window with
Transparency is adjusted separately, so that the color of background is white, transparency is default transparency.
As shown in figure 8, in one embodiment, device further includes:
Module 801 is cancelled, is configured as when monitoring the second operation, the processing to target application window is cancelled, by mesh
Mark application widget is adjusted to shield window comprehensively, wherein the second operation is configured as instruction revocation and cuts.Implemented according to the disclosure
Example, additionally provides a kind of window display, including:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
When monitoring the first operation, the target application window currently shown is obtained, wherein first operation is for referring to
Show that the attribute information by the target application window is handled;
According to first operation, the attribute information of the target application window is handled, so that the target is answered
It is consistent with the attribute information of current device screen edges and corners with the attribute information of window corner, wherein the attribute information includes:Ruler
Very little and/or shape;
By treated, the target application window is shown.
Above-mentioned processor is also configured to:
It is described to obtain the target application window currently shown when monitoring the first operation, including:
When monitoring the described first operation, traversal is not turned off window;
All application widgets are obtained in window from described be not turned off;
By there are the windows of figure layer object to be determined as the target application window in all application widgets.
Above-mentioned processor is also configured to:
It is described to be operated according to described first, the attribute information of the target application window is handled, so that the mesh
The attribute information for marking application widget corner is consistent with the attribute information of current device screen edges and corners, including:
Determine the corresponding target Root View of the target application window;
The corner of the target Root View is cut according to the attribute information of the screen edges and corners, so that the target application window
The attribute information of mouth corner is consistent with the attribute information of the screen edges and corners.
Above-mentioned processor is also configured to:
It is described to obtain the target application window currently shown when monitoring the first operation, including:
In system service monitoring the process to when the described first operation, the system service process obtains the target application window
Mouthful;
The corresponding target Root View of the determination target application window, cuts out according to the attribute information of the screen edges and corners
The corner of the target Root View is cut, including:
Target process is receiving leading to what the target application window was cut for the system service process transmission
After knowing, the target Root View is determined, and the corner of the target Root View is cut according to the attribute information of the screen edges and corners,
Wherein, the target process is belonging to the target application window using corresponding process.
Above-mentioned processor is also configured to:
After cutting the target Root View, the method also includes:
The color of the background of the target application window and transparency are adjusted separately, so that the color of the background
For white, the transparency is default transparency.
Above-mentioned processor is also configured to:
The method also includes:
When monitoring the second operation, the processing to the target application window is cancelled, by the target application window tune
It is whole to shield window to be comprehensive, wherein second operation is used to indicate revocation and cuts.
Above-mentioned processor is also configured to:
First operation includes any one of following:
Window is reduced into non-comprehensive screen display mode by shielding display mode comprehensively, and under non-comprehensive screen display mode
Carry out window scaling manipulations.
Fig. 9 is a kind of block diagram for window display 900 shown according to an exemplary embodiment, which is applicable in
In terminal device.For example, device 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, game control
Platform processed, tablet device, Medical Devices, body-building equipment, a number assistant etc..
Referring to Fig. 9, device 900 may include with next or at least two components:Processing component 902, memory 904,
Power supply module 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor module 914, with
And communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 902 may include one or at least two processors 920 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or at least two
Module, convenient for the interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module,
To facilitate the interaction between multimedia component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown
Example includes instruction for any storage object or method that operate on device 900, contacts user data, telephone book data,
Message, picture, video etc..Memory 904 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 906 provides power supply for the various assemblies of device 900.Power supply module 906 may include power management system
System, one or at least two power supplys and other with for device 900 generate, manage, and distribute the associated component of power supply.
Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or at least two touch
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 908 includes a front camera and/or rear camera.When device 900 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike
Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set
Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 914 includes one or at least two sensors, for providing the state of various aspects for device 900
Assessment.For example, sensor module 914 can detecte the state that opens/closes of device 900, the relative positioning of component, such as institute
The display and keypad that component is device 900 are stated, sensor module 914 can be with 900 1 groups of detection device 900 or device
The position change of part, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900
Temperature change.Sensor module 914 may include proximity sensor, be configured to examine without any physical contact
Survey presence of nearby objects.Sensor module 914 can also include that optical sensor is used for such as CMOS or ccd image sensor
It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes
Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device
900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be by one or at least two application specific integrated circuits (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by above-mentioned apparatus 900
When processor executes, so that above-mentioned apparatus 900 is able to carry out a kind of window display method, including:
When monitoring the first operation, the target application window currently shown is obtained, wherein first operation is for referring to
Show that the attribute information by the target application window is handled;
According to first operation, the attribute information of the target application window is handled, so that the target is answered
It is consistent with the attribute information of current device screen edges and corners with the attribute information of window corner, wherein the attribute information includes:Ruler
Very little and/or shape;
By treated, the target application window is shown.
In one embodiment, described when monitoring the first operation, obtain the target application window currently shown, packet
It includes:
When monitoring the described first operation, traversal is not turned off window;
All application widgets are obtained in window from described be not turned off;
By there are the windows of figure layer object to be determined as the target application window in all application widgets.
In one embodiment, described according to first operation, the attribute information of the target application window is carried out
Processing, so that the attribute information of target application window corner is consistent with the attribute information of current device screen edges and corners, including:
Determine the corresponding target Root View of the target application window;
The corner of the target Root View is cut according to the attribute information of the screen edges and corners, so that the target application window
The attribute information of mouth corner is consistent with the attribute information of the screen edges and corners.
In one embodiment, described when monitoring the first operation, obtain the target application window currently shown, packet
It includes:
In system service monitoring the process to when the described first operation, the system service process obtains the target application window
Mouthful;
The corresponding target Root View of the determination target application window, cuts out according to the attribute information of the screen edges and corners
The corner of the target Root View is cut, including:
Target process is receiving leading to what the target application window was cut for the system service process transmission
After knowing, the target Root View is determined, and the corner of the target Root View is cut according to the attribute information of the screen edges and corners,
Wherein, the target process is belonging to the target application window using corresponding process.
In one embodiment, after cutting the target Root View, the method also includes:
The color of the background of the target application window and transparency are adjusted separately, so that the color of the background
For white, the transparency is default transparency.
In one embodiment, the method also includes:
When monitoring the second operation, the processing to the target application window is cancelled, by the target application window tune
It is whole to shield window to be comprehensive, wherein second operation is used to indicate revocation and cuts.
In one embodiment, first operation includes any one of following:
Window is reduced into non-comprehensive screen display mode by shielding display mode comprehensively, and under non-comprehensive screen display mode
Carry out window scaling manipulations.
Art technology user person will readily occur to the disclosure after considering specification and practicing disclosure disclosed herein
Other embodiments.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes
Or adaptive change follow the general principles of this disclosure and including the disclosure it is undocumented in the art known in often
Knowledge or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (15)
1. a kind of window display method, which is characterized in that including:
When monitoring the first operation, obtain the target application window that currently shows, wherein first operation be used to indicate by
The attribute information of the target application window is handled;
According to first operation, the attribute information of the target application window is handled, so that the target application window
The attribute information of mouthful corner is consistent with the attribute information of current device screen edges and corners, wherein the attribute information includes:Size
And/or shape;
By treated, the target application window is shown.
2. the method according to claim 1, wherein
It is described to obtain the target application window currently shown when monitoring the first operation, including:
When monitoring the described first operation, traversal is not turned off window;
All application widgets are obtained in window from described be not turned off;
By there are the windows of figure layer object to be determined as the target application window in all application widgets.
3. according to the method described in claim 2, it is characterized in that,
It is described to be operated according to described first, the attribute information of the target application window is handled, so that the target is answered
It is consistent with the attribute information of current device screen edges and corners with the attribute information of window corner, including:
Determine the corresponding target Root View of the target application window;
The corner of the target Root View is cut according to the attribute information of the screen edges and corners, so that the target application edge of window
The attribute information at angle is consistent with the attribute information of the screen edges and corners.
4. according to the method described in claim 3, it is characterized in that,
It is described to obtain the target application window currently shown when monitoring the first operation, including:
In system service monitoring the process to when the described first operation, the system service process obtains the target application window;
The corresponding target Root View of the determination target application window cuts institute according to the attribute information of the screen edges and corners
The corner of target Root View is stated, including:
Target process after receiving the notice cut to the target application window that the system service process is sent,
It determines the target Root View, and cuts the corner of the target Root View according to the attribute information of the screen edges and corners, wherein
The target process is belonging to the target application window using corresponding process.
5. the method according to claim 1, wherein the method is also after cutting the target Root View
Including:
The color of the background of the target application window and transparency are adjusted separately, so that the color of the background is white
Color, the transparency are default transparency.
6. the method according to claim 1, wherein the method also includes:
When monitoring the second operation, the processing to the target application window is cancelled, the target application window is adjusted to
Screen window comprehensively, wherein second operation is used to indicate revocation and cuts.
7. method according to any one of claim 1 to 6, which is characterized in that
First operation includes any one of following:
Window is reduced into non-comprehensive screen display mode by shielding display mode comprehensively, and is carried out under non-comprehensive screen display mode
Window scaling manipulations.
8. a kind of window display, which is characterized in that including:
Module is obtained, for obtaining the target application window currently shown, wherein described first when monitoring the first operation
Operation, which is used to indicate, handles the attribute information of the target application window;
Processing module, for handling the attribute information of the target application window, so that institute according to first operation
The attribute information for stating target application window corner is consistent with the attribute information of current device screen edges and corners, wherein the attribute letter
Breath includes:Size and/or shape;
Display module, for the target application window to be shown by treated.
9. device according to claim 8, which is characterized in that
The acquisition module includes:
Submodule is traversed, for when monitoring the described first operation, traversal to be not turned off window;
First acquisition submodule, for obtaining all application widgets in window from described be not turned off;
Submodule is determined, for by there are the windows of figure layer object to be determined as the target application in all application widgets
Window.
10. device according to claim 9, which is characterized in that
The processing module includes:
Submodule is handled, for determining the corresponding target Root View of the target application window, according to the category of the screen edges and corners
Property information cut the corner of the target Root View so that the attribute information of target application window corner and the screen side
The attribute information at angle is consistent.
11. device according to claim 10, which is characterized in that
The acquisition module includes:
Second acquisition submodule, for system service monitoring the process to described first operate when, by the system service into
Journey obtains the target application window;
The processing submodule includes:
Processing unit, for receiving carrying out to the target application window for the system service process transmission in target process
After the notice of cutting, the target Root View is determined by the target process, and according to the attribute information of the screen edges and corners
Cut the corner of the target Root View, wherein the target process is belonging to the target application window using corresponding
Process.
12. device according to claim 8, which is characterized in that described device further includes:
Module is adjusted, is used for after cutting the target Root View, by the color of the background of the target application window and thoroughly
Lightness is adjusted separately, so that the color of the background is white, the transparency is default transparency.
13. the device according to any one of claim 8 to 12, which is characterized in that described device further includes:
Module is cancelled, for the processing to the target application window being cancelled, the target being answered when monitoring the second operation
It is adjusted to shield window comprehensively with window, wherein second operation is used to indicate revocation and cuts.
14. a kind of window display, which is characterized in that including:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
When monitoring the first operation, obtain the target application window that currently shows, wherein first operation be used to indicate by
The target application window is cut;
According to first operation, the attribute information of the target application window is handled, so that the target application window
The attribute information of mouthful corner is consistent with the attribute information of current device screen edges and corners, wherein the attribute information includes:Size
And/or shape;
By treated, the target application window is shown.
15. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey
The step of any one of claims 1 to 7 the method is realized when sequence is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810515118.6A CN108900693B (en) | 2018-05-25 | 2018-05-25 | Window display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810515118.6A CN108900693B (en) | 2018-05-25 | 2018-05-25 | Window display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108900693A true CN108900693A (en) | 2018-11-27 |
CN108900693B CN108900693B (en) | 2021-07-13 |
Family
ID=64343088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810515118.6A Active CN108900693B (en) | 2018-05-25 | 2018-05-25 | Window display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900693B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110658969A (en) * | 2019-10-08 | 2020-01-07 | 广州市百果园信息技术有限公司 | Picture processing method, device, equipment and storage medium |
CN111552424A (en) * | 2020-04-24 | 2020-08-18 | 北京小米移动软件有限公司 | Small window dragging method, device, equipment and storage medium |
WO2020215207A1 (en) * | 2019-04-23 | 2020-10-29 | 华为技术有限公司 | Method and device for processing layers |
CN113296654A (en) * | 2021-05-27 | 2021-08-24 | 深信服科技股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111176374B (en) * | 2019-12-09 | 2021-12-10 | 北京点石经纬科技有限公司 | Control method for realizing rotation of auxiliary screen based on android system |
CN114510313A (en) * | 2022-02-24 | 2022-05-17 | 亿咖通(湖北)技术有限公司 | Application display method and device, storage medium and electronic equipment |
CN114710681A (en) * | 2022-03-24 | 2022-07-05 | 广州方硅信息技术有限公司 | Multi-channel live broadcast display control method and device, equipment and medium thereof |
CN114816609A (en) * | 2021-01-29 | 2022-07-29 | 北京字节跳动网络技术有限公司 | Method and device for displaying window, electronic equipment and computer readable storage medium |
WO2024078114A1 (en) * | 2022-10-12 | 2024-04-18 | 荣耀终端有限公司 | Window display method, electronic device, and computer-readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103067569A (en) * | 2012-12-10 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device of multi-window displaying of smart phone |
CN105389084A (en) * | 2015-11-17 | 2016-03-09 | 惠州Tcl移动通信有限公司 | Convenient information inputting method for user of mobile terminal and mobile terminal |
CN106028117A (en) * | 2016-05-24 | 2016-10-12 | 青岛海信电器股份有限公司 | Image processing method and device |
CN106598404A (en) * | 2015-10-16 | 2017-04-26 | 青岛海信移动通信技术股份有限公司 | Window display method and mobile terminal |
US20170357437A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Device, Method, and Graphical User Interface for Manipulating Windows in Split Screen Mode |
CN107577495A (en) * | 2017-09-05 | 2018-01-12 | 广东欧珀移动通信有限公司 | interface display method, device and terminal |
-
2018
- 2018-05-25 CN CN201810515118.6A patent/CN108900693B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103067569A (en) * | 2012-12-10 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device of multi-window displaying of smart phone |
CN106598404A (en) * | 2015-10-16 | 2017-04-26 | 青岛海信移动通信技术股份有限公司 | Window display method and mobile terminal |
CN105389084A (en) * | 2015-11-17 | 2016-03-09 | 惠州Tcl移动通信有限公司 | Convenient information inputting method for user of mobile terminal and mobile terminal |
CN106028117A (en) * | 2016-05-24 | 2016-10-12 | 青岛海信电器股份有限公司 | Image processing method and device |
US20170357437A1 (en) * | 2016-06-10 | 2017-12-14 | Apple Inc. | Device, Method, and Graphical User Interface for Manipulating Windows in Split Screen Mode |
CN107577495A (en) * | 2017-09-05 | 2018-01-12 | 广东欧珀移动通信有限公司 | interface display method, device and terminal |
Non-Patent Citations (1)
Title |
---|
2017 APPLE 秋季新品发布会 : IPHONE X发布会-中文字幕版: "《https://www.iqiyi.com/v_19rr8wi534.html?vfm=m_303_qqll》", 13 September 2017 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113412470B (en) * | 2019-04-23 | 2023-09-08 | 华为技术有限公司 | Method and device for processing image layer |
WO2020215207A1 (en) * | 2019-04-23 | 2020-10-29 | 华为技术有限公司 | Method and device for processing layers |
CN113412470A (en) * | 2019-04-23 | 2021-09-17 | 华为技术有限公司 | Method and device for processing image layer |
CN110658969A (en) * | 2019-10-08 | 2020-01-07 | 广州市百果园信息技术有限公司 | Picture processing method, device, equipment and storage medium |
CN110658969B (en) * | 2019-10-08 | 2024-01-09 | 广州市百果园信息技术有限公司 | Picture processing method, device, equipment and storage medium |
CN111176374B (en) * | 2019-12-09 | 2021-12-10 | 北京点石经纬科技有限公司 | Control method for realizing rotation of auxiliary screen based on android system |
CN111552424A (en) * | 2020-04-24 | 2020-08-18 | 北京小米移动软件有限公司 | Small window dragging method, device, equipment and storage medium |
CN114816609B (en) * | 2021-01-29 | 2024-05-28 | 抖音视界有限公司 | Method and device for displaying window, electronic equipment and computer readable storage medium |
CN114816609A (en) * | 2021-01-29 | 2022-07-29 | 北京字节跳动网络技术有限公司 | Method and device for displaying window, electronic equipment and computer readable storage medium |
CN113296654A (en) * | 2021-05-27 | 2021-08-24 | 深信服科技股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113296654B (en) * | 2021-05-27 | 2023-12-29 | 深信服科技股份有限公司 | Data processing method, device, electronic equipment and storage medium |
CN114510313A (en) * | 2022-02-24 | 2022-05-17 | 亿咖通(湖北)技术有限公司 | Application display method and device, storage medium and electronic equipment |
CN114710681A (en) * | 2022-03-24 | 2022-07-05 | 广州方硅信息技术有限公司 | Multi-channel live broadcast display control method and device, equipment and medium thereof |
WO2024078114A1 (en) * | 2022-10-12 | 2024-04-18 | 荣耀终端有限公司 | Window display method, electronic device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108900693B (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108900693A (en) | Window display method and device | |
CN110647834B (en) | Human face and human hand correlation detection method and device, electronic equipment and storage medium | |
EP3109185B1 (en) | Method and device for prompting change of garbage bag | |
US10509540B2 (en) | Method and device for displaying a message | |
WO2022134382A1 (en) | Image segmentation method and apparatus, and electronic device, storage medium and computer program | |
EP3046068B1 (en) | Method and device for adjusting page display | |
EP3333690A2 (en) | Object starting method and device | |
CN104918107B (en) | The identification processing method and device of video file | |
EP3300407A1 (en) | Method and device for processing verification code | |
EP3147802B1 (en) | Method and apparatus for processing information | |
US10248855B2 (en) | Method and apparatus for identifying gesture | |
EP2921969A1 (en) | Method and apparatus for centering and zooming webpage and electronic device | |
US20150116368A1 (en) | Method and device for adjusting characters of application | |
US20160314164A1 (en) | Methods and devices for sharing cloud-based business card | |
CN107219989B (en) | Icon processing method and device and terminal | |
CN112463084A (en) | Split screen display method and device, terminal equipment and computer readable storage medium | |
CN110086921B (en) | Method and device for detecting performance state of terminal, portable terminal and storage medium | |
CN108829473B (en) | Event response method, device and storage medium | |
WO2023045185A1 (en) | Object detection method and apparatus, electronic device and storage medium | |
CN110969569A (en) | Method and device for generating test-mirror video | |
EP3185515A1 (en) | Method and device for inputting information | |
CN114222155A (en) | Resource recommendation method and device, electronic equipment and storage medium | |
CN117893591B (en) | Light curtain template recognition method and device, equipment, storage medium and program product | |
CN110876013B (en) | Method and device for determining image resolution, electronic equipment and storage medium | |
CN114139804A (en) | Task duration determining method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |