WO2019228106A1 - Press area optimization method and device, mobile terminal and storage medium - Google Patents

Press area optimization method and device, mobile terminal and storage medium Download PDF

Info

Publication number
WO2019228106A1
WO2019228106A1 PCT/CN2019/084140 CN2019084140W WO2019228106A1 WO 2019228106 A1 WO2019228106 A1 WO 2019228106A1 CN 2019084140 W CN2019084140 W CN 2019084140W WO 2019228106 A1 WO2019228106 A1 WO 2019228106A1
Authority
WO
WIPO (PCT)
Prior art keywords
center
pressing area
distance
area
mobile terminal
Prior art date
Application number
PCT/CN2019/084140
Other languages
French (fr)
Chinese (zh)
Inventor
揭骏仁
罗尧俊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019228106A1 publication Critical patent/WO2019228106A1/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/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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • 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

Definitions

  • the present application relates to the technical field of mobile terminals, and more particularly, to an information display method, device, mobile terminal, and storage medium.
  • the present application proposes a method, a device, a mobile terminal, and a storage medium for optimizing the pressing area to improve the above problems.
  • an embodiment of the present application provides a method for optimizing a pressing area, which is applied to a mobile terminal.
  • the method includes: detecting a touch operation on a user interface of the mobile terminal, and acquiring a corresponding touch operation.
  • the center of the contact ; obtaining the distance between the center of the contact and the edge of the screen nearest the mobile terminal to the center of the contact; determining whether the distance is less than a preset distance; when the distance is less than the preset distance , Decrease the preset pressing area to obtain the current pressing area threshold.
  • an embodiment of the present application provides a pressing area optimization device applied to a mobile terminal.
  • the device includes a contact center acquisition module for detecting a touch operation on a user interface of the mobile terminal. To obtain the center of the contact corresponding to the touch operation; a distance acquisition module for acquiring the distance between the center of the contact and the edge of the screen nearest the mobile terminal to the center of the contact; a distance determination module for determining Whether the distance is less than a preset distance; a current pressing area threshold acquisition module, configured to reduce the preset pressing area to obtain the current pressing area threshold when the distance is less than the preset distance.
  • an embodiment of the present application provides a mobile terminal including a touch screen, a memory, and a processor.
  • the touch screen and the memory are coupled to the processor, and the memory stores instructions.
  • the processor executes, the processor executes the above method.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the foregoing method.
  • FIG. 1 is a schematic flowchart of a pressing area optimization method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application.
  • FIG. 3 shows a schematic diagram of large-area compression provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a user interface of a mobile terminal according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of step S260 of the pressing area optimization method provided by the embodiment shown in FIG. 2 of the present application;
  • FIG. 6 is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application.
  • FIG. 7 shows a block diagram of a pressing area optimization device according to an embodiment of the present application.
  • FIG. 8 shows a block diagram of a pressing area optimization device according to another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 10 shows a block diagram of a mobile terminal for performing a pressing area optimization method according to an embodiment of the present application.
  • FIG. 11 illustrates a storage unit for saving or carrying a program code that implements a method for optimizing a pressing area according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for optimizing a pressing area according to an embodiment of the present application.
  • the pressing area optimization method is used to change the determination threshold of the pressing area according to the pressing position, and solves the problem that it is difficult to trigger the edge of the screen when a large area pressing gesture is used.
  • the pressing area optimization method is applied to a pressing area optimization device 200 as shown in FIG. 7 and a mobile terminal (FIG. 9) configured with the pressing area optimization device 200.
  • a mobile terminal is taken as an example to explain the specific process of this embodiment.
  • the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc. limited.
  • the process shown in FIG. 1 will be described in detail below.
  • the pressing area optimization method may specifically include the following steps:
  • Step S110 Detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
  • the mobile terminal first displays a user interface
  • the user interface may be an interface corresponding to the system desktop of the mobile terminal or an interface corresponding to a page of an application, where the user interface is a page of an application
  • the application can be a native application provided by the mobile terminal system, such as memos, photos, etc., or a third-party application installed by the user, such as a novel reader, Weibo, WeChat, Today Headlines and the like are not specifically limited here. It can be understood that, for an application, it usually includes multiple user interfaces. When the application runs in the foreground of the mobile terminal, one of the user interfaces of the multiple user interfaces of the application will be on the mobile terminal. Display on the touch screen.
  • the touch operation on the user interface of the mobile terminal is detected.
  • the touch operation may include single-finger tap, multi-finger tap, single-finger long press, multi-finger long press, and heavy pressure.
  • Single-finger click refers to a single-finger click operation on the user interface
  • the multi-finger click refers to a multi-finger click operation on the user interface at the same time
  • Single-finger long press means single-finger pressing on the user interface for more than the preset time
  • Multi-finger long press means multi-finger pressing simultaneously on the user interface for more than the preset time
  • heavy pressing means that the pressing pressure on the user interface exceeds the preset time Strength
  • multiple clicks means that the number of clicks exceeds the preset number within a preset time
  • a swipe operation means dragging a card to slide on the touch screen
  • a large-area press means a single-finger pressing range on the user interface exceeds the preset range
  • acquiring a contact center corresponding to a touch operation is a method for acquiring a touch area of the touch operation when a touch operation acting on a user interface is detected, and calculating based on the touch area, Obtain the center position of the touch area, where the center position is the center of the contact corresponding to the touch operation.
  • Step S120 Obtain a distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal.
  • the upper edge, lower edge, left edge, and right edge of the touch center from the screen of the mobile terminal can be calculated. Distance from the center of the contact to the top edge, bottom edge, left edge, and right edge, to obtain the screen edge closest to the center of the touch and the distance between the center of the touch and the edge of the screen.
  • Step S130 Determine whether the distance is less than a preset distance.
  • the mobile terminal sets and stores a preset distance in advance, and the preset distance is used as a basis for determining the distance. Therefore, after obtaining the distance between the center of the touch point and the nearest screen edge, , Comparing the distance with a preset distance to determine whether the distance is less than the preset distance.
  • the mobile terminal presets and stores a preset pressing area, and the preset pressing area is a minimum value for triggering a large-area compression. It is understandable that when a user wants to trigger a large-area compression, the The pressing area corresponding to the user's touch operation should not be less than the preset pressing area.
  • the graphic corresponding to the large-area pressing is a circle as an example.
  • the preset distance is not larger than the preset pressing area.
  • the corresponding diameter that is, the preset distance may be 1/4 of the diameter corresponding to the preset pressing area, may be 1/3 of the diameter corresponding to the preset pressing area, or may be a radius corresponding to the preset pressing area.
  • the preset distance is a radius corresponding to a preset pressing area.
  • Step S140 When the distance is less than the preset distance, reduce the preset pressing area to obtain a current pressing area threshold.
  • the formed pressing area when the distance is less than the preset distance, the formed pressing area will exceed the edge of the screen closest to the center of the touch point, and the pressing part beyond the edge of the screen will not be detected. Therefore, The pressing area obtained by the touch operation obtained by the mobile terminal will be smaller than a preset pressing area, resulting in failure of a large area pressing judgment.
  • the current pressing area threshold value is used as a judgment of a large area pressing at this time.
  • the corresponding pressing area may be larger than the current pressing area threshold, which promotes the use of large area pressing.
  • the screen edge is more difficult to trigger.
  • the preset distance is a radius corresponding to the preset pressing area, and the distance is smaller than the radius corresponding to the preset pressing area, reducing the preset pressing area to obtain the current pressing area threshold.
  • the pressing area optimization method detects a touch operation on a user interface of a mobile terminal, obtains a contact center corresponding to the touch operation, and obtains the distance between the contact center and the mobile terminal from the contact center. The distance from the nearest edge of the screen to determine whether the distance is less than a preset distance. When the distance is less than the preset distance, reduce the preset pressing area to obtain the current pressing area threshold, thereby changing the determining threshold of the pressing area according to the pressing position, and solve the problem. A problem that is difficult to trigger on the edge of the screen when pressing a large area.
  • FIG. 2 is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application.
  • the process shown in FIG. 2 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S210 Detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
  • Step S220 Determine whether the contact center is located in the special determination area.
  • FIG. 3 shows a schematic diagram of large-area pressing provided by an embodiment of the present application.
  • a region in the screen range of the mobile terminal is preset as a special judgment region A.
  • the shape of the special judgment area A is consistent with the shape of the screen of the mobile terminal.
  • the shape of the special judgment area A and the shape of the screen of the mobile terminal are both rectangular, and each of the special judgment area A is rectangular.
  • the distance between the edge and each edge corresponding to the screen of the mobile terminal is L1.
  • the coordinate information of the contact center and the coordinate information of the special judgment area A are acquired to determine whether the coordinate information of the contact center falls within the coordinate information of the special judgment area A.
  • the coordinate information of the contact center falls within the coordinate information of the special judgment area A, it indicates that the contact center is located in the special judgment area A; when the coordinate information of the contact center does not fall in the special judgment area A
  • it means that the center of the contact is not located in the special judgment area A.
  • Step S230 When the contact center is located in the special judgment area, reduce the preset pressing area to obtain the current pressing area threshold.
  • the preset pressing area is reduced by a quarter ratio, that is, the preset pressing area is reduced by a half of the radius.
  • the diameter corresponding to the current pressing area threshold obtained is smaller than L1. Therefore, even if the center of the contact falls in the special judgment area A, it can still meet the user's needs for a large area. Press to avoid the problem that the trigger condition cannot be triggered due to the judgment condition that the pressing area at the edge of the screen does not reach the preset pressing area.
  • Step S240 Obtain a pressing area corresponding to the touch operation.
  • a touch area corresponding to the touch operation can be obtained, a surrounding area is formed based on the touch area, and a pressing area corresponding to the surrounding area is calculated.
  • the pressing area may be consistent with the touch area between the touch operation and the screen, or may be different from the touch area between the touch operation and the screen.
  • the pressing area may be based on the touch area.
  • the area of the enclosing area that is larger than the touch area is not limited herein.
  • Step S250 Determine whether the pressing area is not less than the current pressing area threshold.
  • the mobile terminal After acquiring the current pressing area threshold, the mobile terminal caches the current pressing area threshold to the memory of the mobile terminal or stores it locally as a basis for judging the pressing area. Therefore, when acquiring the pressing area, the pressing is performed. The area is compared with the current pressing area threshold to determine whether the pressing area is not less than the current pressing area threshold. When the pressing area is not less than the current pressing area threshold, it indicates that the large area pressing judgment is successful, and the pressing area is smaller than the current pressing area threshold. When the pressing area threshold value indicates that the large area pressing judgment has failed.
  • Step S260 When the pressing area is not less than the current pressing area threshold, based on the touch operation, at least one card is superimposed and displayed on a part of the user interface, and the at least one card is used to display Information identified by at least one interface element on the user interface.
  • FIG. 4 shows a schematic diagram of a user interface of a mobile terminal according to an embodiment of the present application.
  • the user interface shown in FIG. 4 can be determined by the user interface shown in FIG. Jump to get.
  • Part of the user interface can be located in the lower half of the user interface, can be located in the upper half of the user interface, can be located in the left half of the user interface, or the user
  • a partial area of the right half of the interface is optional.
  • the partial area is located in an area near the bottom of the lower half of the user interface, and its size is not specifically limited.
  • interface elements in the user interface include, but are not limited to, text, pictures, audio, or video, and are identified to obtain search result information corresponding to the content in the user interface.
  • the search result information is based on a card. Display in a format, wherein the card serves as a carrier carrying the search result information, and each card may display at least one search result information, and the number of search result information displayed by each card in at least one card may be the same or Different, and the search result information displayed by each card can come from the same application, or from different applications.
  • the at least one card is displayed in a superimposed form on a partial area of the user interface. Understandably, at this time, the card may be displayed in a layered manner above the partial area of the user interface. It may also cover a part of the user interface and be displayed at a different level from the user interface. In addition, in this embodiment, when the at least one card is superimposed and displayed in a partial area of the user interface, the original content located in the partial area is still partially visible and is not completely blocked for a user's click operation.
  • FIG. 5 illustrates a schematic flowchart of step S260 of the pressing area optimization method provided by the embodiment shown in FIG. 2 of the present application.
  • the process shown in FIG. 5 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S261 when the pressing area is not less than the current pressing area threshold, obtaining coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information.
  • the coordinate information of the contact center and the coordinate information of each text on the user interface are acquired, and it is determined whether there is a text that coincides with the coordinate information of the contact center, as a kind of Method, the text with the coincident coordinate information is determined as the interface element, and the text with the coincident coordinate information is determined as the non-interface element; as another method, the paragraph where the text coincides with the coordinate information of the center of the contact is located, and the above paragraph is used as Interface elements, with other paragraphs as non-interface elements.
  • the determination of the interface element may also be performed by other methods.
  • a selection box may be generated and displayed on the user interface based on the coordinate information of the center of the contact, where the selection box is used to select the interface element, and in addition, the selection box
  • the size and position of the selection box can be controlled and changed, and based on the user's control of the selection box, the interface element in the selection box is determined to be at least one interface element here, which is no longer exhaustive.
  • Step S262 Perform a search based on the at least one interface element, obtain content corresponding to the at least one interface element, and form the at least one card based on the content.
  • the search for the keywords may correspond to how many Search result information, displaying the plurality of search result information on at least one card, and the mobile terminal displaying the at least one card on a part of a user interface.
  • the search result information may correspond to detailed information in a browser, and may also correspond to playback information of an application, for example, when the keyword is a movie name, the search result information may include a browser
  • the introduction of the key information about the movie in the movie can also include the video playback application program playing the movie, etc., which are all displayed on the card, which is more convenient for users to obtain a variety of information corresponding to the movie name.
  • Step S263 Display the at least one card on a partial area of the user interface.
  • the pressing area optimization method detects a touch operation on a user interface of a mobile terminal, acquires a contact center corresponding to the touch operation, and determines whether the contact center is located in a special judgment area.
  • the preset pressing area is reduced to obtain the current pressing area threshold, and the pressing area corresponding to the touch operation is obtained to determine whether the pressing area is not less than the current pressing area threshold.
  • the pressing area is not less than the current pressing area, At the area threshold, based on the touch operation, at least one card is superimposed and displayed on a part of the user interface.
  • the at least one card is used to display information identified by at least one interface element on the user interface, thereby changing the pressing area according to the pressing position.
  • the threshold value of the resolution solves the problem that it is difficult to trigger the edge of the screen when using a large-area pressing gesture, and quickly recognizes and displays text information when the pressing area is not less than the reduced pressing area threshold.
  • FIG. 6 illustrates a schematic flowchart of a method for optimizing a pressing area according to another embodiment of the present application.
  • the process shown in FIG. 6 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S310 Detect a touch operation on a user interface of the mobile terminal, and obtain an enclosed area formed by the touch operation.
  • Step S320 Obtain a maximum horizontal coordinate difference value and a maximum vertical coordinate difference value of the surrounding area.
  • the maximum abscissa difference and the largest ordinate difference value in the surrounding area can be obtained. It can be understood that the width of the surrounding area can be obtained based on the maximum abscissa difference value, and the maximum ordinate difference value can be obtained based on the maximum abscissa value. The length of the surrounding area, based on the width and the length, the maximum area of the surrounding area can be obtained.
  • Step S330 Determine whether the maximum abscissa difference is greater than a first preset value, and determine whether the maximum ordinate difference is greater than a second preset value.
  • the mobile terminal sets and stores a first preset value and a second preset value in advance, wherein the first preset value is used as a basis for determining a width value corresponding to a touch operation, and the second preset value is The value is used as a basis for judging the length value corresponding to the touch operation, and when the width value is greater than the first preset value and the length value is greater than the second preset value, the pressing area corresponding to the touch operation may satisfy the area setting It is determined that the touch operation is a large area pressing.
  • Step S340 When the maximum abscissa difference is greater than the first preset value and when the maximum ordinate difference is greater than the second preset value, determine that the touch operation is a large-area pressing.
  • Step S350 Obtain the center position of the surrounding area, and use the center position as the center of the contact.
  • Step S360 Obtain a distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal.
  • Step S370 Determine whether the distance is less than a preset distance.
  • Step S380 When the distance is less than the preset distance, reduce the preset pressing area to obtain a current pressing area threshold.
  • the pressing area optimization method detects a touch operation on a user interface of a mobile terminal, acquires a surrounding area formed by the touch operation, and obtains a maximum horizontal coordinate difference value and a maximum vertical direction of the surrounding area. Coordinate difference, to determine whether the maximum horizontal coordinate difference is greater than a first preset value and whether the maximum vertical coordinate difference is greater than a second preset value, when the maximum horizontal coordinate difference is greater than the first preset value and when the maximum vertical coordinate difference When the coordinate difference is greater than the second preset value, it is determined that the touch operation is a large-area pressing, the center position of the surrounding area is obtained, the center position is used as the contact center, and the contact center and the mobile terminal are closest to the contact center The distance of the edge of the screen to determine whether the distance is less than the preset distance.
  • FIG. 7 illustrates a block diagram of a pressing area optimization device 200 according to an embodiment of the present application.
  • the pressing area optimization device 200 is applied to a mobile terminal.
  • the pressing area optimization device 200 includes: a contact center acquisition module 210, a distance acquisition module 220, a distance judgment module 230, and a current The pressing area threshold obtaining module 240, wherein:
  • the contact center obtaining module 210 is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
  • the distance obtaining module 220 is configured to obtain a distance between the center of the touch point and a screen edge of the mobile terminal closest to the center of the touch point.
  • the distance determining module 230 is configured to determine whether the distance is less than a preset distance.
  • the current pressing area threshold acquisition module 240 is configured to reduce the preset pressing area to obtain the current pressing area threshold when the distance is less than the preset distance.
  • FIG. 8 illustrates a block diagram of a pressing area optimization device 300 according to another embodiment of the present application.
  • the pressing area optimization device 300 is applied to a mobile terminal.
  • the pressing area optimization device 300 includes: a contact center acquisition module 310, a contact center determination module 320, and a current pressing area threshold.
  • the obtaining module 330, the pressing area acquiring module 340, the pressing area judging module 350, and the card display module 360 among which:
  • the contact center obtaining module 310 is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation. Further, the contact center acquisition module 310 includes a surrounding area acquisition sub-module, a coordinate difference acquisition sub-module, a coordinate difference judgment sub-module, a large area determination sub-module, and a contact center acquisition sub-module, wherein:
  • a surrounding area acquisition submodule is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a surrounding area formed by the touch operation.
  • the coordinate difference obtaining submodule is configured to obtain a maximum horizontal coordinate difference value and a maximum vertical coordinate difference value of the surrounding area.
  • the coordinate difference judgment submodule is configured to determine whether the maximum horizontal coordinate difference is greater than a first preset value, and determine whether the maximum vertical coordinate difference is greater than a second preset value.
  • the large area pressing determination sub-module is configured to determine the touch operation when the maximum abscissa difference is greater than the first preset value and when the maximum ordinate difference is greater than the second preset value Press for a large area.
  • the contact center acquisition submodule is configured to acquire a center position of the surrounding area, and use the center position as the contact center.
  • the contact center determination module 320 is configured to determine whether the contact center is located in the special determination area.
  • the current pressing area threshold acquisition module 330 is configured to reduce the preset pressing area to obtain the current pressing area threshold when the contact center is located in the special determination area.
  • the pressing area acquiring module 340 is configured to acquire a pressing area corresponding to the touch operation.
  • the pressing area determination module 350 is configured to determine whether the pressing area is not less than the current pressing area threshold.
  • a card display module 360 is configured to superimpose and display at least one card on a partial area of the user interface based on the touch operation when the pressing area is not less than the current pressing area threshold, and the at least one card is used for Displaying information identified by at least one interface element on the user interface. Further, the card display module 360 includes: an interface element determination sub-module, a card acquisition sub-module, and a card display sub-module, wherein:
  • An interface element determination submodule is configured to obtain coordinate information of the center of the touch point and determine the at least one interface element based on the coordinate information when the pressing area is not less than the current pressing area threshold.
  • the card acquisition submodule is configured to perform a search based on the at least one interface element, acquire content corresponding to the at least one interface element, and form the at least one card based on the content.
  • the card display submodule is configured to superimpose and display the at least one card on a part of the user interface.
  • a method, device, mobile terminal, and storage medium for optimizing a pressing area detect a touch operation on a user interface of a mobile terminal, and obtain a contact center corresponding to the touch operation. To obtain the distance between the center of the touch point and the edge of the screen closest to the center of the touch point, and determine whether the distance is less than a preset distance. When the distance is less than the preset distance, reduce the preset pressing area to obtain the current pressing area threshold. Therefore, the determination threshold of the pressing area is changed according to the pressing position, and the problem that the edge of the screen is difficult to trigger when using a large area pressing gesture is solved.
  • an embodiment of the present application further provides a mobile terminal 100 including an electronic body part 10 including a housing 12 and disposed on the housing.
  • the casing 12 can be made of metal, such as steel and aluminum alloy.
  • the main display screen 120 generally includes a display panel 111, and may also include a circuit for responding to a touch operation on the display panel 111, and the like.
  • the display panel 111 may be a liquid crystal display (Liquid Crystal Display, LCD).
  • the display panel 111 is a touch screen 109 at the same time.
  • the mobile terminal 100 can be used as a smart phone terminal.
  • the electronic body portion 10 usually further includes one or more (only shown in the figure) (A) The processor 102, the memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122.
  • A The processor 102, the memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122.
  • the structure shown in FIG. 10 is only schematic, and it does not limit the structure of the electronic body portion 10.
  • the electronic body portion 10 may further include more or fewer components than those shown in FIG. 10, or have a different configuration from that shown in FIG. 10.
  • peripheral interface 124 may be implemented based on the following standards: Universal Asynchronous Receiver / Transmitter (UART), General Input / Output (GPIO), Serial Peripheral Interface , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards.
  • UART Universal Asynchronous Receiver / Transmitter
  • GPIO General Input / Output
  • SPI Serial Peripheral Interface
  • I2C Inter-Integrated Circuit
  • the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may further include other elements, such as one or more controllers, for example, for connecting the display panel.
  • these controllers can also be separated from the peripheral interface 124 and integrated into the processor 102 or a corresponding peripheral.
  • the memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104.
  • the memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memories remotely disposed with respect to the processor 102, and these remote memories may be connected to the electronic body portion 10 or the main display screen 120 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the RF module 106 is used to receive and send electromagnetic waves, to realize the mutual conversion of electromagnetic waves and electrical signals, and to communicate with a communication network or other equipment.
  • the RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like .
  • the RF module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data Communication Technology (GSM) Environment, EDGE, Broadband Code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity , WiFi) (such as the American Institute of Electrical and Electronics Engineers standards IEEE 802.10A, IEEE 802.11b, IEEE802.11g, and / or IEEE 802.11n), Voice over Internet (Internet Protocol, VoIP), and Global Microwave Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, even those that have not yet been developed.
  • GSM Global System for Mobile Communication
  • GSM Global System for Mobile Communication
  • GSM Global System for Mobile Communication
  • GSM Global System for Mobile Communication
  • GSM Global System for Mobile Communication
  • GSM
  • the audio circuit 110, the earpiece 101, the sound jack 103, and the microphone 105 collectively provide an audio interface between the user and the electronic body portion 10 or the main display screen 120.
  • the audio circuit 110 receives sound data from the processor 102, converts the sound data into electrical signals, and transmits the electrical signals to the handset 101.
  • the earpiece 101 converts electrical signals into sound waves that human ears can hear.
  • the audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the RF module 106. In addition, the audio data may also be stored in the memory 104 or transmitted through the RF module 106.
  • the sensor 114 is disposed in the electronic body portion 10 or the main display screen 120.
  • Examples of the sensor 114 include, but are not limited to, a light sensor, a running sensor, a pressure sensor, a gravity acceleration sensor, and other sensors. .
  • the sensor 114 may include a light sensor 114F and a pressure sensor 114G.
  • the pressure sensor 114G can detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects the pressure generated by the contact or pressing between the user and the mobile terminal, such as the pressure generated by the contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether a contact or a press has occurred between the user and the mobile terminal 100, and the magnitude of the pressure.
  • the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111.
  • the light sensor 114F may turn off the display output when an object approaches the main display screen 120, for example, when the electronic body portion 10 moves to the ear.
  • a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the attitude of the mobile terminal 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap) and so on.
  • the electronic body portion 10 may be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which are not described herein again.
  • the input module 118 may include the touch screen 109 provided on the main display screen 120, and the touch screen 109 may collect a user's touch operation on or near the user (such as a user using a finger, a stylus, etc.). Wait for any suitable object or accessory to be operated on or near the touch screen 109), and drive the corresponding connection device according to a preset program.
  • the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects a user's touch position, and detects a signal caused by a touch operation, and transmits the signal to the touch controller.
  • the touch controller receives touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102.
  • various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch detection function of the touch screen 109.
  • the input module 118 may further include other input devices, such as keys 107.
  • the keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to the home screen" button, an on / off button, and the like.
  • the main display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic body portion 10, and these graphical user interfaces may include graphics, text, icons, numbers, videos, and
  • the touch panel 109 may be arranged in any combination. In one example, the touch screen 109 may be disposed on the display panel 111 so as to form a whole with the display panel 111.
  • the power module 122 is configured to provide power to the processor 102 and other components.
  • the power module 122 may include a power management system, one or more power sources (such as a battery or an AC power source), a charging circuit, a power failure detection circuit, an inverter, a power status indicator, and any other electronic body. Components related to the generation, management, and distribution of power in the unit 10 or the main display screen 120.
  • the mobile terminal 100 further includes a locator 119, which is configured to determine an actual location where the mobile terminal 100 is located.
  • the locator 119 uses a positioning service to implement positioning of the mobile terminal 100.
  • the positioning service should be understood as obtaining position information (such as latitude and longitude coordinates) of the mobile terminal 100 through a specific positioning technology. ), A technology or service for marking the location of an object on an electronic map.
  • the above-mentioned mobile terminal 100 is not limited to a smart phone terminal, and it should refer to a computer device that can be used in mobile. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with a smart operating system.
  • the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
  • FIG. 11 illustrates a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 400 stores program code, which can be called by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM.
  • the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 400 has a storage space of program code 410 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
  • the program code 410 may be compressed, for example, in a suitable form.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality” is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
  • Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process
  • the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application pertain.
  • Logic and / or steps represented in a flowchart or otherwise described herein, for example, a sequenced list of executable instructions that may be considered to implement a logical function, may be embodied in any computer-readable medium, For use by or in combination with an instruction execution system, device, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, device, or device) Or equipment.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
  • computer-readable media include the following: electrical connections (mobile terminals) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
  • each part of the application may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.

Abstract

The embodiments of the present application relate to the technical field of mobile terminals, and disclosed thereby are a press area optimization method and device, a mobile terminal and a storage medium. The press area optimization method is applied to the mobile terminal and comprises: detecting a touch operation acting on a user interface of the mobile terminal, and obtaining a contact pointcenter corresponding to the touch operation; obtaining the distance between the contact point center and the screen edge of the mobile terminal closest to the contact point center; determining whether the distance is less than a preset distance; and reducing a preset press area when the distance is less than the preset distance so as to obtain a current press area threshold. According to the press area optimization method and device, mobile terminal and storage medium provided by the embodiments of the present application, a determination threshold of a press area is changed according to a press position so as to solve the problem of a screen edge being difficult to trigger when a large-area press gesture is used.

Description

按压面积优化方法、装置、移动终端以及存储介质Method, device, mobile terminal and storage medium for optimizing pressing area
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年5月28日提交的申请号为201810524858.6的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from a Chinese application with an application number of 201810524858.6, filed on May 28, 2018, which is incorporated herein by reference in its entirety for all purposes.
技术领域Technical field
本申请涉及移动终端技术领域,更具体地,涉及一种信息显示方法、装置、移动终端以及存储介质。The present application relates to the technical field of mobile terminals, and more particularly, to an information display method, device, mobile terminal, and storage medium.
背景技术Background technique
随着科学技术的发展,移动终端已经成为人们日常生活中最常用的电子产品之一。并且,用户经常会通过移动终端获取信息进行大量的阅读,以满足自己的阅读需求。With the development of science and technology, mobile terminals have become one of the most commonly used electronic products in people's daily lives. In addition, users often obtain a large amount of information through mobile terminals to meet their own reading needs.
发明内容Summary of the Invention
鉴于上述问题,本申请提出了一种按压面积优化方法、装置、移动终端以及存储介质,以改善上述问题。In view of the above problems, the present application proposes a method, a device, a mobile terminal, and a storage medium for optimizing the pressing area to improve the above problems.
第一方面,本申请实施例提供了一种按压面积优化方法,应用于移动终端,所述方法包括:检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心;获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离;判断所述距离是否小于预设距离;当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。In a first aspect, an embodiment of the present application provides a method for optimizing a pressing area, which is applied to a mobile terminal. The method includes: detecting a touch operation on a user interface of the mobile terminal, and acquiring a corresponding touch operation. The center of the contact; obtaining the distance between the center of the contact and the edge of the screen nearest the mobile terminal to the center of the contact; determining whether the distance is less than a preset distance; when the distance is less than the preset distance , Decrease the preset pressing area to obtain the current pressing area threshold.
第二方面,本申请实施例提供了一种按压面积优化装置,应用于移动终端,所述装置包括:触点中心获取模块,用于检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心;距离获取模块,用于获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离;距离判断模块,用于判断所述距离是否小于预设距离;当前按压面积阈值获取模块,用于当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。In a second aspect, an embodiment of the present application provides a pressing area optimization device applied to a mobile terminal. The device includes a contact center acquisition module for detecting a touch operation on a user interface of the mobile terminal. To obtain the center of the contact corresponding to the touch operation; a distance acquisition module for acquiring the distance between the center of the contact and the edge of the screen nearest the mobile terminal to the center of the contact; a distance determination module for determining Whether the distance is less than a preset distance; a current pressing area threshold acquisition module, configured to reduce the preset pressing area to obtain the current pressing area threshold when the distance is less than the preset distance.
第三方面,本申请实施例提供了一种移动终端,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, an embodiment of the present application provides a mobile terminal including a touch screen, a memory, and a processor. The touch screen and the memory are coupled to the processor, and the memory stores instructions. When the processor executes, the processor executes the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the foregoing method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative labor.
图1示出了本申请一个实施例提供的按压面积优化方法的流程示意图;FIG. 1 is a schematic flowchart of a pressing area optimization method according to an embodiment of the present application; FIG.
图2示出了本申请又一个实施例提供的按压面积优化方法的流程示意图;FIG. 2 is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application; FIG.
图3示出了本申请实施例提供的大面积按压的示意图;FIG. 3 shows a schematic diagram of large-area compression provided by an embodiment of the present application; FIG.
图4示出了本申请实施例提供的移动终端的用户界面的示意图;FIG. 4 is a schematic diagram of a user interface of a mobile terminal according to an embodiment of the present application; FIG.
图5示出了本申请的图2所示的实施例提供的按压面积优化方法的步骤S260的流程示意图;FIG. 5 is a schematic flowchart of step S260 of the pressing area optimization method provided by the embodiment shown in FIG. 2 of the present application;
图6示出了本申请再一个实施例提供的按压面积优化方法的流程示意图;FIG. 6 is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application; FIG.
图7示出了本申请一个实施例提供的按压面积优化装置的模块框图;FIG. 7 shows a block diagram of a pressing area optimization device according to an embodiment of the present application; FIG.
图8示出了本申请又一个实施例提供的按压面积优化装置的模块框图;8 shows a block diagram of a pressing area optimization device according to another embodiment of the present application;
图9示出了本申请实施例提供的一种移动终端的结构示意图;FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application; FIG.
图10示出了用于执行根据本申请实施例的按压面积优化方法的移动终端的框图FIG. 10 shows a block diagram of a mobile terminal for performing a pressing area optimization method according to an embodiment of the present application.
图11示出了本申请实施例的用于保存或者携带实现根据本申请实施例的按压面积优化方法的程序代码的存储单元。FIG. 11 illustrates a storage unit for saving or carrying a program code that implements a method for optimizing a pressing area according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
目前,用户在通过移动终端上网聊天、阅读文字、查看图片或者观看视频时,经常会对其中的一些内容产生兴趣并进行搜索获取更加详细的信息,此时,用户首先需要复制感兴趣的内容或牢记感兴趣的内容,然后打开浏览器,并将复制的内容粘贴到浏览器的搜索框中或将牢记的内容输入到浏览器的搜索框中进行搜索以获得详细信息,导致操作过程十分的繁琐,耗时较长且容易产生错误。At present, when users use the mobile terminal to chat, read text, view pictures, or watch videos, they often become interested in some of these contents and search for more detailed information. At this time, users first need to copy the content of interest or Remember the content of interest, then open the browser, and paste the copied content into the browser's search box or enter the remembered content into the browser's search box to search for detailed information, resulting in a very tedious process , Takes a long time and is prone to errors.
进一步地,为了解决搜索过程繁琐的问题,越来越多的移动终端厂商开始通过压力感应技术对文本进行识别并提取关键词,然后对关键词进行搜索,避免用户再通过浏览器进行搜索,从而提升信息的获取速度。但是,发明人经过大量的研究发现,在当前的屏幕取词中使用到大面积按压时,由于在屏幕边缘可能存在按压面积未达到当前大面积按压的判断条件而触发不了,导致因触控位置不合适而无法进行识别。针对上述技术问题,发明人提出了本申请实施例提供的按压面积优化方法、装置、移动终端以及存储介质,根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题。其中,具体的按压面积优化方法在后续的实施例中进行详细的说明。Further, in order to solve the tedious search process, more and more mobile terminal manufacturers have begun to recognize text and extract keywords through pressure-sensing technology, and then search for keywords to prevent users from searching through the browser. Improve the speed of obtaining information. However, the inventor has found after a large amount of research that when a large area of pressure is used in the current screen word selection, it may not be triggered because there may be a pressing area at the edge of the screen that does not reach the current condition of the large area pressing, resulting in the touch position. Not suitable for identification. In view of the above technical problems, the inventors have proposed a method, device, mobile terminal, and storage medium for optimizing the pressing area provided by the embodiments of the present application. The determination threshold of the pressing area is changed according to the pressing position, which solves the problem that it is difficult to trigger the edge of the screen when using a large area pressing gesture The problem. The specific pressing area optimization method is described in detail in subsequent embodiments.
请参阅图1,图1示出了本申请一个实施例提供的按压面积优化方法的流程示意图。所述按压面积优化方法用于根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题。在具体的实施例中,所述按压面积优化方法应用于如图7所示的按压面积优化装置200以及配置有所述按压面积优化装置200的移动终端(图9)。下面将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的移动终端可以为智能手机、平板电脑、穿戴式电子设备等,在此不做具体的限定。下面将针对图1所示的流程进行详细的阐述,所述按压面积优化方法具体可以包括以下步骤:Please refer to FIG. 1, which is a schematic flowchart of a method for optimizing a pressing area according to an embodiment of the present application. The pressing area optimization method is used to change the determination threshold of the pressing area according to the pressing position, and solves the problem that it is difficult to trigger the edge of the screen when a large area pressing gesture is used. In a specific embodiment, the pressing area optimization method is applied to a pressing area optimization device 200 as shown in FIG. 7 and a mobile terminal (FIG. 9) configured with the pressing area optimization device 200. In the following, a mobile terminal is taken as an example to explain the specific process of this embodiment. Of course, it can be understood that the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc. limited. The process shown in FIG. 1 will be described in detail below. The pressing area optimization method may specifically include the following steps:
步骤S110:检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心。Step S110: Detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
在本实施例中,移动终端首先显示用户界面,该用户界面可以为移动终端的系统桌面对应的界面,也可以为应用程序的页面对应的界面,其中,当所述用户界面为应用程序的页面对应的界面时,所述应用程序可以为移动终端的系统提供的原生应用程序,如备忘录、照片等,也可以为用户自行安装的第三方应用程序,如小说阅读器、微博、微信、今日头条等,在此不做具体的限定。可以理解的,对于一个应用程序,其通常包括多个用户界面,当应用程序在移动终端的前台运行时,则所述应用程序的多个用户界面中的其中一个用户界面会在所述移动终端的触摸屏上进行显示。In this embodiment, the mobile terminal first displays a user interface, and the user interface may be an interface corresponding to the system desktop of the mobile terminal or an interface corresponding to a page of an application, where the user interface is a page of an application For the corresponding interface, the application can be a native application provided by the mobile terminal system, such as memos, photos, etc., or a third-party application installed by the user, such as a novel reader, Weibo, WeChat, Today Headlines and the like are not specifically limited here. It can be understood that, for an application, it usually includes multiple user interfaces. When the application runs in the foreground of the mobile terminal, one of the user interfaces of the multiple user interfaces of the application will be on the mobile terminal. Display on the touch screen.
进一步地,对作用于移动终端的用户界面上的触控操作进行检测,作为一种方式,该触控操作可以包括单指点击、多指点击、单指长按、多指长按、重压、多次点击、滑动操作、大面积按压等,其中,所述单指点击是指单指在用户界面上进行点击的操作;多指点击是指多指在用户界面上同时进行点击的操作;单指长按是指单指在用户界面上按压超过预设时长;多指长按是指多指同时在用户界面上按压超过预设时长;重压是指在用户界面上按压力度超过预设力度;多次点击是指在预设时间内点击次数超过预设次数;滑动操作是指拖动卡片在触摸屏上进行滑动;大面积按压是指单指在用户界面上的按压范围超过预设范围。可选的,在本实施例中,所述触控操作为大面积按压。Further, the touch operation on the user interface of the mobile terminal is detected. As a method, the touch operation may include single-finger tap, multi-finger tap, single-finger long press, multi-finger long press, and heavy pressure. , Multiple clicks, sliding operations, large-area pressing, etc., where the single-finger click refers to a single-finger click operation on the user interface; the multi-finger click refers to a multi-finger click operation on the user interface at the same time; Single-finger long press means single-finger pressing on the user interface for more than the preset time; Multi-finger long press means multi-finger pressing simultaneously on the user interface for more than the preset time; heavy pressing means that the pressing pressure on the user interface exceeds the preset time Strength; multiple clicks means that the number of clicks exceeds the preset number within a preset time; a swipe operation means dragging a card to slide on the touch screen; a large-area press means a single-finger pressing range on the user interface exceeds the preset range . Optionally, in this embodiment, the touch operation is a large-area pressing.
进一步地,获取触控操作对应的触点中心,作为一种方式,在检测到作用于用户界面上的触控操作时,获取该触控操作的触控区域,基于该触控区域进行计算,获取该触控区域的中心位置,其中,该中心位置为触控操作对应的触点中心。Further, acquiring a contact center corresponding to a touch operation is a method for acquiring a touch area of the touch operation when a touch operation acting on a user interface is detected, and calculating based on the touch area, Obtain the center position of the touch area, where the center position is the center of the contact corresponding to the touch operation.
步骤S120:获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离。Step S120: Obtain a distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal.
作为一种方式,在获取触点中心后,进一步获取该触点中心的坐标信息,并基于该坐标信息可以计算该触点中心距离移动终端的屏幕的上边缘、下边缘、左边缘以及右边缘的距离,然后比较该触点中心距离上边缘、下边缘、左边缘以及右边缘的距离大小,以获取距离该触点中心最近的屏幕边缘以及该触点中心与该屏幕边缘的距离值。As a method, after obtaining the center of the touch point, further obtain coordinate information of the center of the touch point, and based on the coordinate information, the upper edge, lower edge, left edge, and right edge of the touch center from the screen of the mobile terminal can be calculated. Distance from the center of the contact to the top edge, bottom edge, left edge, and right edge, to obtain the screen edge closest to the center of the touch and the distance between the center of the touch and the edge of the screen.
步骤S130:判断所述距离是否小于预设距离。Step S130: Determine whether the distance is less than a preset distance.
在本实施例中,所述移动终端预先设置并存储有预设距离,该预设距离用于作为所述距离的判断依据,因此,在获取所述触点中心与最近的屏幕边缘的距离后,将所述距离与预设距离进行比较,以判断该距离是否小于预设距离。其中,作为一种方式,所述移动终端预先设置并存储有预设按压面积,该预设按压面积为触发大面积按压的最小值,可以理解的,当用户欲触发大面积按压时,则该用户的触控操作对应的按压面积应不小于预设按压面积,进一步地,以大面积按压对应的图形为圆形为例,在本实施例中,所述预设距离不大于预设按压面积对应的直径,即所述预设距离可以为预设按压面积对应的直径的1/4、可以为预设按压面积对应的直径的1/3,也可以为预设按压面积对应的半径。可选的,在本实施例中,所述预设距离为预设按压面积对应的半径。In this embodiment, the mobile terminal sets and stores a preset distance in advance, and the preset distance is used as a basis for determining the distance. Therefore, after obtaining the distance between the center of the touch point and the nearest screen edge, , Comparing the distance with a preset distance to determine whether the distance is less than the preset distance. Among them, as a way, the mobile terminal presets and stores a preset pressing area, and the preset pressing area is a minimum value for triggering a large-area compression. It is understandable that when a user wants to trigger a large-area compression, the The pressing area corresponding to the user's touch operation should not be less than the preset pressing area. Further, the graphic corresponding to the large-area pressing is a circle as an example. In this embodiment, the preset distance is not larger than the preset pressing area. The corresponding diameter, that is, the preset distance may be 1/4 of the diameter corresponding to the preset pressing area, may be 1/3 of the diameter corresponding to the preset pressing area, or may be a radius corresponding to the preset pressing area. Optionally, in this embodiment, the preset distance is a radius corresponding to a preset pressing area.
步骤S140:当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。Step S140: When the distance is less than the preset distance, reduce the preset pressing area to obtain a current pressing area threshold.
在本实施例中,当所述距离小于预设距离时,形成的按压面积会超出离所述触点中心最近的屏幕边缘,其中,超出该屏幕边缘的按压部分不会被检测到,因此,所述移动终端获取的触控操作的按压面积会小于预设按压面积,导致大面积按压判断失败。作为一种方式,在所述距离小于所述预设距离时,减小预设按压面积以获取当前按压面积阈值,可以理解的,此时,将所述当前按压面积阈值作为大面积按压的判断依据,由于当前按压面积由预设按压面积减小后获得,因此,即使触控操作的按压中心位于该触点中心,其对应的按压面积也可能大于该当前按压面积阈值,提升使用大面积按压时屏幕边缘较难触发的问题。作为本实施例的一种方式,当所述预设距离为预设按压面积对应的半径,且该距离小于该预设按压面积对应的半径时,减小预设按压面积获取该当前按压面积阈值。In this embodiment, when the distance is less than the preset distance, the formed pressing area will exceed the edge of the screen closest to the center of the touch point, and the pressing part beyond the edge of the screen will not be detected. Therefore, The pressing area obtained by the touch operation obtained by the mobile terminal will be smaller than a preset pressing area, resulting in failure of a large area pressing judgment. As a method, when the distance is less than the preset distance, reducing the preset pressing area to obtain a current pressing area threshold value, it is understandable that the current pressing area threshold value is used as a judgment of a large area pressing at this time. According to the reason, since the current pressing area is obtained by reducing the preset pressing area, even if the pressing center of the touch operation is located at the center of the contact, the corresponding pressing area may be larger than the current pressing area threshold, which promotes the use of large area pressing. When the screen edge is more difficult to trigger. As a method of this embodiment, when the preset distance is a radius corresponding to the preset pressing area, and the distance is smaller than the radius corresponding to the preset pressing area, reducing the preset pressing area to obtain the current pressing area threshold. .
本申请一个实施例提供的按压面积优化方法,检测作用于移动终端的用户界面上的触控操作,获取该触控操作对应的触点中心,获取该触点中心与移动终端距该触点中心最近的屏幕边缘的距离,判断该距离是否小于预设距离,当该距离小于预设距离时,减小预设按压面积获取当前按压面积阈值,从而根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题。The pressing area optimization method provided by one embodiment of the present application detects a touch operation on a user interface of a mobile terminal, obtains a contact center corresponding to the touch operation, and obtains the distance between the contact center and the mobile terminal from the contact center. The distance from the nearest edge of the screen to determine whether the distance is less than a preset distance. When the distance is less than the preset distance, reduce the preset pressing area to obtain the current pressing area threshold, thereby changing the determining threshold of the pressing area according to the pressing position, and solve the problem. A problem that is difficult to trigger on the edge of the screen when pressing a large area.
请参阅图2,图2示出了本申请又一个实施例提供的按压面积优化方法的流程示意图。下面将针对图2所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 2, which is a schematic flowchart of a pressing area optimization method according to another embodiment of the present application. The process shown in FIG. 2 will be described in detail below. The method may specifically include the following steps:
步骤S210:检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心。Step S210: Detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
步骤S220:判断所述触点中心是否位于所述特殊判断区域。Step S220: Determine whether the contact center is located in the special determination area.
在本实施例中,请参阅图3,图3示出了本申请实施例提供的大面积按压的示意图,所述移动终端的屏幕范围内预先设定一个区域作为特殊判断区域A,其中,该特殊判断区域与移动终端的屏幕边缘的距离等于该预设按压面积对应的半径,其中,该距离为L1,半径为R,则L1=R。可以理解的,该特殊判断区域A的形状与移动终端的屏幕的形状一致,例如,该特殊判断区域A的形状和所述移动终端的屏幕的形状均为长方形,且该特殊判断区域A的各边缘与移动终端的屏幕对应的各边缘的距离均为L1。In this embodiment, please refer to FIG. 3. FIG. 3 shows a schematic diagram of large-area pressing provided by an embodiment of the present application. A region in the screen range of the mobile terminal is preset as a special judgment region A. The distance between the special determination area and the screen edge of the mobile terminal is equal to the radius corresponding to the preset pressing area, where the distance is L1 and the radius is R, then L1 = R. It can be understood that the shape of the special judgment area A is consistent with the shape of the screen of the mobile terminal. For example, the shape of the special judgment area A and the shape of the screen of the mobile terminal are both rectangular, and each of the special judgment area A is rectangular. The distance between the edge and each edge corresponding to the screen of the mobile terminal is L1.
作为一种方式,获取所述触点中心的坐标信息,以及获取该特殊判断区域A的坐标信息, 判断该触点中心的坐标信息是否落在该特殊判断区域A的坐标信息内,可以理解的,当所述触点中心的坐标信息落在该特殊判断区域A坐标信息内时,表征该触点中心位于该特殊判断区域A;当触点中心的坐标信息没有落在该特殊判断区域A的坐标信息内时,表征该触点中心没有位于该特殊判断区域A。As a way, it is understandable that the coordinate information of the contact center and the coordinate information of the special judgment area A are acquired to determine whether the coordinate information of the contact center falls within the coordinate information of the special judgment area A. When the coordinate information of the contact center falls within the coordinate information of the special judgment area A, it indicates that the contact center is located in the special judgment area A; when the coordinate information of the contact center does not fall in the special judgment area A When it is in the coordinate information, it means that the center of the contact is not located in the special judgment area A.
步骤S230:当所述触点中心位于所述特殊判断区域时,减小所述预设按压面积获取所述当前按压面积阈值。Step S230: When the contact center is located in the special judgment area, reduce the preset pressing area to obtain the current pressing area threshold.
其中,作为一种方式,当所述触点中心位于特殊判断区域A时,按四分之一比例缩小所述预设按压面积,即按半径的二分之一缩小所述预设按压面积,以获得当前按压面积阈值。可以理解的,所述预设按压面积按比例缩小后,获得的当前按压面积阈值对应的直径小于L1,因此,即使该触点中心落在特殊判断区域A,依然能满足用户的需要进行大面积按压,避免在屏幕边缘按压面积未达到预设按压面积的判断条件导致触发不了的问题。Among them, when the center of the contact is located in the special judgment area A, the preset pressing area is reduced by a quarter ratio, that is, the preset pressing area is reduced by a half of the radius. To get the current pressing area threshold. It can be understood that after the preset pressing area is scaled down, the diameter corresponding to the current pressing area threshold obtained is smaller than L1. Therefore, even if the center of the contact falls in the special judgment area A, it can still meet the user's needs for a large area. Press to avoid the problem that the trigger condition cannot be triggered due to the judgment condition that the pressing area at the edge of the screen does not reach the preset pressing area.
请继续参阅图3,例如:用户刚好以满足预设按压面积的大小(圆B)按压该移动终端的屏幕边缘时,系统会判断该触点中心落在特殊判断区域,则减小该预设按压面积获取当前按压面积阈值,此时落在边缘区域的面积大于当前按压面积阈值(圆C),则该触控操作判断成功。Please continue to refer to FIG. 3, for example: when the user just presses the edge of the screen of the mobile terminal to meet the size of the preset pressing area (circle B), the system will determine that the center of the touch point falls in a special judgment area, then decrease the preset The pressed area obtains the current pressed area threshold. At this time, the area falling on the edge area is larger than the current pressed area threshold (circle C), and the touch operation is determined to be successful.
步骤S240:获取所述触控操作对应的按压面积。Step S240: Obtain a pressing area corresponding to the touch operation.
作为一种方式,可以获取该触控操作对应的触控区域,基于该触控区域形成包围区域,计算该包围区域对应的按压面积。可以理解的,该按压面积可以和触控操作与屏幕之间的触碰面积一致,也可以和触控操作与屏幕之间的触碰面积不一致,例如,该按压面积可以为基于该触碰面积形成大于该触碰面积的包围区域面积,在此不做限定。As a method, a touch area corresponding to the touch operation can be obtained, a surrounding area is formed based on the touch area, and a pressing area corresponding to the surrounding area is calculated. It can be understood that the pressing area may be consistent with the touch area between the touch operation and the screen, or may be different from the touch area between the touch operation and the screen. For example, the pressing area may be based on the touch area. The area of the enclosing area that is larger than the touch area is not limited herein.
步骤S250:判断所述按压面积是否不小于所述当前按压面积阈值。Step S250: Determine whether the pressing area is not less than the current pressing area threshold.
其中,在获取该当前按压面积阈值后,所述移动终端将该当前按压面积阈值缓存至移动终端的内存或存储至本地作为该按压面积的判断依据,因此,在获取该按压面积时,将按压面积与当前按压面积阈值进行比较,以判断该按压面积是否不小于当前按压面积阈值,其中,在按压面积不小于该当前按压面积阈值时,表征该大面积按压判断成功,在按压面积小于该当前按压面积阈值时,表征该大面积按压判断失败。After acquiring the current pressing area threshold, the mobile terminal caches the current pressing area threshold to the memory of the mobile terminal or stores it locally as a basis for judging the pressing area. Therefore, when acquiring the pressing area, the pressing is performed. The area is compared with the current pressing area threshold to determine whether the pressing area is not less than the current pressing area threshold. When the pressing area is not less than the current pressing area threshold, it indicates that the large area pressing judgment is successful, and the pressing area is smaller than the current pressing area threshold. When the pressing area threshold value indicates that the large area pressing judgment has failed.
步骤S260:当所述按压面积不小于所述当前按压面积阈值时,基于所述触控操作在所述用户界面的部分区域上叠加显示至少一个卡片,所述至少一个卡片用于显示由所述用户界面上的至少一个界面元素识别出的信息。Step S260: When the pressing area is not less than the current pressing area threshold, based on the touch operation, at least one card is superimposed and displayed on a part of the user interface, and the at least one card is used to display Information identified by at least one interface element on the user interface.
请参阅图4,图4示出了本申请实施例提供的移动终端的用户界面的示意图,其中,图4所示的用户界面可以在大面积按压判断成功时,由图3所示的用户界面跳转获得。该用户界面的部分区域可以位于该用户界面的下半部的部分区域、可以位于该用户界面的上半部的部分区域、可以位于该用户界面的左半部的部分区域、也可以位于该用户界面的右半部的部分区域等,可选的,在本实施例中,所述部分区域位于所述用户界面的下半部靠近底部的区域,其大小不做具体的限定。具体地,所述用户界面中的界面元素包括但不限于文本、图片、音频或视频,对其进行识别以获取与所述用户界面中的内容对应的搜索结果信息,该搜索结果信息以卡片的形式进行显示,其中,所述卡片作为承载所述搜索结果信息的载体,每个卡片至少可以显示一个搜索结果信息,至少一个卡片中的每个卡片显示的搜索结果信息的数量可以相同,也可以不同,且每个卡片显示的搜索结果信息可以来自同一应用程序,或来自不同的应用程序。Please refer to FIG. 4. FIG. 4 shows a schematic diagram of a user interface of a mobile terminal according to an embodiment of the present application. The user interface shown in FIG. 4 can be determined by the user interface shown in FIG. Jump to get. Part of the user interface can be located in the lower half of the user interface, can be located in the upper half of the user interface, can be located in the left half of the user interface, or the user A partial area of the right half of the interface is optional. In this embodiment, the partial area is located in an area near the bottom of the lower half of the user interface, and its size is not specifically limited. Specifically, interface elements in the user interface include, but are not limited to, text, pictures, audio, or video, and are identified to obtain search result information corresponding to the content in the user interface. The search result information is based on a card. Display in a format, wherein the card serves as a carrier carrying the search result information, and each card may display at least one search result information, and the number of search result information displayed by each card in at least one card may be the same or Different, and the search result information displayed by each card can come from the same application, or from different applications.
进一步地,所述至少一个卡片以叠加的形式显示在所述用户界面的部分区域上,可以理解的,此时,所述卡片可以层叠显示在所述用户界面的部分区域的上方,所述卡片也可以覆盖所述用户界面的部分区域且与所述用户界面在不同层级显示。另外,在本实施例中,当所述至少一个卡片叠加显示在所述用户界面的部分区域时,位于所述部分区域的原始内容仍部分可见,不完全被遮挡,以供用户点击操作。Further, the at least one card is displayed in a superimposed form on a partial area of the user interface. Understandably, at this time, the card may be displayed in a layered manner above the partial area of the user interface. It may also cover a part of the user interface and be displayed at a different level from the user interface. In addition, in this embodiment, when the at least one card is superimposed and displayed in a partial area of the user interface, the original content located in the partial area is still partially visible and is not completely blocked for a user's click operation.
请参阅图5,图5示出了本申请的图2所示的实施例提供的按压面积优化方法的步骤S260 的流程示意图。下面将针对图5所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 5, which illustrates a schematic flowchart of step S260 of the pressing area optimization method provided by the embodiment shown in FIG. 2 of the present application. The process shown in FIG. 5 will be described in detail below. The method may specifically include the following steps:
步骤S261:当所述按压面积不小于所述当前按压面积阈值时,获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素。Step S261: when the pressing area is not less than the current pressing area threshold, obtaining coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information.
进一步地,在触控操作判断成功后,获取所述触点中心的坐标信息和所述用户界面上的各个文本的坐标信息,判断是否有与触点中心的坐标信息重合的文本,作为一种方式,将坐标信息重合的文本确定为界面元素,将坐标信息不重合的文本确定为非界面元素;作为另一种方式,获取与触点中心坐标信息重合的文本所在的段落,将上述段落作为界面元素,将其他段落作为非界面元素。当然,所述界面元素的确定还可以通过其他方法,例如,可以基于该触点中心的坐标信息生成选择框并在用户界面显示,其中,该选择框用于选择界面元素,另外,该选择框的大小和位置可以受控制更改,再基于用户对该选择框的控制,将该选择框内的界面元素确定为至少一个界面元素在此,不再穷举。Further, after the touch operation is successfully determined, the coordinate information of the contact center and the coordinate information of each text on the user interface are acquired, and it is determined whether there is a text that coincides with the coordinate information of the contact center, as a kind of Method, the text with the coincident coordinate information is determined as the interface element, and the text with the coincident coordinate information is determined as the non-interface element; as another method, the paragraph where the text coincides with the coordinate information of the center of the contact is located, and the above paragraph is used as Interface elements, with other paragraphs as non-interface elements. Of course, the determination of the interface element may also be performed by other methods. For example, a selection box may be generated and displayed on the user interface based on the coordinate information of the center of the contact, where the selection box is used to select the interface element, and in addition, the selection box The size and position of the selection box can be controlled and changed, and based on the user's control of the selection box, the interface element in the selection box is determined to be at least one interface element here, which is no longer exhaustive.
步骤S262:基于所述至少一个界面元素进行搜索,获取与所述至少一个界面元素对应的内容,基于所述内容形成所述至少一个卡片。Step S262: Perform a search based on the at least one interface element, obtain content corresponding to the at least one interface element, and form the at least one card based on the content.
其中,在获取至少一个界面元素后,对至少一个界面元素进行识别并提取所述目标界面元素中的关键词,基于该关键词进行搜索,可以理解的,针对该关键词的搜索可能对应有多个搜索结果信息,将所述多个搜索结果信息显示在至少一个卡片上,移动终端将所述至少一个卡片显示在用户界面的部分区域上。进一步地,所述搜索结果信息可以对应有浏览器中的详情信息,也可以对应有应用程序的播放信息等,例如,当所述关键词为电影名称时,所述搜索结果信息可以包括浏览器中对该电影的关键信息介绍,也可以包括视频播放应用程序对该电影的播放视频等,将其均显示在卡片上,更加方便用户对对应该电影名称的多种信息的获取。Wherein, after obtaining at least one interface element, identifying at least one interface element and extracting keywords in the target interface element, and searching based on the keywords, it is understandable that the search for the keywords may correspond to how many Search result information, displaying the plurality of search result information on at least one card, and the mobile terminal displaying the at least one card on a part of a user interface. Further, the search result information may correspond to detailed information in a browser, and may also correspond to playback information of an application, for example, when the keyword is a movie name, the search result information may include a browser The introduction of the key information about the movie in the movie can also include the video playback application program playing the movie, etc., which are all displayed on the card, which is more convenient for users to obtain a variety of information corresponding to the movie name.
步骤S263:在所述用户界面的部分区域上叠加显示所述至少一个卡片。Step S263: Display the at least one card on a partial area of the user interface.
本申请又一个实施例提供的按压面积优化方法,检测作用于移动终端的用户界面上的触控操作,获取该触控操作对应的触点中心,判断该触点中心是否位于特殊判断区域,当该触点中心位于特殊判断区域时,减小预设按压面积获取当前按压面积阈值,获取触控操作对应的按压面积,判断该按压面积是否不小于当前按压面积阈值,当按压面积不小于当前按压面积阈值时,基于该触控操作在用户界面的部分区域上叠加显示至少一个卡片,该至少一个卡片用于显示由用户界面上的至少一个界面元素识别出的信息,从而根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题,并在按压面积不小于减小后的按压面积阈值时,快速识别文本信息并显示。The pressing area optimization method provided by another embodiment of the present application detects a touch operation on a user interface of a mobile terminal, acquires a contact center corresponding to the touch operation, and determines whether the contact center is located in a special judgment area. When the center of the contact is located in a special judgment area, the preset pressing area is reduced to obtain the current pressing area threshold, and the pressing area corresponding to the touch operation is obtained to determine whether the pressing area is not less than the current pressing area threshold. When the pressing area is not less than the current pressing area, At the area threshold, based on the touch operation, at least one card is superimposed and displayed on a part of the user interface. The at least one card is used to display information identified by at least one interface element on the user interface, thereby changing the pressing area according to the pressing position. The threshold value of the resolution solves the problem that it is difficult to trigger the edge of the screen when using a large-area pressing gesture, and quickly recognizes and displays text information when the pressing area is not less than the reduced pressing area threshold.
请参阅图6,图6示出了本申请再一个实施例提供的按压面积优化方法的流程示意图。下面将针对图6所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 6, which illustrates a schematic flowchart of a method for optimizing a pressing area according to another embodiment of the present application. The process shown in FIG. 6 will be described in detail below. The method may specifically include the following steps:
步骤S310:检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作形成的包围区域。Step S310: Detect a touch operation on a user interface of the mobile terminal, and obtain an enclosed area formed by the touch operation.
步骤S320:获取所述包围区域的最大横坐标差值和最大纵坐标差值。Step S320: Obtain a maximum horizontal coordinate difference value and a maximum vertical coordinate difference value of the surrounding area.
作为一种方式,获取该包围区域中的最大横坐标差值和最大纵坐标差值,可以理解的,基于最大横坐标差值可以获取该包围区域的宽度,基于最大纵坐标差值可以获取该包围区域的长度,基于所述宽度和所述长度可以获取该包围区域的最大面积。As a method, the maximum abscissa difference and the largest ordinate difference value in the surrounding area can be obtained. It can be understood that the width of the surrounding area can be obtained based on the maximum abscissa difference value, and the maximum ordinate difference value can be obtained based on the maximum abscissa value. The length of the surrounding area, based on the width and the length, the maximum area of the surrounding area can be obtained.
步骤S330:判断所述最大横坐标差值是否大于第一预设值,以及判断所述最大纵坐标差值是否大于第二预设值。Step S330: Determine whether the maximum abscissa difference is greater than a first preset value, and determine whether the maximum ordinate difference is greater than a second preset value.
进一步地,所述移动终端预先设置并存储有第一预设值和第二预设值,其中,该第一预设值用于作为触控操作对应的宽度值的判断依据,第二预设值用于作为触控操作对应的长度值的判断依据,并且,在宽度值大于第一预设值且长度值大于第二预设值时,表征该触控操作对应的按压面积可能满足面积设定,确定该触控操作为大面积按压。Further, the mobile terminal sets and stores a first preset value and a second preset value in advance, wherein the first preset value is used as a basis for determining a width value corresponding to a touch operation, and the second preset value is The value is used as a basis for judging the length value corresponding to the touch operation, and when the width value is greater than the first preset value and the length value is greater than the second preset value, the pressing area corresponding to the touch operation may satisfy the area setting It is determined that the touch operation is a large area pressing.
步骤S340:当所述最大横坐标差值大于所述第一预设值以及当所述最大纵坐标差值大于 所述第二预设值时,确定所述触控操作为大面积按压。Step S340: When the maximum abscissa difference is greater than the first preset value and when the maximum ordinate difference is greater than the second preset value, determine that the touch operation is a large-area pressing.
步骤S350:获取所述包围区域的中心位置,将所述中心位置作为所述触点中心。Step S350: Obtain the center position of the surrounding area, and use the center position as the center of the contact.
步骤S360:获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离。Step S360: Obtain a distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal.
步骤S370:判断所述距离是否小于预设距离。Step S370: Determine whether the distance is less than a preset distance.
步骤S380:当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。Step S380: When the distance is less than the preset distance, reduce the preset pressing area to obtain a current pressing area threshold.
本申请再一个实施例提供的按压面积优化方法,检测作用于移动终端的用户界面上的触控操作,获取该触控操作形成的包围区域,获取该包围区域的最大横坐标差值和最大纵坐标差值,判断该最大横坐标差值是否大于第一预设值以及判断该最大纵坐标差值是否大于第二预设值,当最大横坐标差值大于第一预设值以及当最大纵坐标差值大于第二预设值时,确定该触控操作为大面积按压,获取该包围区域的中心位置,将中心位置作为触点中心,获取该触点中心与移动终端距触点中心最近的屏幕边缘的距离,判断该距离是否小于预设距离,当该距离小于预设距离时,减小预设按压面积获取当前按压面积阈值,从而根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题。The pressing area optimization method provided by another embodiment of the present application detects a touch operation on a user interface of a mobile terminal, acquires a surrounding area formed by the touch operation, and obtains a maximum horizontal coordinate difference value and a maximum vertical direction of the surrounding area. Coordinate difference, to determine whether the maximum horizontal coordinate difference is greater than a first preset value and whether the maximum vertical coordinate difference is greater than a second preset value, when the maximum horizontal coordinate difference is greater than the first preset value and when the maximum vertical coordinate difference When the coordinate difference is greater than the second preset value, it is determined that the touch operation is a large-area pressing, the center position of the surrounding area is obtained, the center position is used as the contact center, and the contact center and the mobile terminal are closest to the contact center The distance of the edge of the screen to determine whether the distance is less than the preset distance. When the distance is less than the preset distance, reduce the preset pressing area to obtain the current pressing area threshold, thereby changing the determining threshold of the pressing area according to the pressing position, and solving the problem of using large An issue where the edge of the screen is more difficult to trigger when pressing area gestures.
请参阅图7,图7示出了本申请一个实施例提供的按压面积优化装置200的模块框图。下面将针对图7所示的框图进行阐述,所述按压面积优化装置200应用于移动终端,该按压面积优化装置200包括:触点中心获取模块210、距离获取模块220、距离判断模块230以及当前按压面积阈值获取模块240,其中:Please refer to FIG. 7, which illustrates a block diagram of a pressing area optimization device 200 according to an embodiment of the present application. The following will describe the block diagram shown in FIG. 7. The pressing area optimization device 200 is applied to a mobile terminal. The pressing area optimization device 200 includes: a contact center acquisition module 210, a distance acquisition module 220, a distance judgment module 230, and a current The pressing area threshold obtaining module 240, wherein:
触点中心获取模块210,用于检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心。The contact center obtaining module 210 is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation.
距离获取模块220,用于获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离。The distance obtaining module 220 is configured to obtain a distance between the center of the touch point and a screen edge of the mobile terminal closest to the center of the touch point.
距离判断模块230,用于判断所述距离是否小于预设距离。The distance determining module 230 is configured to determine whether the distance is less than a preset distance.
当前按压面积阈值获取模块240,用于当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。The current pressing area threshold acquisition module 240 is configured to reduce the preset pressing area to obtain the current pressing area threshold when the distance is less than the preset distance.
请参阅图8,图8示出了本申请又一个实施例提供的按压面积优化装置300的模块框图。下面将针对图8所示的框图进行阐述,所述按压面积优化装置300应用于移动终端,该按压面积优化装置300包括:触点中心获取模块310、触点中心判断模块320、当前按压面积阈值获取模块330、按压面积获取模块340、按压面积判断模块350以及卡片显示模块360,其中:Please refer to FIG. 8, which illustrates a block diagram of a pressing area optimization device 300 according to another embodiment of the present application. The following describes the block diagram shown in FIG. 8. The pressing area optimization device 300 is applied to a mobile terminal. The pressing area optimization device 300 includes: a contact center acquisition module 310, a contact center determination module 320, and a current pressing area threshold. The obtaining module 330, the pressing area acquiring module 340, the pressing area judging module 350, and the card display module 360, among which:
触点中心获取模块310,用于检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心。进一步地,所述触点中心获取模块310包括:包围区域获取子模块、坐标差值获取子模块、坐标差值判断子模块、大面积按压确定子模块以及触点中心获取子模块,其中:The contact center obtaining module 310 is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a contact center corresponding to the touch operation. Further, the contact center acquisition module 310 includes a surrounding area acquisition sub-module, a coordinate difference acquisition sub-module, a coordinate difference judgment sub-module, a large area determination sub-module, and a contact center acquisition sub-module, wherein:
包围区域获取子模块,用于检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作形成的包围区域。A surrounding area acquisition submodule is configured to detect a touch operation on a user interface of the mobile terminal, and obtain a surrounding area formed by the touch operation.
坐标差值获取子模块,用于获取所述包围区域的最大横坐标差值和最大纵坐标差值。The coordinate difference obtaining submodule is configured to obtain a maximum horizontal coordinate difference value and a maximum vertical coordinate difference value of the surrounding area.
坐标差值判断子模块,用于判断所述最大横坐标差值是否大于第一预设值,以及判断所述最大纵坐标差值是否大于第二预设值。The coordinate difference judgment submodule is configured to determine whether the maximum horizontal coordinate difference is greater than a first preset value, and determine whether the maximum vertical coordinate difference is greater than a second preset value.
大面积按压确定子模块,用于当所述最大横坐标差值大于所述第一预设值以及当所述最大纵坐标差值大于所述第二预设值时,确定所述触控操作为大面积按压。The large area pressing determination sub-module is configured to determine the touch operation when the maximum abscissa difference is greater than the first preset value and when the maximum ordinate difference is greater than the second preset value Press for a large area.
触点中心获取子模块,用于获取所述包围区域的中心位置,将所述中心位置作为所述触点中心。The contact center acquisition submodule is configured to acquire a center position of the surrounding area, and use the center position as the contact center.
触点中心判断模块320,用于判断所述触点中心是否位于所述特殊判断区域。The contact center determination module 320 is configured to determine whether the contact center is located in the special determination area.
当前按压面积阈值获取模块330,用于当所述触点中心位于所述特殊判断区域时,减小所述预设按压面积获取所述当前按压面积阈值。The current pressing area threshold acquisition module 330 is configured to reduce the preset pressing area to obtain the current pressing area threshold when the contact center is located in the special determination area.
按压面积获取模块340,用于获取所述触控操作对应的按压面积。The pressing area acquiring module 340 is configured to acquire a pressing area corresponding to the touch operation.
按压面积判断模块350,用于判断所述按压面积是否不小于所述当前按压面积阈值。The pressing area determination module 350 is configured to determine whether the pressing area is not less than the current pressing area threshold.
卡片显示模块360,用于当所述按压面积不小于所述当前按压面积阈值时,基于所述触控操作在所述用户界面的部分区域上叠加显示至少一个卡片,所述至少一个卡片用于显示由所述用户界面上的至少一个界面元素识别出的信息。进一步地,所述卡片显示模块360包括:界面元素确定子模块、卡片获取子模块以及卡片显示子模块,其中:A card display module 360 is configured to superimpose and display at least one card on a partial area of the user interface based on the touch operation when the pressing area is not less than the current pressing area threshold, and the at least one card is used for Displaying information identified by at least one interface element on the user interface. Further, the card display module 360 includes: an interface element determination sub-module, a card acquisition sub-module, and a card display sub-module, wherein:
界面元素确定子模块,用于当所述按压面积不小于所述当前按压面积阈值时,获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素。An interface element determination submodule is configured to obtain coordinate information of the center of the touch point and determine the at least one interface element based on the coordinate information when the pressing area is not less than the current pressing area threshold.
卡片获取子模块,用于基于所述至少一个界面元素进行搜索,获取与所述至少一个界面元素对应的内容,基于所述内容形成所述至少一个卡片。The card acquisition submodule is configured to perform a search based on the at least one interface element, acquire content corresponding to the at least one interface element, and form the at least one card based on the content.
卡片显示子模块,用于在所述用户界面的部分区域上叠加显示所述至少一个卡片。The card display submodule is configured to superimpose and display the at least one card on a part of the user interface.
综上所述,本申请实施例提供的一种按压面积优化方法、装置、移动终端以及存储介质,检测作用于移动终端的用户界面上的触控操作,获取该触控操作对应的触点中心,获取该触点中心与移动终端距该触点中心最近的屏幕边缘的距离,判断该距离是否小于预设距离,当该距离小于预设距离时,减小预设按压面积获取当前按压面积阈值,从而根据按压位置改变按压面积的判定阈值,解决使用大面积按压手势时屏幕边缘较难触发的问题。In summary, a method, device, mobile terminal, and storage medium for optimizing a pressing area provided in the embodiments of the present application detect a touch operation on a user interface of a mobile terminal, and obtain a contact center corresponding to the touch operation. To obtain the distance between the center of the touch point and the edge of the screen closest to the center of the touch point, and determine whether the distance is less than a preset distance. When the distance is less than the preset distance, reduce the preset pressing area to obtain the current pressing area threshold. Therefore, the determination threshold of the pressing area is changed according to the pressing position, and the problem that the edge of the screen is difficult to trigger when using a large area pressing gesture is solved.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments refer to each other. can. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant part, refer to the description of the method embodiment. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and will not be described in detail in the device embodiments.
请再次参阅图9,基于上述的按压面积优化方法、装置,本申请实施例还提供一种移动终端100,其包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。Please refer to FIG. 9 again. Based on the above-mentioned method and device for optimizing the pressing area, an embodiment of the present application further provides a mobile terminal 100 including an electronic body part 10 including a housing 12 and disposed on the housing. The main display 120 on the casing 12. The casing 12 can be made of metal, such as steel and aluminum alloy. In this embodiment, the main display screen 120 generally includes a display panel 111, and may also include a circuit for responding to a touch operation on the display panel 111, and the like. The display panel 111 may be a liquid crystal display (Liquid Crystal Display, LCD). In some embodiments, the display panel 111 is a touch screen 109 at the same time.
请同时参阅图10,在实际的应用场景中,所述移动终端100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图10所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图10中所示更多或者更少的组件,或者具有与图10所示不同的配置。Please refer to FIG. 10 at the same time. In an actual application scenario, the mobile terminal 100 can be used as a smart phone terminal. In this case, the electronic body portion 10 usually further includes one or more (only shown in the figure) (A) The processor 102, the memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. Persons of ordinary skill in the art can understand that the structure shown in FIG. 10 is only schematic, and it does not limit the structure of the electronic body portion 10. For example, the electronic body portion 10 may further include more or fewer components than those shown in FIG. 10, or have a different configuration from that shown in FIG. 10.
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其它的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其它元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those of ordinary skill in the art can understand that, relative to the processor 102, all other components belong to peripheral devices, and the processor 102 and these peripheral devices are coupled through multiple peripheral interface 124. The peripheral interface 124 may be implemented based on the following standards: Universal Asynchronous Receiver / Transmitter (UART), General Input / Output (GPIO), Serial Peripheral Interface , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may further include other elements, such as one or more controllers, for example, for connecting the display panel. A display controller of 111 or a memory controller for connecting a memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated into the processor 102 or a corresponding peripheral.
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其它非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述 电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memories remotely disposed with respect to the processor 102, and these remote memories may be connected to the electronic body portion 10 or the main display screen 120 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其它设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其它设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband code division multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其它用于邮件、即时通讯及短消息的协议,以及任何其它合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used to receive and send electromagnetic waves, to realize the mutual conversion of electromagnetic waves and electrical signals, and to communicate with a communication network or other equipment. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like . The RF module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data Communication Technology (GSM) Environment, EDGE, Broadband Code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity , WiFi) (such as the American Institute of Electrical and Electronics Engineers standards IEEE 802.10A, IEEE 802.11b, IEEE802.11g, and / or IEEE 802.11n), Voice over Internet (Internet Protocol, VoIP), and Global Microwave Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, even those that have not yet been developed.
音频电路110、听筒101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述听筒101。所述听筒101将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110, the earpiece 101, the sound jack 103, and the microphone 105 collectively provide an audio interface between the user and the electronic body portion 10 or the main display screen 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into electrical signals, and transmits the electrical signals to the handset 101. The earpiece 101 converts electrical signals into sound waves that human ears can hear. The audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the RF module 106. In addition, the audio data may also be stored in the memory 104 or transmitted through the RF module 106.
所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、重力加速度传感器、以及其它传感器。The sensor 114 is disposed in the electronic body portion 10 or the main display screen 120. Examples of the sensor 114 include, but are not limited to, a light sensor, a running sensor, a pressure sensor, a gravity acceleration sensor, and other sensors. .
具体地,所述传感器114可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在移动终端100产生的压力的传感器。即,压力传感器114G检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与移动终端100之间是否发生了接触或者按压,以及压力的大小。Specifically, the sensor 114 may include a light sensor 114F and a pressure sensor 114G. Among them, the pressure sensor 114G can detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects the pressure generated by the contact or pressing between the user and the mobile terminal, such as the pressure generated by the contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether a contact or a press has occurred between the user and the mobile terminal 100, and the magnitude of the pressure.
请再次参阅图10,具体地在图10所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Please refer to FIG. 10 again. Specifically, in the embodiment shown in FIG. 10, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object approaches the main display screen 120, for example, when the electronic body portion 10 moves to the ear.
作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其它传感器,在此不再赘述,As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the attitude of the mobile terminal 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap) and so on. In addition, the electronic body portion 10 may be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which are not described herein again.
本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息, 并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其它输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 provided on the main display screen 120, and the touch screen 109 may collect a user's touch operation on or near the user (such as a user using a finger, a stylus, etc.). Wait for any suitable object or accessory to be operated on or near the touch screen 109), and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects a user's touch position, and detects a signal caused by a touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch detection function of the touch screen 109. In addition to the touch screen 109, in other modified embodiments, the input module 118 may further include other input devices, such as keys 107. The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to the home screen" button, an on / off button, and the like.
所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The main display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic body portion 10, and these graphical user interfaces may include graphics, text, icons, numbers, videos, and The touch panel 109 may be arranged in any combination. In one example, the touch screen 109 may be disposed on the display panel 111 so as to form a whole with the display panel 111.
所述电源模块122用于向所述处理器102以及其它各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其它任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is configured to provide power to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as a battery or an AC power source), a charging circuit, a power failure detection circuit, an inverter, a power status indicator, and any other electronic body. Components related to the generation, management, and distribution of power in the unit 10 or the main display screen 120.
所述移动终端100还包括定位器119,所述定位器119用于确定所述移动终端100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述移动终端100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The mobile terminal 100 further includes a locator 119, which is configured to determine an actual location where the mobile terminal 100 is located. In this embodiment, the locator 119 uses a positioning service to implement positioning of the mobile terminal 100. The positioning service should be understood as obtaining position information (such as latitude and longitude coordinates) of the mobile terminal 100 through a specific positioning technology. ), A technology or service for marking the location of an object on an electronic map.
应当理解的是,上述的移动终端100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端100,是指搭载了智能操作系统的移动计算机设备,移动终端100包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the above-mentioned mobile terminal 100 is not limited to a smart phone terminal, and it should refer to a computer device that can be used in mobile. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with a smart operating system. The mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
请参阅图11,图11示出了本申请实施例提供的一种计算机可读存储介质的结构框图。计算机可读存储介质400中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 11, which illustrates a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 400 stores program code, which can be called by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质400具有执行上述方法中的任何方法步骤的程序代码410的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码410可以例如以适当形式进行压缩。The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has a storage space of program code 410 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products. The program code 410 may be compressed, for example, in a suitable form.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structure, materials, or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, without any contradiction, those skilled in the art may combine and combine different embodiments or examples and features of the different embodiments or examples described in this specification.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
流程图中或在此以其它方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process And, the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其它方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其它可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其它合适的介质,因为可以例如通过对纸或其它介质进行光学扫描,接着进行编辑、解译或必要时以其它合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。Logic and / or steps represented in a flowchart or otherwise described herein, for example, a sequenced list of executable instructions that may be considered to implement a logical function, may be embodied in any computer-readable medium, For use by or in combination with an instruction execution system, device, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, device, or device) Or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connections (mobile terminals) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the application may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。A person of ordinary skill in the art can understand that all or part of the steps carried by the methods in the foregoing embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The program is When executed, one or a combination of the steps of the method embodiment is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application. Those skilled in the art can interpret the above within the scope of the present application. Embodiments are subject to change, modification, substitution, and modification.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种按压面积优化方法,其特征在于,应用于移动终端,所述方法包括:A pressing area optimization method, which is characterized in that it is applied to a mobile terminal, and the method includes:
    检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心;Detecting a touch operation acting on a user interface of the mobile terminal to obtain a contact center corresponding to the touch operation;
    获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离;Acquiring the distance between the center of the contact and the screen edge of the mobile terminal closest to the center of the contact;
    判断所述距离是否小于预设距离;Determining whether the distance is less than a preset distance;
    当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。When the distance is less than the preset distance, reducing the preset pressing area to obtain a current pressing area threshold.
  2. 根据权利要求1所述的方法,其特征在于,所述判断所述距离是否小于预设距离,包括:The method according to claim 1, wherein the determining whether the distance is less than a preset distance comprises:
    判断所述距离是否小于所述预设按压面积对应的半径;Determining whether the distance is smaller than a radius corresponding to the preset pressing area;
    所述当所述距离小于所述预设距离时,减小所述预设按压面积获取当前按压面积阈值,包括:When the distance is less than the preset distance, reducing the preset pressing area to obtain a current pressing area threshold includes:
    当所述距离小于所述预设按压面积对应的半径时,减小所述预设按压面积获取所述当前按压面积阈值。When the distance is smaller than the radius corresponding to the preset pressing area, reducing the preset pressing area to obtain the current pressing area threshold.
  3. 根据权利要求1所述的方法,其特征在于,所述移动终端预先设置有特殊判断区域,所述特殊判断区域与所述移动终端的屏幕边缘的距离等于所述预设按压面积对应的半径,所述方法还包括:The method according to claim 1, wherein the mobile terminal is preset with a special judgment area, and a distance between the special judgment area and a screen edge of the mobile terminal is equal to a radius corresponding to the preset pressing area, The method further includes:
    判断所述触点中心是否位于所述特殊判断区域;Judging whether the center of the contact is located in the special judgment area;
    当所述触点中心位于所述特殊判断区域时,减小所述预设按压面积获取所述当前按压面积阈值。When the contact center is located in the special judgment area, the preset pressing area is reduced to obtain the current pressing area threshold.
  4. 根据权利要求3所述的方法,其特征在于,所述当所述触点中心位于所述特殊判断区域时,减少所述预设按压面积获取所述当前按压面积阈值,包括:The method according to claim 3, wherein when the contact center is located in the special judgment area, reducing the preset pressing area to obtain the current pressing area threshold comprises:
    当所述触点中心位于所述特殊判断区域时,按四分之一比例缩小所述预设按压面积获取所述当前按压面积阈值。When the center of the touch point is located in the special judgment area, the preset pressing area is reduced by a quarter ratio to obtain the current pressing area threshold.
  5. 根据权利要求3或4所述的方法,其特征在于,所述判断所述触点中心是否位于所述特殊判断区域,包括:The method according to claim 3 or 4, wherein the determining whether the center of the contact is located in the special determination area comprises:
    获取所述触点中心的坐标信息和所述特殊判断区域的坐标信息;Acquiring coordinate information of the center of the touch point and coordinate information of the special judgment area;
    判断所述触点中心的坐标信息是否落在所述特殊判断区域的坐标信息内。It is determined whether the coordinate information of the contact center falls within the coordinate information of the special determination area.
  6. 根据权利要求1所述的方法,其特征在于,所述当所述距离小于所述预设距离时,减小所述预设按压面积获取当前预设按压面积之后,还包括:The method according to claim 1, wherein after the distance is smaller than the preset distance, reducing the preset pressing area to obtain a current preset pressing area further comprises:
    获取所述触控操作对应的按压面积;Obtaining a pressing area corresponding to the touch operation;
    判断所述按压面积是否不小于所述当前按压面积阈值;Determining whether the pressing area is not less than the current pressing area threshold;
    当所述按压面积不小于所述当前按压面积阈值时,基于所述触控操作在所述用户界面的部分区域上叠加显示至少一个卡片,所述至少一个卡片用于显示由所述用户界面上的至少一个界面元素识别出的信息。When the pressing area is not less than the current pressing area threshold, at least one card is superimposed and displayed on a part of the user interface based on the touch operation, and the at least one card is used to display Identified by at least one interface element.
  7. 根据权利要求6所述的方法,其特征在于,所述当所述按压面积不小于所述当前按压面积阈值时,基于所述触控操作在所述用户界面的部分区域上叠加显示至少一个卡片,包括:The method according to claim 6, wherein when the pressing area is not less than the current pressing area threshold, at least one card is superimposed and displayed on a part of the user interface based on the touch operation ,include:
    当所述按压面积不小于所述当前按压面积阈值时,获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素;When the pressing area is not less than the current pressing area threshold, obtaining coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information;
    基于所述至少一个界面元素进行搜索,获取与所述至少一个界面元素对应的内容,基于所述内容形成所述至少一个卡片;Searching based on the at least one interface element, obtaining content corresponding to the at least one interface element, and forming the at least one card based on the content;
    在所述用户界面的部分区域上叠加显示所述至少一个卡片。The at least one card is displayed superimposed on a partial area of the user interface.
  8. 根据权利要求7所述的方法,其特征在于,所述基于所述至少一个界面元素进行搜索,包括:The method according to claim 7, wherein the searching based on the at least one interface element comprises:
    对所述至少一个界面元素进行识别并提取所述至少一个界面元素中的关键词;Identifying the at least one interface element and extracting keywords from the at least one interface element;
    对所述关键词进行搜索。The keywords are searched.
  9. 根据权利要求6-8任一项所述的方法,其特征在于,所述至少一个卡片中的每个卡片至少显示一个所述识别出的信息。The method according to any one of claims 6 to 8, wherein each of the at least one card displays at least one of the identified information.
  10. 根据权利要求6-9任一项所述的方法,其特征在于,所述获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素,包括:The method according to any one of claims 6-9, wherein the acquiring coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information comprises:
    获取所述触点中心的坐标信息;Acquiring coordinate information of the contact center;
    获取位于所述坐标信息上的至少一个元素,将所述至少一个元素确定为所述至少一个界面元素。Acquiring at least one element located on the coordinate information, and determining the at least one element as the at least one interface element.
  11. 根据权利要求6-9任一项所述的方法,其特征在于,所述获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素,包括:The method according to any one of claims 6-9, wherein the acquiring coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information comprises:
    获取所述触点中心的坐标信息;Acquiring coordinate information of the contact center;
    获取位于所述坐标信息上的至少一个元素,并获取所述至少一个元素所在的段落;Acquiring at least one element located on the coordinate information, and acquiring a paragraph in which the at least one element is located;
    获取所述段落所包括的所有元素,将所述段落所包括的所有元素确定为所述至少一个界面元素。All elements included in the paragraph are acquired, and all elements included in the paragraph are determined as the at least one interface element.
  12. 根据权利要求6-9任一项所述的方法,其特征在于,所述获取所述触点中心的坐标信息并基于所述坐标信息确定所述至少一个界面元素,包括:The method according to any one of claims 6-9, wherein the acquiring coordinate information of the center of the touch point and determining the at least one interface element based on the coordinate information comprises:
    获取所述触点中心的坐标信息;Acquiring coordinate information of the contact center;
    基于所述坐标信息生成选择框并在所述用户界面显示,其中,所述选择框用于选取界面元素;Generating a selection box based on the coordinate information and displaying it on the user interface, where the selection box is used to select interface elements;
    基于用户对所述选择框的控制,将所述选择框内的界面元素确定为所述至少一个界面元素。Based on a user's control of the selection box, an interface element in the selection box is determined as the at least one interface element.
  13. 根据权利要求1所述的方法,其特征在于,所述检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心,包括:The method according to claim 1, wherein the detecting a touch operation acting on a user interface of the mobile terminal and obtaining a contact center corresponding to the touch operation comprises:
    检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作形成的包围区域;Detecting a touch operation on a user interface of the mobile terminal, and acquiring a surrounding area formed by the touch operation;
    获取所述包围区域的中心位置,将所述中心位置作为所述触点中心。Obtain the center position of the surrounding area, and use the center position as the center of the touch point.
  14. 根据权利要求13所述的方法,其特征在于,获取所述包围区域的中心位置,将所述中心位置作为所述触点中心之前,还包括:The method according to claim 13, further comprising: before obtaining the center position of the surrounding area and using the center position as the center of the contact, further comprising:
    获取所述包围区域的最大横坐标差值和最大纵坐标差值;Obtaining a maximum horizontal coordinate difference value and a maximum vertical coordinate difference value of the surrounding area;
    判断所述最大横坐标差值是否大于第一预设值,以及判断所述最大纵坐标差值是否大于第二预设值;Determining whether the maximum horizontal coordinate difference is greater than a first preset value, and determining whether the maximum vertical coordinate difference is greater than a second preset value;
    当所述最大横坐标差值大于所述第一预设值以及当所述最大纵坐标差值大于所述第二预设值时,确定所述触控操作为大面积按压。When the maximum abscissa difference is greater than the first preset value and when the maximum ordinate difference is greater than the second preset value, it is determined that the touch operation is a large area pressing.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离,包括:The method according to any one of claims 1 to 14, wherein the acquiring a distance between a center of the contact and a screen edge of the mobile terminal closest to the center of the contact comprises:
    获取所述触点中心的坐标信息和所述移动终端各屏幕边缘的坐标信息;Acquiring coordinate information of the center of the touch point and coordinate information of each screen edge of the mobile terminal;
    基于所述触点中心的坐标信息和所述各屏幕边缘的坐标信息,分别计算所述触点中心距所述各屏幕边缘的最小距离;Calculate the minimum distance between the center of the touch point and each screen edge based on the coordinate information of the center of the touch point and the coordinate information of each screen edge;
    从所述触点中心距所述各屏幕边缘的多个最小距离中,将目标最小距离确定为所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离,其中,所述目标最小距离为所述多个最小距离中的最小值。A target minimum distance is determined from a plurality of minimum distances between the center of the touch point and each screen edge as the distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal, The target minimum distance is a minimum value among the plurality of minimum distances.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述界面元素包括文本、图片、音频和/或视频。The method according to any one of claims 1-15, wherein the interface elements include text, pictures, audio, and / or video.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述用户界面包括所述移动终端的系统桌面对应的界面,或所述移动终端的应用程序的页面对应的界面。The method according to any one of claims 1-16, wherein the user interface comprises an interface corresponding to a system desktop of the mobile terminal, or an interface corresponding to a page of an application program of the mobile terminal.
  18. 一种按压面积优化装置,其特征在于,应用于移动终端,所述装置包括:A pressing area optimization device is characterized in that it is applied to a mobile terminal, and the device includes:
    触点中心获取模块,用于检测作用于所述移动终端的用户界面上的触控操作,获取所述触控操作对应的触点中心;A contact center acquisition module, configured to detect a touch operation on a user interface of the mobile terminal, and acquire a contact center corresponding to the touch operation;
    距离获取模块,用于获取所述触点中心与所述移动终端距所述触点中心最近的屏幕边缘的距离;A distance acquiring module, configured to acquire a distance between the center of the touch point and the edge of the screen closest to the center of the touch point of the mobile terminal;
    距离判断模块,用于判断所述距离是否小于预设距离;A distance judging module, configured to judge whether the distance is less than a preset distance;
    当前按压面积阈值获取模块,用于当所述距离小于所述预设距离时,减小预设按压面积获取当前按压面积阈值。The current pressing area threshold acquisition module is configured to reduce the preset pressing area to obtain the current pressing area threshold when the distance is less than the preset distance.
  19. 一种移动终端,其特征在于,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。A mobile terminal includes a touch screen, a memory, and a processor, the touch screen and the memory are coupled to the processor, and the memory stores instructions that are executed when the instructions are executed by the processor The processor executes the method according to any one of claims 1-17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-17. .
