CN110618837A - Numerical value adjusting method, electronic device and storage medium - Google Patents

Numerical value adjusting method, electronic device and storage medium Download PDF

Info

Publication number
CN110618837A
CN110618837A CN201910723290.5A CN201910723290A CN110618837A CN 110618837 A CN110618837 A CN 110618837A CN 201910723290 A CN201910723290 A CN 201910723290A CN 110618837 A CN110618837 A CN 110618837A
Authority
CN
China
Prior art keywords
numerical value
adjustment
numerical
control
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910723290.5A
Other languages
Chinese (zh)
Other versions
CN110618837B (en
Inventor
谢迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910723290.5A priority Critical patent/CN110618837B/en
Publication of CN110618837A publication Critical patent/CN110618837A/en
Application granted granted Critical
Publication of CN110618837B publication Critical patent/CN110618837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03547Touch pads, in which fingers can move on a surface
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a numerical value adjusting method, an electronic device and a storage medium, wherein when a numerical value adjusting control is detected to receive a form transformation operation, the numerical value adjusting control is converted from a first form to a second form, a preset second numerical value adjusting strategy corresponding to the second form is obtained, whether the numerical value adjusting control in the second form receives the second adjusting operation within a threshold time is detected, if so, a numerical value adjusting type and a numerical value adjusting stride are determined according to the second numerical value adjusting strategy and the second adjusting operation, and a current numerical value is adjusted according to the numerical value adjusting type and the numerical value adjusting stride. According to the scheme, the numerical value adjusting strategies are switched by switching the forms of the numerical value adjusting controls, different adjustments are carried out on the numerical values according to different numerical value adjusting strategies, and when the numerical value adjusting control is specifically applied, the numerical values can be adjusted in different precision by using different forms of the same numerical value adjusting control, so that the numerical value adjusting control is convenient to operate.

Description

Numerical value adjusting method, electronic device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a numerical value adjusting method, electronic equipment and a storage medium.
Background
In the existing electronic device, the usage rate of the touch screen is higher and higher, and the function of inputting numerical values on the touch screen is necessary.
Many APPs in electronic devices today involve adjustment of a numerical value. For example, many control software for intelligent household electrical appliances involve temperature or time adjustment, such as an air conditioner, an electric heater, a water heater, and an oven, which can adjust temperature, and also can be timed, and the temperature adjustable range of many household electrical appliances is large, such as the adjustable temperature of the oven in some modes is tens to hundreds of degrees centigrade; and the temperature of some household appliances can be adjusted by taking 0.1 degree as a unit, such as some high-end intelligent air conditioners. In the face of such a situation, the adjustment mode of the numerical value on the electronic device needs to be accurate and convenient.
The existing control for adjusting numerical values in electronic equipment generally adopts a form as shown in fig. 1, an increase of the numerical value is realized by clicking a first button, and a decrease of the numerical value is realized by clicking a second button, which can be realized by this way, the adjustment step of the numerical value is constant each time, which leads to inaccurate and inconvenient numerical value adjustment, for example, if the numerical value of the first button is increased by 1 each time of clicking, and if the numerical value needs to be adjusted by 0.1, the numerical value cannot be accurately adjusted by the above way, for example, if the numerical value of the first button is increased by 0.1 each time of clicking, but if the user wants to adjust the numerical value to 10 by 0, the first button needs to be clicked 100 times, which takes much time and labor, and is inconvenient.
The above description of the discovery process of the problems is only for the purpose of assisting understanding of the technical solutions of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present invention provide a numerical value adjusting method, an electronic device, and a storage medium.
In view of the above, in a first aspect, an embodiment of the present invention provides a method for adjusting a numerical value, applied to an electronic device, including:
detecting whether the numerical value adjusting control receives a form transformation operation;
if the numerical value adjusting control is detected to receive the form conversion operation, converting the numerical value adjusting control from a first form to a second form;
acquiring a preset second numerical value adjustment strategy corresponding to the second form;
detecting whether the numerical value adjusting control in the second state receives a second adjusting operation within a threshold time;
if a second adjustment operation is received, determining a numerical value adjustment type and a numerical value adjustment stride according to the second numerical value adjustment strategy and the second adjustment operation, wherein the numerical value adjustment type represents increasing or decreasing of a current numerical value;
and adjusting the current numerical value according to the numerical value adjustment type and the numerical value adjustment stride.
In one possible embodiment, the numeric adjustment control in the first form is a circular ring, and the numeric adjustment control in the second form is a sphere, and converting the numeric adjustment control from the first form to the second form includes:
the numerical value adjusting control in the first form is converted into the numerical value adjusting control in the second form by rotating a preset angle by taking any straight line passing through the radial direction of the numerical value adjusting control as an axis.
In one possible embodiment, determining a numerical adjustment type and a numerical adjustment stride according to the second numerical adjustment strategy and the second adjustment operation includes:
determining an operation direction and an operation distance of the second adjustment operation;
determining a numerical value adjustment type according to the second numerical value adjustment strategy and the operation direction;
and determining a numerical value adjustment stride according to the second numerical value adjustment strategy and the operation distance.
In one possible embodiment, the method further comprises:
when the numerical value adjusting control is in a first form, acquiring a preset first numerical value adjusting strategy corresponding to the first form;
detecting whether the numerical value adjusting control receives a first adjusting operation in a first form;
and if a first adjusting operation is received, determining a numerical value adjusting type and a numerical value adjusting stride according to the first numerical value adjusting strategy and the first adjusting operation.
In one possible embodiment, determining a numerical adjustment type and a numerical adjustment stride based on the first numerical adjustment strategy and the first adjustment operation includes:
determining an operation direction and an operation distance of the first adjustment operation;
determining a numerical value adjustment type according to the first numerical value adjustment strategy and the operation direction;
and determining a numerical adjustment stride according to the first numerical adjustment strategy and the operating distance.
In one possible embodiment, the method further comprises:
if the numerical adjustment control in the second form does not receive the second adjustment operation within the threshold time, the numerical adjustment control is converted from the second form to the first form.
In one possible embodiment, the method further comprises:
and displaying the numerical value obtained after the current numerical value is adjusted.
In one possible embodiment, the method further comprises: and sending the value obtained after the current value is adjusted to the external equipment.
In a second aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory, wherein the processor is configured to execute a value adjustment program stored in the memory to implement the value adjustment method of the first aspect.
In a third aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the value adjusting method according to the first aspect.
Compared with the prior art, the numerical value adjusting method provided by the embodiment of the invention converts the numerical value adjusting control from the first form to the second form when detecting that the numerical value adjusting control receives the form conversion operation, acquires the preset second numerical value adjusting strategy corresponding to the second form, detects whether the numerical value adjusting control in the second form receives the second adjusting operation within the threshold time, determines the numerical value adjusting type and the numerical value adjusting step according to the second numerical value adjusting strategy and the second adjusting operation if the numerical value adjusting control in the second form receives the second adjusting operation, and adjusts the current numerical value according to the numerical value adjusting type and the numerical value adjusting step. According to the scheme, the numerical value adjusting strategies are switched by switching the forms of the numerical value adjusting controls, different adjustments are carried out on the numerical values according to different numerical value adjusting strategies, and when the numerical value adjusting control is specifically applied, the numerical values can be adjusted in different precision by using different forms of the same numerical value adjusting control, so that the numerical value adjusting control is convenient to operate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating a numerical adjustment control according to the prior art;
FIG. 2 is a flow chart of a numerical adjustment method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first aspect of a numerical adjustment control according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second aspect of a numerical adjustment control according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The existing electronic devices have a function of adjusting values, such as adjusting values (e.g. volume value, brightness value, etc.) of the electronic devices themselves, or adjusting values of other external devices (e.g. temperature value of air conditioner, temperature value of oven, brightness value of lamp, temperature value of water heater, etc.) as an intelligent remote control device.
When the existing electronic device is used for adjusting the value, a single step for adjusting is usually adopted, as shown in fig. 1, a user increases or decreases one step by clicking the first button or the second button once, which results in that if the step is too large, the accurate adjustment cannot be realized, and if the step is too small, the adjustment speed is too slow.
Therefore, in order to solve the above-described problems, the present invention provides a numerical value adjusting method which is applicable to an electronic device, which can be implemented in various forms. For example, the electronic devices described in the present invention may include mobile terminals such as mobile phones, smart phones, notebook computers, PADs (tablet computers), and the like, and fixed terminals such as desktop computers, and the like.
Fig. 2 is a method for adjusting a numerical value according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
and S21, detecting whether the numerical value adjusting control receives the form transformation operation.
The numerical adjustment control is a control used for adjusting the value in the electronic device, and in the embodiment of the application, the numerical adjustment control includes at least two forms, namely a first form and a second form, and different forms are converted through a form transformation operation.
In the embodiment of the present application, the default form of the numerical adjustment control is the first form, and therefore, in the first form, it is determined whether to convert the numerical adjustment control from the first form to the second form by detecting whether the numerical adjustment control receives a form conversion operation, and if the form conversion operation is received, S22 is executed.
In one possible embodiment, the form transformation operation may be a long-press operation or a 3D touch operation on a numerical adjustment control, where the 3D touch is a stereoscopic touch technology, referred to as three-dimensional touch in chinese, and the cooperation of a multi-touch layer and a linear motor on a screen realizes that a shortcut menu or other pressure-sensitive operation interaction modes can appear on an APP by sensing the pressing force.
And S22, if the numerical value adjusting control is detected to receive the form conversion operation, converting the numerical value adjusting control from a first form to a second form.
In the present embodiment, the numerical adjustment control has multiple forms, and the conversion between the forms is controlled by the form transformation operation.
In one example, the numerical adjustment control is installed in a terminal having a touch screen, the form transformation operation may be a sliding operation, a clicking operation, a double-clicking operation, and the like, and the detecting whether the numerical adjustment control receives the form transformation operation may be detecting whether the sliding operation, the clicking operation, the double-clicking operation, and the like are received in a preset area (for example, a display area of the numerical adjustment control) of the touch screen, and if the sliding operation, the clicking operation, the double-clicking operation, and the like are received, it is determined that the numerical adjustment control receives the form transformation operation, and if the sliding operation, the double-clicking operation, and the double-clicking operation.
When the numerical control receives the form conversion operation, the numerical control is converted from one form to another form, for example, the numerical control has two forms, namely a first form and a second form.
The conversion effect of the numerical value adjustment control during state conversion can be a page turning effect, a flying-in effect, a rotating effect and the like, and can be specifically set according to requirements, and is not specifically limited here.
In an example, the first form of the numerical adjustment control is a circular ring shape as shown in fig. 3, the second form is a sphere as shown in fig. 4, when the numerical adjustment control is converted from the first form to the second form, the numerical adjustment control in the first form may be converted into the numerical adjustment control in the second form by rotating a preset angle around any straight line passing through the radial direction of the numerical adjustment control itself, where the preset angle may be 180 ° or a multiple of 180 °, and the specific numerical value is not limited here, and the conversion of the first form into the second form by the rotation effect is dynamic and interesting, so that the user may feel the interest in control.
And S23, acquiring a preset second numerical value adjustment strategy corresponding to the second form.
In the embodiment of the present application, the first form and the second form are two different expression forms of the numerical adjustment control, and the numerical adjustment control has different corresponding numerical adjustment strategies in the different forms, and the numerical adjustment strategy is a method for adjusting a numerical value according to a numerical adjustment operation, and may be preset according to the form of the numerical adjustment control. Because different forms correspond to different numerical adjustment strategies, the conversion of the forms of the numerical adjustment control is the conversion of the numerical adjustment strategies.
In one example, the first configuration of the numerical adjustment control is a circular ring as shown in fig. 3, the circular ring is provided with a control button 300, wherein point a on the circular track is a maximum numerical value, point B is a minimum numerical value, and an area inside the circular ring is used as a display area for displaying a current numerical value (e.g. 26), and the numerical adjustment strategy corresponding to the configuration of the numerical adjustment control shown in fig. 3 may be: when the control button 300 moves along the track direction from point a to point B, the numerical value increases by x every unit distance, and when the control button 300 moves along the track direction from point B to point a, the numerical value decreases by x every unit distance, where the unit distance is a value set according to requirements, for example, may be 1 mm, or may be another value, and is not limited herein, and x is also a value set according to requirements, for example, may be 1, and the specific value is not limited herein.
The movement of the control button 300 can be realized by pressing the control button 300 to drag, or by clicking a certain position on the ring, so that the control button 300 directly jumps to the corresponding position, for example, the control button 300 is originally at the position of the value 1, and by clicking the position of the value 5 on the track, the control button 300 can directly jump to the position of the value 5, and by this way, the adjustment speed is fast, but the accuracy is low, and the value is inaccurate because the control button 300 is supposed to jump to the value 5 but possibly jumps to the value 6 or 4, and the control button 300 is moved by pressing the control button 300 to drag, although the adjustment speed is slow, the accuracy is high, and the value size of the current position can be obtained in real time in the dragging process.
In one example, the second form of the numerical adjustment control is a sphere shown in fig. 4, the sphere is provided with a control button 400, and the second numerical adjustment strategy corresponding to the second form of the numerical adjustment control may be: the control button 400 moves counterclockwise by a unit distance in the warp direction of a sphere, the numerical value increases by Y, moves clockwise by a unit distance in the warp direction, decreases by Y, moves upward by a unit distance in the weft direction, increases by Z, moves downward by a unit distance in the weft direction, decreases by Z, wherein the unit distance is a value set according to requirements, for example, 1 mm, and may be other values, Y and Z are also values set according to requirements, for example, Y is 0.5, Z is 0.1, and may be other values, and specific values are not limited herein.
The movement of the control button 400 can be realized by pressing the control button 400 to drag, or by clicking a certain position on the spherical surface to directly jump the control button 400 to the corresponding position.
And S24, detecting whether the numerical value adjusting control receives a second adjusting operation in a second state within threshold time.
The second adjustment operation is an operation on the numerical value adjustment control in the second form, and the second adjustment operation is used for adjusting the numerical value according to a second numerical value adjustment strategy corresponding to the second form, where the second adjustment operation may be a sliding operation, a single-click operation, a double-click operation, or the like, but it is required to ensure that the second adjustment operation and the form transformation operation are not repeated, for example, if the form transformation operation is a single-click operation, the second adjustment operation may not be a single-click operation, and if the form transformation operation is a double-click operation, the second adjustment operation may not be a double-click operation, and so on.
In one example, the second shape of the numerical adjustment control is a sphere (as shown in fig. 4), in a specific application, the user may control the rotation of the spherical numerical adjustment control with a finger (1 or more fingers may all be used), and the second adjustment operation may be a click operation on the sphere, in a specific operation, or a dragging operation on the control button 400 on the sphere, where the dragging operation includes dragging along a meridian of the sphere, dragging along a latitude of the sphere, or dragging along an oblique line on the sphere.
In one possible embodiment, if the numerical adjustment control in the second form does not receive the second adjustment operation within the threshold time, the numerical adjustment control is converted from the second form to the first form. If the second adjustment operation is not received within the threshold time, it may be that the numerical value adjustment has been completed through the second state, or it may be that the numerical value adjustment does not need to be performed through the second state, and the user may inadvertently enter the second state due to an erroneous operation, so that the numerical value adjustment control may be restored to the default state, i.e., the first state, which is convenient for the user to use.
In one possible embodiment, if the numerical adjustment control in the second state does not receive the second adjustment operation within the threshold time, the numerical adjustment control may be turned off. If the second adjustment operation is not received within the threshold time, it indicates that the user may have completed the numerical adjustment, so to save the running memory, the numerical adjustment control may be turned off at this time.
And S24, if a second adjusting operation is received, determining a numerical value adjusting type and a numerical value adjusting stride according to the second numerical value adjusting strategy and the second adjusting operation, wherein the numerical value adjusting type represents increasing or decreasing of a current numerical value, and the numerical value adjusting stride represents increasing or decreasing of the current numerical value.
The numerical value adjustment type may be determined according to the operation direction of the second adjustment operation and the second numerical value adjustment strategy, and the numerical value adjustment stride may be determined according to the operation distance of the second adjustment operation and the second adjustment strategy.
In one example, the numerical adjustment control of the second form is spherical (as shown in fig. 4), and the second numerical adjustment policy corresponding to the numerical adjustment control of the second form may be: the control button 400 moves counterclockwise in the spherical warp direction by the unit distance, the numerical value increases Y, moves clockwise in the warp direction by the unit distance, the numerical value decreases Y, moves upward in the weft direction by the unit distance, the numerical value increases Z, moves downward in the weft direction by the unit distance, the numerical value decreases Z, wherein the unit distance is a value set according to the demand. The operation direction of the second adjustment operation may be a clockwise direction along the warp, a counterclockwise direction along the warp, an upward direction along the weft, a downward direction along the weft, a diagonally upward and rightward direction along the spherical surface, a diagonally downward and rightward direction along the spherical surface, a diagonally upward and leftward direction along the spherical surface, and a diagonally downward and leftward direction along the spherical surface.
In one example, the corresponding end point coordinates and start point coordinates of the second adjustment operation in a preset three-dimensional coordinate system (e.g., a spherical coordinate system) may be obtained, and the operation direction of the second adjustment operation may be determined according to the end point coordinates and the start point coordinates.
In one example, the operation distance of the second adjustment operation is a shortest spherical distance between a position (start point) of the control button when the second adjustment operation starts and a position (end point) of the control button when the second adjustment operation ends, and may be calculated from coordinates of the start point and coordinates of the end point.
In one example, if the second adjustment operation is that the control button moves H millimeters clockwise in the warp direction, the numerical adjustment type is to increase the current numerical value, and the numerical adjustment step may be calculated by:
the numerical adjustment step is (H mm/unit distance) Y.
For example, if the unit distance is 1 mm and Y is 0.5, the numerical adjustment step is 0.5H.
And S25, adjusting the current numerical value according to the numerical value adjustment type and the numerical value adjustment stride.
In the embodiment of the present application, a current value is obtained, and a value adjustment step is increased or decreased for the current value according to a value adjustment type, for example, the current value is 26, the value adjustment type is to increase the current value, and the value adjustment step is 0.5H, and then the current value is adjusted according to the value adjustment type and the value adjustment step, that is, the value 26 is increased by 0.5H.
In one possible embodiment, in the first state of the numerical value adjustment control, a numerical value adjustment strategy corresponding to the first state is obtained, whether a first adjustment operation is received is detected, if the first adjustment operation is received, a numerical value adjustment type and a numerical value adjustment stride are determined according to the first numerical value adjustment strategy and the first adjustment operation, and the current numerical value is adjusted according to the numerical value adjustment type and the numerical value adjustment stride.
The process of detecting whether the first adjustment operation is received is similar to the process of detecting whether the second adjustment operation is received, and details are not repeated here.
The manner of determining the numerical adjustment type and the numerical adjustment stride according to the first numerical adjustment strategy and the first adjustment operation is similar to the manner of determining the numerical adjustment type and the numerical adjustment stride according to the second numerical adjustment strategy and the second adjustment operation, for example, the numerical adjustment type is determined according to the operation direction of the first adjustment operation and the first numerical adjustment strategy, and the numerical adjustment stride is determined according to the operation distance of the first adjustment operation and the first adjustment strategy.
In one example, the operation direction may be determined according to coordinates of the control button in a preset coordinate system (e.g., a two-dimensional coordinate system) at the start of the first adjustment operation and coordinates of the control button in the preset coordinate system at the end of the first adjustment operation, and the operation distance may also be determined according to the two coordinates.
In one example, the numeric adjustment control in the first state is a donut shape (as shown in fig. 3), and the first numeric adjustment policy corresponding to the first state is: when the control button 300 is moved in the track direction from point a to point B, the numerical value increases by x per unit distance of movement, and when the control button 300 is moved in the track direction from point B to point a, the numerical value decreases by x per unit distance of movement. If the first adjustment operation is moving M millimeters along the track direction from point a to point B, the corresponding value adjustment type is increasing the current value, and the value adjustment step can be calculated by the following formula:
the numerical adjustment step is (M mm/unit distance) x.
The numerical value adjusting method provided by the embodiment of the invention is characterized in that when the numerical value adjusting control is detected to receive the form transformation operation, the numerical value adjusting control is converted from the first form to the second form, a preset second numerical value adjusting strategy corresponding to the second form is obtained, whether the numerical value adjusting control in the second form receives the second adjusting operation within the threshold time is detected, if the numerical value adjusting control receives the second adjusting operation, the numerical value adjusting type and the numerical value adjusting stride are determined according to the second numerical value adjusting strategy and the second adjusting operation, and the current numerical value is adjusted according to the numerical value adjusting type and the numerical value adjusting stride. According to the scheme, the numerical value adjusting strategies are switched by switching the forms of the numerical value adjusting controls, different adjustments are carried out on the numerical values according to different numerical value adjusting strategies, and when the numerical value adjusting control is specifically applied, the numerical values can be adjusted in different precision by using different forms of the same numerical value adjusting control, so that the numerical value adjusting control is convenient to operate.
In a possible embodiment, in order to facilitate the user to timely know the change of the numerical value, the numerical value adjusting control can also display the current numerical value in real time, and the numerical value display area is set according to the requirement.
In one example, the second form of the numerical adjustment control is a sphere, and the numerical adjustment result is displayed in the northern hemisphere if the user performs the second adjustment operation in the southern hemisphere of the sphere, and the numerical adjustment result is displayed in the southern hemisphere if the user performs the second adjustment operation in the northern hemisphere of the sphere, so as to prevent the displayed numerical value from being blocked when the user performs the adjustment operation.
In one example, if the first form of the numerical value adjustment control is a circular ring, an inner area of the circular ring may be set as a display area for displaying the numerical value.
In one possible embodiment, the method further comprises: and sending the value obtained after the current value is adjusted to the external equipment.
The method provided by the embodiment is applied to electronic equipment, wherein the electronic equipment is electronic equipment with a remote control function, such as a smart phone with a remote control function, and the electronic equipment can control external equipment (such as intelligent equipment of an air conditioner, a television and the like) through the remote control function, so that if the electronic equipment controls the external equipment through the remote control function, numerical value adjustment can be performed through the numerical value adjustment method provided by the embodiment, and thus the adjusted numerical value is included in a remote control signal and is sent to the external equipment to realize control of the external equipment. For example, when the electronic device controls the air conditioner through the remote control function, the temperature of the air conditioner can be adjusted through the numerical value adjustment method provided by the embodiment.
Fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present invention. The electronic device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided by the method embodiments, for example, including: detecting whether the numerical value adjusting control receives a form transformation operation;
if the numerical value adjusting control is detected to receive the form conversion operation, setting the numerical value adjusting control from a first form to a second form;
detecting whether the numerical value adjusting control receives a first adjusting operation in a second state within a threshold time;
if a first adjusting operation is received, acquiring a second numerical value adjusting strategy corresponding to the second form;
and adjusting the numerical value according to the first adjusting operation based on the second numerical value adjusting strategy to obtain a numerical value adjusting result.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Through the above description of the embodiments, those skilled in the art will clearly understand that the methods described in the embodiments of the present invention can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention or the method according to some parts of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of numerical adjustment, comprising:
detecting whether the numerical value adjusting control receives a form transformation operation;
if the numerical value adjusting control is detected to receive the form conversion operation, converting the numerical value adjusting control from a first form to a second form;
acquiring a preset second numerical value adjustment strategy corresponding to the second form;
detecting whether the numerical value adjusting control in the second state receives a second adjusting operation within a threshold time;
if a second adjustment operation is received, determining a numerical value adjustment type and a numerical value adjustment stride according to the second numerical value adjustment strategy and the second adjustment operation, wherein the numerical value adjustment type represents increasing or decreasing of a current numerical value, and the numerical value adjustment stride represents increasing or decreasing of the current numerical value;
and adjusting the current numerical value according to the numerical value adjustment type and the numerical value adjustment stride.
2. A numerical adjustment method according to claim 1, wherein the numerical adjustment control in the first form is a circular ring shape, and the numerical adjustment control in the second form is a spherical shape;
converting the numerical adjustment control from a first form to a second form, including:
the numerical value adjusting control in the first form is converted into the numerical value adjusting control in the second form by rotating a preset angle by taking any straight line passing through the radial direction of the numerical value adjusting control as an axis.
3. The method of claim 1, wherein determining a numerical adjustment type and a numerical adjustment stride based on the second numerical adjustment strategy and the second adjustment operation comprises:
determining an operation direction and an operation distance of the second adjustment operation;
determining a numerical value adjustment type according to the second numerical value adjustment strategy and the operation direction;
and determining a numerical value adjustment stride according to the second numerical value adjustment strategy and the operation distance.
4. The numerical adjustment method according to claim 1, characterized by further comprising:
when the numerical value adjusting control is in a first form, acquiring a preset first numerical value adjusting strategy corresponding to the first form;
detecting whether the numerical value adjusting control receives a first adjusting operation in a first form;
and if a first adjusting operation is received, determining a numerical value adjusting type and a numerical value adjusting stride according to the first numerical value adjusting strategy and the first adjusting operation.
5. The method of claim 4, wherein determining a numerical adjustment type and a numerical adjustment stride based on the first numerical adjustment strategy and the first adjustment operation comprises:
determining an operation direction and an operation distance of the first adjustment operation;
determining a numerical value adjustment type according to the first numerical value adjustment strategy and the operation direction;
and determining a numerical adjustment stride according to the first numerical adjustment strategy and the operating distance.
6. The numerical adjustment method according to claim 1, characterized by further comprising:
if the numerical adjustment control in the second form does not receive the second adjustment operation within the threshold time, the numerical adjustment control is converted from the second form to the first form.
7. The numerical adjustment method according to claim 1, characterized by further comprising:
and displaying the numerical value obtained after the current numerical value is adjusted.
8. The numerical adjustment method according to claim 1, characterized by further comprising: and sending the value obtained after the current value is adjusted to the external equipment.
9. An electronic device, comprising: a processor and a memory, the processor being configured to execute a value adjustment program stored in the memory to implement the value adjustment method according to any one of claims 1 to 8.
10. A storage medium storing one or more programs executable by one or more processors to implement the value adjustment method according to any one of claims 1 to 8.
CN201910723290.5A 2019-08-06 2019-08-06 Numerical value adjusting method, electronic device and storage medium Active CN110618837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910723290.5A CN110618837B (en) 2019-08-06 2019-08-06 Numerical value adjusting method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910723290.5A CN110618837B (en) 2019-08-06 2019-08-06 Numerical value adjusting method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110618837A true CN110618837A (en) 2019-12-27
CN110618837B CN110618837B (en) 2020-11-17

Family

ID=68921571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910723290.5A Active CN110618837B (en) 2019-08-06 2019-08-06 Numerical value adjusting method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110618837B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446053A (en) * 2010-10-12 2012-05-09 深圳市合信自动化技术有限公司 Method and device for adjusting numeric values of touch screen
CN102693058A (en) * 2011-03-21 2012-09-26 新奥特(北京)视频技术有限公司 Method for slide adjustment of numerical value
US20150185871A1 (en) * 2014-01-02 2015-07-02 Electronics And Telecommunications Research Institute Gesture processing apparatus and method for continuous value input
CN105700752A (en) * 2016-01-18 2016-06-22 网易(杭州)网络有限公司 Game numerical adjusting control method and device
CN105824531A (en) * 2016-03-15 2016-08-03 网易(杭州)网络有限公司 Method and device for adjusting numbers
CN106295183A (en) * 2016-08-09 2017-01-04 深圳市诺然美泰科技股份有限公司 The parameter adjustment control of a kind of armarium and method
CN107390995A (en) * 2017-07-31 2017-11-24 阿里巴巴集团控股有限公司 A kind of ladder numerical value method to set up and device
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446053A (en) * 2010-10-12 2012-05-09 深圳市合信自动化技术有限公司 Method and device for adjusting numeric values of touch screen
CN102693058A (en) * 2011-03-21 2012-09-26 新奥特(北京)视频技术有限公司 Method for slide adjustment of numerical value
US20150185871A1 (en) * 2014-01-02 2015-07-02 Electronics And Telecommunications Research Institute Gesture processing apparatus and method for continuous value input
CN105700752A (en) * 2016-01-18 2016-06-22 网易(杭州)网络有限公司 Game numerical adjusting control method and device
CN105824531A (en) * 2016-03-15 2016-08-03 网易(杭州)网络有限公司 Method and device for adjusting numbers
CN106295183A (en) * 2016-08-09 2017-01-04 深圳市诺然美泰科技股份有限公司 The parameter adjustment control of a kind of armarium and method
CN107390995A (en) * 2017-07-31 2017-11-24 阿里巴巴集团控股有限公司 A kind of ladder numerical value method to set up and device
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110618837B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN107632895B (en) Information sharing method and mobile terminal
USRE43587E1 (en) Method and apparatus for controlling a computing system
US9146672B2 (en) Multidirectional swipe key for virtual keyboard
CN107562312B (en) Icon moving method and mobile terminal
US8957918B2 (en) Methods for implementing multi-touch gestures on a single-touch touch surface
WO2019085921A1 (en) Method, storage medium and mobile terminal for operating mobile terminal with one hand
US20180364865A1 (en) Touch control method, user equipment, input processing method, mobile terminal and intelligent terminal
CN106354373B (en) Icon moving method and mobile terminal
US20140139433A1 (en) Remote controller and display apparatus, control method thereof
US20140306897A1 (en) Virtual keyboard swipe gestures for cursor movement
EP2752754B1 (en) Remote mouse function method and terminals
JP2014102850A (en) User interface methods providing continuous zoom functionality
US10497336B2 (en) Mobile terminal and method of providing a page and/or object layout
CN107704157B (en) Multi-screen interface operation method and device and storage medium
CN107562335B (en) Display area adjusting method and mobile terminal
CN107318091B (en) Network connection control method and mobile terminal
CN106970752B (en) Screen capturing method and mobile terminal
EP2998838B1 (en) Display apparatus and method for controlling the same
CN110825242B (en) Method and device for inputting
US10025420B2 (en) Method for controlling display of touchscreen, and mobile device
US10809824B2 (en) Information processing method and electronic device
CN110618837B (en) Numerical value adjusting method, electronic device and storage medium
US10620824B2 (en) Creating tables using gestures
US9733775B2 (en) Information processing device, method of identifying operation of fingertip, and program
CN102486689B (en) A kind of input method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant