CN108804187A - The setting method and device of interfaces windows - Google Patents

The setting method and device of interfaces windows Download PDF

Info

Publication number
CN108804187A
CN108804187A CN201810542737.4A CN201810542737A CN108804187A CN 108804187 A CN108804187 A CN 108804187A CN 201810542737 A CN201810542737 A CN 201810542737A CN 108804187 A CN108804187 A CN 108804187A
Authority
CN
China
Prior art keywords
interfaces windows
display
adjustment
interface window
current interface
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
Application number
CN201810542737.4A
Other languages
Chinese (zh)
Other versions
CN108804187B (en
Inventor
韦家柏
龙海
王汀
高崇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810542737.4A priority Critical patent/CN108804187B/en
Publication of CN108804187A publication Critical patent/CN108804187A/en
Application granted granted Critical
Publication of CN108804187B publication Critical patent/CN108804187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The disclosure is directed to a kind of setting method of interfaces windows and devices to simplify the setting operation of adjustment interfaces windows to realize the display size and the display location that adjust interfaces windows during by touch operation control terminal equipment.The method includes:It before touch operation terminates, detects that the touch operation meets preset operating state, then adjusts display size and the display location of current interface window according to touch operation;After touch operation, interfaces windows to be shown are adjusted according to the display location of the current interface window after adjustment and display size.Disclosed technique scheme may be implemented to adjust display size and the display location of interfaces windows during by touch operation control terminal equipment, simplify the setting operation of adjustment interfaces windows.

Description

The setting method and device of interfaces windows
Technical field
This disclosure relates to the setting method and device of terminal device technical field more particularly to a kind of interfaces windows.
Background technology
It is big with mobile terminal for being completed by touch control manner with the increase of the display screen size of mobile terminal For partial interactive operation, large scale display screen manipulates mobile terminal less to user instead relative to small size display screen Profit, especially in one-handed performance mobile terminal, the region far from finger is difficult to be touched, and is affected user experience.Phase In the technology of pass, user's one-handed performance can be facilitated by adjusting interfaces windows.However, how to simplify for adjusting interfaces windows It is a technical problem for needing to solve that operation, which is arranged,.
Invention content
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of setting method and dress of interfaces windows It sets, to realize the display size and the display position that adjust interfaces windows during by touch operation control terminal equipment It sets, simplifies the setting operation of adjustment interfaces windows.
According to the first aspect of the embodiments of the present disclosure, a kind of setting method of interfaces windows is provided, including:
Before touch operation terminates, detect that the touch operation meets preset operating state, then according to the touch The display size of operation adjustment current interface window and display location;
After the touch operation, according to the display location of the current interface window after adjustment and display size Adjust interfaces windows to be shown.
In one embodiment, display size and the display position that current interface window is adjusted according to the touch operation Before setting, it may also include:
The operating system of no thoroughfare terminal device refreshes the function of interfaces windows;
The display location according to the current interface window after adjustment adjusts interface to be shown with display location Before window, it may also include:
Restore the function of the operating system refreshing interfaces windows by the terminal device.
In one embodiment, the display location according to the current interface window after adjustment and display size tune Whole interfaces windows to be shown, it may include:
According to the display ruler of the current interface window after the display size of the current interface window before adjustment and adjustment The very little scaling for obtaining the current interface window;
The interfaces windows to be shown for full screen display to prestore are zoomed in and out according to the scaling, are obtained The interfaces windows to be shown after to adjustment;
According to the interface window to be shown after the display adjustment of the display location of the current interface window after adjustment Mouthful.
In one embodiment, the display location according to the current interface window after adjustment and display size tune After whole interfaces windows to be shown, it may also include:
Incoming event is detected when showing the interfaces windows to be shown, then waits showing described by the incoming event The first coordinate in the interfaces windows shown is converted to the second coordinate in the interfaces windows to be shown for full screen display;
The incoming event is distributed in the interfaces windows to be shown of display according to second coordinate.
In one embodiment, the display location according to the current interface window after adjustment and display size tune Whole interfaces windows to be shown, it may include:
The interfaces windows to be shown are drawn according to the display size of the current interface window after adjustment;
The interfaces windows to be shown drawn according to the display of the display location of the current interface window after adjustment.
According to the second aspect of the embodiment of the present disclosure, a kind of setting device of interfaces windows is provided, described device includes:
The first adjustment module, is configured as before touch operation terminates, and detects that the touch operation meets default behaviour When making condition, display size and the display location of current interface window are adjusted according to the touch operation;
Second adjustment module is configured as after the touch operation, according to the current interface window after adjustment The display location of mouth adjusts interfaces windows to be shown with display size.
In one embodiment, described device may also include:
The operating system of first control module, the terminal device that is configured as that no thoroughfare refreshes the function of interfaces windows;
Second control module is configured as the work(for restoring to refresh interfaces windows by the operating system of the terminal device Energy.
In one embodiment, the second adjustment module, it may include:
Acquisition submodule is configured as being worked as according to described after the display size of the current interface window before adjustment and adjustment The display size of front interface window obtains the scaling of the current interface window;
Submodule is scaled, is configured as according to the scaling to prestoring for the described to be shown of full screen display Interfaces windows zoom in and out, the interfaces windows to be shown after being adjusted;
First display sub-module is configured as showing adjustment according to the display location of the current interface window after adjustment The interfaces windows to be shown afterwards.
In one embodiment, described device may also include:
Conversion module is configured as when detecting incoming event after showing the interfaces windows to be shown, will be described First coordinate of the incoming event in the interfaces windows to be shown is converted to the boundary to be shown for full screen display The second coordinate on face-port mouth;
Module is distributed, is configured as that the incoming event is distributed the described to be shown of display according to second coordinate Interfaces windows on.
In one embodiment, the second adjustment module, it may include:
Rendering submodule is configured as waiting showing according to described in the drafting of the display size of the current interface window after adjustment The interfaces windows shown;
Second display sub-module is configured as being shown according to the display location of the current interface window after adjustment and draw The interfaces windows to be shown.
According to the third aspect of the embodiment of the present disclosure, a kind of setting device of interfaces windows is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as executing:Method described in above-mentioned first aspect.
According to the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating Machine program, the computer program realize the method described in above-mentioned first aspect when being executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:By meeting predetermined registration operation item The touch operation of part adjusts display size and the display location of current interface window according to touch operation before terminating, and is touching After operation, interfaces windows to be shown are adjusted according to the display location of the current interface window after adjustment and display size, In this manner it is achieved that adjusting display size and the display position of interfaces windows during by touch operation control terminal equipment It sets, simplifies the setting operation of adjustment interfaces windows.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart according to the setting method of the interfaces windows shown in an exemplary embodiment.
Fig. 2 is the flow chart of the setting method of the interfaces windows shown according to another exemplary embodiment.
Fig. 3 is the flow chart of the setting method of the interfaces windows shown according to another exemplary embodiment.
Fig. 4 is the application scenario diagram according to the setting method of the interfaces windows shown in an exemplary embodiment.
Fig. 5 is a kind of block diagram of the setting device of interfaces windows shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.
Fig. 7 is a kind of block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.
Fig. 8 is a kind of block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.
Fig. 9 is a kind of block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.
Figure 10 is a kind of block diagram of the setting device of interfaces windows shown according to an exemplary embodiment.
Specific implementation mode
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 and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is according to the flow chart of the setting method of the interfaces windows shown in an exemplary embodiment, and this method can answer For terminal device, such as smart mobile phone, tablet computer etc..As shown in Figure 1, the setting method of the interfaces windows includes following step Rapid S101~S102:
In step S101, before touch operation terminates, detect that the touch operation meets preset operating state, then Display size and the display location of current interface window are adjusted according to the touch operation.
In one embodiment, terminal device has touch screen, and user can execute touch by conductor on touch screen Operation interacts to realize with terminal device.In one exemplary embodiment, for having the terminal device of one-hand operating format, User can execute on touch screen to be met the touch operation of preset operating state and carrys out control terminal equipment and enter one-hand operating format.
In one embodiment, before touch operation terminates, if detecting that the touch operation meets predetermined registration operation Condition then adjusts display size and the display location of current interface window according to the touch operation.Continue above-mentioned exemplary Embodiment detects that touch operation meets preset operating state if before touch operation terminates, then can determine in the presence of control Terminal device processed enters the trend of one-hand operating format, you can to determine that terminal device is going into one-hand operating format.When true When determining terminal device and being going into one-hand operating format, can be adjusted according to touch operation the display size of current interface window with Display location.
In one embodiment, a global variable defined in system process judges to touch by the global variable Touch whether operation meets preset operating state.Continue exemplary embodiments mentioned above, the operating system that terminal device carries can be with For Android (Android) operating system.In the present example embodiment, a global variable defined in system process, Judge whether terminal device is going into one-hand operating format by the global variable.Certainly, it is not limited to when practical application Judge whether terminal device is going into one-hand operating format using global variable.
Continue exemplary embodiments mentioned above, can pass through in the operating system of terminal device The Listener of PointerEventDispatcher (clicking case distribution device) one monitoring input (input) event of registration (monitor) carrys out the screen incoming event that real-time reception touch screen reports.Wherein, incoming event can be touch operation.Touch behaviour Work can be clicking operation or slide.Operating system can determine current according to the screen incoming event that touch screen reports The position of touch point.
Continue exemplary embodiments mentioned above, operating system by above-mentioned global variable judge terminal device into After entering one-hand operating format, display size and the display of current interface window can be adjusted according to the position of the current touch point Position.
In one embodiment, after detecting that the touch operation meets preset operating state, according to the touch It, can be with the operating system brush of no thoroughfare terminal device before the display size of operation adjustment current interface window and display location The function of new interfaces windows.Continue exemplary embodiments mentioned above, terminal is judged by above-mentioned global variable in operating system After equipment is going into one-hand operating format, then quiescing system calling refresh function, the refresh function can be PerformSurfacePlacement methods in WindowSurfacePlacer.In this way, entering one-hand operating format In the process, all interfaces windows will not all change size and the position of interfaces windows because of operating system calling refresh function.
In step s 102, after the touch operation, according to the display of the current interface window after adjustment Position adjusts interfaces windows to be shown with display size.
In one embodiment, after the touch operation, can according to touch operation at the end of adjust after institute The display location and display size for stating current interface window show interfaces windows to be shown.
Continue exemplary embodiments mentioned above, corresponding current interface window can be calculated with incoming event report point Scaling.It is, for the position of each current touch point, the pantograph ratio of corresponding current interface window is calculated separately Example.Calculate current interface window scaling when, can according to adjustment before the current interface window display size with The display size of the current interface window is calculated after adjustment.Wherein, before terminal device receives touch operation, such as Fruit terminal device is in screen mode toggle, then works as prezone when the display size of the current interface window can be displayed in full screen before adjusting The display size of face-port mouth.
Continue exemplary embodiments mentioned above, corresponding current interface window can be recorded with incoming event report point Position, and remove the position of the current interface window of previous record.It is, with incoming event report point, record works as prezone The display location of face-port mouth.
One hand can be entered at the end of the touch operation with control terminal equipment by continuing exemplary embodiments mentioned above Operation mode.At the end of the touch operation, the display size and the display location that adjust current interface window can be stopped, and Control terminal equipment enters one-hand operating format, while obtaining the display location of current interface window and the scaling, with For subsequently using.
Continue exemplary embodiments mentioned above, it can be according to the scaling to prestoring for described in full screen display Interfaces windows to be shown zoom in and out, the interfaces windows to be shown after being adjusted, so that interface window to be shown Mouthful display size, display location respectively with touch operation at the end of the display size of the current interface window, display location It is identical.Then, according to the interface to be shown after the display adjustment of the display location of the current interface window after adjustment Window.It is, the display size of current interface window above-mentioned at the end of according to touch operation, the singlehanded behaviour of display location display Interfaces windows to be shown under operation mode.In this way, passing through contracting using the interfaces windows to be shown for full screen display to prestore It puts to obtain the interfaces windows to be shown under singlehanded pattern, the efficiency of adjustment interfaces windows can be improved, avoid interim card.
Continue exemplary embodiments mentioned above, it can be by the display location of the current interface window of acquisition and the contracting The ratio of putting is assigned to the corresponding SurfaceControl objects of all interfaces windows, is then used by SurfaceControl objects The display location of the current interface window and the scaling are sent to SurfaceFlinger services by Binder communications, Scaling and the position of interfaces windows are updated by SurfaceFlinger services, so that the boundary shown under one-hand operating format The display size of the current interface window, display location at the end of the display size of face-port mouth, display location and touch operation It is identical respectively.In this way, the efficiency of adjustment interfaces windows can be improved, interim card is avoided.
In another exemplary embodiment, step S102 can also be realized in the following way:According to the institute after adjustment The display size for stating current interface window draws the interfaces windows to be shown, then according to the current interface after adjustment The interfaces windows to be shown that the display location display of window is drawn.In this way, enriching embodiment, embodiment party is increased The flexibility of formula and diversity.
In one embodiment, it is adjusted with display location according to the display location of the current interface window after adjustment Before interfaces windows to be shown, the function of refreshing interfaces windows by the operating system of the terminal device can also be restored. Refresh function can be restored after control terminal equipment enters one-hand operating format by continuing exemplary embodiments mentioned above, by In refresh function be the function that a high frequency calls, so needing complete to adjust the aobvious of the interfaces windows under one-hand operating format Show that position restores immediately with when display size, prevents from impacting the original behavior of operating system.
In the present embodiment, by being adjusted according to touch operation before terminating in the touch operation for meeting preset operating state The display size of current interface window and display location, and after touch operation, according to the current interface window after adjustment Display location and display size adjust interfaces windows to be shown, in this manner it is achieved that passing through touch operation control terminal Display size and the display location that interfaces windows are adjusted during equipment simplify the setting operation of adjustment interfaces windows.
In the present embodiment, it may be implemented to adjust interface window during control terminal equipment enters one-hand operating format Interfaces windows may be implemented in real time with hand position during entering one-hand operating format in the display size of mouth and display location It moves and scales, simplify and operated using the setting of interfaces windows when one-hand operating format, and visual interactive effect is more.User exists Interfaces windows can be shown on any position of the screen of terminal device when triggering one-hand operating format, and can be with real-time control The size of interfaces windows, flexibility higher.
Fig. 2 is the flow chart of the setting method of the interfaces windows shown according to another exemplary embodiment.Shown in Fig. 1 On the basis of embodiment, above-mentioned step S102 includes the following steps S201~S203:
In step s 201, according to the current interface after the display size of the current interface window before adjustment and adjustment The display size of window obtains the scaling of the current interface window.
In step S202, according to the scaling to the interface window to be shown that prestores for full screen display Mouth zooms in and out, the interfaces windows to be shown after being adjusted.
In step S203, according to the display location of the current interface window after adjustment display adjustment after described in wait for The interfaces windows of display.
In the present embodiment, can be during touch operation, with incoming event report point, calculating is corresponding to work as prezone The scaling of face-port mouth.It is, for the position of each current touch point, corresponding current interface window is calculated separately Scaling.It, can be according to the aobvious of the preceding current interface window of adjustment when calculating the scaling of current interface window Show that size and the display size of the current interface window after adjustment are calculated.
In the present embodiment, the position of corresponding current interface window can be recorded, and remove with incoming event report point The position of the current interface window of previous record.It is, with incoming event report point, the display of current interface window is recorded Position.
One hand can be entered at the end of the touch operation with control terminal equipment by continuing exemplary embodiments mentioned above Operation mode.Specifically, at the end of the touch operation, the display size and the display that adjust current interface window can be stopped Position, and control terminal equipment enters one-hand operating format, while obtaining the display location of current interface window and the scaling Ratio, for subsequently using.
In the present embodiment, the boundary to be shown that can be according to the scaling to prestoring for full screen display Face-port mouth zooms in and out, the interfaces windows to be shown after being adjusted, so that the display ruler of interfaces windows to be shown Very little, display location is identical as the display size of the current interface window, display location at the end of touch operation respectively.Then, According to the interfaces windows to be shown after the display adjustment of the display location of the current interface window after adjustment.Also Be, according to touch operation at the end of the display size of current interface window, display location show it is to be shown under one-hand operating format Interfaces windows.In this way, being obtained by scaling using the interfaces windows to be shown to prestore for full screen display to be shown Interfaces windows can improve the efficiency of adjustment interfaces windows, avoid interim card.
Continue exemplary embodiments mentioned above, it can be by the display location of the current interface window of acquisition and the contracting The ratio of putting is assigned to the corresponding SurfaceControl objects of all interfaces windows, is then used by SurfaceControl objects The display location of the current interface window and the scaling are sent to SurfaceFlinger services by Binder communications, Scaling and the position of interfaces windows are updated by SurfaceFlinger services, so that the boundary shown under one-hand operating format The display size of the current interface window, display location at the end of the display size of face-port mouth, display location and touch operation It is identical respectively.In this way, the efficiency of adjustment interfaces windows can be improved, interim card is avoided.
In one exemplary embodiment, scaling and displacement can directly exist above-mentioned interfaces windows in real time It is handled in SurfaceFlinger processes.Specifically, can be existed according to window ID specified in advance Specified Layer (window) is zoomed in and out in SurfaceFlinger processes, the operation of displacement.According to window ID to prior Specified interfaces windows zoom in and out, displacement, increase the flexibility of embodiment, enrich embodiment.
In the present embodiment, it obtains waiting showing by scaling using the interfaces windows to be shown for full screen display to prestore The interfaces windows shown can improve the efficiency of adjustment interfaces windows, avoid interim card.
Fig. 3 is the flow chart of the setting method of the interfaces windows shown according to another exemplary embodiment.In Fig. 1, Fig. 2 institute On the basis of the embodiment shown, further comprising the steps of S301~S302 after above-mentioned step S102:
In step S301, incoming event is detected when showing the interfaces windows to be shown, then by the input First coordinate of the event in the interfaces windows to be shown is converted to the interface window to be shown for full screen display The second coordinate on mouth.
In step s 302, the incoming event is distributed to the boundary to be shown of display according to second coordinate On face-port mouth.
In the present embodiment, incoming event is detected when if showing interfaces windows to be shown, by the input thing First coordinate of the part in the interfaces windows to be shown is converted to the interfaces windows to be shown for full screen display On the second coordinate, and the incoming event is distributed to according to second coordinate interfaces windows to be shown of display On.
Continue exemplary embodiments mentioned above, terminal device is after entering one-hand operating format, due to interfaces windows Display location and scaling are all changed, but the corresponding Fame of interfaces windows (original display size and display position Set) do not change, so in order to ensure the coordinate points of the input events reported from touch screen can accurately distribute to displacement and In interfaces windows after scaling, need to carry out coordinate conversion.Specifically, mainly in InputDispatch threads, dividing It sends out input events and is distributed to corresponding interface again after finishing to coordinate conversion, coordinate conversion is carried out before corresponding interfaces windows Window.
In an exemplary scenario, as shown in figure 4, the seat that user clicks in interfaces windows 42 after interfaces windows scaling Mark is (touchX, touchY), at that time since the Fame of interfaces windows does not change, so the coordinate of click is converted to contracting Corresponding coordinate (OriX, OriY) in interfaces windows 41 before putting.Wherein, shown in Formula of Coordinate System Transformation such as following formula (1)~(2),
OriX=x1+ (touchX-x2)/mHScaleX (1)
OriY=y1+ (touchY-y2)/mHScaleY (2)
Wherein, (x1, y1) is the starting point coordinate that window scales front interface window 41, and (x2, y2) is interface after window scaling The starting point coordinate of window 42, mHScaleX are the scaling of interfaces windows in the direction of the width, and mVScaleY is interfaces windows Scaling in short transverse.
In the present embodiment, the coordinate of the incoming event by scaling interfaces windows, after displacement carries out coordinate conversion, obtains To the coordinate of interfaces windows of the incoming event before interfaces windows scaling, displacement, in this manner it is ensured that is reported from touch screen is defeated The coordinate points of incoming event can be distributed accurately in the interfaces windows after displacement, scaling, to realize one-hand operating format Under accurate manipulation.
Fig. 5 is the block diagram according to the setting device of the interfaces windows shown in an exemplary embodiment.The embodiment of the present disclosure carries The setting device of the interfaces windows of confession, including:
The first adjustment module 51, is configured as before touch operation terminates, and it is default to detect that the touch operation meets When operating condition, display size and the display location of current interface window are adjusted according to the touch operation;
Second adjustment module 52 is configured as after the touch operation, according to the current interface after adjustment The display location of window adjusts interfaces windows to be shown with display size.
Fig. 6 is the block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.The embodiment of the present disclosure In, described device may also include:
The operating system of first control module 53, the terminal device that is configured as that no thoroughfare refreshes the function of interfaces windows;
Second control module 54 is configured as the work(for restoring to refresh interfaces windows by the operating system of the terminal device Energy.
Fig. 7 is the block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.The embodiment of the present disclosure In, the second adjustment module 54, it may include:
Acquisition submodule 521 is configured as according to institute after the display size of the current interface window before adjustment and adjustment The display size for stating current interface window obtains the scaling of the current interface window;
Submodule 522 is scaled, is configured as according to the scaling to prestoring for waiting showing described in full screen display The interfaces windows shown zoom in and out, the interfaces windows to be shown after being adjusted;
First display sub-module 523 is configured as being shown according to the display location of the current interface window after adjustment The interfaces windows to be shown after adjustment.
Fig. 8 is the block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.The embodiment of the present disclosure In, the second adjustment module 52 may also include:
Conversion module 55 is configured as when detecting incoming event after showing the interfaces windows to be shown, by institute First coordinate of the incoming event in the interfaces windows to be shown is stated to be converted to for the described to be shown of full screen display The second coordinate in interfaces windows;
Module 56 is distributed, is configured as being distributed the incoming event according to second coordinate and waits showing described in display In the interfaces windows shown.
Fig. 9 is the block diagram of the setting device of the interfaces windows shown according to another exemplary embodiment.The embodiment of the present disclosure In, the second adjustment module 52, it may include:
Rendering submodule 524 is configured as according to described in the drafting of the display size of the current interface window after adjustment Interfaces windows to be shown;
Second display sub-module 525 is configured as being shown according to the display location of the current interface window after adjustment The interfaces windows to be shown drawn.
About the device in above-described embodiment, wherein processor executes the concrete mode of operation in related this method It is described in detail in embodiment, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram of the setting device of interfaces windows shown according to an exemplary embodiment.For example, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, device 1000 may include following one or more components:Processing component 1002, memory 1004, Power supply module 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor module 1014 and communication component 1016.
The integrated operation of 1002 usual control device 1000 of processing component, such as with display, call, data communication, Camera operation and record operate associated operation.Processing element 1002 may include one or more processors 1020 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more moulds Block, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multi-media module, To facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in equipment 1000.These data Example includes the instruction for any application program or method that are operated on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (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.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 may include power management System, one or more power supplys and other generated with for device 1000, management and the associated component of distribution electric power.
Multimedia component 1008 is included in the screen of one output interface of offer between described device 1000 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1008 includes a front camera and/or rear camera.When equipment 1000 is in operation mode, mould is such as shot 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 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when device 1000 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication Component 1016 is sent.In some embodiments, audio component 1010 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 1012 provide interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor module 1014 can detect the state that opens/closes of equipment 1000, the relative positioning of component, such as institute The display and keypad that component is device 1000 are stated, sensor module 1014 can be with detection device 1000 or device 1,000 1 The position change of a component, the existence or non-existence that user contacts with device 1000,1000 orientation of device or acceleration/deceleration and dress Set 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1000,2G or 3G or combination thereof.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application application-specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of device 1000 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure 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 is pointed 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.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure 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 is pointed 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 (12)

1. a kind of setting method of interfaces windows, which is characterized in that the method includes:
Before touch operation terminates, detect that the touch operation meets preset operating state, then according to the touch operation Adjust display size and the display location of current interface window;
After the touch operation, adjusted according to the display location of the current interface window after adjustment and display size Interfaces windows to be shown.
2. according to the method described in claim 1, it is characterized in that, described adjust current interface window according to the touch operation Display size and display location before, further include:
The operating system of no thoroughfare terminal device refreshes the function of interfaces windows;
The display location according to the current interface window after adjustment adjusts interfaces windows to be shown with display location Before, further include:
Restore the function of the operating system refreshing interfaces windows by the terminal device.
3. according to the method described in claim 1, it is characterized in that, the current interface window according to after adjustment is shown Show that position adjusts interfaces windows to be shown with display size, including:
It is obtained according to the display size of the current interface window after the display size of the current interface window before adjustment and adjustment Obtain the scaling of the current interface window;
The interfaces windows to be shown for full screen display to prestore are zoomed in and out according to the scaling, are adjusted The interfaces windows to be shown after whole;
According to the interfaces windows to be shown after the display adjustment of the display location of the current interface window after adjustment.
4. according to the method described in claim 3, it is characterized in that, the current interface window according to after adjustment is shown After showing that position adjusts interfaces windows to be shown with display size, further include:
Incoming event is detected when showing the interfaces windows to be shown, then by the incoming event described to be shown The first coordinate in interfaces windows is converted to the second coordinate in the interfaces windows to be shown for full screen display;
The incoming event is distributed in the interfaces windows to be shown of display according to second coordinate.
5. according to the method described in claim 1, it is characterized in that, the current interface window according to after adjustment is shown Show that position adjusts interfaces windows to be shown with display size, including:
The interfaces windows to be shown are drawn according to the display size of the current interface window after adjustment;
The interfaces windows to be shown drawn according to the display of the display location of the current interface window after adjustment.
6. a kind of setting device of interfaces windows, which is characterized in that described device includes:
The first adjustment module, is configured as before touch operation terminates, and detects that the touch operation meets predetermined registration operation item When part, display size and the display location of current interface window are adjusted according to the touch operation;
Second adjustment module is configured as after the touch operation, according to the current interface window after adjustment Display location adjusts interfaces windows to be shown with display size.
7. device according to claim 6, which is characterized in that described device further includes:
The operating system of first control module, the terminal device that is configured as that no thoroughfare refreshes the function of interfaces windows;
Second control module is configured as the function of restoring to refresh interfaces windows by the operating system of the terminal device.
8. device according to claim 6, which is characterized in that the second adjustment module, including:
Acquisition submodule is configured as working as prezone according to described after the display size of the current interface window before adjustment and adjustment The display size of face-port mouth obtains the scaling of the current interface window;
Submodule is scaled, is configured as according to the scaling to the interface to be shown that prestores for full screen display Window zooms in and out, the interfaces windows to be shown after being adjusted;
First display sub-module is configured as according to after the display adjustment of the display location of the current interface window after adjustment The interfaces windows to be shown.
9. device according to claim 8, which is characterized in that described device further includes:
Conversion module is configured as when detecting incoming event after showing the interfaces windows to be shown, by the input First coordinate of the event in the interfaces windows to be shown is converted to the interface window to be shown for full screen display The second coordinate on mouth;
Module is distributed, is configured as that the incoming event is distributed to the boundary to be shown of display according to second coordinate On face-port mouth.
10. device according to claim 6, which is characterized in that the second adjustment module, including:
Rendering submodule is configured as being drawn according to the display size of the current interface window after adjustment described to be shown Interfaces windows;
Second display sub-module is configured as the institute drawn according to the display of the display location of the current interface window after adjustment State interfaces windows to be shown.
11. a kind of setting device of interfaces windows, which is characterized in that described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as perform claim and requires 1 to 5 any one of them method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Method described in any one of claim 1 to 5 is realized when being executed by processor.
CN201810542737.4A 2018-05-30 2018-05-30 Interface window setting method and device Active CN108804187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810542737.4A CN108804187B (en) 2018-05-30 2018-05-30 Interface window setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810542737.4A CN108804187B (en) 2018-05-30 2018-05-30 Interface window setting method and device

Publications (2)

Publication Number Publication Date
CN108804187A true CN108804187A (en) 2018-11-13
CN108804187B CN108804187B (en) 2023-11-24

Family

ID=64089496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810542737.4A Active CN108804187B (en) 2018-05-30 2018-05-30 Interface window setting method and device

Country Status (1)

Country Link
CN (1) CN108804187B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347469A (en) * 2019-07-12 2019-10-18 北大方正集团有限公司 Interaction processing method and device
US11302294B2 (en) 2019-05-15 2022-04-12 Boe Technology Group Co., Ltd. Display device, and control method, control apparatus and control system therefor
WO2023221041A1 (en) * 2022-05-19 2023-11-23 京东方科技集团股份有限公司 Operation method and apparatus, electronic device, and computer-readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020191027A1 (en) * 2001-06-13 2002-12-19 Microsoft Corporation Dynamic resizing of dialogs
CN102298500A (en) * 2011-09-22 2011-12-28 重庆大学 Self-adaptive screen zooming adjusting method
CN103294346A (en) * 2013-06-20 2013-09-11 锤子科技(北京)有限公司 Window moving method for mobile equipment and device thereof
CN103577036A (en) * 2012-07-27 2014-02-12 三星电子株式会社 Display device and control method thereof
CN103677564A (en) * 2013-11-20 2014-03-26 小米科技有限责任公司 Sliding operation response method and device and terminal equipment
CN103888840A (en) * 2014-03-27 2014-06-25 电子科技大学 Method and device for dragging and zooming video mobile terminal in real time
CN104298433A (en) * 2014-09-30 2015-01-21 小米科技有限责任公司 Screen display method, device and mobile terminal
CN104461232A (en) * 2014-09-30 2015-03-25 小米科技有限责任公司 Method and device for determining reduction scale in screen display process
CN104834468A (en) * 2015-04-24 2015-08-12 青岛海信移动通信技术股份有限公司 Touch operation method and touch operation device in terminal
CN106055201A (en) * 2016-05-27 2016-10-26 深圳天珑无线科技有限公司 Intelligent method and device for quickly and randomly adjusting size of screen
CN107025052A (en) * 2016-01-29 2017-08-08 宇龙计算机通信科技(深圳)有限公司 A kind of child mode processing method and intelligent terminal
CN107219992A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Open the method and device of split screen function
CN107301010A (en) * 2017-06-16 2017-10-27 三星电子(中国)研发中心 Display control method and equipment for electric terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020191027A1 (en) * 2001-06-13 2002-12-19 Microsoft Corporation Dynamic resizing of dialogs
CN102298500A (en) * 2011-09-22 2011-12-28 重庆大学 Self-adaptive screen zooming adjusting method
CN103577036A (en) * 2012-07-27 2014-02-12 三星电子株式会社 Display device and control method thereof
CN103294346A (en) * 2013-06-20 2013-09-11 锤子科技(北京)有限公司 Window moving method for mobile equipment and device thereof
CN103677564A (en) * 2013-11-20 2014-03-26 小米科技有限责任公司 Sliding operation response method and device and terminal equipment
CN103888840A (en) * 2014-03-27 2014-06-25 电子科技大学 Method and device for dragging and zooming video mobile terminal in real time
CN104298433A (en) * 2014-09-30 2015-01-21 小米科技有限责任公司 Screen display method, device and mobile terminal
CN104461232A (en) * 2014-09-30 2015-03-25 小米科技有限责任公司 Method and device for determining reduction scale in screen display process
CN104834468A (en) * 2015-04-24 2015-08-12 青岛海信移动通信技术股份有限公司 Touch operation method and touch operation device in terminal
CN107025052A (en) * 2016-01-29 2017-08-08 宇龙计算机通信科技(深圳)有限公司 A kind of child mode processing method and intelligent terminal
CN106055201A (en) * 2016-05-27 2016-10-26 深圳天珑无线科技有限公司 Intelligent method and device for quickly and randomly adjusting size of screen
CN107219992A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Open the method and device of split screen function
CN107301010A (en) * 2017-06-16 2017-10-27 三星电子(中国)研发中心 Display control method and equipment for electric terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NIWAT NOMNOB; YUTTANA KITJAIDURE: "Adaptive Window Size Multi-Focus Images Fused Based On Sum of Modified Laplacian", 《THE 4TH JOINT INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY, ELECTRONIC AND ELECTRICAL ENGINEERING (JICTEE)》, pages 1 - 4 *
俞木发: "无惧大屏 单手玩转", 《电脑爱好者》, no. 6, pages 60 - 63 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11302294B2 (en) 2019-05-15 2022-04-12 Boe Technology Group Co., Ltd. Display device, and control method, control apparatus and control system therefor
CN110347469A (en) * 2019-07-12 2019-10-18 北大方正集团有限公司 Interaction processing method and device
WO2023221041A1 (en) * 2022-05-19 2023-11-23 京东方科技集团股份有限公司 Operation method and apparatus, electronic device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN108804187B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN104503689B (en) Application interface display methods and device
EP4002066A1 (en) Air gesture interaction method and electronic device
CN105511686B (en) Call processing method, device and terminal electronic device
JP6560763B2 (en) Fingerprint recognition method, fingerprint recognition apparatus, program, and recording medium
CN106126420B (en) Application program adjustment method and device
CN105242828B (en) The display methods and device of control on interface of mobile terminal
CN110020313A (en) Show the method and device of task management interface
CN107102772B (en) Touch control method and device
CN105204808B (en) Projective techniques, device and the terminal device of picture
CN106201292A (en) Terminal false-touch prevention method and apparatus
EP3599581A1 (en) Method and apparatus for displaying a commodity
CN104238890B (en) Character displaying method and device
CN107330868A (en) image processing method and device
CN105898032A (en) Adjusting method and apparatus for warning tone
CN105183755B (en) A kind of display methods and device of picture
CN106802808A (en) Suspension button control method and device
CN108804187A (en) The setting method and device of interfaces windows
CN105786507A (en) Display interface switching method and device
CN104123720A (en) Image repositioning method, device and terminal
CN105825490A (en) Gaussian blur method and device of image
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN106095300A (en) Playing progress rate method of adjustment and device
CN108776957A (en) Face image processing process and device
CN106339452B (en) Event response method and device
CN106228077B (en) It handles image and shows the method, apparatus and terminal of image

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