WO2017063324A1 - 一种窗口显示方法及移动终端 - Google Patents

一种窗口显示方法及移动终端 Download PDF

Info

Publication number
WO2017063324A1
WO2017063324A1 PCT/CN2016/074594 CN2016074594W WO2017063324A1 WO 2017063324 A1 WO2017063324 A1 WO 2017063324A1 CN 2016074594 W CN2016074594 W CN 2016074594W WO 2017063324 A1 WO2017063324 A1 WO 2017063324A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
small window
display area
mobile terminal
height value
Prior art date
Application number
PCT/CN2016/074594
Other languages
English (en)
French (fr)
Inventor
王磊
Original Assignee
青岛海信移动通信技术股份有限公司
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 青岛海信移动通信技术股份有限公司 filed Critical 青岛海信移动通信技术股份有限公司
Publication of WO2017063324A1 publication Critical patent/WO2017063324A1/zh
Priority to US15/952,746 priority Critical patent/US20180232135A1/en

Links

Images

Classifications

    • 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/0481Interaction 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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • 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/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • 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
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
    • 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/0489Interaction 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 dedicated keyboard keys or combinations thereof

Definitions

  • the present invention relates to the field of mobile terminals, and in particular, to a window display method and a mobile terminal.
  • the large-screen display of the full-screen display can be zoomed into a small window display, and the user can complete all operations in one small window with one hand.
  • One solution in the prior art is to add a full-screen floating window on the uppermost layer of the main screen, obtain the bitmap information of the current screen through the screen capture, and then reduce the bitmap information, and display the reduced bitmap information in full screen.
  • the specified area of the floating window, that is, the small window is displayed.
  • a periodic screen capture is required to obtain real-time bitmap information, and the content displayed in the small window is periodically updated.
  • bitmap information in the memory cannot be released in time, the memory will be occupied for a long time and affect the user experience; If the frequency of the screen shot is too low, the picture displayed in the small window will be inconsistent and appear to be stuck.
  • the embodiment of the present invention provides a window display method and a mobile terminal, which are used to solve the problem of high memory usage and inconsistent picture when displaying small windows in the prior art.
  • a first aspect of the embodiments of the present invention provides a window display method, including:
  • attribute information of the window according to the width value and the height value of the small window display area and the position information of the small window display area in the display screen, where the attribute information includes: a width value and a height value. And location information;
  • a second aspect of the embodiments of the present invention provides a mobile terminal, including:
  • An obtaining unit configured to obtain a width value and a height value of a display screen of the mobile terminal
  • a calculating unit configured to calculate a width value and a height value of the small window display area according to the width value and the height value of the display screen acquired by the acquiring unit, and a preset scaling ratio, and the small window display area is Position information in the display screen;
  • the obtaining unit is further configured to acquire a window included in a current interface of the mobile terminal;
  • a setting unit configured to set the attribute information of the window according to the width value and the height value of the small window display area calculated by the calculating unit, and the position information of the small window display area in the display screen
  • the attribute information includes: a width value, Height value and location information;
  • the setting unit is further configured to set, according to the attribute information, control information of a drawing surface corresponding to the window;
  • a display unit configured to control, by the control information, the mobile terminal to display original data of a drawing surface corresponding to the window in the small window display area.
  • the window display method and the mobile terminal provided by the embodiment of the present invention determine the width value and the height value of the small window display area and the small window display area according to the width value and the height value of the display screen of the mobile terminal and the preset zoom ratio.
  • FIG. 1 is a flowchart of a window display method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of another window display method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a first operation instruction according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another first operation instruction in the embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another first operation instruction according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a small window display area according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another small window display area according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of another window display method according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of another window display method according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of another window display method according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a second operation instruction according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another second operation instruction according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another second operation instruction according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a third operation instruction according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another small window display area according to an embodiment of the present invention.
  • 16 is a schematic diagram of another small window display area according to an embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a window display method. As shown in FIG. 1 , the method includes:
  • the following code can be used to obtain the width value of the display:
  • the width and height values obtained above are in pixels.
  • the scaling may be 0.75, 0.8, 0.85, and the like.
  • the small window display area is a rectangular display area on the display screen, and the small window display area has a smaller range than the display display area.
  • the small window display area may be located at the lower left or lower right corner of the display screen.
  • the current interface may include one window or multiple windows.
  • each window corresponds to a drawing surface, and each drawing surface is associated with a layer value and a piece of memory at the same time, and the drawing surface with a high level is displayed on the lower drawing surface.
  • the mobile terminal is a mobile phone, and the startup interface of the mobile phone includes a window of the wallpaper window and an icon of the application, and the icon can be seen to be displayed on the wallpaper.
  • S104 Set the attribute information of the window according to the width value and the height value of the small window display area and the position information of the small window display area in the display screen.
  • the attribute information includes: a width value, a height value, and location information.
  • Set the said The attribute information of the window is to ensure that the size of the window after zooming is the same as the size of the small window display area, and the position of the window after scaling coincides with the position of the small window display area.
  • the data of the drawing surface corresponding to the window is stored in a memory associated with the drawing surface, where the data includes: control information and original data.
  • the raw data holds the complete image information, and the control information is used to control how the raw data is displayed in the window, including how to pan and how to scale.
  • the mobile terminal controls the original data of the drawing surface corresponding to the window in the small window display area.
  • the original data of the drawing surface corresponding to the window can be displayed in the small window display area, and the display area outside the small window area does not display any content, which is a blank area.
  • the window display method provided by the embodiment of the present invention determines the width value and the height value of the small window display area according to the width value and the height value of the display screen of the mobile terminal, and the preset zoom ratio, and the small window display area is displayed on the display screen.
  • the position information of the drawing surface of the window corresponding to the window included in the current interface is controlled to control the mobile terminal to display the original data of the drawing surface corresponding to the window in the small window display area.
  • the solution of the embodiment of the present invention is adopted, and no screen capture is required. There is no need to add an extra full-screen floating window. Instead, before modifying the content displayed on the screen, the original data is directly displayed in the small window display area by modifying the control information, so that no extra memory is occupied, and the memory usage is high. And the problem of inconsistent pictures.
  • the window display method provided in this embodiment further includes:
  • the first operation instruction includes: clicking one of a first button operation, performing a first zoom gesture operation on the display screen, and shaking the mobile terminal by a preset number of times, see FIG. 3 to FIG. 5 .
  • the first operation instruction is a click first button operation.
  • the first button may be a floating ball on the display screen, and the coordinates of the touch point may be obtained by monitoring the ACTION_DOWN message, and determining whether the coordinate is in the area where the floating ball is located to determine whether the first button operation is clicked.
  • the first operation instruction is to perform a first zoom gesture operation on the display screen. Whether the first zoom gesture operation is performed can be determined by detecting the trajectory of the touched point.
  • the first operation instruction is to operate the mobile terminal by shaking a preset number of times.
  • the shaking of the mobile terminal can be detected by an acceleration sensor or a gyro sensor in the mobile terminal.
  • the position information of the small window display area in the display screen includes: a horizontal offset and a vertical offset.
  • the small window displays the lower right corner of the area display.
  • the horizontal offset (indicated by X) is the offset of the upper left vertex of the small window display area relative to the upper left corner of the display screen in the horizontal direction
  • the vertical offset (indicated by Y) is the small window display area. The offset of the top left vertex in the vertical direction relative to the top left corner of the display.
  • the small window displays the lower left corner of the area display.
  • the horizontal offset (indicated by X) is the offset of the upper right corner of the small window display area relative to the upper right corner of the display screen in the horizontal direction
  • the vertical offset (indicated by Y) is the small window display area. The offset of the top right corner vertex in the vertical direction relative to the top right corner of the display.
  • S102 may specifically be: calculating a width value of the small window display area, a height value of the small window display area, a horizontal offset amount, and a vertical offset amount according to the following formula.
  • W is the width value of the small window display area
  • H is the height value of the small window display area
  • W1 is the width value of the display screen
  • H1 is the height value of the display screen
  • S is the scaling ratio
  • X is the horizontal offset amount.
  • Y is the vertical offset.
  • S104 may include: S104a-S104c.
  • S104c Set position information of the window as position information of the small window display area in the display screen.
  • the width value, the height value, and the position information of the window may be set by using a WindowState object corresponding to the window.
  • S105 may specifically include: S105a and S105b.
  • S106 may specifically include: by using a control surface sender (SurfaceFlinger) service, by using control information, the original data of the drawing surface corresponding to the window is scaled, synthesized, and displayed in a small window display area.
  • a control surface sender SurfaceFlinger
  • the method may further include: S107-S108.
  • the second operation instruction includes: clicking a second button operation, clicking a blank area operation of the display screen, and performing a second zoom gesture operation on the display screen, see FIGS. 11-13.
  • the method may further include:
  • the third operation instruction is used to instruct the mobile terminal to enter a small window editing mode.
  • the third operation instruction may be a third button operation, as shown in FIG. 14.
  • the small window display area is moved on the display screen according to the sliding track, see FIG.
  • the small window display area is scaled according to the sliding direction, see FIG.
  • the window display method provided by the embodiment of the present invention compares with the problem that the memory usage rate and the picture inconsistency caused by periodically updating the bitmap information through the screen capture and periodically updating the content displayed by the small window,
  • the scheme of the embodiment of the present invention does not need to take a screen shot, and does not need to add an additional full-screen floating window. Instead, before the content displayed on the screen is generated, the original data is directly displayed in the small window display area by modifying the control information, so Additional memory can avoid high memory usage and inconsistent picture.
  • the embodiment of the present invention further provides a mobile terminal, as shown in FIG. 17, comprising: an obtaining unit 21, a calculating unit 22, a setting unit 23, and a display unit 24.
  • the obtaining unit 21 is configured to acquire a width value and a height value of a display screen of the mobile terminal.
  • the calculating unit 22 is configured to calculate a width value and a height value of the small window display area according to the width value and the height value of the display screen acquired by the obtaining unit 21, and a preset scaling ratio, and the small window display area is displayed in the display screen. location information.
  • the obtaining unit 21 is further configured to acquire a window included in a current interface of the mobile terminal.
  • the setting unit 23 is configured to set the attribute information of the window according to the width value and the height value of the small window display area calculated by the calculating unit 22 and the position information of the small window display area in the display screen, and the attribute information includes: a width Value, height value, and location letter interest.
  • the setting unit 23 is further configured to set control information of the drawing surface corresponding to the window according to the attribute information.
  • the display unit 24 is configured to control, by the control information, the mobile terminal to display the original data of the drawing surface corresponding to the window in the small window display area.
  • the mobile terminal further includes: a receiving unit 25.
  • the receiving unit 25 is configured to receive a first operation instruction, where the first operation instruction is used to instruct the mobile terminal to enter the small window display mode, before the obtaining unit 21 acquires the width value and the height value of the display screen; the first operation instruction includes: clicking the first Any one of a button operation, a first zoom gesture operation on the display screen, and a shaking operation of the mobile terminal by a preset number of times.
  • the position information of the small window display area in the display screen includes: a horizontal offset and a vertical offset.
  • the horizontal offset is the offset of the upper left vertex of the small window display area relative to the upper left corner of the display screen in the horizontal direction
  • the vertical offset is the upper left corner vertex of the small window display area in the vertical direction relative to the display.
  • the offset of the top left corner of the screen; or, the horizontal offset is the offset of the upper right corner of the small window display area relative to the upper right corner of the display screen in the horizontal direction
  • the vertical offset is a small window display.
  • the calculating unit 22 is specifically configured to calculate a width value of the small window display area, a height value of the small window display area, a horizontal offset amount, and a vertical offset amount by using the following formula:
  • the width value of the small window display area the width value of the display screen ⁇ zoom ratio
  • the height value of the small window display area the height value of the display screen ⁇ zoom ratio
  • Horizontal offset width value of the display - width value of the display ⁇ zoom ratio
  • the mobile terminal determines the width value and the height value of the small window display area according to the width value and the height value of the display screen of the mobile terminal, and the preset zoom ratio, and the small window display area is in the display screen.
  • Position information controlling the mobile terminal to display the original data of the drawing surface corresponding to the window in the small window display area by modifying the control information of the drawing surface corresponding to the window included in the current interface.
  • the solution of the embodiment of the present invention is adopted, and no screen capture is required. There is no need to add an extra full-screen floating window. Instead, before modifying the content displayed on the screen, the original data is directly displayed in the small window display area by modifying the control information, so that no extra memory is occupied, and the memory usage is high. And the problem of inconsistent pictures.
  • the embodiment of the invention further provides a mobile terminal, as shown in FIG. 19, comprising: a memory 31, a processor 32 and a display screen 33.
  • the memory 31 is configured to store a set of program codes.
  • the processor 32 is configured to execute the program code stored in the memory 31, and is specifically configured to perform the following operations:
  • the information includes: a width value, a height value, and position information; and setting control information of the drawing surface corresponding to the window according to the attribute information.
  • the display screen 33 is configured to display original data of the drawing surface corresponding to the window in the small window display area according to the control information.
  • the mobile terminal further includes: a receiver 34.
  • the receiver 34 is configured to receive a first operation instruction, where the first operation instruction is used to instruct the mobile terminal to enter the small window display mode, before the processor 32 acquires the width value and the height value of the display screen 33.
  • the first operation instruction includes: clicking First button operation, on the display 33 performs any one of a first zoom gesture operation and a motion of shaking the mobile terminal by a preset number of times.
  • the position information of the small window display area in the display screen 33 includes: a horizontal offset amount and a vertical offset amount.
  • the horizontal offset is the offset of the upper left corner vertex of the small window display area relative to the upper left corner vertex of the display screen 33 in the horizontal direction
  • the vertical offset is the upper left corner vertex of the small window display area in the vertical direction with respect to The offset of the upper left corner of the display screen 33
  • the horizontal offset is the offset of the upper right corner vertex of the small window display area in the horizontal direction relative to the upper right corner vertex of the display screen 33
  • the vertical offset is The offset of the upper right corner vertex of the small window display area from the upper right corner vertex of the display screen 33 in the vertical direction;
  • the processor 32 is specifically configured to calculate a width value of the small window display area, a height value of the small window display area, a horizontal offset, and a vertical offset by using the following formula:
  • the width value of the small window display area the width value of the display screen ⁇ the zoom ratio
  • the height value of the small window display area the height value of the display screen ⁇ the zoom ratio
  • Horizontal offset width value of display screen 33 - width value of display screen 33 x scaling
  • the mobile terminal determines the width value and the height value of the small window display area according to the width value and the height value of the display screen of the mobile terminal, and the preset zoom ratio, and the small window display area is in the display screen.
  • Position information controlling the mobile terminal to display the original data of the drawing surface corresponding to the window in the small window display area by modifying the control information of the drawing surface corresponding to the window included in the current interface.
  • the solution of the embodiment of the present invention does not need to take a screen, and does not need to add an additional full-screen floating window, but is modified before the content displayed on the screen is generated.
  • the control information causes the original data to be displayed directly in the small window display area, so that no extra memory is occupied, and the problem of high memory usage and inconsistent picture can be avoided.
  • the above described device is only illustrated by the division of the above functional modules. In practical applications, the above functions may be assigned differently according to needs.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device and the unit described above refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and is independent When the product is sold or used, it can be stored on a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

