WO2015081544A1 - 触摸屏显示控制的方法及移动设备 - Google Patents

触摸屏显示控制的方法及移动设备 Download PDF

Info

Publication number
WO2015081544A1
WO2015081544A1 PCT/CN2013/088690 CN2013088690W WO2015081544A1 WO 2015081544 A1 WO2015081544 A1 WO 2015081544A1 CN 2013088690 W CN2013088690 W CN 2013088690W WO 2015081544 A1 WO2015081544 A1 WO 2015081544A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touch screen
display content
touch position
difference
Prior art date
Application number
PCT/CN2013/088690
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 华为终端有限公司
Priority to CN201380079038.6A priority Critical patent/CN105493020B/zh
Priority to US15/101,531 priority patent/US10025420B2/en
Priority to PCT/CN2013/088690 priority patent/WO2015081544A1/zh
Publication of WO2015081544A1 publication Critical patent/WO2015081544A1/zh
Priority to US16/014,168 priority patent/US10185442B2/en
Priority to US16/229,792 priority patent/US10514802B2/en

Links

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/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/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

Definitions

  • the present invention relates to the field of mobile device technologies, and in particular, to a touch screen display control method and a mobile device. Background technique
  • the enlargement or reduction of the display content of the touch screen and the multiple of enlargement or reduction are controlled by the change of the two touch point signals simultaneously received by the mobile device.
  • the mobile device needs to receive signals of two touch points at the same time, and detects changes of the two signals, which is complicated in processing and reduces the working efficiency of the mobile device.
  • Embodiments of the present invention provide a method and a mobile device for controlling touch screen display, which can solve the problem that the processing procedure is complicated and the work efficiency is reduced when the mobile device controls the display content of the touch screen to perform enlargement or reduction control.
  • an embodiment of the present invention provides a method for controlling touch screen display of a mobile device, including:
  • the method before the receiving the second touch information, the method further includes:
  • the display area of the touch screen is divided into a first display area and a second display area according to the first touch position, and a boundary line between the first display area and the second display area passes through the first touch position;
  • the display area of the touch screen is divided into four quadrants by using the first touch position as an origin, and two of the four quadrants are respectively used as the first display area and the second display area;
  • scaling the display content of the touch screen according to the positional relationship between the first touch location and the second touch location, and the scaling factor including:
  • the display content of the touch screen is enlarged according to the positional relationship; when the second touch position is located in the second display area, according to the positional relationship The display content of the touch screen is reduced.
  • the determining, according to a positional relationship between the first touch location and the second touch location, and the zooming multiple, to the touch screen The display content is also scaled to include:
  • the touch screen when the first difference and the second difference are both positive, the touch screen is The display content is enlarged; when the first difference value and the second difference value are both negative, the touch screen is Display content to zoom out; or,
  • the display content of the touch screen is enlarged; when the first difference value and the second difference value are both positive, The display content of the touch screen is reduced.
  • a fourth possible implementation manner of the first aspect when the first difference is positive and the second difference is negative, The display content of the touch screen is enlarged; when the first difference is negative and the second difference is positive, the display content of the touch screen is reduced; or
  • the display content of the touch screen is amplified; when the first difference is positive and the second difference is negative, The display content of the touch screen is reduced.
  • the positional relationship between the second touch positions and the zoom factor, and scaling the display content of the touch screen specifically includes:
  • the performing local scaling of the display content of the touch screen includes:
  • Distance determine the zoom factor including:
  • the zoom factor is directly determined according to the distance, and the correspondence between the distance and the zoom factor is preset.
  • the preset distance is to divide the first touch location and the second touch location into two The minimum distance between different locations.
  • the moment of receiving the first touch information and the moment of receiving the second touch information The time interval between them is less than the preset time.
  • an embodiment of the present invention provides a mobile device, including:
  • a receiving unit configured to receive first touch information, where the first touch information includes a first touch location
  • the receiving unit is further configured to receive second touch information, where the second touch information includes a second touch location;
  • a determining unit configured to determine a zoom factor according to a distance between the first touch location and the second touch location
  • a scaling unit configured to scale display content of the touch screen according to a positional relationship between the first touch location and the second touch location and the zoom factor.
  • the mobile device further includes:
  • a dividing unit configured to divide a display area of the touch screen into a first display area and a second display area according to the first touch position, where a boundary line between the first display area and the second display area passes First touch position; or, The dividing unit is further configured to divide the display area of the touch screen into four quadrants by using the first touch position as an origin, and to use two of the four quadrants as the first display area and the Said second display area;
  • the zooming unit is configured to: when the second touch location is located in the first display area, enlarge display content of the touch screen according to a positional relationship; when the second touch location is located in the second display In the area, the display content of the touch screen is reduced according to the positional relationship.
  • the scaling unit includes:
  • a difference determining subunit configured to determine, according to coordinates of the first touch location and coordinates of the second touch location, a first difference value and a second difference value, where the first difference value is the first touch a difference between an abscissa of the position and an abscissa of the second touch position, wherein the second difference is a difference between an ordinate of the first touch position and an ordinate of the second touch position;
  • a scaling subunit configured to scale display content of the touch screen according to the first difference value and the second difference value and the scaling factor.
  • the scaling subunit is specifically configured to:
  • the display content of the touch screen is enlarged; when the first difference value and the second difference value are both negative, The display content of the touch screen is reduced; or
  • the display content of the touch screen is enlarged; when the first difference value and the second difference value are both positive, The display content of the touch screen is reduced.
  • the scaling subunit is specifically configured to:
  • the display content of the touch screen is amplified; when the first difference is negative and the second difference is positive, Display on the touch screen Show the content to zoom out; or,
  • the display content of the touch screen is amplified; when the first difference is positive and the second difference is negative, The display content of the touch screen is reduced.
  • the scaling unit further includes:
  • An overall scaling sub-unit configured to perform overall scaling on the display content of the touch screen; or a local scaling sub-unit for locally scaling the display content of the touch screen.
  • the local scaling subunit is specifically configured to:
  • the determining unit includes:
  • a distance determining unit configured to determine the distance according to coordinates of the first touch location and coordinates of the second touch location
  • a multiple determination subunit configured to determine a ratio of the distance to a preset distance, determining the ratio as the zoom factor, the distance being greater than or equal to the preset distance;
  • the multiple determination subunit is further configured to directly determine the zoom factor according to the distance, and the correspondence between the distance and the zoom factor is preset.
  • the preset distance is to divide the first touch location and the second touch location into two The minimum distance between different locations.
  • the moment of receiving the first touch information and receiving the second touch The time interval between the moments of interest is less than the preset time.
  • the mobile device includes:
  • a display unit configured to display the display content after the scaling unit performs scaling.
  • the mobile device when the mobile device controls the touch screen display content to perform enlargement or reduction control, the processing process is complicated, and the reaction rate and work efficiency are lowered.
  • a touch screen display control method and a mobile device are provided in the embodiment of the present invention.
  • the mobile device receives two touch information of the user, and obtains a position of two touches; , determine the display content of the zoom touch screen, and determine the multiple of zoom in and out based on the distance between the two touch positions. In this way, the mobile device only needs to receive the signal of the touch position twice in order to complete the zoom control of the touch screen display content, the operation is convenient, the processing procedure is simple, and the working efficiency of the mobile device is improved.
  • FIG. 1 is a flowchart of a method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a display effect of a touch screen according to another embodiment of the present invention.
  • FIG. 9 and FIG. 10 are schematic structural diagrams of a mobile device according to another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a mobile device according to another embodiment of the present invention. detailed description
  • first, second, third, etc. may be used to describe touch information, touch locations, and display areas in embodiments of the present invention, such touch information, touch locations, and display areas should not be limited to these terms. These terms are only used to distinguish touch information, touch locations, and display areas from one another.
  • the first display area may also be referred to as a second display area without departing from the scope of the embodiments of the present invention.
  • the second display area may also be referred to as a first display area.
  • An embodiment of the present invention provides a method for controlling touch screen display of a mobile device, which is used in a mobile device. As shown in FIG. 1, the method includes:
  • the mobile device receives the first touch information.
  • the mobile device receives the first touch information according to the user touch indication, and the first touch information includes the first touch location.
  • the mobile device receives the second touch information.
  • the second touch information includes a second touch location.
  • the mobile device divides the display area of the touch screen into a first display area and a second display area according to the first touch position, the first display area and the first The dividing line of the two display areas passes through the first touch position; or, the mobile device divides the display area of the touch screen into four quadrants with the first touch position as an origin, and two of the four quadrants are respectively used as the first display The area and the second display area.
  • the mobile device determines a zoom factor according to a distance between the first touch location and the second touch location.
  • the mobile device determines a distance between the first touch location and the second touch location according to coordinates of the first touch location and coordinates of the second touch location; and then determines a ratio of a distance between the first touch location and the second touch location to a preset distance Determining the ratio as a zoom factor, the distance between the first touch location and the second touch location is greater than or equal to the preset distance; or determining the zoom factor directly according to the distance between the first touch location and the second touch location, the first touch location and the first
  • the correspondence between the distance of the two touch positions and the zoom factor is preset.
  • the preset distance is a minimum distance that the mobile device can distinguish the first touch location and the second touch location into two different locations.
  • the mobile device scales the display content of the touch screen according to the positional relationship between the first touch location and the second touch location and the zoom ratio.
  • the zoom content of the touch screen is scaled to indicate that the display content of the touch screen is enlarged or reduced.
  • the display content of the touch screen is enlarged according to the positional relationship; when the second touch position is located in the second display area, the display content of the touch screen is reduced according to the positional relationship.
  • the mobile device determines the first difference and the second difference according to the coordinates of the first touch position and the coordinates of the second touch position, where the first difference is the horizontal coordinate of the first touch position and the horizontal position of the second touch position. a difference between the coordinates, the second difference being a difference between the ordinate of the first touch position and the ordinate of the second touch position; according to the first difference and the second difference and the zoom factor,
  • the display content of the touch screen is scaled, and the specific process is as follows:
  • the display content of the touch screen is enlarged;
  • the difference value and the second difference are both positive, the display content of the touch screen is reduced; or, when the first difference is positive and the second difference is negative, the display content of the touch screen is enlarged;
  • the difference is negative and the second difference is positive, the display content of the touch screen is reduced; or, when the first difference is negative and the second difference is positive, the display content of the touch screen is enlarged;
  • the difference is positive and the second difference is negative, the display content of the touch screen is reduced.
  • the mobile device zooms the display content of the touch screen, including the display content of the touch screen, or locally zooms the display content of the touch screen.
  • the local zooming of the display content of the touch screen may be performed by scaling the circular display area with the preset length as the center of the first touch position or the second touch position as a center; or, for the first touch position or the second touch The position is centered and scaled with a closed graphic display area of preset length.
  • the time interval between the time when the mobile device receives the first touch information and the time when the second touch information is received is less than the preset time.
  • the mobile device needs to receive signals of two touch points at the same time, and detects changes of the two signals to control the enlargement or reduction of the display content of the touch screen.
  • the mobile device receives the two touch information of the user, and obtains the position of the two touches; according to the position of the two touches, determines the display content of the zoom touch screen, and according to the two touch positions The distance between them determines the multiple of the zoom.
  • a further embodiment of the present invention provides a method for controlling touch screen display of a mobile device, which is used for a mobile device, and the mobile phone of the touch screen is taken as an example. As shown in FIG. 2, the method includes:
  • the mobile phone receives the first touch information.
  • the corresponding touch sensor receives the touch information of the current time.
  • the location including the user's touch screen includes the coordinates of the location on the touch screen.
  • the mobile phone receives the second touch information.
  • the corresponding touch sensor receives the current touch information, including the location where the user touches the screen, and specifically includes the coordinates of the position on the touch screen.
  • the time interval between the moments when the touch screen is clicked twice needs to be less than the preset time, and the mobile phone does not perform the zoom for the two touches whose time interval is not less than the preset time. For example, if the preset time is 1 second, when the user zooms in or out on the content displayed on the touch screen, the interval between the two touch screens should be less than 1 second.
  • the mobile phone determines a first touch location corresponding to the first touch information and a second touch location corresponding to the second touch information.
  • the CPU Central Processing Unit
  • the CPU can obtain the coordinates of the touch position from the touch sensor, thereby determining the position of the two touches, which are respectively represented as the first touch position and the second Touch the location.
  • step 204 The mobile phone determines whether the first touch location and the second touch location are the same. If the first touch location and the second touch location are the same, step 205 is performed; otherwise, step 206 is performed.
  • step 205 is performed; if the coordinates of the two points are not the same, The secondary touch is not in the same location, and step 206 is performed.
  • the mobile phone enlarges or reduces the display content of the touch screen according to the current display state of the touch screen. For example, when the user touches the same location twice, the mobile phone determines the content of the operation according to the current state of the touch screen. If the touch screen is currently in the zoomed state, the mobile phone performs a zoom-out operation to reduce the content currently displayed on the touch screen to the original state; if the touch screen is currently in the reduced state, the mobile phone performs an enlargement operation to enlarge the content currently displayed on the touch screen to the original state; When the current state is in the original state, the mobile phone performs an enlargement operation to enlarge the content currently displayed on the touch screen to the maximum state. 206. The mobile phone calculates a distance between the first touch location and the second touch location.
  • the distance between the two touch positions can be calculated according to the two-point distance formula between the planes.
  • the coordinates of the first touch position are (a, b)
  • the coordinates of the second touch position are (c, d)
  • the distance is ( a - c) 2 + ( - i ) 2 .
  • the mobile phone determines a zoom factor according to the calculated distance.
  • the preset distance can be set in the mobile phone, and the preset distance is a minimum distance that divides the position of the first touch and the position of the second touch into two different positions, and the calculated distance is greater than or equal to the preset distance.
  • the ratio is the zoom factor when the touch screen content is enlarged or reduced.
  • the corresponding relationship between the distance of the touch position and the zoom factor may be preset in the mobile phone, and after calculating the distance between the two touch positions, the zoom ratio is directly determined according to the correspondence between the touch and the zoom multiple; or, the mobile phone After calculating the distance of the two touch positions, the ratio of the difference to the abscissa of the two touch positions, or the ratio of the difference between the ordinates of the two touch positions is determined, and the ratio is determined as the zoom factor.
  • the mobile phone divides the display area of the touch screen according to the first touch position.
  • the mobile phone determines a boundary line passing through the first touch position of the user according to the position of the first touch of the user, and the shape of the boundary line may be preset.
  • Demarcation line The two areas divided by the touch screen are defined as the enlarged area and the reduced area.
  • the dividing line is divided into two parts according to the position of the user's first touch, and a part of the dividing line corresponds to the enlarged area, and the other part of the dividing line corresponds to the reduced area.
  • the mobile phone can preset a virtual dividing line on the touch screen according to the usage habits of most users.
  • the dividing line determined after the first touch of the user has the same trend as the virtual dividing line.
  • line 2 is the set virtual boundary line
  • point 1 is the position where the user touches for the first time
  • line 1 is the boundary line of the passing point 1 determined by the mobile phone
  • the dividing line Parallel to the virtual dividing line.
  • the dividing line divides the touch screen into two parts.
  • the boundary is set.
  • the upper side of the line and the upper side of the point 1 on the boundary line are enlarged areas, and the left side of the boundary line and the lower side of the point 1 on the boundary line are reduced areas.
  • the mobile phone may further divide the display area of the touch screen into four quadrants by using the first touch position as an origin, and two of the four quadrants are respectively used as the first display area and the second display area.
  • the mobile phone determines, according to the area where the second touch location is located, the content of the operation to be performed.
  • the mobile phone After the mobile phone demarcates the boundary line, it determines the relationship between the position of the user's second touch and the boundary line, thereby determining the area where the second touch is located, and then determining according to the area where the second touch is located.
  • the operation content is performed, and step 212 is performed.
  • point 2 is the position of the second touch.
  • point 2 is on the boundary line, and is located on the upper side of point 1, according to the enlarged area and the reduced area determined in step 208, point 2 is in the enlarged area, then the mobile phone performs an amplification operation, step 212 is performed;
  • the point 2 is on the right side of the boundary line.
  • the point 2 is in the enlarged area, and then the mobile phone performs an amplification operation, and step 212 is performed; as shown in FIG. Point 2 is on the left side of the dividing line.
  • the mobile phone performs the zoom-out operation, and step 212 is performed.
  • step 207 the method described in step 210 and step 211 may also be performed to determine the content of the operation to be performed by the mobile phone.
  • the mobile phone calculates a difference between a difference between the first touch position and the abscissa of the second touch position and the ordinate.
  • the difference between the abscissa is calculated according to the abscissa of the first touch position and the abscissa of the second touch position, and the difference of the ordinate is calculated according to the ordinate of the first touch position and the ordinate of the second touch position.
  • the mobile phone determines, according to the calculated difference between the abscissa and the ordinate, the content of the operation to be performed.
  • the coordinates of the first touch position are (a, b), and the coordinates of the second touch position are (c, d), and the difference between the abscissa of the coordinates and the difference of the ordinate is calculated.
  • a - c ⁇ 0 i - t ⁇ 0 for the touch screen
  • the display content is enlarged; ac ⁇ 03-bd ⁇ 0 ⁇ , the display content of the touch screen is reduced; or, when ac ⁇ 0 and U ⁇ 0, the display content of the touch screen is reduced; ac ⁇ 03- Bd ⁇ 0 ⁇ , the display content of the touch screen is enlarged; or, when ac ⁇ 0 Hb-d>0, the display content of the touch screen is enlarged;
  • the mobile phone enlarges or reduces the display content of the touch screen according to the calculated zoom ratio and the determined operation content.
  • the mobile phone uses the ratio calculated in step 207 as a multiple of enlargement or reduction, and enlarges the display content of the touch screen according to the operation content determined in step 209 or step 211.
  • the enlargement or reduction of the display content of the touch screen by the mobile phone may be enlarged or reduced overall, or partially enlarged or reduced.
  • Partially enlarging or reducing the display content of the touch screen may be performed by zooming in or out with a circular display area having a radius of a preset length as a center of the first touch position or the second touch position, or a first touch position or The two touch positions are centered, and the display area of the closed figure whose preset length is the circumference is enlarged or reduced.
  • 1 is the state when the original display is displayed on the screen of the mobile phone, and 2 is the state in which the display content of the touch screen is enlarged as a whole; as shown in FIG. 8, 1 is the state when the original display on the screen of the mobile phone, 3 is a state in which the display content of the touch screen of the mobile phone is partially enlarged.
  • the mobile phone needs to receive signals of two touch points at the same time, and detects changes of the two signals to control the enlargement or reduction of the display content of the touch screen.
  • the mobile phone receives the user's two touch information, and obtains the position of the two touches; according to the position of the two touches, determines to enlarge or reduce the display content of the touch screen, and according to the two touches.
  • the distance between the positions determines the multiple of magnification and reduction.
  • a further embodiment of the present invention provides a mobile device 30 for touch screen display control. As shown in FIG. 9, the mobile device 30 includes:
  • the receiving unit 31 is configured to receive first touch information, where the first touch information includes a first touch location;
  • the receiving unit 31 is further configured to receive second touch information, where the second touch information includes a second touch location;
  • a determining unit 32 configured to determine a zoom factor according to a distance between the first touch location and the second touch location
  • the scaling unit 33 is configured to scale the display content of the touch screen according to the positional relationship between the first touch location and the second touch location and the zoom factor.
  • the mobile device 30 further includes:
  • a dividing unit 34 configured to divide the display area of the touch screen into a first display area and a second display area according to the first touch position, where a boundary line between the first display area and the second display area passes through Said first touch location;
  • the dividing unit 34 is further configured to divide the display area of the touch screen into four quadrants by using the first touch position as an origin, and to use two of the four quadrants as the first display area and The second display area;
  • the zooming unit 33 is specifically configured to: when the second touch position is located in the first display area, enlarge display content of the touch screen according to a positional relationship; when the second touch position is located in the second When the area is displayed, the display content of the touch screen is reduced according to the positional relationship.
  • the scaling unit 33 includes:
  • a difference determining subunit 331 configured to determine, according to coordinates of the first touch location and coordinates of the second touch location, a first difference value and a second difference value, where the first difference value is the first Touch location a difference between an abscissa and an abscissa of the second touch position, wherein the second difference is a difference between an ordinate of the first touch position and an ordinate of the second touch position;
  • the scaling subunit 332 is configured to scale the display content of the touch screen according to the first difference value and the second difference value and the scaling factor.
  • scaling subunit 332 is specifically configured to:
  • the display content of the touch screen is enlarged; when the first difference value and the second difference value are both negative, The display content of the touch screen is reduced; or
  • the display content of the touch screen is enlarged; when the first difference value and the second difference value are both positive, The display content of the touch screen is reduced.
  • scaling subunit 332 is specifically configured to:
  • the display content of the touch screen is amplified; when the first difference is negative and the second difference is positive,shrinking the display content of the touch screen; or
  • the display content of the touch screen is amplified; when the first difference is positive and the second difference is negative, The display content of the touch screen is reduced.
  • the scaling unit 33 further includes:
  • the overall scaling sub-unit 333 is configured to perform overall scaling on the display content of the touch screen; or the local scaling sub-unit 334 is configured to locally zoom the display content of the touch screen.
  • the local scaling sub-unit 334 is specifically configured to:
  • the determining unit 32 includes: a distance determining unit 321 , configured to determine the distance according to coordinates of the first touch location and coordinates of the second touch location;
  • the multiple determination sub-unit 322 is configured to determine a ratio of the distance to a preset distance, and determine the ratio as the zoom factor, where the distance is greater than or equal to the preset distance; or
  • the multiple determination sub-unit 322 is further configured to directly determine the zoom factor according to the distance, and the correspondence between the distance and the zoom factor is preset.
  • the mobile device 30 further includes:
  • the display unit 35 is configured to display the displayed content after the scaling unit 33 performs scaling.
  • the preset distance is a minimum distance that divides the first touch location and the second touch location into two different locations.
  • the time interval between the time at which the first touch information is received and the time at which the second touch information is received is less than a preset time.
  • the mobile device needs to receive signals of two touch points at the same time, and detects changes of the two signals to control the enlargement or reduction of the display content of the touch screen.
  • the mobile device 30 receives the two touch information of the user, and obtains the position of the two touches; according to the position of the two touches, determines to enlarge or reduce the display content of the touch screen, and according to the Touch the distance between the positions to determine the multiple of zoom in and out.
  • the mobile device 30 only needs to sequentially receive the signal of the touch position, and can complete the zoom-in or zoom-out control of the touch screen display content, the operation is convenient, the processing procedure is simple, and the working efficiency of the mobile device 30 is improved.
  • Another embodiment of the present invention provides a mobile device for touch screen display control. The present invention is specifically described by taking a mobile phone as an example in this embodiment.
  • the illustrated mobile phone 40 is merely one example of a mobile device, and that the mobile phone 40 may have more or fewer components than those shown in FIG. 11, two or more components may be combined, or Can have different component configurations.
  • the various components shown in Figure 11 can include one Hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • FIG. 11 is a schematic structural diagram of an embodiment of a mobile phone for processing a message according to the present invention.
  • the handset includes a memory 41, a CPU 42, a power management chip 43, an I/O (Input/Output) subsystem 44, and a peripheral interface 45, which are connected through one or more communication buses or Signal line 46 is in communication.
  • I/O Input/Output
  • the mobile phone provided in this embodiment is only one example of a mobile device, and the mobile device according to the embodiment of the present invention may have more or less components than those shown in FIG. Multiple components, or different component configurations or arrangements, may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the memory 41 may be accessed by the CPU 42 or the like, and the memory 41 may include a high speed random access memory, and may further include a nonvolatile memory such as one or more magnetic disk storage devices, flash memory devices, or other volatiles. Solid state storage devices.
  • I/O Subsystem 44 The I/O subsystem 44 can connect input and output peripherals on the device, such as touch screen 47, to peripheral interface 45. I/O subsystem 44 may include display controller 441.
  • the touch screen 47 is an input interface and an output interface between the mobile device and the user, and the user's indication can be received in the form of a touch, and the visual output is displayed to the user.
  • the display controller 441 in the I/O subsystem 44 receives an electrical signal from the touch screen 47 or transmits an electrical signal to the touch screen 47.
  • the touch screen 47 detects the contact on the touch screen, and the display controller 441 converts the detected contact into an interaction with the user interface object displayed on the touch screen 47, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 47 can be operated. Game icons, networking icons to the corresponding network, etc.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the touch screen 47 receives first touch information including a first touch location, the second touch information including a second touch location, and the I/O subsystem 44 and the peripheral interface 45 to the first touch
  • the information and the second touch information are transmitted to the CPU 42; the CPU 42 determines the zoom factor according to the distance between the first touch position and the second touch position; and according to the positional relationship between the first touch position and the second touch position and the zoom In multiples, the display content of the touch screen 47 is scaled.
  • the preset distance is a minimum distance that divides the first touch location and the second touch location into two different locations.
  • the time interval between the time at which the first touch information is received and the time at which the second touch information is received is less than a preset time.
  • the CPU 42 divides the display area of the touch screen 47 into a first display area and a second display area according to the first touch position included in the first touch information received by the touch screen 47, and the first display area and the second display area.
  • the dividing line passes the first touch position; or, the CPU 42 divides the display area of the touch screen 47 into four quadrants with the first touch position as the origin, and two of the four quadrants are respectively used as the first display area and the second display. region.
  • the CPU 42 When the second touch position is located in the first display area, the CPU 42 enlarges the display content of the touch screen according to the positional relationship; when the second touch position is located in the second display area, the CPU 42 refers to the touch screen according to the positional relationship. Display content to zoom out.
  • the CPU 42 determines the first difference value and the second difference value according to the coordinates of the first touch position and the coordinates of the second touch position, where the first difference is the abscissa of the first touch position and the abscissa of the second touch position. a difference, the second difference being a difference between the ordinate of the first touch position and the ordinate of the second touch position; the CPU 42 displaying the content of the touch screen 47 according to the first difference value and the second difference value and the zoom factor Zoom in.
  • the CPU 42 enlarges the display content of the touch screen 47; when the first difference value and the second difference value are both negative, the CPU 42 refers to the touch screen 47.
  • the display content is zoomed out; or, when the first difference value and the second difference value are both negative, the CPU 42 enlarges the display content of the touch screen 47; when the first difference value and the second difference value are both positive, the CPU 42 touches the touch screen.
  • the display content of 47 is reduced.
  • the CPU 42 enlarges the display content of the touch screen 47; when the first difference is negative and the second difference is positive, the CPU 42 touches the touch screen 47.
  • the display content is reduced; or, when the first difference is negative and the second difference is positive, the CPU 42 enlarges the display content of the touch screen 47; when the first difference is positive and the second difference is negative, the CPU 42 The display content of the touch screen 47 is reduced.
  • the CPU 42 performs overall scaling on the display content of the touch screen 47; or, the CPU 42 locally zooms the display content of the touch screen 47.
  • the CPU 42 zooms in a circular display area with a preset length as a center centered on the first touch position or the second touch position; or the CPU 42 pairs the first touch position or the second The touch position is centered, and the display area of the closed figure whose preset length is the circumference is scaled.
  • the CPU 42 determines the distance according to the coordinates of the first touch location and the coordinates of the second touch location.
  • the CPU 42 determines a ratio of the distance to the preset distance, and determines the ratio as a zoom factor, where the distance is greater than or equal to the preset distance.
  • the CPU 42 directly determines the zoom factor according to the distance, and the correspondence between the distance and the zoom factor is set up.
  • the CPU 42 may specifically be a Pentium series processor or an Itanium processor manufactured by Intel Corporation.
  • the mobile device includes, but is not limited to, a mobile communication device such as a mobile phone, a personal digital assistant (PDA), and a tablet computer.
  • a mobile communication device such as a mobile phone, a personal digital assistant (PDA), and a tablet computer.
  • PDA personal digital assistant
  • the mobile phone needs to receive signals of two touch points at the same time, and detects changes of the two signals to control the enlargement or reduction of the display content of the touch screen.
  • the mobile phone 40 receives the user's two touch information, and obtains the position of the two touches; according to the position of the two touches, determines the display content of the zoomed touch screen, and according to the two touch positions. The distance between them determines the multiple of the zoom.
  • the invention solves the problem that the mobile phone controls the touch screen display content in the prior art When the control is large or reduced, the processing is complicated, and the reaction rate and work efficiency are lowered.
  • the mobile phone 40 only needs to receive the signal of the touch position in sequence, and can complete the zoom-in or zoom-out control of the touch screen display content, the operation is convenient, the processing procedure is simple, and the working efficiency of the mobile phone 40 is improved.
  • the mobile device of the touch screen display control may implement the foregoing method embodiment.
  • a method and a mobile device for controlling touch screen display according to an embodiment of the present invention may be applied to a mobile device, but are not limited thereto.
  • the various embodiments in the specification are described in a progressive manner, and the same or similar parts of the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory or a random access memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

 本发明实施例公开了一种触摸屏显示控制方法及移动设备,涉及电子设备技术领域,使移动设备能够根据接收的两次触摸信息,控制触摸屏显示内容放大或缩小。本发明的方法包括:接收第一触摸信息,所述第一触摸信息包括第一触摸位置;接收第二触摸信息,所述第二触摸信息包括第二触摸位置;根据所述第一触摸位置与所述第二触摸位置之间的距离,确定缩放倍数;根据所述第一触摸位置与所述第二触摸位置之间的位置关系以及所述缩放倍数,对所述触摸屏的显示内容进行缩放。本发明适用于移动设备。

