CN108595081B - Rotation control method and terminal - Google Patents

Rotation control method and terminal Download PDF

Info

Publication number
CN108595081B
CN108595081B CN201810180283.0A CN201810180283A CN108595081B CN 108595081 B CN108595081 B CN 108595081B CN 201810180283 A CN201810180283 A CN 201810180283A CN 108595081 B CN108595081 B CN 108595081B
Authority
CN
China
Prior art keywords
input
terminal
display panel
angle value
rotate
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.)
Active
Application number
CN201810180283.0A
Other languages
Chinese (zh)
Other versions
CN108595081A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810180283.0A priority Critical patent/CN108595081B/en
Publication of CN108595081A publication Critical patent/CN108595081A/en
Application granted granted Critical
Publication of CN108595081B publication Critical patent/CN108595081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

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)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a rotation control method and a terminal, relates to the technical field of terminals, and can solve the problem that the display effect of the terminal is poor due to the fact that the supporting angle of a fixed support cannot change along with the change of the watching angle of a user. The specific scheme is as follows: receiving a first input from a user, the first input comprising: a user slides on a display screen of the terminal for inputting; in response to the first input, obtaining parameters of a slide input, the parameters of the slide input including: at least one of a start position of the slide input, an end position of the slide input, and a direction of the slide input; and controlling the first rotating part to rotate by a first angle value along the first target direction according to the parameters input by sliding. The embodiment of the invention can achieve the purpose that the first rotating part changes along with the change of the watching angle of the user, thereby leading the terminal to have better display effect.

Description