一种窗口显示方法及移动终端,涉及移动终端领域,用以解决现有技术中小窗口显示时内存占用率高及画面不连贯的问题。上述方法包括:获取移动终端的显示屏的宽度值和高度值(S101);根据显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息(S102);获取移动终端的当前界面包括的窗口(S103);根据小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息,设置所述窗口的属性信息(S104);根据属性信息设置所述窗口对应的绘图表面的控制信息(S105);通过控制信息控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据(S106)。

Description

一种窗口显示方法及移动终端
本申请要求于2015年10月16日提交中国专利局、申请号为201510676658.9、发明名称为“一种窗口显示方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动终端领域,尤其涉及一种窗口显示方法及移动终端。
背景技术
随着移动终端技术的发展,手机的屏幕也一直朝着更大的方向发展,已经有手机厂商将手机屏幕的尺寸从5英寸提升到了7英寸。然而,对于习惯单手操作的用户来说,尽管大屏手机带来的视觉体验更加出色,但是用户很难在大屏手机上实现单手操作。
为了使用户能够在大屏手机上进行单手操作,可以将全屏显示的大窗口缩放成小窗口显示,用户可以在小窗口通过单手完成所有操作。现有技术中的一种方案是在主屏幕的最上层添加一个全屏悬浮窗口,通过截屏获取当前屏幕的位图信息,然后将位图信息进行缩小处理,将缩小后的位图信息显示在全屏悬浮窗口的指定区域,即实现小窗口显示。为了保证小窗口显示的内容与主屏幕的内容一致,需要周期性的截屏以获取实时的位图信息,并周期性的更新小窗口显示的内容。
但是,若截屏的频率过高,则内存中会保存大量的位图信息,如果内存中的位图信息不能及时被释放,就会导致内存长时间处于较高的占用率,影响用户体验;若截屏的频率过低,则会导致小窗口显示的画面不连贯,出现卡顿。
发明内容
本发明的实施例提供一种窗口显示方法及移动终端,用以解决现有技术中小窗口显示时内存占用率高及画面不连贯的问题。
为达到上述目的,本发明的实施例采用如下技术方案:
本发明实施例的第一方面,提供一种窗口显示方法,包括:
获取移动终端的显示屏的宽度值和高度值;
根据所述显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息;
获取所述移动终端的当前界面包括的窗口;
根据所述小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,设置所述窗口的属性信息,所述属性信息包括:宽度值、高度值和位置信息;
根据所述属性信息设置所述窗口对应的绘图表面的控制信息;
通过所述控制信息控制所述移动终端在所述小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
本发明实施例的第二方面,提供一种移动终端,包括:
获取单元,用于获取移动终端的显示屏的宽度值和高度值;
计算单元,用于根据所述获取单元获取的所述显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息;
所述获取单元,还用于获取所述移动终端的当前界面包括的窗口;
设置单元,用于根据所述计算单元计算出的所述小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,设置所述窗口的属性信息,所述属性信息包括:宽度值、 高度值和位置信息;
所述设置单元,还用于根据所述属性信息设置所述窗口对应的绘图表面的控制信息;
显示单元,用于通过所述控制信息控制所述移动终端在所述小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
本发明实施例提供的窗口显示方法及移动终端,根据移动终端的显示屏的宽度值和高度值,以及预设的缩放比例,确定小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息;通过修改当前界面包括的窗口的绘图表面的控制信息,控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。与现有技术中周期性的通过截屏获取位图信息,并周期性的更新小窗口显示的内容导致的内存占用率高及画面不连贯的问题相比,采用本发明实施例的方案,无需截屏,也无需添加额外的全屏悬浮窗口,而是在生成屏幕显示的内容之前,通过修改控制信息使得原始数据直接显示在小窗口显示区域,因此,不会占用额外的内存,可以避免内存占用率高及画面不连贯的问题。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中的一种窗口显示方法的流程图;
图2为本发明实施例中的另一种窗口显示方法的流程图;
图3为本发明实施例中的一种第一操作指令的示意图;
图4为本发明实施例中的另一种第一操作指令的示意图;
图5为本发明实施例中的另一种第一操作指令的示意图;
图6为本发明实施例中的一种小窗口显示区域的示意图;
图7为本发明实施例中的另一种小窗口显示区域的示意图;
图8为本发明实施例中的另一种窗口显示方法的流程图;
图9为本发明实施例中的另一种窗口显示方法的流程图;
图10为本发明实施例中的另一种窗口显示方法的流程图;
图11为本发明实施例中的一种第二操作指令的示意图;
图12为本发明实施例中的另一种第二操作指令的示意图;
图13为本发明实施例中的另一种第二操作指令的示意图;
图14为本发明实施例中的一种第三操作指令的示意图;
图15为本发明实施例中的另一种小窗口显示区域的示意图;
图16为本发明实施例中的另一种小窗口显示区域的示意图;
图17为本发明实施例中的一种移动终端的组成示意图;
图18为本发明实施例中的另一种移动终端的组成示意图;
图19为本发明实施例中的另一种移动终端的组成示意图;
图20为本发明实施例中的另一种移动终端的组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的实施例属于本发明保护的范围。
本发明实施例提供一种窗口显示方法,如图1所示,该方法包括:
S101、获取移动终端的显示屏的宽度值和高度值。
具体的,可以采用如下代码获取显示屏的宽度值:
ScreenWidth=getWindowManager().getDefaultDisplay().getWidth();
可以采用如下代码获取显示屏的高度值:
ScreenHeight=getWindowManager().getDefaultDisplay().getHeight();
上述获取到的宽度值和高度值以像素为单位。
S102、根据显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息。
示例性的,缩放比例可以为0.75、0.8、0.85等。
其中,小窗口显示区域为显示屏上的一个矩形显示区域,小窗口显示区域的范围小于显示屏显示区域的范围。
优选的,为了方便单手操作,小窗口显示区域可以位于显示屏的左下角或右下角。
S103、获取移动终端的当前界面包括的窗口。
其中,当前界面可以包括一个窗口,也可以包括多个窗口。在Android系统中,每个窗口(Window)对应一个绘图表面(Surface),每个绘图表面同时与一个层级(Layer)值和一块内存关联,层级高的绘图表面显示在层级低的绘图表面之上。例如,移动终端为手机,手机的启动界面包括壁纸窗口和应用程序的图标所在的窗口,可以看见图标在壁纸之上显示。
S104、根据小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息,设置所述窗口的属性信息。
其中,属性信息包括:宽度值、高度值和位置信息。设置所述 窗口的属性信息,是为了保证缩放后窗口的大小与小窗口显示区域的大小相同,且缩放后窗口的位置与小窗口显示区域的位置重合。
S105、根据属性信息设置所述窗口对应的绘图表面的控制信息。
其中,所述窗口对应的绘图表面的数据存储在与该绘图表面关联的内存中,这里的数据包括:控制信息和原始数据。原始数据保存了完整的图像信息,控制信息用于控制原始数据如何在窗口显示,包括如何平移和如何缩放等。
S106、通过控制信息控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
这样,所述窗口对应的绘图表面的原始数据就可以显示在小窗口显示区域,小窗口区域之外的显示区域不显示任何内容,为空白区域。
本发明实施例提供的窗口显示方法,根据移动终端的显示屏的宽度值和高度值,以及预设的缩放比例,确定小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息;通过修改当前界面包括的窗口对应的绘图表面的控制信息,控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。与现有技术中周期性的通过截屏获取位图信息,并周期性的更新小窗口显示的内容导致的内存占用率高及画面不连贯的问题相比,采用本发明实施例的方案,无需截屏,也无需添加额外的全屏悬浮窗口,而是在生成屏幕显示的内容之前,通过修改控制信息使得原始数据直接显示在小窗口显示区域,因此,不会占用额外的内存,可以避免内存占用率高及画面不连贯的问题。
进一步的,如图2所示,在S101之前,本实施例提供的窗口显示方法还包括:
S100、接收第一操作指令,第一操作指令用于指示移动终端进入小窗口显示模式。
具体的,第一操作指令包括:点击第一按键操作、在显示屏进行第一缩放手势操作和将移动终端摇动预设次数操作中的任意一种,参见图3-图5。
示例性的,如图3所示,第一操作指令为点击第一按键操作。第一按键可以为显示屏上的一个悬浮球,可以通过监听ACTION_DOWN消息,获得触摸点的坐标,通过判断该坐标是否落在悬浮球所在的区域内来确定是否为点击第一按键操作。
如图4所示,第一操作指令为在显示屏进行第一缩放手势操作。可以通过检测触摸点的轨迹,来判断是否为第一缩放手势操作。
如图5所示,第一操作指令为将移动终端摇动预设次数操作。可以通过移动终端内的加速度传感器或陀螺仪传感器检测移动终端的摇动情况。
进一步的,小窗口显示区域在显示屏中的位置信息包括:水平偏移量和垂直偏移量。
可选的,如图6所示,小窗口显示区域显示屏的右下角。水平偏移量(用X表示)为小窗口显示区域的左上角顶点在水平方向上相对于显示屏的左上角顶点的偏移量,垂直偏移量(用Y表示)为小窗口显示区域的左上角顶点在垂直方向上相对于显示屏的左上角顶点的偏移量。
可选的,如图7所示,小窗口显示区域显示屏的左下角。水平偏移量(用X表示)为小窗口显示区域的右上角顶点在水平方向上相对于显示屏的右上角顶点的偏移量,垂直偏移量(用Y表示)为小窗口显示区域的右上角顶点在垂直方向上相对于显示屏的右上角顶点的偏移量。
S102具体可以为:根据如下公式计算小窗口显示区域的宽度值、小窗口显示区域的高度值、水平偏移量和垂直偏移量。
W=W1×S  (公式1)
H=H1×S  (公式2)
X=W1-W1×S  (公式3)
Y=Y-H1×S  (公式4)
其中,W为小窗口显示区域的宽度值,H为小窗口显示区域的高度值,W1为显示屏的宽度值,H1为显示屏的高度值,S为缩放比例,X为水平偏移量,Y为垂直偏移量。
进一步的,如图8所示,S104可以包括:S104a-S104c。
S104a、将所述窗口的宽度值设置为小窗口显示区域的宽度值。
S104b、将所述窗口的高度值设置为小窗口显示区域的高度值。
S104c、将所述窗口的位置信息设置为小窗口显示区域在显示屏中的位置信息。
具体的,可以通过所述窗口对应的WindowState对象设置所述窗口的宽度值、高度值和位置信息。
进一步的,如图9所示,S105具体可以包括:S105a和S105b。
S105a、通过绘图表面控制(SurfaceControl)对象的设置位置(setPosition)方法设置平移参数。
S105b、通过绘图表面控制对象的设置矩阵(setMatrix)方法设置缩放参数。
进一步的,S106具体可以包括:由绘图表面投递者(SurfaceFlinger)服务通过控制信息,对所述窗口对应的绘图表面的原始数据进行缩放、合成并在小窗口显示区域显示。
进一步的,如图10所示,若要退出小窗口显示模式,则在S106之后,该方法还可以包括:S107-S108。
S107、接收第二操作指令,第二操作指令用于指示移动终端退出小窗口显示模式。
其中,第二操作指令包括:点击第二按键操作、点击显示屏的空白区域操作和在显示屏进行第二缩放手势操作中的任意一种,参见图11-图13。
S108、将所述窗口对应的绘图表面的原始数据在显示屏上全屏显示。
进一步的,小窗口显示区域的位置和大小可以根据用户操作进行调整。具体的,在S106之后,该方法还可以包括:
接收第三操作指令,第三操作指令用于指示移动终端进入小窗口编辑模式。其中,第三操作指令可以为点击第三按键操作,参见图14。
当检测到用户长按小窗口显示区域并伴随滑动操作时,根据滑动轨迹,在显示屏上移动小窗口显示区域,参见图15。
当检测到用户长按小窗口显示区域的四个边角中任意一个边角并伴随滑动操作时,根据滑动方向,对小窗口显示区域进行缩放,参见图16。
本发明实施例提供的窗口显示方法,与现有技术中周期性的通过截屏获取位图信息,并周期性的更新小窗口显示的内容导致的内存占用率高及画面不连贯的问题相比,采用本发明实施例的方案,无需截屏,也无需添加额外的全屏悬浮窗口,而是在生成屏幕显示的内容之前,通过修改控制信息使得原始数据直接显示在小窗口显示区域,因此,不会占用额外的内存,可以避免内存占用率高及画面不连贯的问题。
本发明实施例还提供一种移动终端,如图17所示,包括:获取单元21、计算单元22、设置单元23和显示单元24。
获取单元21,用于获取移动终端的显示屏的宽度值和高度值。
计算单元22,用于根据获取单元21获取的显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息。
获取单元21,还用于获取移动终端的当前界面包括的窗口。
设置单元23,用于根据计算单元22计算出的小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息,设置所述窗口的属性信息,属性信息包括:宽度值、高度值和位置信 息。
设置单元23,还用于根据属性信息设置所述窗口对应的绘图表面的控制信息。
显示单元24,用于通过控制信息控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
进一步的,如图18所示,该移动终端还包括:接收单元25。
接收单元25,用于在获取单元21获取显示屏的宽度值和高度值之前,接收第一操作指令,第一操作指令用于指示移动终端进入小窗口显示模式;第一操作指令包括:点击第一按键操作、在显示屏进行第一缩放手势操作和将移动终端摇动预设次数操作中的任意一种。
进一步的,小窗口显示区域在显示屏中的位置信息包括:水平偏移量和垂直偏移量。
水平偏移量为小窗口显示区域的左上角顶点在水平方向上相对于显示屏的左上角顶点的偏移量,垂直偏移量为小窗口显示区域的左上角顶点在垂直方向上相对于显示屏的左上角顶点的偏移量;或者,水平偏移量为小窗口显示区域的右上角顶点在水平方向上相对于显示屏的右上角顶点的偏移量,垂直偏移量为小窗口显示区域的右上角顶点在垂直方向上相对于显示屏的右上角顶点的偏移量。
进一步的,计算单元22,具体用于采用如下公式计算小窗口显示区域的宽度值、小窗口显示区域的高度值、水平偏移量和垂直偏移量:
小窗口显示区域的宽度值=显示屏的宽度值×缩放比例;
小窗口显示区域的高度值=显示屏的高度值×缩放比例;
水平偏移量=显示屏的宽度值-显示屏的宽度值×缩放比例;
垂直偏移量=显示屏的高度值-显示屏的高度值×缩放比例。
需要说明的是,本发明实施例提供的移动终端中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。
本发明实施例提供的移动终端,根据移动终端的显示屏的宽度值和高度值,以及预设的缩放比例,确定小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息;通过修改当前界面包括的窗口对应的绘图表面的控制信息,控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。与现有技术中周期性的通过截屏获取位图信息,并周期性的更新小窗口显示的内容导致的内存占用率高及画面不连贯的问题相比,采用本发明实施例的方案,无需截屏,也无需添加额外的全屏悬浮窗口,而是在生成屏幕显示的内容之前,通过修改控制信息使得原始数据直接显示在小窗口显示区域,因此,不会占用额外的内存,可以避免内存占用率高及画面不连贯的问题。
本发明实施例还提供一种移动终端,如图19所示,包括:存储器31、处理器32和显示屏33。
存储器31,用于存储一组程序代码。
处理器32,用于执行存储器31存储的程序代码,并具体用于执行以下操作:
获取移动终端的显示屏33的宽度值和高度值;根据显示屏33的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏33中的位置信息;获取移动终端的当前界面包括的窗口;根据小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏33中的位置信息,设置所述窗口的属性信息,属性信息包括:宽度值、高度值和位置信息;根据属性信息设置所述窗口对应的绘图表面的控制信息。
显示屏33,用于根据控制信息在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
进一步的,如图20所示,该移动终端还包括:接收器34。
接收器34,用于在处理器32获取显示屏33的宽度值和高度值之前,接收第一操作指令,第一操作指令用于指示移动终端进入小窗口显示模式;第一操作指令包括:点击第一按键操作、在显示屏 33进行第一缩放手势操作和将移动终端摇动预设次数操作中的任意一种。
进一步的,小窗口显示区域在显示屏33中的位置信息包括:水平偏移量和垂直偏移量。
水平偏移量为小窗口显示区域的左上角顶点在水平方向上相对于显示屏33的左上角顶点的偏移量,垂直偏移量为小窗口显示区域的左上角顶点在垂直方向上相对于显示屏33的左上角顶点的偏移量;或者,水平偏移量为小窗口显示区域的右上角顶点在水平方向上相对于显示屏33的右上角顶点的偏移量,垂直偏移量为小窗口显示区域的右上角顶点在垂直方向上相对于显示屏33的右上角顶点的偏移量;
进一步的,处理器32,具体用于采用如下公式计算小窗口显示区域的宽度值、小窗口显示区域的高度值、水平偏移量和垂直偏移量:
小窗口显示区域的宽度值=显示屏33的宽度值×缩放比例;
小窗口显示区域的高度值=显示屏33的高度值×缩放比例;
水平偏移量=显示屏33的宽度值-显示屏33的宽度值×缩放比例;
垂直偏移量=显示屏33的高度值-显示屏33的高度值×缩放比例。
需要说明的是,本发明实施例提供的移动终端中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。
本发明实施例提供的移动终端,根据移动终端的显示屏的宽度值和高度值,以及预设的缩放比例,确定小窗口显示区域的宽度值和高度值,以及小窗口显示区域在显示屏中的位置信息;通过修改当前界面包括的窗口对应的绘图表面的控制信息,控制移动终端在小窗口显示区域显示所述窗口对应的绘图表面的原始数据。与现有技术中周期性的通过截屏获取位图信息,并周期性的更新小窗口显 示的内容导致的内存占用率高及画面不连贯的问题相比,采用本发明实施例的方案,无需截屏,也无需添加额外的全屏悬浮窗口,而是在生成屏幕显示的内容之前,通过修改控制信息使得原始数据直接显示在小窗口显示区域,因此,不会占用额外的内存,可以避免内存占用率高及画面不连贯的问题。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的 产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种窗口显示方法,其特征在于,包括:
    获取移动终端的显示屏的宽度值和高度值;
    根据所述显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息;
    获取所述移动终端的当前界面包括的窗口;
    根据所述小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,设置所述窗口的属性信息,所述属性信息包括:宽度值、高度值和位置信息;
    根据所述属性信息设置所述窗口对应的绘图表面的控制信息;
    通过所述控制信息控制所述移动终端在所述小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
  2. 根据权利要求1所述的方法,其特征在于,在所述获取移动终端的显示屏的宽度值和高度值之前,所述方法还包括:
    接收第一操作指令,所述第一操作指令用于指示所述移动终端进入小窗口显示模式;所述第一操作指令包括:点击第一按键操作、在所述显示屏进行第一缩放手势操作和将所述移动终端摇动预设次数操作中的任意一种。
  3. 根据权利要求1所述的方法,其特征在于,所述小窗口显示区域在所述显示屏中的位置信息包括:水平偏移量和垂直偏移量;
    所述水平偏移量为所述小窗口显示区域的左上角顶点在水平方向上相对于所述显示屏的左上角顶点的偏移量,所述垂直偏移量为所述小窗口显示区域的左上角顶点在垂直方向上相对于所述显示屏的左上角顶点的偏移量;
    或者,所述水平偏移量为所述小窗口显示区域的右上角顶点在水平方向上相对于所述显示屏的右上角顶点的偏移量,所述垂直偏移量为所述小窗口显示区域的右上角顶点在垂直方向上相对于所述显示屏的右上角顶点的偏移量。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,包括:
    采用如下公式计算所述小窗口显示区域的宽度值、所述小窗口显示区域的高度值、所述水平偏移量和所述垂直偏移量:
    所述小窗口显示区域的宽度值=所述显示屏的宽度值×所述缩放比例;
    所述小窗口显示区域的高度值=所述显示屏的高度值×所述缩放比例;
    所述水平偏移量=所述显示屏的宽度值-所述显示屏的宽度值×所述缩放比例;
    所述垂直偏移量=所述显示屏的高度值-所述显示屏的高度值×所述缩放比例。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述根据所述小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,设置所述窗口的属性信息,包括:
    将所述窗口的宽度值设置为所述小窗口显示区域的宽度值;
    将所述窗口的高度值设置为所述小窗口显示区域的高度值;
    将所述窗口的位置信息设置为所述小窗口显示区域在所述显示屏中的位置信息。
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述通过所述控制信息控制所述移动终端在所述小窗口显示区域显示所述窗口对应的绘图表面的原始数据之后,所述方法还包括:
    接收第二操作指令,所述第二操作指令用于指示移动终端退出小窗口显示模式;所述第二操作指令包括:点击第二按键操作、点击所述显示屏的空白区域操作和在所述显示屏进行第二缩放手势操作中的任意一种;
    将所述窗口对应的绘图表面的原始数据在所述显示屏上全屏显示。
  7. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述通过所述控制信息控制所述移动终端在所述小窗口显示区域显所述窗口对 应的绘图表面的原始数据之后,所述方法还包括:
    接收第三操作指令,所述第三操作指令用于指示所述移动终端进入小窗口编辑模式,所述第三操作指令为点击第三按键操作;
    当检测到用户长按所述小窗口显示区域并伴随滑动操作时,根据滑动轨迹,在所述显示屏上移动所述小窗口显示区域;
    当检测到用户长按所述显示区域的四个边角中任意一个边角并伴随滑动操作时,根据滑动方向,对所述显示区域进行缩放。
  8. 一种移动终端,其特征在于,包括:
    获取单元,用于获取移动终端的显示屏的宽度值和高度值;
    计算单元,用于根据所述获取单元获取的所述显示屏的宽度值和高度值,以及预设的缩放比例,计算小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息;
    所述获取单元,还用于获取所述移动终端的当前界面包括的窗口;
    设置单元,用于根据所述计算单元计算出的所述小窗口显示区域的宽度值和高度值,以及所述小窗口显示区域在所述显示屏中的位置信息,设置所述窗口的属性信息,所述属性信息包括:宽度值、高度值和位置信息;
    所述设置单元,还用于根据所述属性信息设置所述窗口对应的绘图表面的控制信息;
    显示单元,用于通过所述控制信息控制所述移动终端在所述小窗口显示区域显示所述窗口对应的绘图表面的原始数据。
  9. 根据权利要求8所述的移动终端,其特征在于,所述移动终端还包括:
    接收单元,用于在所述获取单元获取所述显示屏的宽度值和高度值之前,接收第一操作指令,所述第一操作指令用于指示所述移动终端进入小窗口显示模式;所述第一操作指令包括:点击第一按键操作、在所述显示屏进行第一缩放手势操作和将所述移动终端摇动预设次数操作中的任意一种。
  10. 根据权利要求8或9所述的移动终端,其特征在于,所述小窗口显示区域在所述显示屏中的位置信息包括:水平偏移量和垂直偏移量;
    所述水平偏移量为所述小窗口显示区域的左上角顶点在水平方向上相对于所述显示屏的左上角顶点的偏移量,所述垂直偏移量为所述小窗口显示区域的左上角顶点在垂直方向上相对于所述显示屏的左上角顶点的偏移量;
    或者,所述水平偏移量为所述小窗口显示区域的右上角顶点在水平方向上相对于所述显示屏的右上角顶点的偏移量,所述垂直偏移量为所述小窗口显示区域的右上角顶点在垂直方向上相对于所述显示屏的右上角顶点的偏移量;
    所述计算单元,具体用于采用如下公式计算所述小窗口显示区域的宽度值、所述小窗口显示区域的高度值、所述水平偏移量和所述垂直偏移量:
    所述小窗口显示区域的宽度值=所述显示屏的宽度值×所述缩放比例;
    所述小窗口显示区域的高度值=所述显示屏的高度值×所述缩放比例;
    所述水平偏移量=所述显示屏的宽度值-所述显示屏的宽度值×所述缩放比例;
    所述垂直偏移量=所述显示屏的高度值-所述显示屏的高度值×所述缩放比例。
PCT/CN2016/074594 2015-10-16 2016-02-25 一种窗口显示方法及移动终端 WO2017063324A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/952,746 US20180232135A1 (en) 2015-10-16 2018-04-13 Method for window displaying on a mobile terminal and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510676658.9A CN106598404A (zh) 2015-10-16 2015-10-16 一种窗口显示方法及移动终端
CN201510676658.9 2015-10-16

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/952,746 Continuation US20180232135A1 (en) 2015-10-16 2018-04-13 Method for window displaying on a mobile terminal and mobile terminal

Publications (1)

Publication Number Publication Date
WO2017063324A1 true WO2017063324A1 (zh) 2017-04-20

Family

ID=58517001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074594 WO2017063324A1 (zh) 2015-10-16 2016-02-25 一种窗口显示方法及移动终端

Country Status (3)

Country Link
US (1) US20180232135A1 (zh)
CN (1) CN106598404A (zh)
WO (1) WO2017063324A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158619A (zh) * 2019-12-25 2020-05-15 珠海格力电器股份有限公司 一种图片处理方法及装置
CN112380821A (zh) * 2020-11-17 2021-02-19 北京字跳网络技术有限公司 图形显示方法、装置和电子设备
CN114047867A (zh) * 2021-09-22 2022-02-15 荣耀终端有限公司 一种悬浮窗显示方法及电子设备
CN115834754A (zh) * 2022-09-29 2023-03-21 歌尔科技有限公司 交互控制方法、装置、头戴显示设备及介质

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301045B (zh) * 2017-06-12 2020-10-16 海信视像科技股份有限公司 窗口显示方法及装置
CN108008876B (zh) * 2017-11-29 2020-12-22 广州视源电子科技股份有限公司 一种悬浮窗口的显示方法、装置、设备和存储介质
CN113132534B (zh) * 2018-02-12 2022-03-25 中兴通讯股份有限公司 终端及其显示控制方法、计算机存储介质
CN108900693B (zh) * 2018-05-25 2021-07-13 北京小米移动软件有限公司 窗口显示方法及装置
CN109460496B (zh) * 2018-09-21 2020-12-01 东软集团股份有限公司 一种实现数据显示的方法及装置
CN111522489A (zh) * 2019-02-01 2020-08-11 阿里巴巴集团控股有限公司 屏幕控件缩放方法、装置与移动终端设备
CN109901904B (zh) * 2019-02-25 2022-06-07 努比亚技术有限公司 穿戴式设备中应用画面调整方法和穿戴式设备
CN110674618A (zh) * 2019-09-03 2020-01-10 北京达佳互联信息技术有限公司 一种内容展示方法、装置、设备及介质
CN111399720A (zh) * 2020-03-24 2020-07-10 北京小米移动软件有限公司 一种显示应用界面的方法、装置及存储介质
CN111552424A (zh) * 2020-04-24 2020-08-18 北京小米移动软件有限公司 小窗口拖动方法、装置、设备及存储介质
CN113673200A (zh) * 2020-05-13 2021-11-19 西安诺瓦星云科技股份有限公司 文本显示方法和文本显示装置
CN112269525B (zh) * 2020-11-04 2022-08-16 北京小米移动软件有限公司 小屏窗口显示方法、装置及存储介质
CN114153359A (zh) * 2021-11-17 2022-03-08 麒麟软件有限公司 一种自定义窗口布局下的高清缩放方法
CN114911390B (zh) * 2022-07-17 2022-11-22 荣耀终端有限公司 显示方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120038679A1 (en) * 2010-08-13 2012-02-16 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof
CN104090704A (zh) * 2014-07-28 2014-10-08 联想(北京)有限公司 信息处理方法和电子设备
CN104238745A (zh) * 2014-07-31 2014-12-24 天津三星通信技术研究有限公司 一种移动终端单手操作方法及移动终端
CN104679414A (zh) * 2015-03-16 2015-06-03 联想(北京)有限公司 一种显示控制方法和装置
CN104820551A (zh) * 2015-04-24 2015-08-05 青岛海信移动通信技术股份有限公司 一种在终端中的触控操作方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461232A (zh) * 2014-09-30 2015-03-25 小米科技有限责任公司 在屏幕显示过程中确定缩小比例的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120038679A1 (en) * 2010-08-13 2012-02-16 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof
CN104090704A (zh) * 2014-07-28 2014-10-08 联想(北京)有限公司 信息处理方法和电子设备
CN104238745A (zh) * 2014-07-31 2014-12-24 天津三星通信技术研究有限公司 一种移动终端单手操作方法及移动终端
CN104679414A (zh) * 2015-03-16 2015-06-03 联想(北京)有限公司 一种显示控制方法和装置
CN104820551A (zh) * 2015-04-24 2015-08-05 青岛海信移动通信技术股份有限公司 一种在终端中的触控操作方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158619A (zh) * 2019-12-25 2020-05-15 珠海格力电器股份有限公司 一种图片处理方法及装置
CN112380821A (zh) * 2020-11-17 2021-02-19 北京字跳网络技术有限公司 图形显示方法、装置和电子设备
CN114047867A (zh) * 2021-09-22 2022-02-15 荣耀终端有限公司 一种悬浮窗显示方法及电子设备
CN115834754A (zh) * 2022-09-29 2023-03-21 歌尔科技有限公司 交互控制方法、装置、头戴显示设备及介质