Description

触摸屏显示控制的方法及移动设备 技术领域
本发明涉及移动设备技术领域, 尤其涉及一种触摸屏显示控制的方法及 移动设备。 背景技术
目前, 使用触摸屏的移动设备(例如手机、 平板电脑等)越来越多, 人 们在使用这些移动设备查看图片或地图等内容时, 经常需要将其放大或者缩 小以方便查看。 当人们需要移动设备执行放大或者缩小功能时, 通常釆用的 方法是, 将两个手指放置在触控触摸屏上, 移动设备同时接收两个触摸点的 信号, 根据这两个触摸点的信号移动方向的变化来放大或缩小触摸屏显示的 内容, 并通过两个触摸点信号移动的距离来控制放大或者缩小的倍数。
现有技术中至少存在如下问题: 上述方案中, 通过移动设备同时接收的 两个触摸点信号的变化, 控制触摸屏显示内容的放大或者缩小, 以及放大或 者缩小的倍数。 但是, 在对触摸屏显示内容进行放大或缩小控制时, 移动设 备需要同时接收两个触摸点的信号, 且检测两个信号的变化情况, 处理过程 复杂, 降低了移动设备的工作效率。
发明内容
本发明的实施例提供一种触摸屏显示控制的方法及移动设备, 能够解决 移动设备控制触摸屏显示内容进行放大或缩小控制时, 处理过程复杂, 工作 效率降低的问题。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 本发明的实施例提供一种移动设备的触摸屏显示控制的方法, 包括:
接收第一触摸信息, 所述第一触摸信息包括第一触摸位置;
接收第二触摸信息, 所述第二触摸信息包括第二触摸位置;
根据所述第一触摸位置与所述第二触摸位置之间的距离, 确定缩放倍数; 根据所述第一触摸位置与所述第二触摸位置之间的位置关系以及所述缩 放倍数, 对所述触摸屏的显示内容进行缩放。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述接收第二 触摸信息之前, 所述方法还包括:
根据所述第一触摸位置将所述触摸屏的显示区域划分为第一显示区域和 第二显示区域, 所述第一显示区域和所述第二显示区域的分界线经过所述第 一触摸位置; 或者,
以所述第一触摸位置为原点将所述触摸屏的显示区域划分为四个象限, 将所述四个象限中的两个象限分别作为所述第一显示区域和所述第二显示区 域;
则所述根据所述第一触摸位置与所述第二触摸位置之间的位置关系以及 所述缩放倍数, 对所述触摸屏的显示内容进行缩放, 包括:
当所述第二触摸位置位于所述第一显示区域时, 根据位置关系对所述触 摸屏的显示内容进行放大; 当所述第二触摸位置位于所述第二显示区域时, 根据位置关系对所述触摸屏的显示内容进行缩小。
结合第一方面, 在第一方面的第二种可能的实现方式中, 所述根据所述 第一触摸位置与所述第二触摸位置之间的位置关系以及所述缩放倍数, 对所 述触摸屏的显示内容进行缩放还包括:
根据所述第一触摸位置的坐标与所述第二触摸位置的坐标, 确定第一差 值和第二差值, 所述第一差值为所述第一触摸位置的横坐标与所述第二触摸 位置的横坐标的差值, 所述第二差值为所述第一触摸位置的纵坐标与所述第 二触摸位置的纵坐标的差值;
根据所述第一差值和所述第二差值及所述缩放倍数, 对所述触摸屏的显 示内容进行缩放。
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实 现方式中, 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示 内容进行放大; 当所述第一差值和所述第二差值均为负时, 对所述触摸屏的 显示内容进行缩小; 或者,
当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内 容进行缩小。
结合第一方面的第二种可能的实现方式, 在第一方面的第四种可能的实 现方式中, 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显 示内容进行放大; 当所述第一差值为负且所述第二差值为正时, 对所述触摸 屏的显示内容进行缩小; 或者,
当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内容 进行放大; 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显 示内容进行缩小。
结合第一方面的第一种可能的实现方式或第一方面的第二种可能的实现 方式, 在第一方面的第五种可能的实现方式中, 所述根据所述第一触摸位置 与所述第二触摸位置之间的位置关系以及所述缩放倍数, 对所述触摸屏的显 示内容进行缩放具体包括:
对所述触摸屏的显示内容进行整体缩放; 或者,
对所述触摸屏的显示内容进行局部缩放。
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实 现方式中, 所述对所述触摸屏的显示内容进行局部缩放具体包括:
对以所述第一触摸位置或所述第二触摸位置为圓心, 以预设长度为半径 的圓形显示区域进行放大或缩小; 或者, 对以所述第一触摸位置或所述第二 触摸位置为中心, 以预设长度为周长的封闭图形的显示区域进行缩放。
结合第一方面或第一方面的任一种可能的实现方式, 在第一方面的第七 种可能的实现方式中, 所述根据所述第一触摸位置与所述第二触摸位置之间 的距离, 确定缩放倍数包括:
根据所述第一触摸位置的坐标与所述第二触摸位置的坐标确定所述距 离;
确定所述距离与预设距离的比值, 将所述比值确定为所述缩放倍数, 所 述距离大于等于所述预设距离; 或者,
根据所述距离直接确定所述缩放倍数, 所述距离与所述缩放倍数的对应 关系为预先设定。
结合第一方面的第七种可能的实现方式, 在第一方面的第八种可能的实 现方式中, 所述预设距离为将所述第一触摸位置和所述第二触摸位置区分成 两个不同位置的最小距离。
结合第一方面或第一方面的任一种可能的实现方式, 在第一方面的第九 种可能的实现方式中, 接收所述第一触摸信息的时刻与接收所述第二触摸信 息的时刻之间的时间间隔小于预设时间。
第二方面, 本发明的实施例提供一种移动设备, 包括:
接收单元, 用于接收第一触摸信息, 所述第一触摸信息包括第一触摸位 置;
所述接收单元还用于接收第二触摸信息, 所述第二触摸信息包括第二触 摸位置;
确定单元, 用于根据所述第一触摸位置与所述第二触摸位置之间的距离, 确定缩放倍数;
缩放单元, 用于根据所述第一触摸位置与所述第二触摸位置之间的位置 关系以及所述缩放倍数, 对所述触摸屏的显示内容进行缩放。
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述移动设备 还包括:
划分单元, 用于根据所述第一触摸位置将所述触摸屏的显示区域划分为 第一显示区域和第二显示区域, 所述第一显示区域和所述第二显示区域的分 界线经过所述第一触摸位置; 或者, 所述划分单元还用于以所述第一触摸位置为原点将所述触摸屏的显示区 域划分为四个象限, 将所述四个象限中的两个象限分别作为所述第一显示区 域和所述第二显示区域;
则所述缩放单元具体用于当所述第二触摸位置位于所述第一显示区域 时, 根据位置关系对所述触摸屏的显示内容进行放大; 当所述第二触摸位置 位于所述第二显示区域时, 根据位置关系对所述触摸屏的显示内容进行缩小。
结合第二方面, 在第二方面的第二种可能的实现方式中, 所述缩放单元 包括:
差值确定子单元, 用于根据所述第一触摸位置的坐标与所述第二触摸位 置的坐标, 确定第一差值和第二差值, 所述第一差值为所述第一触摸位置的 横坐标与所述第二触摸位置的横坐标的差值, 所述第二差值为所述第一触摸 位置的纵坐标与所述第二触摸位置的纵坐标的差值;
缩放子单元, 用于根据所述第一差值和所述第二差值及所述缩放倍数, 对所述触摸屏的显示内容进行缩放。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的实 现方式中, 所述缩放子单元具体用于:
当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内 容进行缩小; 或者,
当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内 容进行缩小。
结合第二方面的第二种可能的实现方式, 在第二方面的第四种可能的实 现方式中, 所述缩放子单元具体用于:
当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内容 进行放大; 当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显 示内容进行缩小; 或者,
当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内容 进行放大; 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显 示内容进行缩小。
结合第二方面的第一种可能的实现方式或第二方面的第二种可能的实现 方式, 第二方面的第五种可能的实现方式中, 所述缩放单元还包括:
整体缩放子单元, 用于对所述触摸屏的显示内容进行整体缩放; 或者, 局部缩放子单元, 用于对所述触摸屏的显示内容进行局部缩放。
结合第二方面的第五种可能的实现方式, 在第二方面的第六种可能的实 现方式中, 所述局部缩放子单元具体用于:
对以所述第一触摸位置或所述第二触摸位置为圓心, 以预设长度为半径 的圓形显示区域进行放大或缩小; 或者, 对以所述第一触摸位置或所述第二 触摸位置为中心, 以预设长度为周长的封闭图形的显示区域进行缩放。
结合第二方面或第二方面的任一种可能的实现方式, 在第二方面的第七 种可能的实现方式中, 所述确定单元包括:
距离确定子单元, 用于根据所述第一触摸位置的坐标与所述第二触摸位 置的坐标确定所述距离;
倍数确定子单元, 用于确定所述距离与预设距离的比值, 将所述比值确 定为所述缩放倍数, 所述距离大于等于所述预设距离; 或者,
所述倍数确定子单元还用于根据所述距离直接确定所述缩放倍数, 所述 距离与所述缩放倍数的对应关系为预先设定。
结合第二方面的第七种可能的实现方式, 在第二方面的第八种可能的实 现方式中, 所述预设距离为将所述第一触摸位置和所述第二触摸位置区分成 两个不同位置的最小距离。
结合第二方面或第二方面的任一种可能的实现方式, 在第二方面的第九 种可能的实现方式中, 接收所述第一触摸信息的时刻与接收所述第二触摸信 息的时刻之间的时间间隔小于预设时间。
结合第二方面, 在第二方面的第十种可能的实现方式中, 所述移动设备 包括:
显示单元, 用于显示所述缩放单元进行缩放后的所述显示内容。
现有技术中, 移动设备控制触摸屏显示内容进行放大或缩小控制时, 处 理过程复杂, 反应速率和工作效率降低。 与现有技术相比, 本发明实施例提 供的一种触摸屏显示控制的方法及移动设备, 本发明中移动设备接收用户的 两次触摸信息, 得出两次触摸的位置; 根据两次触摸的位置, 确定缩放触摸 屏的显示内容, 以及根据两次触摸位置之间的距离, 确定放大与缩小的倍数。 如此, 移动设备只需依次接收两次触摸位置的信号, 即可完成对触摸屏显示 内容缩放控制, 操作方便, 处理过程简单, 提高了移动设备工作效率。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例中所需 要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其它的附图。
图 1为本发明一实施例提供的方法流程图;
图 2为本发明又一实施例提供的方法流程图;
图 3为本发明又一实施例提供的触摸屏显示效果示意图;
图 4为本发明又一实施例提供的触摸屏显示效果示意图;
图 5为本发明又一实施例提供的触摸屏显示效果示意图;
图 6为本发明又一实施例提供的触摸屏显示效果示意图;
图 7为本发明又一实施例提供的触摸屏显示效果示意图;
图 8为本发明又一实施例提供的触摸屏显示效果示意图;
图 9、 图 10为本发明又一实施例提供的移动设备结构示意图;
图 11为本发明又一实施例提供的移动设备结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例 , 都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的, 而非 旨在限制本发明。 在本发明实施例和所附权利要求书中所使用的单数形式的 "一种"、 "所述" 和 "该" 也旨在包括多数形式, 除非上下文清楚地表示其 他含义。 还应当理解, 本文中使用的术语 "和 /或" 是指并包含一个或多个相 关联的列出项目的任何或所有可能组合。
应当理解, 尽管在本发明实施例中可能釆用术语第一、 第二、 第三等来 描述触摸信息、 触摸位置和显示区域, 但这些触摸信息、 触摸位置和显示区 域不应限于这些术语。 这些术语仅用来将触摸信息、 触摸位置和显示区域彼 此区分开。 例如, 在不脱离本发明实施例范围的情况下, 第一显示区域也可 以被称为第二显示区域, 类似地, 第二显示区域也可以被称为第一显示区域。
取决于语境, 如在此所使用的词语 "在 ... ...时" 或 "当 ... ...时" 可以被 解释成为 "如果"。 类似地, 取决于语境, 短语 "当确定时" 可以被解释成 为 "如果确定"。
本发明一实施例提供一种移动设备的触摸屏显示控制的方法, 用于移动 设备, 如图 1所示, 所述方法包括:
101、 移动设备接收第一触摸信息。
其中, 移动设备根据用户触摸指示, 接收第一触摸信息, 第一触摸信息 包括第一触摸位置。
102、 移动设备接收第二触摸信息。
其中, 第二触摸信息包括第二触摸位置。 移动设备根据第一触摸位置将 触摸屏的显示区域划分为第一显示区域和第二显示区域, 第一显示区域和第 二显示区域的分界线经过第一触摸位置; 或者, 移动设备以第一触摸位置为 原点将触摸屏的显示区域划分为四个象限, 将所述四个象限中的两个象限分 别作为第一显示区域和第二显示区域。
103、 移动设备根据第一触摸位置与第二触摸位置之间的距离, 确定缩放 倍数。
其中, 移动设备根据第一触摸位置的坐标与第二触摸位置的坐标确定第 一触摸位置与第二触摸位置的距离; 然后确定第一触摸位置与第二触摸位置 的距离与预设距离的比值, 将比值确定为缩放倍数, 第一触摸位置与第二触 摸位置的距离大于等于预设距离; 或者, 根据第一触摸位置与第二触摸位置 的距离直接确定缩放倍数, 第一触摸位置与第二触摸位置的距离与缩放倍数 的对应关系为预先设定。 预设距离为移动设备可以将第一触摸位置和第二触 摸位置区分成两个不同位置的最小距离。
104、 移动设备根据第一触摸位置与第二触摸位置之间的位置关系以及缩 放倍数, 对触摸屏的显示内容进行缩放。
其中, 对触摸屏的显示内容进行缩放, 表示放大或缩小触摸屏的显示内 容。 当第二触摸位置位于第一显示区域时, 根据位置关系对触摸屏的显示内 容进行放大; 当第二触摸位置位于第二显示区域时, 根据位置关系对触摸屏 的显示内容进行缩小。
可选的, 移动设备根据第一触摸位置的坐标与第二触摸位置的坐标确定 第一差值和第二差值, 第一差值为第一触摸位置的横坐标与第二触摸位置的 横坐标的差值, 第二差值为第一触摸位置的纵坐标与第二触摸位置的纵坐标 的差值; 根据所述第一差值和所述第二差值及所述缩放倍数, 对所述触摸屏 的显示内容进行缩放, 具体过程如下所述:
当第一差值和第二差值均为正时, 对触摸屏的显示内容进行放大; 当第 一差值和第二差值均为负时, 对触摸屏的显示内容进行缩小; 或者,
当第一差值和第二差值均为负时, 对触摸屏的显示内容进行放大; 当第 一差值和第二差值均为正时, 对触摸屏的显示内容进行缩小; 或者, 当第一差值为正且第二差值为负时, 对触摸屏的显示内容进行放大; 当 第一差值为负且第二差值为正时, 对触摸屏的显示内容进行缩小; 或者, 当第一差值为负且第二差值为正时, 对触摸屏的显示内容进行放大; 当 第一差值为正且第二差值为负时, 对触摸屏的显示内容进行缩小。
可选的, 移动设备对触摸屏的显示内容进行缩放包括触摸屏的显示内容 进行整体缩放, 或者对触摸屏的显示内容进行局部缩放。 对触摸屏的显示内 容进行局部缩放可以是对以第一触摸位置或第二触摸位置为圓心, 以预设长 度为半径的圓形显示区域进行缩放; 或者, 对以第一触摸位置或第二触摸位 置为中心, 以预设长度为周长的封闭图形显示区域进行缩放。
需要说明的是, 移动设备接收第一触摸信息的时刻与接收第二触摸信息 的时刻之间的时间间隔小于预设时间。
现有技术中, 移动设备需要同时接收两个触摸点的信号, 且检测两个信 号的变化情况, 来控制触摸屏显示内容的放大或者缩小。 与现有技术相比, 本发明实施例中移动设备接收用户的两次触摸信息, 得出两次触摸的位置; 根据两次触摸的位置, 确定缩放触摸屏的显示内容, 以及根据两次触摸位置 之间的距离, 确定缩放的倍数。 解决了现有技术中移动设备控制触摸屏显示 内容进行缩放控制时, 处理过程复杂, 工作效率降低的问题。 通过解决上述 技术问题, 移动设备只需依次接收两次触摸位置的信号, 即可完成对触摸屏 显示内容放大或缩小控制, 操作方便, 处理过程简单, 提高了移动设备的工 作效率。 本发明又一实施例提供一种移动设备的触摸屏显示控制的方法, 用于移 动设备, 以触摸屏的手机为例, 如图 2所示, 所述方法包括:
201、 手机接收第一触摸信息。
例如, 用户点击触摸屏后, 对应的触摸传感器接收到本次的触摸信息, 包括用户触摸屏幕的位置, 具体包括该位置在触摸屏上的坐标。
202、 手机接收第二触摸信息。
例如, 用户点击触摸屏后, 对应的触摸传感器接收到本次的触摸信息, 包括用户触摸屏幕的位置, 具体包括该位置在触摸屏上的坐标。
需要说明的是, 用户需要缩放屏幕显示内容时, 通过两次触摸手机触摸 屏实现。 其中, 两次点击触摸屏的时刻之间的时间间隔需要小于预设时间, 手机对时间间隔不小于预设时间的两次触摸不执行缩放。 例如, 预设时间为 1 秒, 则用户在放大或者缩小触摸屏显示的内容时, 两次点击触摸屏的时刻之 间的间隔应小于 1秒。
203、 手机确定第一触摸信息对应的第一触摸位置和第二触摸信息对应的 第二触摸位置。
其中, 在用户两次点击触摸屏后, 手机 CPU(Central Processing Unit, 中央 处理器:)可以从触摸传感器获取触摸位置的坐标, 从而确定两次触摸的位置, 分别表示为第一触摸位置和第二触摸位置。
204、 手机判断第一触摸位置和第二触摸位置是否相同, 若第一触摸位置 和第二触摸位置相同, 执行步骤 205; 否则, 执行步骤 206。
例如, 在 CPU获取用户两次触摸位置的坐标后, 判断两点坐标是否相同, 如果两点坐标相同, 则表示两次触摸在同一位置, 执行步骤 205; 如果两点坐 标不相同, 则表示两次触摸不在同一位置, 执行步骤 206。
205、手机根据触摸屏当前的显示状态,放大或者缩小触摸屏的显示内容。 例如, 用户两次触摸在同一位置时, 手机根据触摸屏当前的状态, 确定 执行的操作内容。 如果触摸屏当前处于放大状态, 则手机进行缩小操作, 将 触摸屏当前显示的内容缩小到原始状态; 如果触摸屏当前处于缩小状态, 则 手机进行放大操作, 将触摸屏当前显示的内容放大到原始状态; 如果触摸屏 当前处于原始状态, 则手机进行放大操作, 将触摸屏当前显示的内容放大到 最大状态。 206、 手机计算第一触摸位置和第二触摸位置之间的距离。
其中, 手机在获得两次触摸位置的坐标后, 可以根据平面间两点距离公 式来计算两次触摸位置之间的距离。 例如, 第一次触摸位置的坐标为(a, b ) , 第二次触摸位置的坐标为 (c, d ), 则距离为 (a - c)2 + ( - i )2
207、 手机根据计算的距离确定缩放倍数。
需要说明的是, 手机中可以设置预设距离, 预设距离为将第一次触摸的 位置和第二次触摸的位置区分成两个不同位置的最小距离, 计算的距离大于 等于预设距离。
其中, 手机在计算出两次触摸位置的距离后, 计算其与预设距离的比值, 则得出的比值即为对触摸屏内容放大或者缩小时的缩放倍数。
可选的, 手机中可以预先设定两次触摸位置的距离与缩放倍数的对应关 系, 在计算出两次触摸位置的距离后, 根据其与缩放倍数的对应关系直接确 定缩放倍数; 或者, 手机在计算出两次触摸位置的距离后, 确定其与两次触 摸位置的横坐标的比值, 或者其与两次触摸位置的纵坐标差值的比值, 将此 比值确定为缩放倍数。
208、 手机根据第一触摸位置对触摸屏的显示区域进行划分。
其中, 手机根据用户的第一次触摸的位置, 在触摸屏的显示区域确定一 条经过用户第一次触摸位置的分界线, 分界线的形状可以预先设置。 分界线 把触摸屏划分的两个区域, 分别定为放大区域和缩小区域。 分界线根据用户 第一次触摸的位置, 分为两部分, 将其中一部分分界线对应到放大区域, 另 一部分分界线对应到缩小区域。
可选的, 手机可以预先根据大部分用户的使用习惯, 在触摸屏上设置虚 拟分界线。 在用户第一次触摸后确定的分界线与虚拟分界线的变化趋势相同。
例如, 在如图 3所示的为触摸屏手机的屏幕, 线 2为设置的虚拟分界线, 点 1为用户第一次触摸的位置, 线 1为手机确定的经过点 1的分界线, 分界线与 虚拟分界线平行。 分界线将触摸屏分为两部分, 本发明实施例中, 设定分界 线的右侧和分界线上点 1的上侧为放大区域, 分界线的左侧和分界线上点 1的 下侧为缩小区域。
可选的, 手机还可以以第一触摸位置为原点将触摸屏的显示区域划分为 四个象限, 将四个象限中的两个象限分别作为第一显示区域和第二显示区域。
209、 手机根据第二触摸位置所在的区域确定要执行的操作内容。
其中, 手机在划定分界线后, 判断用户第二次触摸的位置与分界线的关 系, 从而判断第二次触摸的位置所在的区域, 然后, 根据第二次触摸的位置 所在的区域确定要执行的操作内容, 执行步骤 212。
例如, 在如图 4所示为触摸屏手机的屏幕, 点 2为第二次触摸的位置。 由 图 4所示, 点 2在分界线上, 且位于点 1的上侧, 根据步骤 208中确定的放大区 域和缩小区域可知, 点 2在放大区域, 则手机进行放大操作, 执行步骤 212; 如图 5所示, 点 2在分界线的右侧, 根据步骤 208中确定的放大区域和缩小区域 可知, 点 2在放大区域, 则手机进行放大操作, 执行步骤 212; 如图 6所示, 点 2在分界线的左侧, 根据步骤 208中确定的放大区域和缩小区域可知, 点 2在缩 小区域, 则手机进行缩小操作, 执行步骤 212。
可选的, 在步骤 207计算出缩放倍数后, 还可以执行步骤 210和步骤 211所 述的方法来确定手机要执行的操作内容。
210、 手机计算第一触摸位置与第二触摸位置的横坐标的差值和纵坐标的 差值。
其中, 根据第一触摸位置的横坐标与第二触摸位置的横坐标计算横坐标 的差值, 根据第一触摸位置的纵坐标与第二触摸位置的纵坐标计算纵坐标的 差值。
211、 手机根据计算的横坐标的差值和纵坐标的差值确定要执行的操作内 容。
例如, 第一触摸位置的坐标为 (a, b ), 第二触摸位置的坐标为 (c , d ), 计算坐标的横坐标的差值和纵坐标的差值。 当 a - c≥0 i - t≥0时, 对触摸屏 的显示内容进行放大操作; a-c≤03-b-d<0^, 对触摸屏的显示内容进行 缩小操作; 或者, 当 a-c≥0且 U≥0时, 对触摸屏的显示内容进行缩小操作; a-c≤03-b-d<0^, 对触摸屏的显示内容进行放大操作; 或者, 当 a-c <0 Hb-d>0 ,对所述触摸屏的显示内容进行放大操作;
Figure imgf000016_0001
对触摸屏的显示内容进行缩小操作; 或者, 当。 -c>0J -i <0时, 对所述触 摸屏的显示内容进行放大操作; a-c<03.b-d>0^, 对触摸屏的显示内容 进行缩小操作。
212、 手机根据计算的放缩倍数和已经确定的操作内容, 放大或者缩小触 摸屏的显示内容。
其中, 手机将步骤 207中计算的比值作为放大或者缩小的倍数, 根据步骤 209或者步骤 211中确定的操作内容放大触摸屏的显示内容。
可选的, 手机对触摸屏的显示内容进行放大或者缩小可以是整体放大或 者缩小, 或者局部放大或者缩小。 对触摸屏的显示内容进行局部放大或者缩 小可以对以第一触摸位置或第二触摸位置为圓心, 以预设长度为半径的圓形 显示区域进行放大或缩小, 或者对以第一触摸位置或第二触摸位置为中心, 以预设长度为周长的封闭图形的显示区域进行放大或缩小。
例如, 如图 7所示, 1为手机屏幕上原始显示时的状态, 2为手机对触摸屏 的显示内容整体放大后的状态; 如图 8所示, 1为手机屏幕上原始显示时的状 态, 3为手机对触摸屏的显示内容局部放大后的状态。
现有技术中, 手机需要同时接收两个触摸点的信号, 且检测两个信号的 变化情况, 来控制触摸屏显示内容的放大或者缩小。 与现有技术相比, 本发 明实施例中手机接收用户的两次触摸信息, 得出两次触摸的位置; 根据两次 触摸的位置, 确定放大或者缩小触摸屏的显示内容, 以及根据两次触摸位置 之间的距离, 确定放大与缩小的倍数。 解决了现有技术中手机控制触摸屏显 示内容进行放大或缩小控制时, 处理过程复杂, 反应速率和工作效率降低的 问题。 通过解决上述技术问题, 手机只需依次接收两次触摸位置的信号, 即 可完成对触摸屏显示内容放大或缩小控制, 操作方便, 处理过程简单, 提高 了移动设备的工作效率。 本发明又一实施例提供一种触摸屏显示控制的移动设备 30, 如图 9所示, 所述移动设备 30包括:
接收单元 31 , 用于接收第一触摸信息, 所述第一触摸信息包括第一触摸 位置;
所述接收单元 31还用于接收第二触摸信息, 所述第二触摸信息包括第二 触摸位置;
确定单元 32 , 用于根据所述第一触摸位置与所述第二触摸位置之间的距 离, 确定缩放倍数;
缩放单元 33 , 用于根据所述第一触摸位置与所述第二触摸位置之间的位 置关系以及所述缩放倍数, 对所述触摸屏的显示内容进行缩放。
进一步的, 如图 10所示, 所述移动设备 30还包括:
划分单元 34 , 用于根据所述第一触摸位置将所述触摸屏的显示区域划分 为第一显示区域和第二显示区域, 所述第一显示区域和所述第二显示区域的 分界线经过所述第一触摸位置; 或者,
所述划分单元 34还用于以所述第一触摸位置为原点将所述触摸屏的显示 区域划分为四个象限, 将所述四个象限中的两个象限分别作为所述第一显示 区域和所述第二显示区域;
则所述缩放单元 33具体用于当所述第二触摸位置位于所述第一显示区域 时, 根据位置关系对所述触摸屏的显示内容进行放大; 当所述第二触摸位置 位于所述第二显示区域时, 根据位置关系对所述触摸屏的显示内容进行缩小。
进一步的, 如图 10所示, 所述缩放单元 33包括:
差值确定子单元 331 , 用于根据所述第一触摸位置的坐标与所述第二触摸 位置的坐标, 确定第一差值和第二差值, 所述第一差值为所述第一触摸位置 的横坐标与所述第二触摸位置的横坐标的差值, 所述第二差值为所述第一触 摸位置的纵坐标与所述第二触摸位置的纵坐标的差值;
缩放子单元 332 , 用于根据所述第一差值和所述第二差值及所述缩放倍 数, 对所述触摸屏的显示内容进行缩放。
进一步的, 所述缩放子单元 332具体用于:
当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内 容进行缩小; 或者,
当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内 容进行缩小。
进一步的, 所述缩放子单元 332具体用于:
当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内容 进行放大; 当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显 示内容进行缩小; 或者,
当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内容 进行放大; 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显 示内容进行缩小。
进一步的, 如图 10所示, 所述缩放单元 33还包括:
整体缩放子单元 333 ,用于对所述触摸屏的显示内容进行整体缩放;或者, 局部缩放子单元 334, 用于对所述触摸屏的显示内容进行局部缩放。
进一步的, 如图 10所示, 所述局部缩放子单元 334具体用于:
对以所述第一触摸位置或所述第二触摸位置为圓心, 以预设长度为半径 的圓形显示区域进行放大或缩小; 或者, 对以所述第一触摸位置或所述第二 触摸位置为中心, 以预设长度为周长的封闭图形的显示区域进行缩放。
进一步的, 如图 10所示, 所述确定单元 32包括: 距离确定子单元 321 , 用于根据所述第一触摸位置的坐标与所述第二触摸 位置的坐标确定所述距离;
倍数确定子单元 322, 用于确定所述距离与预设距离的比值, 将所述比值 确定为所述缩放倍数, 所述距离大于等于所述预设距离; 或者,
所述倍数确定子单元 322还用于根据所述距离直接确定所述缩放倍数, 所 述距离与所述缩放倍数的对应关系为预先设定。
进一步的, 如图 10所示, 移动设备 30还包括:
显示单元 35 , 用于显示所述缩放单元 33进行缩放后的所述显示内容。 其中, 所述预设距离为将所述第一触摸位置和所述第二触摸位置区分成 两个不同位置的最小距离。 接收所述第一触摸信息的时刻与接收所述第二触 摸信息的时刻之间的时间间隔小于预设时间。
现有技术中, 移动设备需要同时接收两个触摸点的信号, 且检测两个信 号的变化情况, 来控制触摸屏显示内容的放大或者缩小。 与现有技术相比, 本发明实施例中移动设备 30接收用户的两次触摸信息, 得出两次触摸的位置; 根据两次触摸的位置, 确定放大或者缩小触摸屏的显示内容, 以及根据两次 触摸位置之间的距离, 确定放大与缩小的倍数。 解决了现有技术中移动设备 30控制触摸屏显示内容进行放大或缩小控制时, 处理过程复杂, 反应速率和 工作效率降低的问题。 通过解决上述技术问题, 移动设备 30只需依次接收触 摸位置的信号, 即可完成对触摸屏显示内容放大或缩小控制, 操作方便, 处 理过程简单, 提高了移动设备 30的工作效率。 本发明又一实施例提供一种触摸屏显示控制的移动设备, 如图 11本实施 例以手机为例对本发明进行具体说明。
应该理解的是, 图示手机 40仅仅是移动设备的一个范例, 并且手机 40可 以具有比图 11中所示出的更多的或者更少的部件, 可以组合两个或更多的部 件, 或者可以具有不同的部件配置。 图 11中所示出的各种部件可以在包括一 个或多个信号处理和 /或专用集成电路在内的硬件、 软件、 或硬件和软件的组 合中实现。
现以手机为一个例子进行具体的说明。 图 11为本发明提供的用于对消息 进行处理的手机的实施例的结构示意图。 如图 11所示, 该手机包括存储器 41、 CPU42、 电源管理芯片 43、 I/O ( Input/Output, 输入 /输出)子系统 44以及外设 接口 45, 这些部件通过一个或多个通信总线或信号线 46来通信。
值得说明的是, 本实施例提供的手机仅仅是移动设备的一个示例, 本发 明实施例涉及的移动设备可以具有比图 11所示出的更多或更少的部件, 可以 组合两个或更多个部件, 或者可以具有不同的部件配置或设置, 各个部件可 以在包括一个或多个信号处理和 /或专用集成电路在内的硬件、 软件或硬件和 软件的组合实现。
下面就本实施例提供的用于对消息进行处理的手机进行佯细的描述。 存储器 41 : 所述存储器 41可以被 CPU42等访问, 所述存储器 41可以包括 高速随机存取存储器, 还可以包括非易失性存储器, 例如一个或多个磁盘存 储器件、 闪存器件、 或其他易失性固态存储器件。
I/O子系统 44: 所述 I/O子系统 44可以将设备上的输入输出外设, 例如触摸 屏 47连接到外设接口 45。 I/O子系统 44可以包括显示控制器 441。
触摸屏 47: 所述触摸屏 47是移动设备与用户之间的输入接口和输出接口, 可以将用户的指示以触摸的形式进行接收, 将可视输出显示给用户。
I/O子系统 44中的显示控制器 441从触摸屏 47接收电信号或者向触摸屏 47 发送电信号。 触摸屏 47检测触摸屏上的接触, 显示控制器 441将检测到的接触 转换为与显示在触摸屏 47上的用户界面对象的交互, 即实现人机交互, 显示 在触摸屏 47上的用户界面对象可以是运行游戏的图标、 联网到相应网络的图 标等。 值得说明的是, 设备还可以包括光鼠, 光鼠是不显示可视输出的触摸 敏感表面, 或者是由触摸屏形成的触摸敏感表面的延伸。
电源管理芯片 43 , 用于为 CPU42、 I/O子系统 44及外设接口 45所连接的硬 件进行供电及电源管理。
触摸屏 47接收第一触摸信息和第二触摸信息, 第一触摸信息包括第一触 摸位置, 第二触摸信息包括第二触摸位置; I/O子系统 44和外设接口 45将所述 第一触摸信息和所述第二触摸信息传输给 CPU42; CPU42根据第一触摸位置与 第二触摸位置之间的距离, 确定缩放倍数; 并根据第一触摸位置与第二触摸 位置之间的位置关系以及缩放倍数, 对触摸屏 47的显示内容进行缩放。
其中, 预设距离为将第一触摸位置和第二触摸位置区分成两个不同位置 的最小距离。 接收第一触摸信息的时刻与接收第二触摸信息的时刻之间的时 间间隔小于预设时间。
进一步的, CPU42根据触摸屏 47接收到的第一触摸信息中包括的第一触 摸位置将所述触摸屏 47的显示区域划分为第一显示区域和第二显示区域, 第 一显示区域和第二显示区域的分界线经过第一触摸位置; 或者, CPU42以第 一触摸位置为原点将触摸屏 47的显示区域划分为四个象限, 将四个象限中的 两个象限分别作为第一显示区域和第二显示区域。
则当第二触摸位置位于所述第一显示区域时, CPU42根据位置关系对所 述触摸屏的显示内容进行放大; 当第二触摸位置位于第二显示区域时, CPU42 根据位置关系对所述触摸屏的显示内容进行缩小。
进一步的, CPU42根据第一触摸位置的坐标与第二触摸位置的坐标确定 第一差值和第二差值, 第一差值为第一触摸位置的横坐标与第二触摸位置的 横坐标的差值, 第二差值为第一触摸位置的纵坐标与第二触摸位置的纵坐标 的差值; CPU42根据第一差值和第二差值及所述缩放倍数, 对触摸屏 47的显 示内容进行缩放。
具体的, 当第一差值和第二差值均为正时, CPU42对触摸屏 47的显示内 容进行放大; 当第一差值和第二差值均为负时, CPU42对所述触摸屏 47的显 示内容进行缩小; 或者, 当第一差值和第二差值均为负时, CPU42对触摸屏 47的显示内容进行放大; 当第一差值和第二差值均为正时, CPU42对触摸屏 47的显示内容进行缩小。
进一步的, 当第一差值为正且第二差值为负时, CPU42对触摸屏 47的显 示内容进行放大; 当第一差值为负且第二差值为正时, CPU42对触摸屏 47的 显示内容进行缩小; 或者, 当第一差值为负且第二差值为正时, CPU42对触 摸屏 47的显示内容进行放大; 当第一差值为正且第二差值为负时, CPU42对 触摸屏 47的显示内容进行缩小。
可选的, CPU42对触摸屏 47的显示内容进行整体缩放; 或者, CPU42对触 摸屏 47的显示内容进行局部缩放。
进一步的, CPU42对以第一触摸位置或所述第二触摸位置为圓心, 以预 设长度为半径的圓形显示区域进行缩放; 或者, CPU42对以所述第一触摸位 置或所述第二触摸位置为中心, 以预设长度为周长的封闭图形的显示区域进 行缩放。
可选的的, CPU42根据第一触摸位置的坐标与第二触摸位置的坐标确定 距离。
进一步的, CPU42确定距离与预设距离的比值, 将比值确定为缩放倍数, 所述距离大于等于所述预设距离; 或者, CPU42根据距离直接确定缩放倍数, 距离与缩放倍数的对应关系为预先设定。
在上述实施例中, CPU42具体可以是英特尔公司生产的奔腾系列处理器 或安腾处理器等。
在上述发明实施例中, 移动设备包括但不限于手机、 个人数字助理 ( Personal Digital Assistant, PDA ), 平板电脑等移动通讯设备。
现有技术中, 手机需要同时接收两个触摸点的信号, 且检测两个信号的 变化情况, 来控制触摸屏显示内容的放大或者缩小。 与现有技术相比, 本发 明实施例中手机 40接收用户的两次触摸信息, 得出两次触摸的位置; 根据两 次触摸的位置, 确定缩放触摸屏的显示内容, 以及根据两次触摸位置之间的 距离, 确定缩放的倍数。 解决了现有技术中手机控制触摸屏显示内容进行放 大或缩小控制时, 处理过程复杂, 反应速率和工作效率降低的问题。 通过解 决上述技术问题, 手机 40只需依次接收触摸位置的信号, 即可完成对触摸屏 显示内容放大或缩小控制, 操作方便, 处理过程简单, 提高了手机 40的工作 效率。
本发明实施例提供的一种触摸屏显示控制的移动设备可以实现上述提供 的方法实施例, 具体功能实现请参见方法实施例中的说明, 在此不再赘述。 本发明实施例提供的一种触摸屏显示控制的方法及移动设备可以适用于移动 设备, 但不仅限于此。 本说明书中的各个实施例均釆用递进的方式描述, 各个实施例之间相同 相似的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同 之处。 尤其, 对于设备实施例而言, 由于其基本相似于方法实施例, 所以描 述得比较简单, 相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储器或随机存取 存储器等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。

