CN109460178B - Sliding display method and device of sliding assembly - Google Patents

Sliding display method and device of sliding assembly Download PDF

Info

Publication number
CN109460178B
CN109460178B CN201811377017.3A CN201811377017A CN109460178B CN 109460178 B CN109460178 B CN 109460178B CN 201811377017 A CN201811377017 A CN 201811377017A CN 109460178 B CN109460178 B CN 109460178B
Authority
CN
China
Prior art keywords
sliding
assembly
playing
sliding assembly
volume
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
CN201811377017.3A
Other languages
Chinese (zh)
Other versions
CN109460178A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811377017.3A priority Critical patent/CN109460178B/en
Publication of CN109460178A publication Critical patent/CN109460178A/en
Application granted granted Critical
Publication of CN109460178B publication Critical patent/CN109460178B/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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a sliding display method and a sliding display device of a sliding assembly, wherein the method comprises the following steps: monitoring a detection signal value output by the Hall element in real time; determining the state information of the sliding assembly according to the detection signal value; and if the sliding assembly is determined to be in the sliding state according to the state information, playing a guiding animation reflecting the sliding state and playing guiding audio. From this, reduce the influence that relevant subassembly accounts for the ratio to the screen through sliding assembly, and at sliding assembly slip in-process, broadcast guide animation and guide audio frequency have improved the science and technology aesthetic feeling, have increased and have used the interest.

Description

Sliding display method and device of sliding assembly
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a sliding display method and device for a sliding assembly.
Background
With the popularization of portable electronic devices such as smartphones, the optimization of the aesthetics and functionality of the electronic devices is also becoming a great trend, for example, the increase of the screen occupation ratio of the electronic devices is a popular trend.
In the related art, a front camera or other devices are mounted in a front panel of an electronic device to provide a user with a front camera shooting service, and therefore, a contradiction between occupation of a mounting space of the front camera on the front panel and improvement of a screen occupation ratio is urgently needed to be solved.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a sliding display method and device of a sliding assembly.
In order to achieve the above object, a first embodiment of the present invention provides a sliding display method for a sliding assembly, where the sliding assembly is used in an electronic device, the electronic device includes a body, a detection assembly and a driving assembly, the driving assembly is used to control the sliding assembly to slide between a first position accommodated in the body and a second position exposed from the body, the detection assembly includes a magnetic field generation element and a hall element, and the magnetic field generation element and the hall element are respectively fixed on the sliding assembly and the body, including the following steps: monitoring the detection signal value output by the Hall element in real time; determining state information of the sliding assembly according to the detection signal value; and if the sliding assembly is determined to be in the sliding state according to the state information, playing a guiding animation reflecting the sliding state and playing guiding audio.
In order to achieve the above object, a second aspect of the present invention provides a sliding display device of a sliding assembly, where the sliding assembly is used in an electronic device, the electronic device includes a body, a detecting assembly and a driving assembly, the driving assembly is used to control the sliding assembly to slide between a first position accommodated in the body and a second position exposed from the body, the detecting assembly includes a magnetic field generating element and a hall element, and the magnetic field generating element and the hall element are respectively fixed on the sliding assembly and the body, and the sliding display device includes: the monitoring module is used for monitoring the detection signal value output by the Hall element in real time; the determining module is used for determining the state information of the sliding assembly according to the detection signal value; and the playing control module is used for playing the guide animation reflecting the sliding state and playing the guide audio when the sliding assembly is determined to be in the sliding state according to the state information.
In order to achieve the above object, according to a third aspect of the present invention, an electronic device is provided, where the electronic device includes a body, a detecting component, and a driving component, the driving component is configured to control the sliding component to slide between a first position housed in the body and a second position exposed from the body, the detecting component includes a magnetic field generating element and a hall element, and the magnetic field generating element and the hall element are respectively fixed to the sliding component and the body, and the electronic device further includes: the sliding display method of the sliding component comprises a memory, a processor electrically connected with the sliding component and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the sliding display method of the sliding component is realized.
To achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a sliding display method of a sliding assembly according to the foregoing method embodiment.
The technical scheme provided by the invention at least comprises the following beneficial effects:
reduce the influence that relevant subassembly accounts for the ratio to the screen through the sliding assembly, and at the sliding assembly slip in-process, broadcast guide animation and guide audio frequency have improved the science and technology aesthetic feeling, have increased the use interest, the popularization of the relevant product of the sliding assembly of being convenient for.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic view of an electronic device in a second position according to an embodiment of the present invention;
FIG. 2 is a schematic view of an electronic device in a first position according to an embodiment of the present invention;
FIG. 3 is a schematic view of an electronic device in a third position according to an embodiment of the present invention;
FIG. 4 is a schematic structural view of a detection assembly according to an embodiment of the present invention;
FIG. 5 is a usage scenario diagram of an electronic device according to an embodiment of the invention;
FIG. 6 is a diagram of another usage scenario of an electronic device according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 8 is a flow chart of a slide display method of the slide assembly according to one embodiment of the present invention;
FIG. 9 is a flow chart of a slide display method of the slide assembly according to one embodiment of the present invention;
FIG. 10-1 is a display diagram of a guidance animation according to one embodiment of the invention;
FIG. 10-2 is a display diagram of a guidance animation according to another embodiment of the invention;
FIG. 10-3 is a display diagram of a guidance animation according to yet another embodiment of the invention;
FIG. 11 is a schematic structural view of a sliding display device of the sliding assembly according to one embodiment of the present invention; and
fig. 12 is a schematic structural view of a sliding display device of a sliding assembly according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
A slide display method and apparatus of a slide module according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
In order to more clearly describe the sliding display method of the sliding assembly according to the embodiment of the present invention, the electronic device of the present invention is first described in the following.
Specifically, in order to reduce the influence of hardware equipment such as a front camera and the like installed on a front panel of an electronic device on the screen occupation ratio, the invention provides a sliding assembly, the sliding assembly controls the front camera and the like to slide out when needed and is accommodated in an electronic device body when not needed, and therefore, the front panel of the electronic device is not occupied when the functional service of the front camera and the like is not carried out.
Specifically, as shown in fig. 1 to 4, the electronic device 100 according to the embodiment of the present invention includes a body 10, a sliding assembly 20, and a driving assembly 50. The sliding member 20 is configured to slide between a first position a accommodated in the body 10 and a second position B exposed from the body 10. The driving assembly 50 is used for driving the sliding assembly 20 to slide between a first position where the sliding assembly is accommodated in the body and a second position where the sliding assembly is exposed out of the body.
Of course, in order to make the driving assembly 50 know that the driving sliding assembly 20 slides to the corresponding position, the electronic device necessarily further includes a detecting assembly 30 for detecting the current position of the sliding assembly 20, in the embodiment of the present invention, the detecting assembly 30 is used for detecting the position of the sliding assembly 20, the detecting assembly 30 includes a magnetic field generating element 32, a hall element 34 and a processor 60, the magnetic field generating element 32 and the hall element 34 are respectively fixed on the body 10 and the sliding assembly 20, and the processor 60 is used for receiving the detection signal value output by the hall element 34 and determining the current relative position of the sliding assembly 20 with respect to the body 10 according to the detection signal value.
It should be noted that "the magnetic field generating element 32 and the hall element 34 are fixed on the body 10 and the sliding assembly 20 respectively" herein includes two cases, that is, the magnetic field generating element 32 is fixed on the body 10, the hall element 34 is fixed on the sliding assembly 20, that is, the magnetic field generating element 32 is fixed on the sliding assembly 20, and that the hall element 34 is fixed on the body 10. Further, the magnetic field generating element 32 and the hall element 34 may be disposed to be opposed in the vertical direction or may be disposed to be opposed in the horizontal direction. That is, the specific positions of the magnetic field generating element 32 and the hall element 34 are not limited as long as the magnetic field generating element 32 and the hall element 34 can generate relative movement.
In some embodiments, the body 10 is formed with a slide slot 16, and the sliding assembly 20 is received in the slide slot 16 in the first position a. In this manner, the sliding assembly 20 may be caused to slide between the first position a and the second position B via the sliding channel 16.
Specifically, the body 10 includes a housing 12 and a display assembly 14, and the housing 12 and the display assembly 14 are combined to constitute an enclosed structure. The slide slot 16 opens into the housing 12 to allow the slide assembly 20 to slide back and out. It will be appreciated that the chute 16 may be open on either side of the housing 12. Preferably, the chute 16 opens at the top edge of the housing 12. Thus, the use habit of the user can be met.
The display assembly 14 includes a touch panel (not shown) and a cover 142. The touch panel includes a display module (not shown) and a touch layer (not shown) disposed on the display module. The display Module is, for example, a liquid crystal display Module (LCD Module, LCM), and of course, the display Module may also be a flexible display Module. The touch layer is used for receiving touch input of a user to generate a signal for controlling content displayed by the display module and a signal for controlling the sliding of the sliding component 20.
The material of the cover plate 142 may be made of a light-transmitting material such as glass, ceramic, or sapphire. Since the cover 142 is an input part of the electronic device 100, the cover 142 is often touched by a collision or a scratch. For example, when the user places the electronic device 100 in a pocket, the cover plate 142 may be scratched by a key in the pocket of the user and damaged. Therefore, the material of the cover plate 142 may be a material with a relatively high hardness, such as the above sapphire material. Or a hardened layer may be formed on the surface of the cover plate 142 to improve the scratch resistance of the cover plate 142.
The touch panel and the cover plate 142 are adhered and fixed together by, for example, optical Adhesive (OCA), and the optical Adhesive not only adheres and fixes the touch panel and the cover plate 142, but also can transmit light emitted by the touch panel.
To more clearly illustrate the function of the sliding assembly 20 according to the embodiment of the present invention, referring to fig. 5, in some embodiments, the electronic device 100 includes the front camera 42, the sliding assembly 20 includes the carrier 22, and the front camera 42 is disposed on the carrier 22. In this manner, the front camera 42 can slide with the slide assembly 20. Of course, the user may turn on the front camera 42 and turn off the front camera 42 as the trigger signal, that is, when the user turns on the front camera 42, the trigger sliding assembly 20 slides out, and when the user turns off the front camera 42, the trigger sliding assembly 20 slides back. Therefore, the user can use the front camera conveniently only by opening or closing the front camera according to the existing habit without performing other operations on the sliding assembly 20.
In addition to the front camera 42, other functional devices 40 may be carried on the carrier 22, such as light sensors, proximity sensors, and an earpiece 44, for example, as shown in fig. 1, for the functional devices 40. These functional devices 40 may be exposed from the body 10 to operate normally as the sliding assembly 20 slides out according to the user's input, or may be received in the body 10 as the sliding assembly 20 slides back according to the user's input. Therefore, through holes can be formed in the display assembly 14 as few as possible, which is beneficial to meeting the design requirement of the whole screen of the electronic device 100.
Specifically, when the light sensor is carried on the carrier 22, the light sensor may be disposed on the top of the carrier 22, that is, when the sliding assembly 20 is completely accommodated in the sliding slot 16, the light sensor may still be exposed from the top of the carrier 22, so as to sense light in real time.
Referring to fig. 6, when the proximity sensor and the receiver 44 are carried on the carrier 22, the user can take the call and hang up the call as the trigger signal, that is, when the user takes the call, the sliding assembly 20 is triggered to slide out, and when the user hangs up the call, the sliding assembly 20 is triggered to slide back. Therefore, the user only needs to answer or hang up the phone according to the existing habit without performing other operations on the sliding assembly 20, and the use of the user can be facilitated.
It will be appreciated that a plurality of functional devices 40 may be carried on the same carrier 22, or may be carried on a plurality of carriers. When a plurality of functional devices 40 are carried on the same carrier 22, the plurality of functional devices 40 may be arranged longitudinally, and the processor 60 may control whether the functional devices 40 disposed at the lower portion of the carrier 22 are exposed by controlling the distance by which the sliding assembly 20 slides out. When a plurality of functional devices 40 are carried on the same plurality of carriers 22, the processor 60 may select the functional device 40 to be exposed by controlling the sliding of one of the carriers 22.
Referring to fig. 7, in some embodiments, the sliding assembly 20 includes a threaded bore 24 disposed in a central portion of the carrier 22 and a rotating lead screw 26 engaged with the threaded bore 24. The chute 16 includes a recess 162 located opposite the threaded aperture 24 and at the bottom of the chute 16. Electronic device 100 includes a drive assembly 50 disposed in recess 162. The drive assembly 50 includes a drive motor 52 coupled to a processor 60 and an output shaft (not shown) coupled to the bottom of the rotary screw 26.
It is understood that the processor 60 may control the sliding of the slide assembly 20 by controlling the drive motor 52. When the user commands the sliding assembly 20 to slide from the first position a to the second position B, the processor 60 controls the driving motor 52 to rotate forward, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the first position a to the second position B. When the user commands the sliding assembly 20 to slide from the second position B to the first position a, the processor 60 controls the driving motor 52 to rotate in reverse, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the second position B to the first position a. It is to be noted that "from the first position a to the second position B" and "from the second position B to the first position a" herein refer to the direction of the sliding, and do not refer to the start point and the end point of the sliding.
The electronic device 100 of the embodiment of the present invention determines the current relative position of the slide assembly 20 using the hall element 34 and the magnetic field generating element 32, and can detect the state of the slide assembly 20 in real time when the functional device 40 such as a front camera is carried on the slide assembly 20, thereby determining the position of the functional device 40.
It is understood that the functional device 40 such as the front camera 42 needs to be exposed from the main body 10, otherwise it cannot operate normally. The electronic device 100 according to the embodiment of the present invention has the functional device 40 carried on the sliding assembly, so that the functional device 40 is accommodated in the main body 10 when the operation is not required, and is exposed from the main body 10 along with the sliding assembly 20 when the operation is required. In this way, it is not necessary to provide a through hole for exposing the functional device 40 such as the front camera 42 on the display module 14, so that the screen occupation ratio is increased, and the user experience is improved.
However, in practical applications, when the driving component is driving, the driving component may generate noise to affect the use feeling of the user and even affect the normal use of the current application program, for example, when the user plays a video, the sound of the driving component may mask the volume of the video played by the user, so the present invention further provides a method that can optimize the use experience of the sliding component, and improve the use experience of the user while masking the driving noise of the driving component based on the guiding animation and the guiding audio.
The slide display method of the slide module is described in detail below.
Fig. 8 is a flowchart of a slide display method of a slide module according to an embodiment of the present invention, as shown in fig. 8, the method including the steps of:
step 101, monitoring a detection signal value output by the Hall element in real time.
In the embodiment of the present invention, the detection signal value may be understood as a magnetic field signal intensity value.
Specifically, as described above, the current position of the current sliding assembly is obtained through the magnetic field signal strength between the magnetic field generating element and the hall element, for example, the corresponding relationship between the magnetic field signal strength and the current sliding-out position of the sliding assembly is calibrated in advance according to a large amount of test data, so that the corresponding sliding-out position can be further matched according to the currently detected magnetic field signal strength.
And 102, determining the state information of the sliding assembly according to the detection signal value.
And 103, if the sliding component is determined to be in the sliding state according to the state information, playing a guiding animation reflecting the sliding state and playing guiding audio.
Wherein the state information of the sliding assembly is used to indicate a specific sliding state of the sliding assembly, the sliding state includes a sliding direction, sliding or sliding stopping, etc., and since the magnetic field generating element and the hall element are respectively fixed on the sliding assembly and the body, the sliding assembly, regardless of the sliding direction, either increasingly approaches the hall element, so that the detection signal value detected by the hall element becomes increasingly larger, or increasingly separates from the hall element, so that the detection signal value detected by the hall element becomes increasingly smaller, for example, as shown in fig. 4, when the sliding assembly moves from the first position to the second position, the hall element increasingly separates from the magnetic field generating element, so that the detection signal value detected by the hall element becomes increasingly smaller, so that, in the embodiment of the present invention, the sliding direction of the sliding assembly can be determined according to a plurality of sampled detection signal values, whether the sliding component slides can also be determined according to whether the detection signal value changes.
In this embodiment, when it is determined that the sliding component is in the sliding state according to the state information, a guiding animation reflecting the sliding state and a guiding audio are played, wherein the guiding animation reflects the sliding state, so that the guiding animation is interesting, and the playing of the guiding video covers the driving noise of the driving component while the sliding interest is mentioned.
Of course, in order to cover up the driving noise of the driving component and affect the normal use of the application program, in an embodiment of the present invention, the playing volume information of the guiding audio needs to be controlled.
In this implementation, as shown in fig. 9, playing the guidance audio includes:
step 201, acquiring first volume information and an application program identifier of an application program of a currently called sliding component.
In this embodiment, the first volume information may be determined based on a position of a volume bar of an application program that calls the sliding component currently, or may be determined based on a sound sensor.
Step 202, querying a preset database to obtain a target audio corresponding to the application program identifier.
It can be understood that, in the actual execution process, if the guidance audio and the current application are associated, a corresponding feeling will be formed, and the playing effect of the application program can be improved, so as to further improve the user experience, for example, if the application is a singing application, the corresponding target audio may be a cheering sound, and therefore, a database containing the correspondence between the guidance audio and the application program identifier is pre-established, and the preset database is queried to obtain the target audio corresponding to the application program identifier.
Of course, to further improve the user experience, the target audio may also be determined according to the content included in the current application interface of the application program.
And step 203, acquiring second volume information of the driving assembly.
In practical application, the second volume information may be obtained according to the sound sensor, or the second volume information may be determined according to a large amount of measurement experimental data corresponding to the model of the driving component.
And 204, determining third volume information corresponding to the first volume information and the second volume information according to a preset volume adjustment strategy.
And the preset volume adjustment strategy is used for ensuring that the third volume information is larger than the second volume information and smaller than the first volume information. In an embodiment of the present invention, the volume adjustment policy may be to control a percentage of the volume adjustment policy greater than the second volume information according to current electric quantity information of the electronic device, and on the premise that the volume adjustment policy is not greater than the first volume information, the higher the current electric quantity information of the electronic device is, the higher the percentage of the volume adjustment policy greater than the second volume information is.
And step 205, controlling the playing volume of the target audio according to the third volume information.
In this embodiment, the second volume information of the driving component and the playing first volume information of the application program are comprehensively considered, the third volume information of the playing of the target audio is set, and the playing of the target audio is controlled based on the third volume information, so that the driving noise of the driving component is covered on the premise of not influencing the use of the application program.
It should be noted that the guiding animation and the guiding audio may be preset by the user, or may be default, where the guiding animation may include an animation image such as a "rainbow" shown in fig. 10-1, may further include a progress bar shown in fig. 10-2, or may further include a "small animal" shown in fig. 10-3, where the color, brightness, and the like of the guiding animation may be set as needed. According to the difference of the guiding animation, the playing of the guiding animation reflecting the sliding state is different, in one embodiment of the present invention, when the guiding animation is the "progress bar" and the "rainbow" and the like, which can control the display path, the step of playing the guiding animation reflecting the sliding state may be to determine the animation display path and the display direction corresponding to the state information, and display the guiding animation according to the animation display path and the display direction, for example, as shown in fig. 10-1, when the current state information is the sliding from the first position to the second position, and the sliding is the half position, the animation display path corresponding to the "rainbow" is determined to be the half of the rainbow display, and the display direction is displayed from left to right, or for example, as shown in fig. 10-2, when the current state information is the sliding from the first position to the second position, and the sliding is the half position, the animation display path corresponding to the "progress bar" is determined to be the half of the display progress bar, and the display direction is from bottom to top.
In order to increase the degree of contact in the reaction sliding state, the sliding speed of the sliding member may be reacted.
In an embodiment of the present invention, after the guiding animation reflecting the sliding state and the guiding audio are played, the sliding speed of the sliding component may be determined according to the detection signal, for example, the higher the change frequency of the detection signal is, the higher the sliding speed is obviously, if the sliding component is determined to be in the acceleration state according to the detection signal value, the volume of the guiding audio is gradually adjusted from the preset normal volume to the preset maximum value according to the acceleration, and if the sliding component is determined to be in the deceleration state according to the detection signal value, the volume of the guiding audio is gradually adjusted from the preset maximum value to the preset normal volume according to the deceleration, where the normal volume is greater than the driving noise of the driving component.
In an embodiment of the present invention, if the detected signal values detected in two adjacent times are the same, it is determined that the sliding component stops sliding, and the sliding component is in the sliding end state, at this time, if it is determined that the sliding component is in the sliding end state according to the state information, the playing of the guidance animation and the guidance audio is stopped.
In this embodiment, if the fixed sliding component stops sliding, it may be determined whether the stopped sliding belongs to a sliding suspension state based on whether the current detection signal value is the same as the preset calibration detection signal values of the first position and the second position, that is, if it is determined that the sliding component is in the sliding suspension state according to the state information, the playing of the guidance animation is suspended and the guidance animation stays in the current animation interface to display the sliding failure prompt information, for example, a pop-up window prompts the sliding failure, or the current guidance animation is displayed in a blinking manner, or the display color of the guidance animation is changed into red, and the playing of the guidance audio is stopped.
To sum up, the sliding display method of the sliding assembly according to the embodiment of the present invention monitors the detection signal value output by the hall element in real time, and determines the state information of the sliding assembly according to the detection signal value, so that if it is determined that the sliding assembly is in the sliding state according to the state information, the guiding animation reflecting the sliding state and the guiding audio are played. From this, reduce the influence that relevant subassembly accounts for the ratio to the screen through sliding assembly, and at sliding assembly slip in-process, the broadcast guide animation and the guide audio frequency have improved the science and technology aesthetic feeling, have increased and have used the interest, the popularization of the relevant product of the sliding assembly of being convenient for.
In order to achieve the above embodiments, the present invention further provides a sliding display device of a sliding assembly, the sliding assembly is used for an electronic device, the electronic device includes a body, a detecting assembly and a driving assembly, the driving assembly is used for controlling the sliding assembly to slide between a first position accommodated in the body and a second position exposed from the body, the detecting assembly includes a magnetic field generating element and a hall element, the magnetic field generating element and the hall element are respectively fixed on the sliding assembly and the body, fig. 11 is a schematic structural diagram of the sliding display device of the sliding assembly according to an embodiment of the present invention, as shown in fig. 11, the sliding display device of the sliding assembly includes a monitoring module 10, a determining module 20 and a playing control module 30, wherein,
and the monitoring module 10 is used for monitoring the detection signal value output by the Hall element in real time.
And a determining module 20, configured to determine state information of the sliding component according to the detection signal value.
And the playing control module 30 is used for playing the guiding animation reflecting the sliding state and playing the guiding audio when the sliding component is determined to be in the sliding state according to the state information.
In one embodiment of the invention, as shown in fig. 12, the apparatus further comprises an adjustment module 40 based on that shown in fig. 11, wherein,
and the adjusting module is used for gradually adjusting the volume of the guide audio from the preset normal volume to the preset maximum value according to the acceleration when the sliding assembly is determined to be in the acceleration state according to the detection signal value.
In this embodiment, the adjusting module 40 is further configured to gradually decrease the volume of the guiding audio from the preset maximum value to the preset normal volume according to the deceleration when it is determined that the sliding assembly is in the deceleration state according to the detection signal value.
It should be noted that the foregoing is focused on the driving component and the sliding component described in the embodiment of the sliding display method of the sliding component, and the driving component and the sliding component are also applicable to the sliding display apparatus of the sliding component in the embodiment of the present invention, and details and technical effects thereof are not repeated herein.
In order to implement the above embodiments, the present invention further provides an electronic device, wherein, referring to fig. 1 to 4, the electronic device includes a body 10, a detecting component 30 and a driving component 50, the driving component 50 is configured to control a sliding component to slide between a first position accommodated in the body and a second position exposed from the body, the detecting component includes a magnetic field generating element 32 and a hall element 34, the magnetic field generating element 32 and the hall element 34 are respectively fixed on the sliding component 20 and the body 10, and the electronic device further includes: the memory 70, the processor electrically connected to the sliding component and the computer program stored in the memory 70 and capable of running on the processor 60, when the processor executes the program, the sliding display method of the sliding component as described in the foregoing embodiments is implemented.
It should be noted that the electronic device described in the foregoing embodiments focusing on the sliding display method of the sliding assembly is also applicable to the electronic device according to the embodiments of the present invention, and details and technical effects thereof are not repeated herein.
In order to implement the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the sliding display method of the sliding assembly according to the foregoing method embodiments.
In the description herein, references to the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (9)