Also Published As

Publication number Publication date
CN106598404A (zh) 2017-04-26
US20180232135A1 (en) 2018-08-16

Similar Documents

Publication Publication Date Title
WO2017063324A1 (zh) 一种窗口显示方法及移动终端
CN108513070B (zh) 一种图像处理方法、移动终端及计算机可读存储介质
WO2015161653A1 (zh) 一种终端操作方法及终端设备
WO2019174628A1 (zh) 拍照方法及移动终端
CN106980510B (zh) 一种播放器的视窗自适应方法及装置
CN109618210B (zh) 视频画面调整方法、装置、计算机设备和可读存储介质
CN111223047B (zh) 一种图像显示方法及电子设备
CN111010512A (zh) 显示控制方法及电子设备
US10810801B2 (en) Method of displaying at least one virtual object in mixed reality, and an associated terminal and system
CN110502293B (zh) 一种截屏方法及终端设备
WO2018010440A1 (zh) 一种投影画面调整方法、装置和投影终端
CN114237419B (zh) 显示设备、触控事件的识别方法
US20150106769A1 (en) Display device, display method, and program
CN111127595A (zh) 图像处理方法及电子设备
CN111124227A (zh) 一种图像显示方法及电子设备
WO2020200255A1 (zh) 擦除控件的处理方法、装置和设备
CN111176526B (zh) 图片显示方法和电子设备
CN110536005B (zh) 一种对象显示调整方法及终端
CN110941378B (zh) 视频内容显示方法及电子设备
US20190286245A1 (en) Display control device, display control method, and computer program
CN113282262B (zh) 投屏显示画面的控制方法、装置、移动终端及存储介质
CN108881742B (zh) 一种视频生成方法及终端设备
WO2019242457A1 (zh) 一种应用页面展示方法及移动终端
CN103164142B (zh) 一种画中画界面下屏幕触点位置的调整方法及电子设备
EP3731506A1 (en) Image display method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16854714

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16854714

Country of ref document: EP

Kind code of ref document: A1