PCT/CN2019/084140 2018-05-28 2019-04-24 Press area optimization method and device, mobile terminal and storage medium WO2019228106A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810524858.6 2018-05-28
CN201810524858.6A CN108897446A (en) 2018-05-28 2018-05-28 Press area optimization method, device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2019228106A1 true WO2019228106A1 (en) 2019-12-05

Family

ID=64343313

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084140 WO2019228106A1 (en) 2018-05-28 2019-04-24 Press area optimization method and device, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN108897446A (en)
WO (1) WO2019228106A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897446A (en) * 2018-05-28 2018-11-27 Oppo广东移动通信有限公司 Press area optimization method, device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258937A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method for controlling display and an electronic device thereof
CN106598335A (en) * 2016-12-16 2017-04-26 广东欧珀移动通信有限公司 Touch screen control method and apparatus for mobile terminal, and mobile terminal
CN206147580U (en) * 2015-06-07 2017-05-03 苹果公司 Electronic equipment carries out device of operation with being used for in response to detecting edge input
CN106775407A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of touch-screen control method of mobile terminal, device and mobile terminal
CN108897446A (en) * 2018-05-28 2018-11-27 Oppo广东移动通信有限公司 Press area optimization method, device, mobile terminal and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006345209A (en) * 2005-06-08 2006-12-21 Sony Corp Input device, information processing apparatus, information processing method, and program
US20140237422A1 (en) * 2013-02-15 2014-08-21 Flatfrog Laboratories Ab Interpretation of pressure based gesture
CN105426074A (en) * 2015-10-29 2016-03-23 上海救要救信息科技有限公司 Method and system for cancelling misoperation
CN105653193A (en) * 2015-12-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Searching method and terminal
CN105786391A (en) * 2016-03-24 2016-07-20 京东方科技集团股份有限公司 Touch method and device as well as touch display equipment
CN107870685B (en) * 2016-09-27 2022-10-18 中兴通讯股份有限公司 Touch operation identification method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258937A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method for controlling display and an electronic device thereof
CN206147580U (en) * 2015-06-07 2017-05-03 苹果公司 Electronic equipment carries out device of operation with being used for in response to detecting edge input
CN106598335A (en) * 2016-12-16 2017-04-26 广东欧珀移动通信有限公司 Touch screen control method and apparatus for mobile terminal, and mobile terminal
CN106775407A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of touch-screen control method of mobile terminal, device and mobile terminal
CN108897446A (en) * 2018-05-28 2018-11-27 Oppo广东移动通信有限公司 Press area optimization method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108897446A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
WO2019233212A1 (en) Text identification method and device, mobile terminal, and storage medium
US10123366B2 (en) Wireless connection method, machine-readable storage medium and electronic device using out-of-band channel
US11237703B2 (en) Method for user-operation mode selection and terminals
CN111984165B (en) Method and device for displaying message and terminal equipment
WO2020258929A1 (en) Folder interface switching method and terminal device
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
WO2019233316A1 (en) Data processing method and device, mobile terminal, and storage medium
CN105975190B (en) Graphical interface processing method, device and system
CN109101498B (en) Translation method and device and mobile terminal
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
WO2019165997A1 (en) Display method, device, mobile terminal and storage medium
US11250046B2 (en) Image viewing method and mobile terminal
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
CN108958576B (en) Content identification method and device and mobile terminal
EP2613247A2 (en) Method and apparatus for displaying keypad in terminal having touch screen
KR20140136349A (en) Apparatus saving conversation and method thereof
WO2019228370A1 (en) Data processing method and device, mobile terminal and storage medium
WO2019223484A1 (en) Information display method and apparatus, and mobile terminal and storage medium
WO2019201109A1 (en) Word processing method and apparatus, and mobile terminal and storage medium
EP3575945B1 (en) Information display method and mobile terminal
CN109062648B (en) Information processing method and device, mobile terminal and storage medium
CN110221882B (en) Display method, display device, mobile terminal and storage medium
CN108803961B (en) Data processing method and device and mobile terminal
WO2019228106A1 (en) Press area optimization method and device, mobile terminal and storage medium
CN108958578B (en) File control method and device and electronic device

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: 19811435

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: 19811435

Country of ref document: EP

Kind code of ref document: A1