1. A sliding display method of a sliding assembly is characterized in that the sliding assembly is used for an electronic device, the electronic device comprises a body, a detection assembly and a driving assembly, the driving assembly is used for controlling the sliding assembly to slide between a first position accommodated in the body and a second position exposed out of the body, the detection assembly comprises a magnetic field generating element and a Hall element, and the magnetic field generating element and the Hall element are respectively fixed on the sliding assembly and the body, and the sliding display method comprises the following steps:
monitoring the detection signal value output by the Hall element in real time;
determining state information of the sliding assembly according to the detection signal value;
if the sliding assembly is determined to be in the sliding state according to the state information, playing a guiding animation reflecting the sliding state and playing a guiding audio;
the playing guidance audio includes:
acquiring first volume information and an application program identifier of an application program calling the sliding assembly at present;
querying a preset database to obtain a target audio corresponding to the application program identifier;
acquiring second volume information of the driving assembly;
determining third volume information corresponding to the first volume information and the second volume information according to a preset volume adjustment strategy, wherein the third volume information is larger than the second volume information and smaller than the first volume information;
and controlling the playing volume of the target audio according to the third volume information.
2. The method of claim 1, wherein after the playing the guidance animation reflecting the slide state and playing the guidance audio, further comprising:
if the sliding assembly is determined to be in an acceleration state according to the detection signal value, gradually adjusting the volume of the guide audio from a preset normal volume to a preset maximum value according to the acceleration;
and if the sliding assembly is determined to be in a deceleration state according to the detection signal value, gradually reducing the volume of the guide audio from the preset maximum value to the preset normal volume according to the deceleration.
3. The method of claim 1, wherein said playing a guided animation that reflects the slide state comprises:
determining an animation display path and a display direction corresponding to the state information;
and displaying the guide animation according to the animation display path and the display direction.
4. The method of claim 1, wherein after the playing the guidance animation reflecting the slide state and playing the guidance audio, further comprising:
and if the sliding assembly is determined to be in the sliding ending state according to the state information, stopping playing the guide animation and the guide audio.
5. The method of claim 1, wherein after the playing the guidance animation reflecting the slide state and playing the guidance audio, further comprising:
and if the sliding assembly is determined to be in the sliding suspension state according to the state information, stopping playing the guide animation, staying at the current animation interface to display the sliding fault prompt information, and stopping playing the guide audio.
6. A sliding display device of a sliding assembly is characterized in that the sliding assembly is used for an electronic device, the electronic device comprises a body, a detection assembly and a driving assembly, the driving assembly is used for controlling the sliding assembly to slide between a first position accommodated in the body and a second position exposed out of the body, the detection assembly comprises a magnetic field generation element and a Hall element, and the magnetic field generation element and the Hall element are respectively fixed on the sliding assembly and the body, and the sliding display device comprises:
the monitoring module is used for monitoring the detection signal value output by the Hall element in real time;
the determining module is used for determining the state information of the sliding assembly according to the detection signal value;
the playing control module is used for playing a guide animation reflecting the sliding state and playing a guide audio when the sliding assembly is determined to be in the sliding state according to the state information;
the playing guidance audio includes:
acquiring first volume information and an application program identifier of an application program calling the sliding assembly at present;
querying a preset database to obtain a target audio corresponding to the application program identifier;
acquiring second volume information of the driving assembly;
determining third volume information corresponding to the first volume information and the second volume information according to a preset volume adjustment strategy, wherein the third volume information is larger than the second volume information and smaller than the first volume information;
and controlling the playing volume of the target audio according to the third volume information.
7. The apparatus of claim 6, further comprising: the adjusting module is used for gradually adjusting the volume of the guide audio from a preset normal volume to a preset maximum value according to the acceleration when the sliding assembly is determined to be in the acceleration state according to the detection signal value;
and the adjusting module is further used for gradually reducing the volume of the guide audio from the preset maximum value to the preset normal volume according to the deceleration when the sliding assembly is determined to be in the deceleration state according to the detection signal value.
8. An electronic device, characterized in that, the electronic device includes a body, a detection component and a driving component, the driving component is used for controlling the sliding component to slide between a first position accommodated in the body and a second position exposed from the body, the detection component includes a magnetic field generating element and a hall element, the magnetic field generating element and the hall element are respectively fixed on the sliding component and the body, the electronic device further includes: a memory, a processor electrically connected to the sliding assembly, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the sliding display method of the sliding assembly according to any one of claims 1 to 5.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a sliding display method of a sliding assembly according to any one of claims 1 to 5.
CN201811377017.3A 2018-11-19 2018-11-19 Sliding display method and device of sliding assembly Active CN109460178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811377017.3A CN109460178B (en) 2018-11-19 2018-11-19 Sliding display method and device of sliding assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811377017.3A CN109460178B (en) 2018-11-19 2018-11-19 Sliding display method and device of sliding assembly

Publications (2)

Publication Number Publication Date
CN109460178A CN109460178A (en) 2019-03-12
CN109460178B true CN109460178B (en) 2021-03-23

Family

ID=65610948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811377017.3A Active CN109460178B (en) 2018-11-19 2018-11-19 Sliding display method and device of sliding assembly

Country Status (1)

Country Link
CN (1) CN109460178B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760040A (en) * 2020-06-02 2021-12-07 Oppo广东移动通信有限公司 Form change reminding method, device, terminal and storage medium
CN112954418B (en) * 2021-02-06 2022-05-10 读书郎教育科技有限公司 Device and method for controlling flat panel to play video

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052949A (en) * 2013-03-14 2014-09-17 联想(北京)有限公司 Volume adjusting method and apparatus, and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100581276C (en) * 2006-11-13 2010-01-13 华为技术有限公司 Method for supporting background music playing and terminal device
US7865210B2 (en) * 2007-01-05 2011-01-04 Apple Inc. Ejectable component assemblies in electronic devices
KR101547938B1 (en) * 2014-04-29 2015-08-28 대성전기공업주식회사 Driving Sound Generating System for Environment Friendly Vehicle and a method for controlling the system
CN108833696B (en) * 2018-06-08 2021-05-18 Oppo广东移动通信有限公司 Control method of sliding assembly, control assembly, electronic device and storage medium
CN108833623B (en) * 2018-06-08 2020-12-29 Oppo广东移动通信有限公司 Sliding control method and device of sliding assembly and electronic device
CN108833699B (en) * 2018-06-08 2021-04-13 Oppo广东移动通信有限公司 Electronic device and control method and device of sliding assembly of electronic device
CN108833702A (en) * 2018-06-12 2018-11-16 Oppo广东移动通信有限公司 Control method, control assembly, mobile terminal and the storage medium of mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052949A (en) * 2013-03-14 2014-09-17 联想(北京)有限公司 Volume adjusting method and apparatus, and electronic equipment

Also Published As

Publication number Publication date
CN109460178A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
USRE49084E1 (en) Display panel and mobile terminal
US11789470B2 (en) Method and apparatus for calibrating sliding of sliding component
CN108833623B (en) Sliding control method and device of sliding assembly and electronic device
CN108924283B (en) Sliding control method and device of sliding assembly and electronic device
CN109460178B (en) Sliding display method and device of sliding assembly
CN106782085A (en) Display module and electronic equipment
US9591109B2 (en) Mobile terminal
CN106941560B (en) Mobile terminal
KR20150092579A (en) Electronic device and operation method thereof
US11438500B2 (en) Method for controlling camera module, electronic device, and storage medium
CN108900663B (en) Sliding control method and device of sliding assembly and electronic device
CN106527785B (en) Mobile terminal and control method for the same
CN107797746B (en) Display screen control method and device, storage medium and electronic equipment
WO2018086382A1 (en) Screen backlight control system and method for smart device
CN108833699B (en) Electronic device and control method and device of sliding assembly of electronic device
CN112484850B (en) Light intensity detection module, screen component and mobile terminal
EP2560352A1 (en) Mobile terminal and vibration method thereof
CN105407286A (en) Shooting parameter setting method and device
CN106959807A (en) View angle switch method and device
CN108924284B (en) Electronic device and control method and device of sliding assembly of electronic device
CN108924286B (en) Electronic device and control method and device of sliding assembly of electronic device
CN106919914A (en) Display module and electronic equipment
CN108900662B (en) Electronic device and drive control method
CN106782119A (en) Display module and electronic equipment
CN108769319B (en) Electromagnetic interference preventing speed changing method for sliding assembly, driving assembly, device and 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