Claims

权利要求 书
1、 一种移动设备的触摸屏显示控制的方法, 其特征在于, 包括:
接收第一触摸信息, 所述第一触摸信息包括第一触摸位置;
接收第二触摸信息, 所述第二触摸信息包括第二触摸位置;
根据所述第一触摸位置与所述第二触摸位置之间的距离, 确定缩放倍数; 根据所述第一触摸位置与所述第二触摸位置之间的位置关系以及所述缩放 倍数, 对所述触摸屏的显示内容进行缩放。
2、 根据权利要求 1所述方法, 其特征在于, 在所述接收第二触摸信息之前, 在接收第一触摸信息之后, 所述方法还包括:
根据所述第一触摸位置将所述触摸屏的显示区域划分为第一显示区域和第 二显示区域, 所述第一显示区域和所述第二显示区域的分界线经过所述第一触 摸位置; 或者,
以所述第一触摸位置为原点将所述触摸屏的显示区域划分为四个象限, 将 所述四个象限中的两个象限分别作为所述第一显示区域和所述第二显示区域; 则所述根据所述第一触摸位置与所述第二触摸位置之间的位置关系以及所 述缩放倍数, 对所述触摸屏的显示内容进行缩放, 具体包括:
当所述第二触摸位置位于所述第一显示区域时, 根据位置关系对所述触摸 屏的显示内容进行放大; 当所述第二触摸位置位于所述第二显示区域时, 根据 位置关系对所述触摸屏的显示内容进行缩小。
3、 根据权利要求 1所述方法, 其特征在于, 所述根据所述第一触摸位置与 所述第二触摸位置之间的位置关系以及所述缩放倍数, 对所述触摸屏的显示内 容进行缩放具体还包括:
根据所述第一触摸位置的坐标与所述第二触摸位置的坐标, 确定第一差值 和第二差值, 所述第一差值为所述第一触摸位置的横坐标与所述第二触摸位置 的横坐标的差值, 所述第二差值为所述第一触摸位置的纵坐标与所述第二触摸 位置的纵坐标的差值; 根据所述第一差值和所述第二差值及所述缩放倍数, 对所述触摸屏的显示 内容进行缩放。
4、 根据权利要求 3所述方法, 其特征在于,
当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进行 放大; 当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进 行缩小; 或者,
当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进行 放大; 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进 行缩小。
5、 根据权利要求 3所述方法, 其特征在于,
当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内 容进行缩小; 或者,
当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内 容进行缩小。
6、 根据权利要求 2或 3所述方法, 其特征在于, 所述根据所述第一触摸位置 与所述第二触摸位置之间的位置关系以及所述缩放倍数, 对所述触摸屏的显示 内容进行缩放, 具体包括:
对所述触摸屏的显示内容进行整体缩放; 或者,
对所述触摸屏的显示内容进行局部缩放。
7、 根据权利要求 6所述方法, 其特征在于, 所述对所述触摸屏的显示内容 进行局部缩放具体包括:
对以所述第一触摸位置或所述第二触摸位置为圓心, 以预设长度为半径的 圓形显示区域进行放大或缩小; 或者, 对以所述第一触摸位置或所述第二触摸 位置为中心, 以预设长度为周长的封闭图形的显示区域进行缩放。
8、根据权利要求 1-7任一项所述方法, 其特征在于, 所述根据所述第一触摸 位置与所述第二触摸位置之间的距离, 确定缩放倍数包括:
根据所述第一触摸位置的坐标与所述第二触摸位置的坐标确定所述距离; 确定所述距离与预设距离的比值, 将所述比值确定为所述缩放倍数, 所述 距离大于等于所述预设距离; 或者,
根据所述距离直接确定所述缩放倍数, 所述距离与所述缩放倍数的对应关 系为预先设定。
9、 根据权利要求 8所述方法, 其特征在于, 所述预设距离为将所述第一触 摸位置和所述第二触摸位置区分成两个不同位置的最小距离。
10、 根据权利要求 1-9任一项所述方法, 其特征在于, 接收所述第一触摸信 息的时刻与接收所述第二触摸信息的时刻之间的时间间隔小于预设时间。
11、 一种移动设备, 其特征在于, 包括:
接收单元, 用于接收第一触摸信息, 所述第一触摸信息包括第一触摸位置; 所述接收单元还用于接收第二触摸信息, 所述第二触摸信息包括第二触摸 位置;
确定单元, 用于根据所述第一触摸位置与所述第二触摸位置之间的距离, 确定缩放倍数;
缩放单元, 用于根据所述第一触摸位置与所述第二触摸位置之间的位置关 系以及所述缩放倍数, 对所述触摸屏的显示内容进行缩放。
12、 根据权利要求 11所述的移动设备, 其特征在于, 所述移动设备还包括: 划分单元, 用于根据所述第一触摸位置将所述触摸屏的显示区域划分为第 一显示区域和第二显示区域, 所述第一显示区域和所述第二显示区域的分界线 经过所述第一触摸位置; 或者,
所述划分单元还用于以所述第一触摸位置为原点将所述触摸屏的显示区域 划分为四个象限, 将所述四个象限中的两个象限分别作为所述第一显示区域和 所述第二显示区域; 则所述缩放单元具体用于当所述第二触摸位置位于所述第一显示区域时, 根据位置关系对所述触摸屏的显示内容进行放大; 当所述第二触摸位置位于所 述第二显示区域时, 根据位置关系对所述触摸屏的显示内容进行缩小。
13、 根据权利要求 11所述的移动设备, 其特征在于, 所述缩放单元包括: 差值确定子单元, 用于根据所述第一触摸位置的坐标与所述第二触摸位置 的坐标, 确定第一差值和第二差值, 所述第一差值为所述第一触摸位置的横坐 标与所述第二触摸位置的横坐标的差值, 所述第二差值为所述第一触摸位置的 纵坐标与所述第二触摸位置的纵坐标的差值;
缩放子单元, 用于根据所述第一差值和所述第二差值及所述缩放倍数, 对 所述触摸屏的显示内容进行缩放。
14、 根据权利要求 13所述的移动设备, 其特征在于, 所述缩放子单元具体 用于:
当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进行 放大; 当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进 行缩小; 或者,
当所述第一差值和所述第二差值均为负时, 对所述触摸屏的显示内容进行 放大; 当所述第一差值和所述第二差值均为正时, 对所述触摸屏的显示内容进 行缩小。
15、 根据权利要求 13所述的移动设备, 其特征在于, 所述缩放子单元具体 用于:
当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内 容进行缩小; 或者,
当所述第一差值为负且所述第二差值为正时, 对所述触摸屏的显示内容进 行放大; 当所述第一差值为正且所述第二差值为负时, 对所述触摸屏的显示内 容进行缩小。
16、 根据权利要求 12或 13所述的移动设备, 其特征在于, 所述缩放单元还 包括:
整体缩放子单元, 用于对所述触摸屏的显示内容进行整体缩放; 或者, 局部缩放子单元, 用于对所述触摸屏的显示内容进行局部缩放。
17、 根据权利要求 16所述的移动设备, 其特征在于, 所述局部缩放子单元 具体用于:
对以所述第一触摸位置或所述第二触摸位置为圓心, 以预设长度为半径的 圓形显示区域进行放大或缩小; 或者, 对以所述第一触摸位置或所述第二触摸 位置为中心, 以预设长度为周长的封闭图形的显示区域进行缩放。
18、 根据权利要求 11-17任一项所述的移动设备, 其特征在于, 所述确定单 元包括:
距离确定子单元, 用于根据所述第一触摸位置的坐标与所述第二触摸位置 的坐标确定所述距离;
倍数确定子单元, 用于确定所述距离与预设距离的比值, 将所述比值确定 为所述缩放倍数, 所述距离大于等于所述预设距离; 或者,
所述倍数确定子单元还用于根据所述距离直接确定所述缩放倍数, 所述距 离与所述缩放倍数的对应关系为预先设定。
19、 根据权利要求 18所述的移动设备, 其特征在于, 所述预设距离为将所 述第一触摸位置和所述第二触摸位置区分成两个不同位置的最小距离。
20、 根据权利要求 11-19任一项所述的移动设备, 其特征在于, 接收所述第 一触摸信息的时刻与接收所述第二触摸信息的时刻之间的时间间隔小于预设时 间。
21、 根据权利要求 11所述的移动设备, 其特征在于, 所述移动设备包括: 显示单元, 用于显示所述缩放单元进行缩放后的所述显示内容。
PCT/CN2013/088690 2013-12-05 2013-12-05 触摸屏显示控制的方法及移动设备 WO2015081544A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201380079038.6A CN105493020B (zh) 2013-12-05 2013-12-05 触摸屏显示控制的方法及移动设备
US15/101,531 US10025420B2 (en) 2013-12-05 2013-12-05 Method for controlling display of touchscreen, and mobile device
PCT/CN2013/088690 WO2015081544A1 (zh) 2013-12-05 2013-12-05 触摸屏显示控制的方法及移动设备
US16/014,168 US10185442B2 (en) 2013-12-05 2018-06-21 Method for controlling display of touchscreen, and mobile device
US16/229,792 US10514802B2 (en) 2013-12-05 2018-12-21 Method for controlling display of touchscreen, and mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088690 WO2015081544A1 (zh) 2013-12-05 2013-12-05 触摸屏显示控制的方法及移动设备

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US15/101,531 A-371-Of-International US10025420B2 (en) 2013-12-05 2013-12-05 Method for controlling display of touchscreen, and mobile device
US16/014,168 Continuation US10185442B2 (en) 2013-12-05 2018-06-21 Method for controlling display of touchscreen, and mobile device

