+

CN110096205B - Display area control method, wearable device, and computer-readable storage medium - Google Patents

Display area control method, wearable device, and computer-readable storage medium Download PDF

Info

Publication number
CN110096205B
CN110096205B CN201910363868.0A CN201910363868A CN110096205B CN 110096205 B CN110096205 B CN 110096205B CN 201910363868 A CN201910363868 A CN 201910363868A CN 110096205 B CN110096205 B CN 110096205B
Authority
CN
China
Prior art keywords
display area
wearable device
knob
screen
physical component
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
CN201910363868.0A
Other languages
Chinese (zh)
Other versions
CN110096205A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910363868.0A priority Critical patent/CN110096205B/en
Publication of CN110096205A publication Critical patent/CN110096205A/en
Application granted granted Critical
Publication of CN110096205B publication Critical patent/CN110096205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

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

Abstract

The application discloses a display area control method, a wearable device and a computer-readable storage medium, which are used for controlling the movement of a display area of the wearable device, wherein the wearable device is provided with a physical component capable of generating motion, and the method comprises the following steps: detecting information of the movement of the physical part when the user controls the physical part to move; calculating the moving direction and distance of the display area of the wearable device on the screen according to the information of the motion of the physical component; and controlling the display area to move on the screen according to the moving direction and the distance of the display area. According to the technical scheme, a user can control the display area to move to the position suitable for the user by operating the physical component.

Description