Rotation control method and terminal
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a rotation control method and a terminal.
Background
With the development and popularization of electronic products, terminals such as mobile phones and tablet computers are also widely used. In order to facilitate the use of the terminal by the user, some fixed supports are available in the market at present, and the user can place the terminal on the fixed support to support and fix the terminal.
However, there are problems in that: when a user uses a fixed support, the supporting angle of the fixed support cannot be changed along with the change of the viewing angle of the user, so that the display effect of the terminal is poor.
Disclosure of Invention
The embodiment of the invention provides a rotation control method and a terminal, which can solve the problem that the display effect of the terminal is poor because the supporting angle of a fixed support cannot be changed along with the change of the viewing angle of a user.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect of the present invention, there is provided a rotation control method for a terminal, the terminal being provided with a first rotation member, the rotation control method comprising: receiving a first input from a user, the first input comprising: a user slides on a display screen of the terminal for inputting; in response to the first input, obtaining parameters of a slide input, the parameters of the slide input including: at least one of a start position of the slide input, an end position of the slide input, and a direction of the slide input; and controlling the first rotating part to rotate by a first angle value along the first target direction according to the parameters input by sliding.
In a second aspect of the present invention, there is provided a terminal provided with a first rotating member, the terminal comprising: the device comprises a receiving unit, an acquisition unit and a control unit. The receiving unit is used for receiving a first input of a user, wherein the first input comprises: and (4) sliding input of the user on a display screen of the terminal. An acquisition unit, configured to acquire parameters of a slide input in response to the first input received by the receiving unit, where the parameters of the slide input include: at least one of a start position of the slide input, an end position of the slide input, and a direction of the slide input. And the control unit is used for controlling the first rotating part to rotate by a first angle value along the first target direction according to the parameters of the sliding input acquired by the acquisition unit.
In a third aspect of the present invention, a rack is provided, which includes a second rotating part including a card socket and a communication module. The card holder is used for fixing the terminal. The communication module is used for data transmission with the terminal.
In a fourth aspect of the invention, there is provided a terminal comprising a cradle as described in the third aspect.
In a fifth aspect of the present invention, a terminal is provided, the terminal comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the method of rotation control as described in the first aspect.
A sixth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method of rotation control as set forth in the first aspect.
In the embodiment of the invention, the terminal can control the first rotating component to rotate by the first angle value along the first target direction according to the parameters of the user in the sliding input on the display screen, so that the first rotating component can change along with the change of the viewing angle of the user, and the terminal has a better display effect.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a first flowchart of a rotation control method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an example of a first input according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a rotation control method according to an embodiment of the present invention;
fig. 5 is a first schematic diagram illustrating an example of an interface of a mobile phone according to an embodiment of the present invention;
FIG. 6 is a first diagram illustrating an example of parameters of a sliding input according to an embodiment of the present invention;
FIG. 7 is a second exemplary diagram of parameters of a sliding input according to an embodiment of the present invention;
FIG. 8 is a third exemplary diagram of parameters of a sliding input according to an embodiment of the present invention;
fig. 9 is a flowchart of a method for controlling rotation according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating an example of a display state of a mobile phone according to an embodiment of the present invention;
FIG. 11 is a flowchart of a fourth method for rotational control according to an embodiment of the present invention;
fig. 12 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of a bracket according to an embodiment of the present invention;
fig. 14 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 16 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
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, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first angle value and the second angle value, etc. are used to distinguish between different angle values, rather than to describe a particular order of the angle values. In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is an or, for example, a/B denotes a or B.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a rotation control method and a terminal, which can be applied to a process of controlling a rotation angle by the terminal and can solve the problem that the display effect of the terminal is poor because the support angle of a fixed support cannot be changed along with the change of the viewing angle of a user in the prior art.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the rotation control method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention, in fig. 1, the architecture of the android operating system includes 4 layers, which are an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, L inux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of the android operating system and belongs to the lowest layer of a software layer of the android operating system, and the kernel layer provides core system services and hardware-related drivers for the android operating system based on L inux kernels.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for rotation control provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for rotation control may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal can implement the rotation control method provided by the embodiment of the invention by running the software program in the android operating system.
In a first embodiment of the present invention, fig. 2 illustrates a method for rotation control provided in an embodiment of the present invention, which may be applied to a terminal having an android operating system as illustrated in fig. 1. As shown in fig. 2, the method of rotation control includes S201 to S203:
s201, the terminal receives a first input of a user.
Wherein the first input comprises: and (4) sliding input of the user on a display screen of the terminal.
In an embodiment of the invention, the terminal is provided with a first rotating member.
Optionally, in an embodiment of the present invention, the first rotating component may include: a display panel of the terminal or a second rotating member connected to the terminal.
Illustratively, the second rotating member is in wired connection with the terminal; alternatively, the second rotating member is wirelessly connected to the terminal, such as via bluetooth or a Wireless-Fidelity (WiFi) network.
Optionally, in the embodiment of the present invention, the display panel of the terminal is a panel made of a flexible material.
Optionally, in this embodiment of the present invention, the second rotating component may include a card socket and a communication module. The card seat is used for fixing the terminal, and the communication module is used for carrying out data transmission with the terminal.
The terminal is exemplarily described as a mobile phone. As shown in fig. 3, the user makes a slide input on the display 11 of the mobile phone 10, and the mobile phone 10 can detect the slide input by the user.
It should be noted that, in the embodiment of the present invention, the second rotating member connected to the terminal may be provided by a terminal manufacturer or may be purchased by a user.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 4, before the step S201, the method for controlling rotation further includes steps S401 and S402:
s401, the terminal receives a third input of the user.
Wherein the third input is used for triggering the first rotating part to rotate.
In the embodiment of the invention, the user can start the rotation mode of the terminal by performing the third input on the terminal, so that the terminal controls the first rotation component to rotate.
For example, the user may perform a third input on a setting interface in the terminal to start a rotation mode of the terminal; or the user can also start the rotation mode of the terminal by pressing the key or the preset key combination; or, the user may also start the rotation mode of the terminal through voice operation, and the like, which is not limited in this embodiment of the present invention.
For example, the terminal is described as a mobile phone. As shown in fig. 5, the user may turn on the option of the rotation mode of the mobile phone 10 on the setting interface 12 in the mobile phone 10, and after clicking the option switch for turning on the rotation mode, the user triggers the mobile phone 10 to control the rotation of the first rotation part.
S402, in response to a third input, the terminal controls the first rotating component to rotate the initial angle value along the second target direction.
And the initial angle value is the angle value stored by the terminal.
Illustratively, the initial angle value is the angle value of the last rotation of the first rotating member that the terminal saved. The second target direction is a direction in which the display screen is close to the user or a direction in which the display screen is far from the user.
For example, if the last time the first rotating member rotated by an angle value of 20 ° and rotated in the direction in which the display screen approached the user, the terminal controls the first rotating member to rotate by 20 ° in the direction in which the display screen approached the user; if the terminal detects that the user starts the rotation mode of the terminal for the first time, the terminal determines that the initial angle value is 0 degrees.
S202, responding to the first input, and the terminal acquires parameters of the sliding input.
Optionally, in the embodiment of the present invention, the parameters of the sliding input include: at least one of a start position of the slide input, an end position of the slide input, and a direction of the slide input.
For example, the terminal may collect a position where the user starts touching the display screen (i.e., a start position) and a position where the user stops touching the display screen (i.e., an end position) according to the sliding input of the user, and determine a direction according to the start position and the end position.
Illustratively, as shown in fig. 6, the user performs a sliding input on the display screen 11 of the mobile phone 10 shown in fig. 3, the mobile phone 10 acquires that the starting position of the sliding input is point a, the ending position of the sliding input is point b, and the direction of the sliding input is the direction of the connection line between the point a and the point b.
S203, the terminal controls the first rotating component to rotate by a first angle value along the first target direction according to the parameters input by sliding.
In the embodiment of the present invention, the terminal may control the first rotating member to rotate by the first angle value in the first target direction according to a start position of the slide input, an end position of the slide input, and/or a direction of the slide input.
Optionally, in this embodiment of the present invention, the parameters of the sliding input may include a start position of the sliding input and an end position of the sliding input. Accordingly, S203 may be specifically implemented by the following S501 to S505:
s501, the terminal determines a first length according to the starting position and the ending position.
The first length is the distance between the projection positions of the starting position and the ending position in the preset direction.
Optionally, in this embodiment of the present invention, the terminal may determine the first length by measuring a length between projection positions of the starting position and the ending position in the preset direction; or, the terminal may further obtain position coordinate values of the two projection points (i.e., the two projection points of the start position and the end position in the preset direction) in the preset spatial coordinate system, respectively, and calculate the first length according to the obtained two position coordinate values.
For example, as shown in fig. 7, the starting position is point a, and the ending position is point b; the terminal determines the projection positions of the point a and the point b in the preset direction 13 as the point a1 and the point b1, respectively, and measures the distance between the point a1 and the point b1 as x, that is, the first length is x.
S502, the terminal determines a first angle value according to the first length.
Optionally, in this embodiment of the present invention, the terminal may calculate a first angle value y. by using a preset formula y — k × x, where k is a sensitivity coefficient and x is a first length.
And S503, the terminal determines a second angle value.
And the second angle value is an included angle value between a straight line where a connecting line between the starting position and the ending position is located and the preset direction.
Illustratively, as shown in fig. 7, the angle between the line connecting the points a and b and the preset direction 13 is β.
And S504, the terminal determines the first target direction according to the second angle value.
In the embodiment of the invention, the terminal can judge the direction of the sliding input according to the magnitude relation between the second angle value and the preset threshold value, and determine the first target direction according to the direction of the sliding input.
Optionally, in the embodiment of the present invention, the preset threshold may be 90 °.
Optionally, when the second angle value is greater than 90 °, the terminal determines that the sliding input direction is a sliding direction towards a lower boundary of a display screen of the terminal, and determines that the first target direction is a direction in which the display screen approaches the user according to the sliding input direction; and when the second angle value is smaller than 90 degrees, the terminal judges that the sliding input direction is the sliding direction towards the upper boundary of the display screen of the terminal, and determines that the first target direction is the direction in which the display screen is far away from the user according to the sliding input direction.
Illustratively, as shown in (1) of fig. 8, the second angle value β is greater than 90 °, the terminal determines that the direction of the slide input is the direction 14, and the terminal determines that the first target direction is the direction in which the display screen is close to the user according to the direction 14, and as shown in (2) of fig. 8, the second angle value β is less than 90 °, the terminal determines that the direction of the slide input is the direction 15, and the terminal determines that the first target direction is the direction in which the display screen is away from the user according to the direction 15.
And S505, the terminal controls the first rotating component to rotate by a first angle value along the first target direction.
For example, when the second angle value is greater than 90 °, the terminal may control the first rotating member to rotate the first angle value y ═ k × x in a direction in which the display screen is close to the user, and when the second angle value is less than 90 °, the terminal may control the first rotating member to rotate the first angle value y ═ k × x in a direction in which the display screen is away from the user.
Optionally, in a first scenario of the embodiment of the present invention, the first rotating component includes: a display panel of the terminal. Accordingly, referring to fig. 2, as shown in fig. 9, the above S203 may be specifically implemented by the following S203 a:
s203a, controlling the display panel of the terminal to rotate by a first angle value along a first target direction by taking a preset straight line on the display panel as an axis according to the parameters input by sliding.
Wherein, the direction of the preset straight line is the same as the direction of the boundary of the display panel of the terminal.
Optionally, in an embodiment of the present invention, the display panel of the terminal is a panel made of a flexible material, and the display panel includes a base portion and a display portion.
For example, as shown in (1) in fig. 10, the display state of the mobile phone 10 is a vertical screen state, the direction of the preset straight line 17 on the display panel 16 is the same as the direction of the boundary of the display panel 16, and the mobile phone 10 controls the display panel 16 to rotate by a first angle value along a first target direction 18 (taking the direction of the display screen away from the user as an example in fig. 10) with the preset straight line 17 as an axis; as shown in (2) of fig. 10, the display state of the mobile phone 10 is a landscape state, and the direction of the preset straight line 17 on the display panel 16 is the same as the direction of the boundary of the display panel 16; the mobile phone 10 controls the display panel 16 to rotate by a first angle value along a first target direction 18 (in fig. 10, the direction of the display screen approaching the user is taken as an example) with a preset straight line 17 as an axis.
Optionally, in a second scenario of the embodiment of the present invention, the first rotating component includes: a second rotating member. Accordingly, referring to fig. 2, as shown in fig. 11, the above S203 may be specifically implemented by the following S203 b:
and S203b, the terminal sends an indication message to the second rotating part.
The indication message is used for indicating the second rotating component to rotate the first angle value along the first target direction according to the parameters of the sliding input.
In the embodiment of the invention, the terminal sends the indication message to the second rotating part to control the second rotating part to rotate the first angle value along the first target direction according to the parameters input by sliding.
Optionally, in the second scenario, before the step S203, the method for controlling rotation according to the embodiment of the present invention further includes steps S601 and S602, and the step S203 may be specifically implemented by the following step S203 c:
s601, the terminal displays prompt information on a display interface of the terminal.
Wherein the prompt message is used for indicating whether to rotate the second rotating part.
In the embodiment of the invention, after the user connects the terminal with the second rotating part, the second rotating part can send a request message to the terminal through the communication module, and the terminal displays the prompt message on the display interface of the terminal after receiving the request message so as to prompt the user whether to rotate the second rotating part.
Illustratively, as shown in fig. 12, the cellular phone 10 displays a prompt message 20 of "whether to rotate the second rotating member" and a "yes" icon and a "no" icon for the user to select on the display interface 19.
And S602, the terminal receives a second input of the user.
Wherein. The second input is used for triggering the terminal to control the second rotating part to rotate.
Illustratively, the user may click/press the "yes" icon on the display interface 19 as shown in fig. 12 to trigger the terminal to control the second rotating member to rotate.
S203c, in response to the second input, the terminal controls the first rotating member to rotate by the first angle value in the first target direction according to the parameter of the sliding input.
Optionally, in the embodiment of the present invention, with reference to fig. 4, after S203 described above, the method for controlling rotation further includes S701 and S702:
and S701, the terminal receives a fourth input of the user.
Wherein the fourth input is used for triggering the first rotating part to rotate.
In the embodiment of the present invention, the terminal may close/exit the rotation mode of the first rotation member according to a fourth input of the user.
For example, the user may perform a fourth input on a setting interface in the terminal to turn off the rotation mode of the terminal; or the user can also close the rotation mode of the terminal by pressing the key or the preset key combination; or, the user may also perform a click/press operation on the current interface, where the click operation may be a single click, a double click, or a continuous click for a preset number of times; or, the user may also turn off the rotation mode of the terminal through voice operation, and the like, which is not limited in this embodiment of the present invention.
For example, the user may close the option of the rotational mode of the mobile phone 10 on the setting interface 12 shown in fig. 5 in the mobile phone 10, and after clicking the option switch for closing the rotational mode, the user triggers the mobile phone 10 to control the first rotational member to rotate to the position of the first rotational member before receiving the third input.
And S702, responding to a fourth input, and controlling the first rotating component to rotate a third angle value along a third target direction by the terminal.
Wherein the angle of the first rotating member support terminal after rotating by the third angle value is the same as the angle of the first rotating member support terminal before receiving the third input.
Illustratively, the control panel base portion and the display portion of the terminal are in the same plane.
Optionally, in this embodiment of the present invention, after controlling the first rotating component to rotate the first angle value along the first target direction, the terminal may store the first angle value and the first target direction in the terminal.
The embodiment of the invention provides a rotation control method, and the terminal can control the first rotating component to rotate the first angle value along the first target direction according to the parameters of the user during sliding input on the display screen, so that the first rotating component can change along with the change of the viewing angle of the user, and the terminal has a better display effect.
Furthermore, in the embodiment of the invention, the base part of the display panel of the terminal is in a screen-off state, so that the power consumption of the terminal can be saved.
In a second embodiment of the present invention, fig. 13 is a schematic structural diagram of a stent provided in an embodiment of the present invention. As shown in fig. 13, the bracket 130 includes a second rotating member 131, and the second rotating member 131 includes a socket 1301 and a communication module 1302.
The card socket 1301 is used for fixing a terminal, and the communication module 1302 is used for performing data transmission with the terminal.
In a third embodiment of the present invention, fig. 14 illustrates a schematic structural diagram of a terminal provided in an embodiment of the present invention. As shown in fig. 14, the terminal 140 includes a bracket 130 as shown in fig. 13.
The terminal 140 provided in the embodiment of the present invention can implement each process implemented by the terminal in the above method embodiments, and for avoiding repetition, detailed description and beneficial effects are not repeated here.
In a fourth embodiment of the present invention, fig. 15 shows a schematic diagram of a possible structure of a terminal involved in the embodiment of the present invention, and as shown in fig. 15, the terminal 150 may include: a receiving unit 151, an acquisition unit 152, and a control unit 153.
The receiving unit 151 is configured to receive a first input of a user, where the first input includes: the user slides the input on the display screen of the terminal 150. An obtaining unit 152, configured to obtain, in response to the first input received by the receiving unit 151, a parameter of the slide input, where the parameter of the slide input includes at least one of a start position of the slide input, an end position of the slide input, and a direction of the slide input. A control unit 153 for controlling the first rotating member to rotate by a first angle value in the first target direction according to the parameter of the slide input acquired by the acquisition unit 152.
In a possible implementation, the terminal 150 is provided with a first rotating member comprising: a display panel of the terminal 150 or a second rotating member connected to the terminal 150.
In one possible implementation, the first rotating member includes: a display panel of the terminal 150. Correspondingly, the control unit 153 is specifically configured to: according to the parameter of the slide input acquired by the acquisition unit 152, the display panel of the control terminal 150 is rotated by a first angle value in a first target direction with a preset straight line on the display panel as an axis, the direction of the preset straight line being the same as the direction of the boundary of the display panel of the terminal 150.
In one possible implementation, the first rotating member includes: a second rotating member. Correspondingly, the control unit 153 is specifically configured to: and sending an indication message to the second rotating part, wherein the indication message contains the parameters of the sliding input, and the indication message is used for indicating the second rotating part to rotate the first angle value along the first target direction according to the parameters of the sliding input.
In a possible implementation manner, the terminal 150 in the embodiment of the present invention further includes: a display unit. Wherein, the display unit is configured to display a prompt message on the display interface of the terminal 150 before the control unit controls the first rotating component to rotate by the first angle value along the first target direction according to the parameter of the sliding input acquired by the acquisition unit 152, and the prompt message is used to indicate whether to rotate the second rotating component. And the receiving unit 151 is further configured to receive a second input from the user, where the second input is used to trigger the terminal 150 to control the second rotating member to rotate. The control unit 153 is specifically configured to: in response to the second input, the first rotating member is controlled to rotate by the first angle value in the first target direction according to the parameter of the slide input acquired by the acquisition unit 152.
In one possible implementation, the parameters of the sliding input include a start position and an end position. The control unit 153 is specifically configured to: determining a first length according to the starting position and the ending position, wherein the first length is the distance between the starting position and the projection position of the ending position in the preset direction; determining a first angle value according to the first length; determining a second angle value, wherein the second angle value is an included angle value between a straight line where a connecting line between the starting position and the ending position is located and a preset direction; determining a first target direction according to the second angle value; the first rotating member is controlled to rotate by a first angle value in a first target direction.
In a possible implementation manner, the receiving unit 151 is further configured to receive a third input from the user before receiving the first input from the user, where the third input is used to trigger the first rotating member to rotate. The control unit 153 is further configured to control the first rotating member to rotate an initial angle value in the second target direction in response to the third input received by the receiving unit 151, where the initial angle value is an angle value that the terminal 150 has stored.
In a possible implementation manner, the receiving unit 151 is further configured to receive a fourth input from the user after the control unit 153 controls the first rotating component to rotate by the first angle value in the first target direction, where the fourth input is used to trigger the first rotating component to rotate. And a control unit 153 for controlling the first rotating member to rotate in the third target direction by a third angle value in response to the fourth input received by the receiving unit 151, wherein the angle of the first rotating member supporting terminal 150 after rotating by the third angle value is the same as the angle of the first rotating member supporting terminal 150 before receiving the third input.
The terminal 150 provided in the embodiment of the present invention can implement each process implemented by the terminal in the above method embodiments, and for avoiding repetition, detailed description and beneficial effects are not repeated here.
In a fifth embodiment of the present invention, fig. 16 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 160 includes, but is not limited to: radio frequency unit 161, network module 162, audio output unit 163, input unit 164, sensor 165, display unit 166, user input unit 167, interface unit 168, memory 169, processor 170, and power supply 171.
It should be noted that the terminal structure shown in fig. 16 is not limited to the terminal, and the terminal may include more or less components than those shown, or some components may be combined, or a different arrangement of components, as would be understood by one skilled in the art. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 167 is configured to receive a first input from a user, where the first input includes: and (4) sliding input of the user on a display screen of the terminal.
A processor 170, configured to obtain parameters of the sliding input in response to the first input, where the parameters of the sliding input include at least one of a start position of the sliding input, an end position of the sliding input, and a direction of the sliding input; and controlling the first rotating part to rotate by a first angle value along the first target direction according to the parameters input by sliding.
In the embodiment of the invention, the terminal can control the first rotating component to rotate by the first angle value along the first target direction according to the parameters of the user during sliding input on the display screen, so that the first rotating component can change along with the change of the viewing angle of the user, and the terminal has a better display effect.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 161 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 170; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 161 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 161 may also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 162, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 163 may convert audio data received by the radio frequency unit 161 or the network module 162 or stored in the memory 169 into an audio signal and output as sound. Also, the audio output unit 163 may also provide audio output related to a specific function performed by the terminal 160 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 163 includes a speaker, a buzzer, a receiver, and the like.
The input unit 164 is used to receive an audio or video signal. The input Unit 164 may include a Graphics Processing Unit (GPU) 1641 and a microphone 1642, and the Graphics processor 1641 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 166. The image frames processed by the graphic processor 1641 may be stored in the memory 169 (or other storage medium) or transmitted via the radio frequency unit 161 or the network module 162. The microphone 1642 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 161 in case of the phone call mode.
The terminal 160 also includes at least one sensor 165, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 1661 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1661 and/or the backlight when the terminal 160 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensor 165 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The Display unit 166 may include a Display panel 1661, and the Display panel 1661 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (Organic L light-Emitting Diode, O L ED), or the like.
The user input unit 167 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 167 includes a touch panel 1671 and other input devices 1672. Touch panel 1671, also referred to as a touch screen, may collect touch operations by a user on or near touch panel 1671 (e.g., operations by a user on or near touch panel 1671 using a finger, a stylus, or any other suitable object or attachment). The touch panel 1671 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 170, receives a command from the processor 170, and executes the command. In addition, the touch panel 1671 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to touch panel 1671, user input unit 167 can include other input devices 1672. In particular, other input devices 1672 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, a touch panel 1671 can be overlaid on the display panel 1661, and when the touch panel 1671 detects a touch operation on or near the touch panel 1671, the touch operation can be transmitted to the processor 170 to determine the type of the touch event, and then the processor 170 can provide a corresponding visual output on the display panel 1661 according to the type of the touch event. Although in fig. 16, the touch panel 1671 and the display panel 1661 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1671 and the display panel 1661 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 168 is an interface for connecting an external device to the terminal 160. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 168 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 160 or may be used to transmit data between the terminal 160 and an external device.
The memory 169 may be used to store software programs as well as various data. The memory 169 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 169 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 170 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 169 and calling data stored in the memory 169, thereby performing overall monitoring of the terminal. Processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 170.
The terminal 160 may further include a power source 171 (such as a battery) for supplying power to various components, and preferably, the power source 171 may be logically connected to the processor 170 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal 160 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 170, a memory 169, and a computer program stored in the memory 169 and capable of running on the processor 170, where the computer program is executed by the processor 170 to implement the processes of the foregoing method embodiments, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments 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 (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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method of rotation control, applied to a terminal, wherein the terminal is provided with a first rotating member, and the first rotating member includes a display panel of the terminal;
the method comprises the following steps:
receiving a first input of a user, the first input comprising: a user slides on a display screen of the terminal to input;
in response to the first input, acquiring parameters of the sliding input, wherein the parameters of the sliding input comprise a starting position of the sliding input and an ending position of the sliding input, or comprise a direction of the sliding input;
controlling the display panel to rotate by a first angle value along a first target direction according to the parameters input by sliding;
the controlling the display panel to rotate by a first angle value along a first target direction according to the parameters input by sliding comprises:
according to the parameters input in the sliding mode, a display panel of the terminal is controlled to rotate by the first angle value along the first target direction by taking a preset straight line on the display panel as an axis;
under the condition that the display state of the terminal is a horizontal screen state, a preset straight line on the display panel is parallel to a first side of the display panel; and under the condition that the display state of the terminal is a vertical screen state, a preset straight line on the display panel is parallel to a second edge of the display panel, and the length of the first edge is greater than that of the second edge.
2. The method of claim 1, wherein the parameters of the sliding input include the starting position and the ending position;
the controlling the display panel to rotate by a first angle value along a first target direction according to the parameters input by sliding comprises:
determining a first length according to the starting position and the ending position, wherein the first length is a distance between projection positions of the starting position and the ending position in a preset direction;
determining the first angle value according to the first length;
determining a second angle value, wherein the second angle value is an included angle value between a straight line where a connecting line between the starting position and the ending position is located and the preset direction;
determining the first target direction according to the second angle value;
and controlling the display panel to rotate the first angle value along the first target direction.
3. The method of claim 1, wherein prior to receiving the first input from the user, the method further comprises:
receiving a third input of a user, wherein the third input is used for triggering the display panel to rotate;
and responding to the third input, controlling the display panel to rotate an initial angle value along a second target direction, wherein the initial angle value is an angle value stored by the terminal.
4. The method of claim 3, wherein after controlling the display panel to rotate by the first angle value in the first target direction, the method further comprises:
receiving a fourth input of a user, wherein the fourth input is used for triggering the display panel to rotate;
in response to the fourth input, controlling the display panel to rotate in a third target direction by a third angle value, the angle of the display panel support terminal after rotating by the third angle value being the same as the angle of the display panel support terminal before receiving the third input.
5. A terminal, characterized in that said terminal is provided with a first rotating part, said first rotating part comprising a display panel of said terminal; the terminal includes:
a receiving unit, configured to receive a first input of a user, where the first input includes: a user slides on a display screen of the terminal to input;
an acquisition unit, configured to acquire parameters of the sliding input in response to the first input received by the receiving unit, where the parameters of the sliding input include a start position of the sliding input and an end position of the sliding input, or include a direction of the sliding input;
the control unit is used for controlling the display panel to rotate by a first angle value along a first target direction according to the parameters of the sliding input acquired by the acquisition unit;
the control unit is specifically configured to:
according to the parameters of the sliding input acquired by the acquisition unit, controlling a display panel of the terminal to rotate by the first angle value along the first target direction by taking a preset straight line on the display panel as an axis;
under the condition that the display state of the terminal is a horizontal screen state, a preset straight line on the display panel is parallel to a first side of the display panel; and under the condition that the display state of the terminal is a vertical screen state, a preset straight line on the display panel is parallel to a second edge of the display panel, and the length of the first edge is greater than that of the second edge.
6. The terminal of claim 5, wherein the parameters of the slide input include the start position and the end position;
the control unit is specifically configured to:
determining a first length according to the starting position and the ending position, wherein the first length is a distance between projection positions of the starting position and the ending position in a preset direction;
determining the first angle value according to the first length;
determining a second angle value, wherein the second angle value is an included angle value between a straight line where a connecting line between the starting position and the ending position is located and the preset direction;
determining the first target direction according to the second angle value;
and controlling the display panel to rotate the first angle value along the first target direction.
7. The terminal of claim 5, wherein the receiving unit is further configured to receive a third input from the user before receiving the first input from the user, and the third input is used to trigger the display panel to rotate;
the control unit is further configured to control the display panel to rotate an initial angle value in a second target direction in response to the third input received by the receiving unit, where the initial angle value is an angle value stored by the terminal.
8. The terminal according to claim 7, wherein the receiving unit is further configured to receive a fourth input from a user after the control unit controls the display panel to rotate the first angle value along the first target direction, and the fourth input is used to trigger the display panel to rotate;
the control unit is further configured to control the display panel to rotate by a third angle value in a third target direction in response to the fourth input received by the receiving unit, wherein an angle of the display panel support terminal after the third angle value is rotated is the same as an angle of the display panel support terminal before the third input is received.
CN201810180283.0A 2018-03-05 2018-03-05 Rotation control method and terminal Active CN108595081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810180283.0A CN108595081B (en) 2018-03-05 2018-03-05 Rotation control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810180283.0A CN108595081B (en) 2018-03-05 2018-03-05 Rotation control method and terminal

Publications (2)

Publication Number Publication Date
CN108595081A CN108595081A (en) 2018-09-28
CN108595081B true CN108595081B (en) 2020-07-14

Family

ID=63625686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810180283.0A Active CN108595081B (en) 2018-03-05 2018-03-05 Rotation control method and terminal

Country Status (1)

Country Link
CN (1) CN108595081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291784B (en) * 2022-07-29 2024-08-09 维沃移动通信有限公司 Function control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093699A (en) * 2011-11-08 2013-05-08 三星电子株式会社 Flexible display apparatus
CN103995788A (en) * 2014-05-27 2014-08-20 广东欧珀移动通信有限公司 Method and device for controlling camera of touch screen terminal to rotate
CN104375632A (en) * 2013-08-13 2015-02-25 Lg电子株式会社 Display device and method for controlling the same
CN105657108A (en) * 2016-02-29 2016-06-08 天津德铃通信部品有限公司 Electronic equipment with support structure capable of being intelligently controlled
CN105650416A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Rotation method and device for selfie stick and selfie stick

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5413688B2 (en) * 2011-02-16 2014-02-12 ブラザー工業株式会社 Image partition program and display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093699A (en) * 2011-11-08 2013-05-08 三星电子株式会社 Flexible display apparatus
CN104375632A (en) * 2013-08-13 2015-02-25 Lg电子株式会社 Display device and method for controlling the same
CN103995788A (en) * 2014-05-27 2014-08-20 广东欧珀移动通信有限公司 Method and device for controlling camera of touch screen terminal to rotate
CN105650416A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Rotation method and device for selfie stick and selfie stick
CN105657108A (en) * 2016-02-29 2016-06-08 天津德铃通信部品有限公司 Electronic equipment with support structure capable of being intelligently controlled

Also Published As

Publication number Publication date
CN108595081A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN107835321B (en) Incoming call processing method and mobile terminal
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN108762634B (en) Control method and terminal
CN110058836B (en) Audio signal output method and terminal equipment
CN110445924B (en) Network task execution method and terminal equipment
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN109683802B (en) Icon moving method and terminal
CN110752981B (en) Information control method and electronic equipment
CN108108113B (en) Webpage switching method and device
CN109857495A (en) A kind of display control method and terminal device
CN110225180B (en) Content input method and terminal equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN109240575A (en) A kind of screen control method and electronic equipment
CN110058686B (en) Control method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN108196699B (en) Page switching method and equipment
CN111443860B (en) Touch control method and electronic equipment
CN110493451B (en) Data transmission method, electronic equipment and terminal
CN109857292B (en) Object display method and terminal equipment
CN109582264B (en) Image display method and mobile terminal
CN109068276B (en) Message conversion 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