WO2019024299A1 - 设置触摸按键的方法、装置和终端设备 - Google Patents
设置触摸按键的方法、装置和终端设备 Download PDFInfo
- Publication number
- WO2019024299A1 WO2019024299A1 PCT/CN2017/109195 CN2017109195W WO2019024299A1 WO 2019024299 A1 WO2019024299 A1 WO 2019024299A1 CN 2017109195 W CN2017109195 W CN 2017109195W WO 2019024299 A1 WO2019024299 A1 WO 2019024299A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- button
- touch
- function
- setting
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Definitions
- the present invention relates to the field of electronic technologies, and in particular, to a method, apparatus, and terminal device for setting a touch button.
- a primary object of the present invention is to provide a method, apparatus, and terminal device for setting a touch button, which are intended to reduce application cost and post-maintenance cost of the product.
- an embodiment of the present invention provides a method for setting a touch button, and the method includes the following steps:
- a touch button is generated at the button position.
- the step of acquiring a button position of a touch button to be set on the touch screen comprises: capturing a touch position of the user on the touch screen;
- the touch position is taken as a button position of a touch button to be set on the touch screen.
- the step of formulating the correspondence between the button position and the button function includes:
- the step of determining a button function to be defined at the button position comprises:
- the step of prompting the user for the candidate button function comprises: displaying the candidate button function on the touch screen.
- the step of prompting the user for the button function of the candidate comprises: broadcasting the button function of the candidate.
- the method before the step of using the touch position as a button position of a touch button to be set on the touch screen, the method further includes:
- the touch position is used as a button position of a touch button to be set on the touch screen.
- the method before the step of using the touch position as a button position of a touch button to be set on the touch screen, the method further includes:
- the touch position is used as the button position of the touch button to be set on the touch screen.
- the threshold value ranges from 50 to 70 pixels.
- the method further includes:
- Embodiments of the present invention provide a device for setting a touch button, and the device includes:
- a position obtaining module configured to acquire a button position of a touch button to be set on the touch screen
- a relationship formulation module configured to determine a correspondence between the button position and the button function
- a button generating module configured to generate a touch button at the button position.
- the location acquiring module includes:
- a position capturing unit configured to capture a touch position of the user on the touch screen
- a state determining unit configured to determine whether the touch button is currently in a set state
- the position obtaining unit is configured to, when in the touch button setting state, use the touch position as a button position of the touch button to be set on the touch screen.
- the relationship formulation module includes:
- a function determining unit configured to determine a button function to be defined at the button position
- a relationship establishing unit configured to establish a correspondence between the button position and the button function
- a relationship storage unit configured to store the correspondence.
- the function determining unit includes:
- a prompting subunit configured to prompt the user for a candidate button function
- the determining subunit is configured to determine a button function selected by the user, and use the button function selected by the user as a button function to be defined at the button position.
- the prompting subunit is configured to: a button function of a voice broadcast candidate.
- the location obtaining module further includes an area determining unit, where the area determining unit is configured to: [0050] when in the touch button setting state, determine whether the area where the touch position is located is a blank area, When the area where the touch position is located is a blank area, the position obtaining unit is notified to use the touch position as a button position of a touch button to be set on the touch screen.
- the location obtaining module further includes:
- an area determining unit configured to determine, in a touch button setting state, whether the area where the touch position is located is a blank area
- the area determining unit is configured to determine, when the area where the touch position is located, a blank area, determine whether the area of the blank area is greater than or equal to a threshold; and when the area of the blank area is greater than or equal to a threshold, The position obtaining unit uses the touch position as a button of a touch button to be set on the touch screen Key position.
- the device further includes a button determination module, a function acquisition module, and a function execution module, where:
- the state determining unit is further configured to: notify the button determining module when not in the touch button setting state;
- the button determining module is configured to determine whether the touch position has a touch button when not in a touch button setting state
- a function obtaining module configured to: when there is a touch button, obtain a button function corresponding to the touch button according to a correspondence between the touch position and the button function;
- a function execution module configured to execute a button function corresponding to the touch button.
- Embodiments of the present invention also provide a terminal device, where the terminal device includes a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, The application is configured to perform the aforementioned method of setting a touch button.
- a method for setting a touch button by acquiring a button position of a touch button to be set on a touch screen, and then formulating a correspondence between a button position and a button function, and finally generating a touch button at the button position. , Complete the settings of the touch button. Therefore, the user can customize the touch button on the touch screen according to the size of the screen, so that the layout of the touch button can be matched with the screen, thereby eliminating the complicated process for the application to debug the screen of different sizes. The application cost and post-maintenance cost of the product are greatly reduced.
- FIG. 1 is a flow chart of an embodiment of a method for setting a touch button of the present invention
- step S11 in FIG. 1 is a specific flowchart of step S11 in FIG. 1;
- step S 11 in FIG. 1 is another specific flowchart of step S 11 in FIG. 1;
- step S 11 in FIG. 1 is another specific flowchart of step S 11 in FIG. 1;
- FIG. 5 is a specific flowchart of step S12 in FIG. 1; 6 is a schematic block diagram of a first embodiment of a device for setting a touch button according to the present invention
- FIG. 7 is a block diagram of a position acquisition module of FIG. 6;
- FIG. 8 is another block diagram of the location acquisition module of FIG. 6;
- FIG. 9 is another block diagram of the position acquisition module of FIG. 6;
- FIG. 10 is a block diagram of the relationship formulation module in FIG.
- FIG. 11 is a block diagram of the function determining unit in FIG. 10;
- FIG. 12 is a block diagram showing a second embodiment of the apparatus for setting a touch button of the present invention.
- terminal and terminal device used herein include both a device of a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a receiving and receiving device.
- Such a device may comprise: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Persona 1 Communications Service), which may combine voice, Data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars and/or GPS ( Global Positioning System, Receiver; Conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver.
- PCS Personala 1 Communications Service
- PDA Personal Digital Assistant
- terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed fashion.
- the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback.
- Functional mobile phones can also be smart TVs, set-top boxes and other devices.
- the method and device for setting a touch button in the embodiment of the present invention can be applied to various terminal devices having a touch screen, and is particularly applicable to mobile terminals such as mobile phones and tablets, and can also be applied to other terminal devices. limited.
- an embodiment of a method for setting a touch button according to the present invention includes the following steps: [0081] Sl l. Acquire a button position of a touch button to be set on a touch screen.
- the terminal device first acquires a button position of a touch button that the user intends to set on the touch screen.
- the specific process of the terminal device acquiring the button position is as follows:
- Sl l l capture the user's touch position on the touch screen.
- the terminal device When the user presses or clicks on the touch screen, the terminal device immediately captures the seat of the user's pressed or clicked position. The coordinate position is taken as the touch position of the user on the touch screen.
- S112. Determine whether the touch button setting state is currently in the state. When in the touch button setting state, the process proceeds to step S115; when not in the touch button setting state, the process ends, and the touch button setting is not performed.
- the user can activate the touch button setting mode by setting a touch button, making a preset gesture action, a touch action, pressing a preset button, and speaking a preset voice command, when the touch button is set. After the mode is activated, the terminal device enters the touch button setting state.
- the touch position is used as a button position of a touch button to be set on the touch screen.
- the terminal device uses the touch position of the user on the touch screen as the button position of the touch button that the user intends to set on the touch screen.
- the user should continue to touch and not have too much area to drag, and it is better to exceed the preset length (for example, about 3 seconds) during the continuous time, to ensure that the current touch position is the button for determining the touch button to be set.
- the terminal device can output a prompt message to perform the above reminding to the user.
- the specific process of the terminal device acquiring the button position is as follows:
- Sl l l capture the touch position of the user on the touch screen.
- S112. Determine whether the touch button setting state is currently in the state. When in the touch button setting state, the process proceeds to step S113; when not in the touch button setting state, the process ends, and the touch button setting is not performed.
- S113 Determine whether the area where the touch location is located is a blank area. When the area where the touch position is located is a blank area ⁇ , the process proceeds to step S114; when the area where the touch position is located is not a blank area, the process ends.
- a blank area that is, an area where no content is displayed, prevents the touch key from overlapping the display content to block the display content.
- the terminal device may prompt the user, such as prompting the user to set a touch button in the blank area.
- the touch position is used as a button position of a touch button to be set on the touch screen.
- the terminal device uses the touch position of the user on the touch screen as the button position of the touch button that the user intends to set on the touch screen.
- the specific process of the terminal device acquiring the button position is as follows:
- step S112. Determine whether the touch button is currently set. When in the touch button setting state, the process proceeds to step S113; when not in the touch button setting state, the process ends, and the touch button setting is not performed.
- S114 Determine whether an area of the blank area is greater than or equal to a threshold. When the area of the blank area is greater than or equal to the threshold value, the process proceeds to step S114; when the area of the blank area is less than the threshold value, the flow is ended, and the touch button setting is not performed.
- the touch button needs to occupy a certain space.
- the touch button cannot be accommodated or the display content on the touch screen can be blocked. Therefore, when the blank area is smaller than the threshold, the terminal device does not perform the touch button setting, and The user can be prompted, such as prompting the user to set a touch button in a larger blank area.
- the size of the threshold may be set according to actual needs, and the value range may be 50-70 pixels, for example, set to 60 pixels, that is, when the area of the blank area is greater than 60 pixels, the blank area is set. Touch the button.
- the touch position is used as a button position of a touch button to be set on the touch screen.
- the terminal device sets the touch position of the user on the touch screen as the user intends to set on the touch screen.
- the button position of the touch button is a blank area, and the area of the blank area is greater than or equal to the threshold.
- the terminal device performs the conventional processing, specifically: first determining whether the touch position has a touch button, and when there is a touch button ⁇ , according to the touch position and the button function Correspondence relationship, obtain the button function corresponding to the touch button, and execute the corresponding button function.
- the terminal device may not respond, or perform other preset functions.
- the terminal device After acquiring the button position of the touch button to be set on the touch screen, the terminal device determines the button position Correspondence with the button function.
- the specific process is shown in Figure 5, including the following steps:
- the terminal device first prompts the user for the candidate button function, then determines the button function selected by the user, and uses the button function selected by the user as the button function defined by the user at the button position.
- the terminal device may prompt the user for the candidate button function by displaying one or a combination of at least two of the candidate button function, the button function of the voice broadcast candidate, and the like on the touch screen, and the button function that the user clicks Or the voice function spoken by the voice is determined as the button function selected by the user. For example, the terminal device lists at least two candidate button functions on the touch screen. When the user clicks on one of the button functions, the terminal device uses the button function that the user clicks as the button function defined by the user at the button position.
- the terminal device associates the button position of the touch button to be set with the button function selected by the user, thereby establishing a correspondence relationship between the button position and the button function.
- the terminal device may store the correspondence between the button position and the button function in the form of a key value list, and the button position in the key value list has a one-to-one correspondence with the button function.
- the terminal device When the correspondence between the button position and the button function is established, the terminal device generates a touch button at the button position, thereby completing the setting of the touch button. After the user touches (ie, presses or clicks) the touch button ⁇ , the terminal device acquires the button function corresponding to the touch button according to the correspondence between the touch position and the button function, and executes the corresponding button function.
- the method for setting a touch button in the embodiment of the present invention can be applied to various system platforms.
- the touch driver captures the coordinates of the touch position that the user currently presses or clicks, and writes the coordinates into the event.
- the Android layer system starts a reading (Rea der) thread and listens to the coordinate data in the event. After acquiring the coordinate data, the Reader thread determines whether it is currently in the touch button setting state. If it is in the touch button setting state, the coordinate data is distributed to the view layer through the distributor (D ispacher), and the view layer receives the coordinate data. After that, the touch position corresponding to the coordinate data is used as the button position, and the correspondence between the button position and the button function is determined. The relationship is stored in the form of a key value list, and a touch button is generated at the button position to complete the setting of the touch button. If the Reader thread determines that the touch button setting state is not currently present, the button function corresponding to the coordinate data is acquired according to the correspondence between the button position and the button function, and the corresponding button function is executed.
- the method for setting a touch button in the embodiment of the present invention by acquiring the button position of the touch button to be set on the touch screen, and then formulating the corresponding relationship between the button position and the button function, finally generating a touch button at the button position, completing the touch button setting. Therefore, the user can customize the touch button on the touch screen according to the size of the screen, so that the layout of the touch button can be matched with the screen, thereby eliminating the complicated process for the application to debug the screen of different sizes. The application cost and post-maintenance cost of the product are greatly reduced.
- the device includes a location acquisition module 10, a relationship formulation module 20, and a button generation module 30, wherein:
- Position acquisition module 10 A button position for acquiring a touch button to be set on the touch screen.
- the location acquiring module 10 includes a location capturing unit 11, a state determining unit 12, and a location acquiring unit 13, wherein: the location capturing unit 11 is configured to capture a touch location of the user on the touch screen.
- the status determining unit 12 is configured to determine whether the touch button setting state is currently in the state; the position obtaining unit 13 is configured to use the touch position as the button position of the touch button to be set on the touch screen when in the touch button setting state.
- the location obtaining module 10 includes a location capturing unit 11, a state determining unit 12, an area determining unit 14, and a location acquiring unit 13, wherein: the location capturing unit 11 is configured to capture a user.
- the area determining unit 14 is configured to: the area determining unit 14 is configured to determine the area where the touch position is located when the touch button is set Whether it is a blank area, when the area where the touch position is located is a blank area, the location obtaining unit 13 is notified; the location obtaining unit 13 is configured to, after receiving the notification of the area determining unit 14, set the touch position as being set on the touch screen. Touch the button's button position.
- a blank area that is, an area where no content is displayed, prevents the touch key from overlapping the display content to block the display content.
- the area determining unit 14 may prompt the user, such as prompting the user to set a touch button in the blank area.
- the location acquiring module 10 includes a location capturing unit 11, a state determining unit 12, an area determining unit 14, an area determining unit 15, and a location acquiring unit 13, wherein: the location capturing unit 1 1 For determining the touch position of the user on the touch screen; the state determining unit 12 is configured to determine whether the touch button is currently in the set state; the area determining unit 14 is configured to determine whether the touched location is in the touch button setting state a blank area; the area judging unit 15 is configured to: when the area where the touch position is located is a blank area ⁇ , determine whether the area of the blank area is greater than or equal to the threshold, and when the area of the blank area is greater than or equal to the threshold ⁇ , notify the location acquiring unit 13; The location obtaining unit 13 is configured to, after receiving the notification of the area determining unit 15, use the touch position as a button position of a touch button to be set on the touch screen.
- the touch button needs to occupy a certain space.
- the touch button cannot be accommodated or the display content on the touch screen can be blocked. Therefore, when the blank area is smaller than the threshold value, the touch button setting is not performed.
- the area judging unit 15 can prompt the user, such as prompting the user to set the touch button in a larger blank area.
- the size of the threshold may be set according to actual needs, and the value range may be 50-70 pixels, for example, set to 60 pixels, that is, when the area of the blank area is larger than 60 pixels, the blank area is set. Touch the button.
- Relationship Formulation Module 20 Used to formulate a correspondence between a button position and a button function.
- the relationship formulating module 20 determines the correspondence between the button position and the button function.
- the relationship formulation module 20 includes a function determining unit 21, a relationship establishing unit 22, and a relationship storage unit 23, wherein: a function determining unit 21 is configured to determine a button function to be defined at a button position; The unit 22 is configured to establish a correspondence between the button position and the button function. The relationship storage unit 23 is configured to store a correspondence between the button position and the button function.
- the function determining unit 21 includes a prompting subunit 211 and a determining subunit 212, as shown in FIG. 11, wherein: the prompting subunit 211 is configured to prompt the user for the button function of the candidate; and the determining subunit 212 is configured to determine the user.
- the selected button function, and the button function selected by the user is used as the button function to be defined at the button position.
- the prompt sub-unit 211 can prompt the user for the candidate button function by displaying one or a combination of at least two of the candidate button function, the button function of the voice broadcast candidate, and the like on the touch screen.
- the stator unit 212 determines the button function clicked by the user or the button function spoken by the voice as the button function selected by the user. For example, the prompting sub-unit 211 lists at least two candidate button functions on the touch screen. When the user clicks on one of the button functions, the determining sub-unit 212 uses the button function clicked by the user as the button function defined by the user at the button position. .
- the relationship storage unit 23 can store the correspondence between the button position and the button function in the form of a key list, and the button positions in the key list are in one-to-one correspondence with the button functions.
- the button generation module 30 is configured to generate a touch button at the button position.
- the button generating module 30 After the relationship system module determines the correspondence between the button position and the button function, the button generating module 30 generates a touch button at the button position, thereby completing the setting of the touch button. After the user touches (ie, presses or clicks) the touch button ⁇ , the terminal device obtains the button function corresponding to the touch button according to the corresponding relationship between the touch position and the button function, and executes the corresponding button function.
- the apparatus further includes a button determination module 40, a function acquisition module 50, and a function execution module 60.
- the state determining unit 12 of the location obtaining module 10 is further configured to notify the button determining module 40 when not in the touch button setting state, and the button determining module 40 is configured to determine whether the touch location is present when not in the touch button setting state.
- the function obtaining module 50 is configured to: when there is a touch button ⁇ , obtain a button function corresponding to the touch button according to the corresponding relationship between the touch position and the button function; and the function execution module 6 0 is configured to perform corresponding to the touch button Key function.
- the device for setting a touch button obtains a button position of a touch button to be set on the touch screen, and then formulates a correspondence between the button position and the button function, and finally generates a touch button at the button position to complete the touch button. setting. Therefore, the user can customize the touch button on the touch screen according to the size of the screen, so that the layout of the touch button can be matched with the screen, thereby eliminating the complicated process for the application to debug the screen of different sizes. The application cost and post-maintenance cost of the product are greatly reduced.
- the present invention also provides a terminal device including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to use
- the method of setting the touch button is executed.
- the method includes the following steps: acquiring a button position of a touch button to be set on a touch screen; formulating a correspondence between a button position and a button function; Set the touch button.
- the method for setting a touch button described in this embodiment is a method for setting a touch button according to the above embodiment of the present invention, and details are not described herein again.
- the present invention includes apparatus that is directed to performing one or more of the operations described herein.
- These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer.
- These devices have computer programs stored therein that are selectively activated or reconfigured.
- Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including but not limited to any Types of disks (including floppy disks, hard disks, CDs, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only)
- a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.
- each block of the block diagrams and/or block diagrams and/or flow diagrams can be implemented with computer program instructions, and/or in the block diagrams and/or block diagrams and/or flow diagrams.
- Those skilled in the art will appreciate that these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method.
- the block diagrams and/or block diagrams of the invention and/or the schemes specified in the blocks or blocks of the flow diagram are invented.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明揭示了一种设置触摸按键的方法、装置和终端设备,所述方法包括以下步骤:获取拟在触摸屏上设置的触摸按键的按键位置;制定所述按键位置与按键功能的对应关系;在所述按键位置生成触摸按键。从而,用户可以根据屏幕尺寸的大小,在触摸屏上自定义设置触摸按键,以使触摸按键的布局能够与屏幕相适配。
Description
设置触摸按键的方法、 装置和终端设备 技术领域
[0001] 本发明涉及电子技术领域, 特别是涉及到一种设置触摸按键的方法、 装置和终 端设备。
背景技术
[0002] 为了满足用户的多样化需求, 目前市场上具有各种屏幕尺寸的终端设备, 而市 面上各个生产商的触摸屏的触摸按键并没有统一的标准, 这就使得应用幵发人 员需要花费大量精力进行调试, 以为不同的触摸屏匹配合适的触摸按键布局, 从而大大提高了产品的应用幵发成本和后期维护成本。
技术问题
[0003] 本发明的主要目的为提供一种设置触摸按键的方法、 装置和终端设备, 旨在降 低产品的应用幵发成本和后期维护成本。
问题的解决方案
技术解决方案
[0004] 为达以上目的, 本发明实施例提出一种设置触摸按键的方法, 所述方法包括以 下步骤:
[0005] 获取拟在触摸屏上设置的触摸按键的按键位置;
[0006] 制定所述按键位置与按键功能的对应关系;
[0007] 在所述按键位置生成触摸按键。
[0008] 可选地, 所述获取拟在触摸屏上设置的触摸按键的按键位置的步骤包括: [0009] 捕捉用户在触摸屏上的触摸位置;
[0010] 判断当前是否处于触摸按键设置状态;
[0011] 当处于触摸按键设置状态吋, 将所述触摸位置作为拟在触摸屏上设置的触摸按 键的按键位置。
[0012] 可选地, 所述制定所述按键位置与按键功能的对应关系的步骤包括:
[0013] 确定拟在所述按键位置定义的按键功能;
[0014] 建立所述按键位置与所述按键功能的对应关系;
[0015] 存储所述对应关系。
[0016] 可选地, 所述确定拟在所述按键位置定义的按键功能的步骤包括:
[0017] 向用户提示候选的按键功能;
[0018] 确定用户选择的按键功能, 并将用户选择的按键功能作为拟在所述按键位置定 义的按键功能。
[0019] 可选地, 所述向用户提示候选的按键功能的步骤包括: 在触摸屏上显示候选的 按键功能。
[0020] 可选地, 所述向用户提示候选的按键功能的步骤包括: 语音播报候选的按键功 能。
[0021] 可选地, 所述将所述触摸位置作为拟在触摸屏上设置的触摸按键的按键位置的 步骤之前还包括:
[0022] 判断所述触摸位置所在的区域是否为空白区域;
[0023] 当所述触摸位置所在的区域为空白区域吋, 执行下一步骤: 将所述触摸位置作 为拟在触摸屏上设置的触摸按键的按键位置。
[0024] 可选地, 所述将所述触摸位置作为拟在触摸屏上设置的触摸按键的按键位置的 步骤之前还包括:
[0025] 判断所述触摸位置所在的区域是否为空白区域;
[0026] 当所述触摸位置所在的区域为空白区域吋, 判断所述空白区域的面积是否大于 或等于阈值;
[0027] 当所述空白区域的面积大于或等于阈值吋, 执行下一步骤: 将所述触摸位置作 为拟在触摸屏上设置的触摸按键的按键位置。
[0028] 可选地, 所述阈值的取值范围为 50-70个像素。
[0029] 可选地, 所述判断当前是否处于触摸按键设置状态的步骤之后还包括:
[0030] 当不处于触摸按键设置状态吋, 判断所述触摸位置是否有触摸按键;
[0031] 当有触摸按键吋, 根据触摸位置与按键功能的对应关系, 获取与所述触摸按键 相对应的按键功能;
[0032] 执行所述按键功能。
[0033] 本发明实施例同吋提出一种设置触摸按键的装置, 所述装置包括:
[0034] 位置获取模块, 用于获取拟在触摸屏上设置的触摸按键的按键位置;
[0035] 关系制定模块, 用于制定所述按键位置与按键功能的对应关系;
[0036] 按键生成模块, 用于在所述按键位置生成触摸按键。
[0037] 可选地, 所述位置获取模块包括:
[0038] 位置捕捉单元, 用于捕捉用户在触摸屏上的触摸位置;
[0039] 状态判断单元, 用于判断当前是否处于触摸按键设置状态;
[0040] 位置获取单元, 用于当处于触摸按键设置状态吋, 将所述触摸位置作为拟在触 摸屏上设置的触摸按键的按键位置。
[0041] 可选地, 所述关系制定模块包括:
[0042] 功能确定单元, 用于确定拟在所述按键位置定义的按键功能;
[0043] 关系建立单元, 用于建立所述按键位置与所述按键功能的对应关系;
[0044] 关系存储单元, 用于存储所述对应关系。
[0045] 可选地, 所述功能确定单元包括:
[0046] 提示子单元, 用于向用户提示候选的按键功能;
[0047] 确定子单元, 用于确定用户选择的按键功能, 并将用户选择的按键功能作为拟 在所述按键位置定义的按键功能。
[0048] 可选地, 所述提示子单元用于: 语音播报候选的按键功能。
[0049] 可选地, 所述位置获取模块还包括区域判断单元, 所述区域判断单元用于: [0050] 当处于触摸按键设置状态吋, 判断所述触摸位置所在的区域是否为空白区域, 当所述触摸位置所在的区域为空白区域吋, 通知所述位置获取单元将所述触摸 位置作为拟在触摸屏上设置的触摸按键的按键位置。
[0051] 可选地, 所述位置获取模块还包括:
[0052] 区域判断单元, 用于当处于触摸按键设置状态吋, 判断所述触摸位置所在的区 域是否为空白区域;
[0053] 面积判断单元, 用于当所述触摸位置所在的区域为空白区域吋, 判断所述空白 区域的面积是否大于或等于阈值; 当所述空白区域的面积大于或等于阈值吋, 通知所述位置获取单元将所述触摸位置作为拟在触摸屏上设置的触摸按键的按
键位置。
[0054] 可选地, , 所述装置还包括按键判断模块、 功能获取模块和功能执行模块, 其 中:
[0055] 所述状态判断单元还用于: 当不处于触摸按键设置状态吋, 通知所述按键判断 模块;
[0056] 所述按键判断模块, 用于当不处于触摸按键设置状态吋, 判断所述触摸位置是 否有触摸按键;
[0057] 功能获取模块, 用于当有触摸按键吋, 根据触摸位置与按键功能的对应关系, 获取与所述触摸按键相对应的按键功能;
[0058] 功能执行模块, 用于执行与所述触摸按键相对应的按键功能。
[0059] 本发明实施例同吋提出一种终端设备, 所述终端设备包括存储器、 处理器和至 少一个被存储在所述存储器中并被配置为由所述处理器执行的应用程序, 所述 应用程序被配置为用于执行前述设置触摸按键的方法。
发明的有益效果
有益效果
[0060] 本发明实施例所提供的一种设置触摸按键的方法, 通过获取拟在触摸屏上设置 的触摸按键的按键位置, 然后制定按键位置与按键功能的对应关系, 最后在按 键位置生成触摸按键, 完成触摸按键的设置。 从而, 用户可以根据屏幕尺寸的 大小, 在触摸屏上自定义设置触摸按键, 以使触摸按键的布局能够与屏幕相适 配, 省去了应用幵发人员对不同尺寸的屏幕进行调试的繁复流程, 大大降低了 产品的应用幵发成本和后期维护成本。
对附图的简要说明
附图说明
[0061] 图 1是本发明的设置触摸按键的方法一实施例的流程图;
[0062] 图 2是图 1中步骤 S 11的具体流程图;
[0063] 图 3是图 1中步骤 S 11的又一具体流程图;
[0064] 图 4是图 1中步骤 S 11的又一具体流程图;
[0065] 图 5是图 1中步骤 S12的具体流程图;
[0066] 图 6是本发明的设置触摸按键的装置第一实施例的模块示意图;
[0067] 图 7是图 6中的位置获取模块的模块示意图;
[0068] 图 8是图 6中的位置获取模块的又一模块示意图;
[0069] 图 9是图 6中的位置获取模块的又一模块示意图;
[0070] 图 10图 6中的关系制定模块的模块示意图;
[0071] 图 11图 10中的功能确定单元的模块示意图;
[0072] 图 12是本发明的设置触摸按键的装置的第二实施例的模块示意图。
[0073] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0074] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0075] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。
[0076] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
[0077] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定
义, 否则不会用理想化或过于正式的含义来解释。
[0078] 本技术领域技术人员可以理解, 这里所使用的 "终端"、 "终端设备"既包括无线 信号接收器的设备, 其仅具备无发射能力的无线信号接收器的设备, 又包括接 收和发射硬件的设备, 其具有能够在双向通信链路上, 执行双向通信的接收和 发射硬件的设备。 这种设备可以包括: 蜂窝或其他通信设备, 其具有单线路显 示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备; PCS (Persona 1 Communications Service, 个人通信系统) , 其可以组合语音、 数据处理、 传真 和 /或数据通信能力; PDA (Personal Digital Assistant, 个人数字助理) , 其可以 包括射频接收器、 寻呼机、 互联网 /内联网访问、 网络浏览器、 记事本、 日历和 / 或 GPS (Global Positioning System, 全球定位系统) 接收器; 常规膝上型和 /或掌 上型计算机或其他设备, 其具有和 /或包括射频接收器的常规膝上型和 /或掌上型 计算机或其他设备。 这里所使用的 "终端"、 "终端设备"可以是便携式、 可运输、 安装在交通工具 (航空、 海运和 /或陆地) 中的, 或者适合于和 /或配置为在本地 运行, 和 /或以分布形式, 运行在地球和 /或空间的任何其他位置运行。 这里所使 用的"终端"、 "终端设备"还可以是通信终端、 上网终端、 音乐 /视频播放终端, 例如可以是 PDA、 MID (Mobile Internet Device, 移动互联网设备) 和 /或具有音 乐 /视频播放功能的移动电话, 也可以是智能电视、 机顶盒等设备。
[0079] 本发明实施例设置触摸按键的方法和装置, 可以应用于具有触摸屏的各种终端 设备, 尤其适用于手机、 平板等移动终端, 当然也可以应用于其它终端设备, 本发明对此不作限定。
[0080] 参照图 1, 提出本发明设置触摸按键的方法一实施例, 所述方法包括以下步骤 [0081] Sl l、 获取拟在触摸屏上设置的触摸按键的按键位置。
[0082] 本实施例中, 终端设备首先获取用户拟在触摸屏上设置的触摸按键的按键位置
[0083] 可选地, 如图 2所示, 终端设备获取按键位置的具体流程如下:
[0084] Sl l l、 捕捉用户在触摸屏上的触摸位置。
[0085] 当用户按压或者点击触摸屏吋, 终端设备立即捕捉用户按压或点击的位置的坐
标, 将坐标位置作为用户在触摸屏上的触摸位置。
[0086] S112、 判断当前是否处于触摸按键设置状态。 当处于触摸按键设置状态吋, 进 入步骤 S115; 当不处于触摸按键设置状态吋, 结束流程, 不进行触摸按键设置
[0087] 用户可以通过幵启触摸按键设置幵关, 做出预设的手势动作、 触摸动作, 按压 预设的按键、 说出预设的语音命令等方式启动触摸按键设置模式, 当触摸按键 设置模式启动后, 终端设备则进入触摸按键设置状态。
[0088] S115、 将触摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
[0089] 如果当前处于触摸按键设置状态, 终端设备则将用户在触摸屏上的触摸位置作 为用户拟在触摸屏上设置的触摸按键的按键位置。 触摸按键设置过程中, 用户 应该持续触摸并且不能有太大区域拖动, 持续吋间最好超过预设吋长 (如 3秒左 右) , 确保当前的触摸位置是确定要设置的触摸按键的按键位置, 终端设备可 以输出提示信息对用户进行上述提醒。
[0090] 可选地, 如图 3所示, 终端设备获取按键位置的具体流程如下:
[0091] Sl l l、 捕捉用户在触摸屏上的触摸位置。
[0092] S112、 判断当前是否处于触摸按键设置状态。 当处于触摸按键设置状态吋, 进 入步骤 S113; 当不处于触摸按键设置状态吋, 结束流程, 不进行触摸按键设置
[0093] S113、 判断触摸位置所在的区域是否为空白区域。 当触摸位置所在的区域是空 白区域吋, 进入步骤 S114; 当触摸位置所在的区域不是空白区域吋, 结束流程
, 不进行触摸按键设置。
[0094] 空白区域, 即没有显示内容的区域, 防止触摸按键与显示内容重叠而遮挡显示 内容。 可选地, 当触摸位置所在的区域不是空白区域吋, 终端设备可以对用户 进行提示, 如提示用户在空白区域设置触摸按键。
[0095] S114、 将触摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
[0096] 如果当前处于触摸按键设置状态, 且触摸位置所在的区域为空白区域, 终端设 备则将用户在触摸屏上的触摸位置作为用户拟在触摸屏上设置的触摸按键的按 键位置。
[0097] 可选地, 如图 4所示, 终端设备获取按键位置的具体流程如下:
[0098] Sl l l、 捕捉用户在触摸屏上的触摸位置。
[0099] S112、 判断当前是否处于触摸按键设置状态。 当处于触摸按键设置状态吋, 进 入步骤 S113; 当不处于触摸按键设置状态吋, 结束流程, 不进行触摸按键设置
[0100] S113、 判断触摸位置所在的区域是否为空白区域。 当触摸位置所在的区域是空 白区域吋, 进入步骤 S114; 当触摸位置所在的区域不是空白区域吋, 结束流程
, 不进行触摸按键设置。
[0101] S114、 判断空白区域的面积是否大于或等于阈值。 当空白区域的面积大于或等 于阈值吋, 进入步骤 S114; 当空白区域的面积小于阈值吋, 结束流程, 不进行 触摸按键设置。
[0102] 触摸按键需要占用一定空间, 当空白区域太小吋, 则无法容置触摸按键或者会 遮挡触摸屏上的显示内容, 因此当空白区域小于阈值吋, 终端设备则不进行触 摸按键设置, 并可以对用户进行提示, 如提示用户在更大的空白区域设置触摸 按键。
[0103] 阈值的大小可以根据实际需要设定, 取值范围可以为 50-70个像素, 如设定为 6 0个像素, 即当空白区域的面积大于 60像素吋, 才在该空白区域设置触摸按键。
[0104] S115、 将触摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
[0105] 如果当前处于触摸按键设置状态, 且触摸位置所在的区域为空白区域, 且该空 白区域的面积大于或等于阈值, 终端设备则将用户在触摸屏上的触摸位置作为 用户拟在触摸屏上设置的触摸按键的按键位置。
[0106] 本发明实施例中, 如果当前不处于触摸按键设置状态, 终端设备则按照常规处 理, 具体为: 首先判断触摸位置是否有触摸按键, 当有触摸按键吋, 则根据触 摸位置与按键功能的对应关系, 获取与触摸按键相对应的按键功能, 并执行对 应的按键功能。 当触摸位置没有触摸按键吋, 终端设备可以不予响应, 或者执 行其它预设的功能。
[0107] S12、 制定按键位置与按键功能的对应关系。
[0108] 当获取拟在触摸屏上设置的触摸按键的按键位置后, 终端设备则制定按键位置
与按键功能的对应关系。 具体流程如图 5所示, 包括以下步骤:
[0109] S121、 确定拟在按键位置定义的按键功能。
[0110] 终端设备首先向用户提示候选的按键功能, 然后确定用户选择的按键功能, 并 将用户选择的按键功能作为用户拟在按键位置定义的按键功能。
[0111] 终端设备可以通过在触摸屏上显示候选的按键功能、 语音播报候选的按键功能 等方式中的一种或者至少两种的结合来向用户提示候选的按键功能, 并将用户 点击的按键功能或语音说出的按键功能确定为用户选择的按键功能。 例如, 终 端设备在触摸屏上罗列出至少两个候选的按键功能, 当用户点击其中一个按键 功能吋, 终端设备则将用户点击的按键功能作为用户拟在按键位置定义的按键 功能。
[0112] S122、 建立按键位置与按键功能的对应关系。
[0113] 终端设备将拟设置的触摸按键的按键位置与用户选择的按键功能关联起来, 从 而建立起按键位置与按键功能的对应关系。
[0114] S123、 存储按键位置与按键功能的对应关系。
[0115] 本发明实施例中, 终端设备可以将按键位置与按键功能的对应关系以键值列表 的形式存储起来, 键值列表中按键位置与按键功能一一对应。
[0116] S13、 在按键位置生成触摸按键。
[0117] 当制定好按键位置与按键功能的对应关系后, 终端设备则在按键位置生成触摸 按键, 从而完成触摸按键的设置。 后续用户触摸 (即按压或点击) 该触摸按键 吋, 终端设备则根据触摸位置与按键功能的对应关系, 获取与该触摸按键相对 应的按键功能, 并执行对应的按键功能。
[0118] 本发明实施例设置触摸按键的方法, 可以应用于各种系统平台。 以应用于安卓
(Android) 系统为例, 具体实施吋, 触摸驱动捕捉用户当前按压或点击的触摸 位置的坐标, 并将坐标写入到事件 (event) 中。 安卓层系统幵启一个阅读 (Rea der) 线程吋吋监听 event中的坐标数据。 当获取坐标数据后, Reader线程判断当 前是否处于触摸按键设置状态, 如果处于触摸按键设置状态, 则通过分配器 (D ispacher) 将该坐标数据分发给视图 (view) 层, view层接收到坐标数据后, 则 将该坐标数据对应的触摸位置作为按键位置, 制定按键位置与按键功能的对应
关系, 并以键值列表的形式存储起来, 并在该按键位置生成触摸按键, 完成触 摸按键的设置。 如果 Reader线程判定当前不处于触摸按键设置状态, 则根据按键 位置与按键功能的对应关系, 获取该坐标数据所对应的按键功能, 并执行对应 的按键功能。
[0119] 本发明实施例的设置触摸按键的方法, 通过获取拟在触摸屏上设置的触摸按键 的按键位置, 然后制定按键位置与按键功能的对应关系, 最后在按键位置生成 触摸按键, 完成触摸按键的设置。 从而, 用户可以根据屏幕尺寸的大小, 在触 摸屏上自定义设置触摸按键, 以使触摸按键的布局能够与屏幕相适配, 省去了 应用幵发人员对不同尺寸的屏幕进行调试的繁复流程, 大大降低了产品的应用 幵发成本和后期维护成本。
[0120] 参照图 6, 提出本发明设置触摸按键的装置第一实施例, 所述装置包括位置获 取模块 10、 关系制定模块 20和按键生成模块 30, 其中:
[0121] 位置获取模块 10: 用于获取拟在触摸屏上设置的触摸按键的按键位置。
[0122] 可选地, 如图 7所示, 位置获取模块 10包括位置捕捉单元 11、 状态判断单元 12 和位置获取单元 13, 其中: 位置捕捉单元 11, 用于捕捉用户在触摸屏上的触摸 位置; 状态判断单元 12, 用于判断当前是否处于触摸按键设置状态; 位置获取 单元 13, 用于当处于触摸按键设置状态吋, 将触摸位置作为拟在触摸屏上设置 的触摸按键的按键位置。
[0123] 可选地, 如图 8所示, 位置获取模块 10包括位置捕捉单元 11、 状态判断单元 12 、 区域判断单元 14和位置获取单元 13, 其中: 位置捕捉单元 11, 用于捕捉用户 在触摸屏上的触摸位置; 状态判断单元 12, 用于判断当前是否处于触摸按键设 置状态; 区域判断单元 14用于: 区域判断单元 14, 用于当处于触摸按键设置状 态吋, 判断触摸位置所在的区域是否为空白区域, 当触摸位置所在的区域为空 白区域吋, 通知位置获取单元 13 ; 位置获取单元 13, 用于当接收到区域判断单 元 14的通知后, 将触摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
[0124] 空白区域, 即没有显示内容的区域, 防止触摸按键与显示内容重叠而遮挡显示 内容。 可选地, 当触摸位置所在的区域不是空白区域吋, 区域判断单元 14可以 对用户进行提示, 如提示用户在空白区域设置触摸按键。
[0125] 可选地, 如图 9所示, 位置获取模块 10包括位置捕捉单元 11、 状态判断单元 12 、 区域判断单元 14、 面积判断单元 15和位置获取单元 13, 其中: 位置捕捉单元 1 1, 用于捕捉用户在触摸屏上的触摸位置; 状态判断单元 12, 用于判断当前是否 处于触摸按键设置状态; 区域判断单元 14, 用于当处于触摸按键设置状态吋, 判断触摸位置所在的区域是否为空白区域; 面积判断单元 15, 用于当触摸位置 所在的区域为空白区域吋, 判断空白区域的面积是否大于或等于阈值, 当空白 区域的面积大于或等于阈值吋, 通知位置获取单元 13; 位置获取单元 13, 用于 当接收到面积判断单元 15的通知后, 将触摸位置作为拟在触摸屏上设置的触摸 按键的按键位置。
[0126] 触摸按键需要占用一定空间, 当空白区域太小吋, 则无法容置触摸按键或者会 遮挡触摸屏上的显示内容, 因此当空白区域小于阈值吋, 则不进行触摸按键设 置。 并且面积判断单元 15可以对用户进行提示, 如提示用户在更大的空白区域 设置触摸按键。
[0127] 阈值的大小可以根据实际需要设定, 取值范围可以为 50-70个像素, 如设定为 6 0个像素, 即当空白区域的面积大于 60像素吋, 才在该空白区域设置触摸按键。
[0128] 关系制定模块 20: 用于制定按键位置与按键功能的对应关系。
[0129] 当位置获取模块 10获取拟在触摸屏上设置的触摸按键的按键位置后, 关系制定 模块 20则制定按键位置与按键功能的对应关系。
[0130] 如图 10所示, 关系制定模块 20包括功能确定单元 21、 关系建立单元 22和关系存 储单元 23, 其中: 功能确定单元 21, 用于确定拟在按键位置定义的按键功能; 关系建立单元 22, 用于建立按键位置与按键功能的对应关系; 关系存储单元 23 , 用于存储按键位置与按键功能的对应关系。
[0131] 功能确定单元 21如图 11所示, 包括提示子单元 211和确定子单元 212, 其中: 提 示子单元 211, 用于向用户提示候选的按键功能; 确定子单元 212, 用于确定用 户选择的按键功能, 并将用户选择的按键功能作为拟在按键位置定义的按键功 能。
[0132] 提示子单元 211可以通过在触摸屏上显示候选的按键功能、 语音播报候选的按 键功能等方式中的一种或者至少两种的结合来向用户提示候选的按键功能, 确
定子单元 212则将用户点击的按键功能或语音说出的按键功能确定为用户选择的 按键功能。 例如, 提示子单元 211在触摸屏上罗列出至少两个候选的按键功能, 当用户点击其中一个按键功能吋, 确定子单元 212则将用户点击的按键功能作为 用户拟在按键位置定义的按键功能。
[0133] 本发明实施例中, 关系存储单元 23可以将按键位置与按键功能的对应关系以键 值列表的形式存储起来, 键值列表中按键位置与按键功能一一对应。
[0134] 按键生成模块 30: 用于在按键位置生成触摸按键。
[0135] 当关系制度模块制定好按键位置与按键功能的对应关系后, 按键生成模块 30则 在按键位置生成触摸按键, 从而完成触摸按键的设置。 后续用户触摸 (即按压 或点击) 该触摸按键吋, 终端设备则根据触摸位置与按键功能的对应关系, 获 取与该触摸按键相对应的按键功能, 并执行对应的按键功能。
[0136] 进一步地, 如图 12所示, 在本发明的设置触摸按键的装置的第二实施例中, 该 装置还包括按键判断模块 40、 功能获取模块 50和功能执行模块 60。
[0137] 位置获取模块 10的状态判断单元 12还用于当不处于触摸按键设置状态吋, 通知 按键判断模块 40; 按键判断模块 40用于当不处于触摸按键设置状态吋, 判断触 摸位置是否有触摸按键; 功能获取模块 50, 用于当有触摸按键吋, 根据触摸位 置与按键功能的对应关系, 获取与触摸按键相对应的按键功能; 功能执行模块 6 0, 用于执行与触摸按键相对应的按键功能。
[0138] 本发明实施例的设置触摸按键的装置, 通过获取拟在触摸屏上设置的触摸按键 的按键位置, 然后制定按键位置与按键功能的对应关系, 最后在按键位置生成 触摸按键, 完成触摸按键的设置。 从而, 用户可以根据屏幕尺寸的大小, 在触 摸屏上自定义设置触摸按键, 以使触摸按键的布局能够与屏幕相适配, 省去了 应用幵发人员对不同尺寸的屏幕进行调试的繁复流程, 大大降低了产品的应用 幵发成本和后期维护成本。
[0139] 本发明同吋提出一种终端设备, 所述终端设备包括存储器、 处理器和至少一个 被存储在存储器中并被配置为由处理器执行的应用程序, 所述应用程序被配置 为用于执行设置触摸按键的方法。 所述方法包括以下步骤: 获取拟在触摸屏上 设置的触摸按键的按键位置; 制定按键位置与按键功能的对应关系; 在按键位
置生成触摸按键。 本实施例中所描述的设置触摸按键的方法为本发明中上述实 施例所涉及的设置触摸按键的方法, 在此不再赘述。
本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable
Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
[0141] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。
[0142] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。
[0143] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利
用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。
Claims
权利要求书
[权利要求 1] 一种设置触摸按键的方法, 其特征在于, 包括以下步骤:
获取拟在触摸屏上设置的触摸按键的按键位置; 制定所述按键位置与按键功能的对应关系;
在所述按键位置生成触摸按键。
[权利要求 2] 根据权利要求 1所述的设置触摸按键的方法, 其特征在于, 所述获取 拟在触摸屏上设置的触摸按键的按键位置的步骤包括:
捕捉用户在触摸屏上的触摸位置;
判断当前是否处于触摸按键设置状态;
当处于触摸按键设置状态吋, 将所述触摸位置作为拟在触摸屏上设置 的触摸按键的按键位置。
[权利要求 3] 根据权利要求 1所述的设置触摸按键的方法, 其特征在于, 所述制定 所述按键位置与按键功能的对应关系的步骤包括: 确定拟在所述按键位置定义的按键功能;
建立所述按键位置与所述按键功能的对应关系; 存储所述对应关系。
[权利要求 4] 根据权利要求 3所述的设置触摸按键的方法, 其特征在于, 所述确定 拟在所述按键位置定义的按键功能的步骤包括: 向用户提示候选的按键功能;
确定用户选择的按键功能, 并将用户选择的按键功能作为拟在所述按 键位置定义的按键功能。
[权利要求 5] 根据权利要求 4所述的设置触摸按键的方法, 其特征在于, 所述向用 户提示候选的按键功能的步骤包括: 在触摸屏上显示候选的按键功能
[权利要求 6] 根据权利要求 4所述的设置触摸按键的方法, 其特征在于, 所述向用 户提示候选的按键功能的步骤包括: 语音播报候选的按键功能。
[权利要求 7] 根据权利要求 2所述的设置触摸按键的方法, 其特征在于, 所述将所 述触摸位置作为拟在触摸屏上设置的触摸按键的按键位置的步骤之前
还包括:
判断所述触摸位置所在的区域是否为空白区域;
当所述触摸位置所在的区域为空白区域吋, 执行下一步骤: 将所述触 摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
根据权利要求 2所述的设置触摸按键的方法, 其特征在于, 所述将所 述触摸位置作为拟在触摸屏上设置的触摸按键的按键位置的步骤之前 还包括:
判断所述触摸位置所在的区域是否为空白区域;
当所述触摸位置所在的区域为空白区域吋, 判断所述空白区域的面积 是否大于或等于阈值;
当所述空白区域的面积大于或等于阈值吋, 执行下一步骤: 将所述触 摸位置作为拟在触摸屏上设置的触摸按键的按键位置。
根据权利要求 8所述的设置触摸按键的方法, 其特征在于, 所述阈值 的取值范围为 50-70个像素。
根据权利要求 2所述的设置触摸按键的方法, 其特征在于, 所述判断 当前是否处于触摸按键设置状态的步骤之后还包括:
当不处于触摸按键设置状态吋, 判断所述触摸位置是否有触摸按键; 当有触摸按键吋, 根据触摸位置与按键功能的对应关系, 获取与所述 触摸按键相对应的按键功能;
执行所述按键功能。
一种设置触摸按键的装置, 其特征在于, 包括:
位置获取模块, 用于获取拟在触摸屏上设置的触摸按键的按键位置; 关系制定模块, 用于制定所述按键位置与按键功能的对应关系; 按键生成模块, 用于在所述按键位置生成触摸按键。
根据权利要求 11所述的设置触摸按键的装置, 其特征在于, 所述位置 获取模块包括:
位置捕捉单元, 用于捕捉用户在触摸屏上的触摸位置;
状态判断单元, 用于判断当前是否处于触摸按键设置状态;
位置获取单元, 用于当处于触摸按键设置状态吋, 将所述触摸位置作 为拟在触摸屏上设置的触摸按键的按键位置。
根据权利要求 11所述的设置触摸按键的装置, 其特征在于, 所述关系 制定模块包括:
功能确定单元, 用于确定拟在所述按键位置定义的按键功能; 关系建立单元, 用于建立所述按键位置与所述按键功能的对应关系; 关系存储单元, 用于存储所述对应关系。
根据权利要求 13所述的设置触摸按键的装置, 其特征在于, 所述功能 确定单元包括:
提示子单元, 用于向用户提示候选的按键功能;
确定子单元, 用于确定用户选择的按键功能, 并将用户选择的按键功 能作为拟在所述按键位置定义的按键功能。
根据权利要求 14所述的设置触摸按键的装置, 其特征在于, 所述提示 子单元用于: 在触摸屏上显示候选的按键功能。
根据权利要求 14所述的设置触摸按键的装置, 其特征在于, 所述提示 子单元用于: 语音播报候选的按键功能。
根据权利要求 12所述的设置触摸按键的装置, 其特征在于, 所述位置 获取模块还包括区域判断单元, 所述区域判断单元用于:
当处于触摸按键设置状态吋, 判断所述触摸位置所在的区域是否为空 白区域, 当所述触摸位置所在的区域为空白区域吋, 通知所述位置获 取单元将所述触摸位置作为拟在触摸屏上设置的触摸按键的按键位置 根据权利要求 12所述的设置触摸按键的装置, 其特征在于, 所述位置 获取模块还包括:
区域判断单元, 用于当处于触摸按键设置状态吋, 判断所述触摸位置 所在的区域是否为空白区域;
面积判断单元, 用于当所述触摸位置所在的区域为空白区域吋, 判断 所述空白区域的面积是否大于或等于阈值; 当所述空白区域的面积大
于或等于阈值吋, 通知所述位置获取单元将所述触摸位置作为拟在触 摸屏上设置的触摸按键的按键位置。
[权利要求 19] 根据权利要求 12所述的设置触摸按键的装置, 其特征在于, 所述装置 还包括按键判断模块、 功能获取模块和功能执行模块, 其中: 所述状态判断单元还用于: 当不处于触摸按键设置状态吋, 通知所述 按键判断模块;
所述按键判断模块, 用于当不处于触摸按键设置状态吋, 判断所述触 摸位置是否有触摸按键;
功能获取模块, 用于当有触摸按键吋, 根据触摸位置与按键功能的对 应关系, 获取与所述触摸按键相对应的按键功能; 功能执行模块, 用于执行与所述触摸按键相对应的按键功能。
[权利要求 20] —种终端设备, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其特征在于, 所述应用 程序被配置为用于执行权利要求 1所述的设置触摸按键的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710652711.0 | 2017-08-02 | ||
| CN201710652711.0A CN107608547A (zh) | 2017-08-02 | 2017-08-02 | 设置触摸按键的方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019024299A1 true WO2019024299A1 (zh) | 2019-02-07 |
Family
ID=61064412
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/109195 Ceased WO2019024299A1 (zh) | 2017-08-02 | 2017-11-02 | 设置触摸按键的方法、装置和终端设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107608547A (zh) |
| WO (1) | WO2019024299A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112152602B (zh) * | 2020-09-16 | 2023-11-10 | Tcl空调器(中山)有限公司 | 触摸按键设置方法、触摸面板、家用电器及存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101110005A (zh) * | 2006-07-19 | 2008-01-23 | 鸿富锦精密工业(深圳)有限公司 | 自定义触摸板的电子装置及方法 |
| KR20080083868A (ko) * | 2007-03-13 | 2008-09-19 | 에이디반도체(주) | 문자 입력장치 및 그 키패드의 재설정방법 |
| CN103513896A (zh) * | 2012-06-20 | 2014-01-15 | Tcl集团股份有限公司 | 一种自定义电子终端的虚拟键盘的方法及系统 |
-
2017
- 2017-08-02 CN CN201710652711.0A patent/CN107608547A/zh active Pending
- 2017-11-02 WO PCT/CN2017/109195 patent/WO2019024299A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101110005A (zh) * | 2006-07-19 | 2008-01-23 | 鸿富锦精密工业(深圳)有限公司 | 自定义触摸板的电子装置及方法 |
| KR20080083868A (ko) * | 2007-03-13 | 2008-09-19 | 에이디반도체(주) | 문자 입력장치 및 그 키패드의 재설정방법 |
| CN103513896A (zh) * | 2012-06-20 | 2014-01-15 | Tcl集团股份有限公司 | 一种自定义电子终端的虚拟键盘的方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107608547A (zh) | 2018-01-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9766596B2 (en) | Wake up to a cast alarm or an alarm plus content prompt | |
| US8539531B2 (en) | Mobile terminal, method of participating in interactive service therein, internet protocol television terminal and communication system including the same | |
| CN112580014B (zh) | 验证码获取方法和装置 | |
| CN113316128B (zh) | 一种投屏方法、接收端设备及发送端设备 | |
| CN101217327A (zh) | 用于在便携式通信系统中提供数字广播信息的设备及方法 | |
| CN104038560A (zh) | 移动终端间的远程协助方法、客户端、电子设备及系统 | |
| CN109903758A (zh) | 音频处理方法、装置及终端设备 | |
| CN106445609A (zh) | 应用程序的自动更新方法及移动终端 | |
| CN106251858A (zh) | 基于智能电视终端的闹铃提醒方法及装置 | |
| CN114422465B (zh) | 消息处理方法、装置、设备和存储介质 | |
| CN106406947B (zh) | 防止系统服务进程重启的方法及装置、移动终端 | |
| US20180096584A1 (en) | Car-key searching system | |
| WO2018161607A1 (zh) | 广播控制方法、装置及移动终端、存储介质 | |
| CN107371144B (zh) | 一种智能发送信息的方法及装置 | |
| CN108200636B (zh) | 导航信息展示方法、终端 | |
| CN110069184B (zh) | 移动终端的控制方法、可穿戴设备及计算机可读存储介质 | |
| CN111752449A (zh) | 屏幕控制方法及装置 | |
| CN110809256B (zh) | 终端的系统加速方法、装置、存储介质及终端 | |
| CN102917320A (zh) | 语音短信的发送方法及设备 | |
| CN109164951B (zh) | 移动终端操作方法及移动终端 | |
| CN110809186B (zh) | 一种视频处理方法及电子设备 | |
| WO2015096404A1 (en) | Information processing method, apparatus and payment system | |
| CN116132456A (zh) | 数据传输方法、装置、设备和存储介质 | |
| CN109151496B (zh) | 一种音乐播放方法、移动终端 | |
| CN107835318B (zh) | 进程启动的管控方法、装置及存储介质和移动终端 |
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: 17920290 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: 17920290 Country of ref document: EP Kind code of ref document: A1 |