Publications (1)

Publication Number Publication Date
WO2015081544A1 true WO2015081544A1 (zh) 2015-06-11

Family

ID=53272767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088690 WO2015081544A1 (zh) 2013-12-05 2013-12-05 触摸屏显示控制的方法及移动设备

Country Status (3)

Country Link
US (3) US10025420B2 (zh)
CN (1) CN105493020B (zh)
WO (1) WO2015081544A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213349A (zh) * 2017-06-30 2019-01-15 北京小米移动软件有限公司 基于触摸屏的交互方法及装置、计算机可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105493020B (zh) * 2013-12-05 2020-02-21 华为终端有限公司 触摸屏显示控制的方法及移动设备
JP2016161869A (ja) * 2015-03-04 2016-09-05 セイコーエプソン株式会社 表示装置及び表示制御方法
CN110749908B (zh) * 2019-09-27 2022-05-06 荣耀终端有限公司 定位方法及相关设备
CN111078061B (zh) * 2019-12-04 2023-08-22 佳格科技(浙江)股份有限公司 红外触摸屏、其控制方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102112952A (zh) * 2008-09-04 2011-06-29 索尼爱立信移动通讯有限公司 触敏显示器的多点触摸控制
CN102541319A (zh) * 2010-12-20 2012-07-04 联想(北京)有限公司 电子设备及其显示处理方法
CN103155534A (zh) * 2010-09-27 2013-06-12 富士胶片株式会社 图像编辑方法和图像编辑装置以及图像编辑程序
CN103294353A (zh) * 2012-01-11 2013-09-11 三星电子株式会社 在电子设备中放大屏幕的装置和方法
CN103425426A (zh) * 2012-05-14 2013-12-04 三星电子株式会社 处理与多触摸相对应的功能的方法和电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7538760B2 (en) * 2006-03-30 2009-05-26 Apple Inc. Force imaging input device and system
WO2008046058A2 (en) * 2006-10-12 2008-04-17 Cambrios Technologies Corporation Nanowire-based transparent conductors and applications thereof
TWI550646B (zh) * 2006-10-12 2016-09-21 坎畢歐科技公司 製造透明導體之方法
US7846786B2 (en) * 2006-12-05 2010-12-07 Korea University Industrial & Academic Collaboration Foundation Method of fabricating nano-wire array
US9182859B2 (en) * 2012-08-29 2015-11-10 Sharp Kabushiki Kaisha Capacitive touch panel with force sensing
CN105493020B (zh) * 2013-12-05 2020-02-21 华为终端有限公司 触摸屏显示控制的方法及移动设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102112952A (zh) * 2008-09-04 2011-06-29 索尼爱立信移动通讯有限公司 触敏显示器的多点触摸控制
CN103155534A (zh) * 2010-09-27 2013-06-12 富士胶片株式会社 图像编辑方法和图像编辑装置以及图像编辑程序
CN102541319A (zh) * 2010-12-20 2012-07-04 联想(北京)有限公司 电子设备及其显示处理方法
CN103294353A (zh) * 2012-01-11 2013-09-11 三星电子株式会社 在电子设备中放大屏幕的装置和方法
CN103425426A (zh) * 2012-05-14 2013-12-04 三星电子株式会社 处理与多触摸相对应的功能的方法和电子设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213349A (zh) * 2017-06-30 2019-01-15 北京小米移动软件有限公司 基于触摸屏的交互方法及装置、计算机可读存储介质