Display area control method, wearable device, and computer-readable storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to a display area control method, a wearable device, and a computer-readable storage medium.
Background
At present, wearable devices are various in form, and a common wearable device is in the form of a wrist machine and is worn on the wrist of a user. The wrist machine is characterized in that the screen is arc-shaped and long in length, only one part of the screen is usually used as a display area, when a user wears the wrist machine normally, the optimal display area is right above an arm, and the user can check the content normally; if the user causes the display area to be deviated to the side of the arm due to personal wearing habits, the user cannot normally view the display content, and the user experience is seriously influenced.
Therefore, a technical solution is needed to adjust the display area of the wearable device, so as to ensure that the user can normally view the content of the display area.
Disclosure of Invention
The invention mainly aims to provide a display area control method, a wearable device and a computer readable storage medium, aiming at adjusting the display area of the wearable device and ensuring that a user can normally view the content of the display area.
To achieve the above object, the present invention provides a display area control method for controlling a display area of a wearable device to move, the wearable device having a physical component on which a motion can occur, the method comprising: detecting information of the movement of the physical part when the user controls the physical part to move; calculating the moving direction and distance of the display area of the wearable device on the screen according to the information of the motion of the physical component; and controlling the display area to move on the screen according to the moving direction and the distance of the display area.
To achieve the above object, the present invention provides a wearable device including: a physical component in which motion can occur, a memory, a processor, and a computer program stored on the memory and executable on the processor; which when executed by the processor implements the steps of the method as described previously.
To achieve the above object, the present invention provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the aforementioned method steps.
According to the above technical solutions, it can be seen that the display area control method, the wearable device, and the computer-readable storage medium of the present invention have at least the following advantages:
according to the technical scheme, the physical component is added on the wearable device and can move, after the user controls the physical component to move, the wearable device obtains the information of the movement of the physical component, calculates the moving direction and distance of the display area of the wearable device according to the information of the movement of the physical component, and controls the display area to move based on the moving direction and distance of the display area, so that the user can control the display area to move to a position suitable for the user by operating the physical component.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 5 is a hardware schematic diagram of an implementation manner of a wearable device provided in an embodiment of the present application;
fig. 6 is a flowchart of an implementation manner of a display area control method according to an embodiment of the present application;
fig. 7 is a flowchart of an embodiment of a display area control method according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating an embodiment of a display area control method according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating an embodiment of a display area control method according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram illustrating an embodiment of a display area control method according to an embodiment of the present disclosure;
fig. 11 is a block diagram of an implementation manner of a wearable device provided in an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch, an intelligent mobile phone and the like. With the continuous development of screen technologies, screen forms such as flexible screens and folding screens appear, and mobile terminals such as smart phones can also be used as wearable devices. The wearable device provided in the embodiment of the present invention may include: an RF (Radio Frequency) unit, a WiFi module, an audio output unit, an a/V (audio/video) input unit, a sensor, a display unit, a user input unit, an interface unit, a memory, a processor, and a power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic diagram of a hardware structure of a wearable device for implementing various embodiments of the present invention, where the wearable device 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or combine certain components, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the rf unit 101 may be configured to receive and transmit signals during a message transmission or a call, and specifically, the rf unit 101 may transmit uplink information to a base station, in addition, the downlink information sent by the base station may be received and then sent to the processor 110 of the wearable device for processing, the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic location of the wearable device changes, the base station may send a message notification of the change in the geographic location to the radio frequency unit 101 of the wearable device, and after receiving the message notification, the message notification may be sent to the processor 110 of the wearable device for processing, and the processor 110 of the wearable device may control the message notification to be displayed on the display panel 1061 of the wearable device; typically, radio frequency unit 101 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 101 may also communicate with a network and other devices through wireless communication, which may specifically include: the server may push a message notification of resource update to the wearable device through wireless communication to remind a user of updating the application program if the file resource corresponding to the application program in the server is updated after the wearable device finishes downloading the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division multiplexing-Long Term Evolution), and TDD-LTE (Time Division multiplexing-Long Term Evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may be configured with an esim card (Embedded-SIM) to access an existing communication network, and by using the esim card, the internal space of the wearable device may be saved, and the thickness may be reduced.
It is understood that although fig. 1 shows the radio frequency unit 101, it is understood that the radio frequency unit 101 does not belong to the essential constituents of the wearable device, and can be omitted entirely as required within the scope not changing the essence of the invention. The wearable device 100 may implement a communication connection with other devices or a communication network through the wifi module 102 alone, which is not limited by the embodiments of the present invention.
WiFi belongs to short-distance wireless transmission technology, and the wearable device can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband Internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the wearable device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the wearable device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
In one embodiment, the wearable device 100 includes one or more cameras, and by turning on the cameras, capturing of images can be realized, functions such as photographing and recording can be realized, and the positions of the cameras can be set as required.
The wearable device 100 also includes at least one sensor 105, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the wearable device 100 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 for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, and by adopting the proximity sensor, the wearable device can realize non-contact operation and provide more operation modes.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which, when worn, enables detection of heart rate by proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, and by reading the fingerprint, functions such as security verification can be implemented.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 is a flexible display screen, and when the wearable device using the flexible display screen is worn, the screen can be bent, so that the wearable device is more conformable. Optionally, the flexible display screen may adopt an OLED screen body and a graphene screen body, in other embodiments, the flexible display screen may also be made of other display materials, and this embodiment is not limited thereto.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape to wrap around when worn. In other embodiments, other approaches may be taken.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the wearable device. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
In one embodiment, the side of the wearable device 100 may be provided with one or more buttons. The button can realize various modes such as short-time pressing, long-time pressing, rotation and the like, thereby realizing various operation effects. The number of the buttons can be multiple, and different buttons can be combined for use to realize multiple operation functions.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the wearable device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the wearable device, and is not limited herein. For example, when receiving a message notification of an application program through the rf unit 101, the processor 110 may control the message notification to be displayed in a predetermined area of the display panel 1061, where the predetermined area corresponds to a certain area of the touch panel 1071, and perform a touch operation on the certain area of the touch panel 1071 to control the message notification displayed in the corresponding area on the display panel 1061.
The interface unit 108 serves as an interface through which at least one external device is connected to the wearable apparatus 100. 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 108 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 wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 is configured as a contact, and is connected to another corresponding device through the contact to implement functions such as charging and connection. The contact can also be waterproof.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by 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, etc. Further, the memory 109 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 110 is a control center of the wearable device, connects various parts of the entire wearable device by various interfaces and lines, and performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling up data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The wearable device 100 may further include a power source 111 (such as a battery) for supplying power to various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through Bluetooth, so that communication and information interaction are realized.
Please refer to fig. 2-4, which are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device in the embodiment of the invention comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show the structural schematic diagram of the wearable device screen when the wearable device screen is unfolded, and fig. 4 shows the structural schematic diagram of the wearable device screen when the wearable device screen is bent.
Based on the above embodiments, it can be seen that, if the device is a watch, a bracelet, or a wearable device, the screen of the device may not cover the watchband region of the device, and may also cover the watchband region of the device. Here, the present application provides an optional implementation manner, in which the device may be a watch, a bracelet, or a wearable device, and the device includes a screen and a connection portion. The screen can be a flexible screen, and the connecting part can be a watchband. Optionally, the screen of the device or the display area of the screen may partially or completely cover the wristband of the device. As shown in fig. 5, fig. 5 is a hardware schematic diagram of an implementation manner of a wearable device provided in an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, and this is not limited in this application.
As shown in fig. 6, an embodiment of the present invention provides a display area control method for controlling the movement of a display area of a wearable device having a physical component capable of moving.
In this embodiment, the wearable device may take the form of a wrist machine. In the present embodiment, the specific form of the physical component is not limited, and for example, it may be a knob, a slide switch, or a key similar to a volume key.
The method of the embodiment comprises the following steps:
in step S610, when the user controls the physical component to move, information of the movement of the physical component is detected.
In this embodiment, the method for acquiring the motion information of the physical component is not limited, and the conventional method for acquiring the rotation direction and angle of the knob by the electronic watch is applicable to the technical solution of this embodiment.
Step S620, calculating a moving direction and distance of the display area of the wearable device on the screen according to the information of the motion of the physical component.
In this embodiment, the moving direction of the display area may be determined according to the moving direction of the physical component, and the moving distance of the display area may be determined according to the angle or distance of the movement of the physical component.
And step S630, controlling the display area to move on the screen according to the moving direction and the distance of the display area.
According to the technical scheme of the embodiment, the physical component is added on the wearable device and can move, after the user controls the physical component to move, the wearable device obtains the information of the movement of the physical component, calculates the moving direction and distance of the display area of the wearable device according to the information of the movement of the physical component, and controls the display area to move based on the moving direction and distance of the display area, so that the user can control the display area to move to a position suitable for the user by operating the physical component.
As shown in fig. 7, an embodiment of the present invention provides a display area control method for controlling the movement of a display area of a wearable device, where the wearable device has a physical component capable of moving, and the physical component is a knob.
The method of the embodiment comprises the following steps:
step S710, when the user controls the physical component to move, detecting a direction and an angle of rotation of the knob based on a device node preset in a driving layer of the system of the wearable device.
In the present embodiment, for the physical component in the form of the knob, the direction and angle of rotation of the knob are detected, and for the physical component in the form of the slide switch, the direction and distance of the slide switch are detected.
In this embodiment, a physical knob is added to the wrist machine, similar to a mechanical watch, supporting forward and backward rotation, representing upward and downward slides, respectively. When the interface is initialized, a display coordinate point P0 of the current interface is obtained, and in the subsequent moving process, the moving distance needs to be calculated according to the coordinate point.
As shown in fig. 8, a device node is added to the driving layer, and the rotation direction and the rotation angle of the knob are obtained. The rotation direction represents whether the display area is moved upward or downward, and the rotation angle represents the movement distance of the display area. And packaging the data according to a data protocol and then reporting the data to a framework layer for processing. After the frame layer monitors the physical knob data, the data is analyzed through a data protocol and converted into data which can be identified by the frame layer.
And step S720, calculating the moving direction and distance of the display area of the wearable device on the screen according to the rotating direction and angle of the knob.
Wherein, the moving distance of the display area is calculated according to the rotating direction and angle of the knob and the height of the screen.
Specifically, after the rotation angle is read from the data, the distance of this scroll is calculated according to the height of the screen. The default knob is rotated 360 degrees and the scrolling distance is one half of the screen, and the default value can be adjusted appropriately according to the height of the screen of a specific product. Calculating to obtain the latest coordinate point P2 of the rotated display area according to an algorithm by using the coordinate point P1 of the current display area and knob rotation data; after the coordinate point is obtained, the effect is realized by moving the window view.
Step S730, calculating the coordinates after the display area is moved according to the coordinates before the display area is altered and the movement distance of the display area.
Step S740, obtaining the maximum view corresponding to the display area according to the moved coordinates of the display area, and controlling the maximum view to move according to the moved coordinates of the display area, so as to control the display area to move.
As shown in FIG. 9, the best view is obtained. The window layout is formed by combining each view, so that the view tree needs to be traversed to obtain the maximum sub-view of the root layout to realize sliding. After the optimal view is obtained, calculating a target coordinate point P1 after sliding according to the obtained coordinate point P0 and the sliding distance, wherein the coordinate point is the display position after sliding; and finally, moving the obtained optimal view to a P1 coordinate point. In order to avoid the display area moving too abruptly, a sliding animation effect needs to be added according to the two coordinate points P0 and P1, and the experience is improved. The newly reported knob event is not finished before the animation
In step S750, the coordinates after the display area is moved are set as the coordinates when the display area is initially displayed.
In the technical scheme of the embodiment, the position of the user to scroll is stored persistently, and the scroll coordinate point P1 is stored in the system attribute value, so that the user-defined area can be restored after the device is restarted.
Use the technical scheme of this embodiment, as shown in fig. 10, allow the user according to the habit of wearing of oneself, the regional position of dynamic adjustment gold just can not change under the prerequisite of wearing the habit, promote the experience and the ease for use of product, under the user habit of wearing that does not change, optimize bracelet display area, better adaptation user uses the habit, promote user experience.
As shown in fig. 11, one embodiment of the present invention provides a wearable device, including: a physical component 1110 in which motion can occur, a memory 1120, a processor 1130, and a computer program stored on the memory 1120 and executable on the processor 1130; the computer program when executed by the processor 1130 performs the steps of:
information of the movement of the physical part is detected when the user controls the physical part to move. In this embodiment, the wearable device may take the form of a wrist machine. In the present embodiment, the specific form of the physical component is not limited, and for example, it may be a knob, a slide switch, or a key similar to a volume key.
In this embodiment, the method for acquiring the motion information of the physical component is not limited, and the conventional method for acquiring the rotation direction and angle of the knob by the electronic watch is applicable to the technical solution of this embodiment.
And calculating the moving direction and distance of the display area of the wearable device on the screen according to the information of the motion of the physical part.
In this embodiment, the moving direction of the display area may be determined according to the moving direction of the physical component, and the moving distance of the display area may be determined according to the angle or distance of the movement of the physical component.
And controlling the display area to move on the screen according to the moving direction and the distance of the display area.
According to the technical scheme of the embodiment, the physical component is added on the wearable device and can move, after the user controls the physical component to move, the wearable device obtains the information of the movement of the physical component, calculates the moving direction and distance of the display area of the wearable device according to the information of the movement of the physical component, and controls the display area to move based on the moving direction and distance of the display area, so that the user can control the display area to move to a position suitable for the user by operating the physical component.
As shown in fig. 11, one embodiment of the present invention provides a wearable device, including: a physical component 1110 in which motion can occur, a memory 1120, a processor 1130, and a computer program stored on the memory 1120 and executable on the processor 1130; the computer program when executed by the processor 1130 performs the steps of:
when the user controls the physical component to move, the direction and the angle of the knob rotation are detected based on a preset device node in a driving layer of a system of the wearable device.
In the present embodiment, for the physical component in the form of the knob, the direction and angle of rotation of the knob are detected, and for the physical component in the form of the slide switch, the direction and distance of the slide switch are detected.
In this embodiment, a physical knob is added to the wrist machine, similar to a mechanical watch, supporting forward and backward rotation, representing upward and downward slides, respectively. When the interface is initialized, a display coordinate point P0 of the current interface is obtained, and in the subsequent moving process, the moving distance needs to be calculated according to the coordinate point.
As shown in fig. 8, a device node is added to the driving layer, and the rotation direction and the rotation angle of the knob are obtained. The rotation direction represents whether the display area is moved upward or downward, and the rotation angle represents the movement distance of the display area. And packaging the data according to a data protocol and then reporting the data to a framework layer for processing. After the frame layer monitors the physical knob data, the data is analyzed through a data protocol and converted into data which can be identified by the frame layer.
And calculating the moving direction and distance of the display area of the wearable device on the screen according to the rotating direction and angle of the knob.
Wherein, the moving distance of the display area is calculated according to the rotating direction and angle of the knob and the height of the screen.
Specifically, after the rotation angle is read from the data, the distance of this scroll is calculated according to the height of the screen. The default knob is rotated 360 degrees and the scrolling distance is one half of the screen, and the default value can be adjusted appropriately according to the height of the screen of a specific product. Calculating to obtain the latest coordinate point P2 of the rotated display area according to an algorithm by using the coordinate point P1 of the current display area and knob rotation data; after the coordinate point is obtained, the window view needs to be moved to realize the effect.
And calculating the coordinates after the display area moves according to the coordinates before the display area transaction and the moving distance of the display area.
And acquiring the maximum view corresponding to the display area according to the coordinate of the moved display area, and controlling the maximum view to move according to the coordinate of the moved display area so as to control the movement of the display area.
As shown in FIG. 9, the best view is obtained. The window layout is formed by combining each view, so that the view tree needs to be traversed to obtain the maximum sub-view of the root layout to realize sliding. After the optimal view is obtained, calculating a target coordinate point P1 after sliding according to the obtained coordinate point P0 and the sliding distance, wherein the coordinate point is the display position after sliding; and finally, moving the obtained optimal view to a P1 coordinate point. In order to avoid the display area moving too abruptly, a sliding animation effect needs to be added according to the two coordinate points P0 and P1, and the experience is improved. The newly reported knob event is not finished before the animation
And setting the coordinates after the display area is moved as the coordinates when the display area is initially displayed.
In the technical scheme of the embodiment, the position of the user scroll is stored persistently, and the scroll coordinate point P1 is stored in the system attribute value, so that the user-defined area can be recovered after the device is restarted.
Use the technical scheme of this embodiment, as shown in fig. 10, allow the user according to the habit of wearing of oneself, the regional position of dynamic adjustment gold just can not change under the prerequisite of wearing the habit, promote the experience and the ease for use of product, under the user habit of wearing that does not change, optimize bracelet display area, better adaptation user uses the habit, promote user experience.
One embodiment of the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
information of the movement of the physical part is detected when the user controls the physical part to move. In this embodiment, the wearable device may take the form of a wrist machine. In the present embodiment, the specific form of the physical component is not limited, and for example, it may be a knob, a slide switch, or a key similar to a volume key.
In this embodiment, the method for acquiring the motion information of the physical component is not limited, and the conventional method for acquiring the rotation direction and angle of the knob by the electronic watch is applicable to the technical solution of this embodiment.
And calculating the moving direction and distance of the display area of the wearable device on the screen according to the information of the motion of the physical component.
In this embodiment, the moving direction of the display area may be determined according to the moving direction of the physical component, and the moving distance of the display area may be determined according to the angle or distance of the movement of the physical component.
And controlling the display area to move on the screen according to the moving direction and the distance of the display area.
According to the technical scheme of the embodiment, the physical component is added on the wearable device and can move, after the user controls the physical component to move, the wearable device obtains the information of the movement of the physical component, calculates the moving direction and distance of the display area of the wearable device according to the information of the movement of the physical component, and controls the display area to move based on the moving direction and distance of the display area, so that the user can control the display area to move to a position suitable for the user by operating the physical component.
One embodiment of the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
when the user controls the physical component to move, the direction and the angle of the knob rotation are detected based on a preset device node in a driving layer of a system of the wearable device.
In the present embodiment, for a physical component in the form of a knob, the direction and angle of rotation of the knob are detected, and for a physical component in the form of a slide switch, the direction and distance of the slide switch are detected.
In this embodiment, a physical knob is added to the wrist machine, similar to a mechanical watch, supporting forward and backward rotation, representing upward and downward slides, respectively. When the interface is initialized, a display coordinate point P0 of the current interface is obtained, and in the subsequent moving process, the moving distance needs to be calculated according to the coordinate point.
As shown in fig. 8, a device node is added to the driving layer, and the rotation direction and the rotation angle of the knob are obtained. The rotation direction represents whether the display area is moved upward or downward, and the rotation angle represents the movement distance of the display area. And packaging the data according to a data protocol and reporting the data to a framework layer for processing. After the frame layer monitors the physical knob data, the data is analyzed through a data protocol and converted into data which can be identified by the frame layer.
And calculating the moving direction and distance of the display area of the wearable device on the screen according to the rotating direction and angle of the knob.
Wherein, the moving distance of the display area is calculated according to the rotating direction and angle of the knob and the height of the screen.
Specifically, after the rotation angle is read from the data, the distance of this scroll is calculated according to the height of the screen. The default knob is rotated 360 degrees, the scrolling distance is one half of the screen, and the default value can be properly adjusted according to the screen height of a specific product. Calculating to obtain the latest coordinate point P2 of the rotated display area according to an algorithm by using the coordinate point P1 of the current display area and knob rotation data; after the coordinate point is obtained, the effect is realized by moving the window view.
And calculating the coordinates after the display area moves according to the coordinates before the display area transaction and the moving distance of the display area.
And acquiring the maximum view corresponding to the display area according to the coordinate of the moved display area, and controlling the maximum view to move according to the coordinate of the moved display area so as to control the movement of the display area.
As shown in FIG. 9, the best view is obtained. The window layout is formed by combining each view, so that the view tree needs to be traversed to obtain the maximum sub-view of the root layout to realize sliding. After the optimal view is obtained, calculating a target coordinate point P1 after sliding according to the obtained coordinate point P0 and the sliding distance, wherein the coordinate point is the display position after sliding; and finally, moving the obtained optimal view to a P1 coordinate point. In order to avoid the display area moving too abruptly, a sliding animation effect needs to be added according to the two coordinate points P0 and P1, and the experience is improved. The newly reported knob event is not finished before the animation
And setting the coordinates after the display area is moved as the coordinates when the display area is initially displayed.
In the technical scheme of the embodiment, the position of the user to scroll is stored persistently, and the scroll coordinate point P1 is stored in the system attribute value, so that the user-defined area can be restored after the device is restarted.
Use the technical scheme of this embodiment, as shown in fig. 10, allow the user according to the habit of wearing of oneself, the regional position of dynamic adjustment gold just can not change under the prerequisite of wearing the habit, promote the experience and the ease for use of product, under the user habit of wearing that does not change, optimize bracelet display area, better adaptation user uses the habit, promote user experience.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 (5)

1. A display area control method for controlling movement of a display area of a wearable device, wherein the wearable device has a physical component capable of moving, and the physical component is a knob, the method comprising:
when a user controls the knob to move, detecting the rotation direction and angle of the knob;
calculating the moving direction and the moving distance of the display area of the wearable device on the screen according to the rotating direction and the rotating angle of the knob, wherein the moving direction of the display area of the wearable device on the screen is determined to be upward or downward according to the rotating direction of the knob, and the moving distance of the display area of the wearable device on the screen is determined according to the rotating angle of the knob and the height of the screen;
and obtaining a target coordinate point according to the coordinates of the display area before moving and the moving direction and the moving distance of the display area, and controlling the maximum view corresponding to the display area to move to the target coordinate point on the screen, wherein a sliding animation effect is added according to the coordinates of the display area before moving and the target coordinate point.
2. The method of claim 1, wherein the detecting the information of the motion of the physical component comprises:
and acquiring the motion information of the physical component based on a preset device node in a driving layer of the system of the wearable device.
3. The method of claim 1, further comprising:
and setting the coordinate after the display area is moved as the coordinate when the display area is initially displayed.
4. A wearable device, characterized in that the wearable device comprises:
a physical component in which motion can occur, a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implementing the steps of the method of any one of claims 1 to 3.
5. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the method of any one of claims 1 to 3.
CN201910363868.0A 2019-04-30 2019-04-30 Display area control method, wearable device, and computer-readable storage medium Active CN110096205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910363868.0A CN110096205B (en) 2019-04-30 2019-04-30 Display area control method, wearable device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910363868.0A CN110096205B (en) 2019-04-30 2019-04-30 Display area control method, wearable device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110096205A CN110096205A (en) 2019-08-06
CN110096205B true CN110096205B (en) 2022-06-10

Family

ID=67446682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910363868.0A Active CN110096205B (en) 2019-04-30 2019-04-30 Display area control method, wearable device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110096205B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117178A (en) * 2009-12-30 2011-07-06 Lg电子株式会社 Display device for a mobile terminal and method of controlling the same
CN106772262A (en) * 2015-10-20 2017-05-31 古野电气株式会社 Display device and radar installations

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207743A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Portable device and display processing method thereof
CN107239213A (en) * 2014-12-31 2017-10-10 华为终端(东莞)有限公司 Control method for screen display and mobile terminal
US10474255B2 (en) * 2015-09-30 2019-11-12 Apple Inc. Input element with integrated functionality
CN106468998B (en) * 2016-09-23 2019-10-22 华为机器有限公司 Information display method and terminal
CN106823270A (en) * 2017-03-10 2017-06-13 北京京东方多媒体科技有限公司 A kind of intelligent body-building system and its control method
CN109656455B (en) * 2018-12-21 2021-11-26 歌尔科技有限公司 Intelligent watch and input method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117178A (en) * 2009-12-30 2011-07-06 Lg电子株式会社 Display device for a mobile terminal and method of controlling the same
CN106772262A (en) * 2015-10-20 2017-05-31 古野电气株式会社 Display device and radar installations

Also Published As

Publication number Publication date
CN110096205A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN110299100B (en) Display direction adjustment method, wearable device and computer readable storage medium
CN110096195B (en) Sports icon display method, wearable device and computer readable storage medium
CN109947249B (en) Interaction method of wearable device, wearable device and computer storage medium
CN110099218B (en) Interactive control method and device in shooting process and computer readable storage medium
CN110177209B (en) Video parameter regulation and control method, device and computer readable storage medium
CN110620875B (en) Screenshot control method, equipment and computer readable storage medium in video shooting process
CN110086808B (en) Account login control method and device and computer readable storage medium
CN110069136B (en) Wearing state identification method and equipment and computer readable storage medium
CN110657794A (en) Compass calibration method of wearable device, wearable device and storage medium
CN110071866B (en) Instant messaging application control method, wearable device and storage medium
CN110177208B (en) Video recording association control method, equipment and computer readable storage medium
CN109901812B (en) Volume adjustment method for wearable device, wearable device and readable storage medium
CN110069102B (en) Display area regulation and control method and device and computer readable storage medium
CN110083208B (en) Turnover control method and device and computer readable storage medium
CN109933399B (en) Page adjustment method of wearable device, wearable device and readable storage medium
CN110113529B (en) Shooting parameter regulation and control method and device and computer readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN112925405A (en) Wearable device, firmware upgrading method and working method thereof and storage medium
CN110138965B (en) Wearable device, number formatting method and device thereof, and storage medium
CN110099162B (en) Page display processing method and wearable device
CN109634503B (en) Operation response method and mobile terminal
CN110096205B (en) Display area control method, wearable device, and computer-readable storage medium
CN110096210B (en) Information processing method and device and computer readable storage medium
CN110187950B (en) Methods of adjusting screen display position, wearable devices and storage media
CN110018775B (en) Content display method, terminal and computer readable storage medium

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载