Also Published As

Publication number Publication date
CN105493020B (zh) 2020-02-21
US20190121492A1 (en) 2019-04-25
CN105493020A (zh) 2016-04-13
US20160313849A1 (en) 2016-10-27
US10185442B2 (en) 2019-01-22
US10514802B2 (en) 2019-12-24
US20180300011A1 (en) 2018-10-18
US10025420B2 (en) 2018-07-17

Similar Documents

Publication Publication Date Title
KR101384857B1 (ko) 연속 줌 기능을 제공하는 사용자 인터페이스 방법들
TWI629636B (zh) 用於控制一電子器件之方法、電子器件及非暫時性電腦可讀儲存媒體
US9436379B2 (en) Control method and electronic device
AU2011209729B2 (en) Device, method, and graphical user interface for precise positioning of objects
US10514802B2 (en) Method for controlling display of touchscreen, and mobile device
TWI606383B (zh) 電子設備及其頁面縮放方法
WO2017059734A1 (zh) 一种图片缩放方法及电子设备
US10073493B2 (en) Device and method for controlling a display panel
US9223406B2 (en) Screen display control method of electronic device and apparatus therefor
TW201324317A (zh) 具有觸摸屏的電子設備及其頁面縮放方法
KR101019128B1 (ko) 터치 패널 입력 장치, 방법 및 이를 이용한 모바일 기기
JP6249652B2 (ja) タッチ機能制御方法及びその電子装置
EP2778880B1 (en) Method for controlling display function and an electronic device thereof
WO2014161313A1 (zh) 一种拍摄区域的确定方法和系统
JP2011186734A (ja) 表示装置及び画面表示方法
WO2019019372A1 (zh) 移动终端的图片操作控制方法、装置、移动终端及介质
WO2014075540A1 (zh) 触摸屏滚屏控制系统及方法
TWI557631B (zh) 來電接聽掛斷管理系統及方法
AU2015202218B9 (en) Device, method, and graphical user interface for precise positioning of objects
TWI537812B (zh) 物件選取方法及系統
TW201401151A (zh) 觸控螢幕畫面控制方法及系統

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380079038.6

Country of ref document: CN

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

Ref document number: 13898582

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15101531

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13898582

Country of ref document: EP

Kind code of ref document: A1