CN108874031B - Screen switching method and device and terminal - Google Patents
Screen switching method and device and terminal Download PDFInfo
- Publication number
- CN108874031B CN108874031B CN201810500047.2A CN201810500047A CN108874031B CN 108874031 B CN108874031 B CN 108874031B CN 201810500047 A CN201810500047 A CN 201810500047A CN 108874031 B CN108874031 B CN 108874031B
- Authority
- CN
- China
- Prior art keywords
- preset
- flexible screen
- push
- screen
- preset condition
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1652—Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention relates to the technical field of electronics, in particular to a screen switching method, a screen switching device and a screen switching terminal, which are used for realizing automatic screen switching and are convenient for users to use. Acquiring motion state information of the flexible screen subjected to a push-pull acting force, and if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action by the terminal according to the preset condition met by the motion state information and a first corresponding relation; the first corresponding relation comprises a corresponding relation between a preset condition in the preset condition set and a preset screen switching action. Therefore, the screen switching action can be determined according to the motion state information, and the screen switching action is executed, so that the terminal can automatically switch the screen without manually searching and pressing a screen switching button in the screen, and the terminal is convenient for a user to use.
Description
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a screen switching method, a screen switching device and a terminal.
Background
At present, the existing roll type flexible screen device comprises a roll shaft part and a flexible screen, wherein the flexible screen can be wound and contracted in the roll shaft part and used by being unfolded to the outer side surface of the roll shaft part when in use. At present, the operation of switching the screen needs to completely expand the display screen, and a user manually finds a screen switching button on the screen to realize screen switching operations such as page turning, application interface switching and the like on the screen, so that the operability is poor.
Disclosure of Invention
The embodiment of the invention provides a screen switching method, a screen switching device and a terminal, which are used for realizing automatic screen switching and are convenient for users to use.
In a first aspect, an embodiment of the present invention provides a screen switching method, which is suitable for a terminal including a flexible screen. Firstly, a terminal acquires motion state information of a flexible screen subjected to a push-pull acting force; if the motion state information meets any one preset condition in the preset condition set, the terminal determines a screen switching action according to the preset condition met by the motion state information and the first corresponding relation; the first corresponding relation comprises a corresponding relation between a preset condition in the preset condition set and a preset screen switching action. Therefore, according to the motion state information of the flexible screen subjected to the push-pull acting force, the screen switching device can automatically determine the screen switching action and then execute the screen switching action. Therefore, the terminal can automatically switch the screen without manually searching and pressing a screen switching button in the screen, and the terminal is convenient for a user to use.
Optionally, the acquiring the motion state information of the flexible screen subjected to the push-pull acting force includes: monitoring the magnetic flux by a magnetic sensor located within the spool; when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device positioned on the flexible screen is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than a preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero; if the magnetic flux is monitored to be mutated through the magnetic sensor, acquiring an electric signal generated by the magnetic sensor; and determining the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal. So, through the magnetic flux of the magnet on the magnetic sensor monitoring flexible screen, whether can be accurate definite flexible screen produce the displacement and the velocity of motion of flexible screen etc to the accurate determination motion state information, and then the terminal can realize the automatic switch-over screen, does not need manual to seek and press the screen switch-over button in the screen, convenience of customers uses.
Optionally, the motion state information includes push-pull times; the preset conditions in the preset condition set comprise preset push-pull times; the determining the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force according to the electric signal comprises the following steps: determining the push-pull times of the flexible screen subjected to the push-pull acting force according to the times of the magnetic sensor generating the electric signals; if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action according to the preset condition met by the motion state information and a first corresponding relation, wherein the screen switching action comprises: and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times. Therefore, the terminal can automatically determine the screen switching action according to the push-pull times of the flexible screen subjected to the push-pull acting force and then execute the screen switching action, the screen switching mode is simple, a screen switching button does not need to be manually searched in the screen and pressed, and the terminal is convenient for a user to use.
Optionally, the motion state information includes a moving speed level; the preset conditions in the preset condition set comprise preset moving speed grades; the determining the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force according to the electric signal comprises the following steps: determining the moving speed grade of the flexible screen when the flexible screen is subjected to a push-pull acting force according to the time interval from the magnetic sensor to the magnetic flux detection to the generation of the electric signal and the second corresponding relation; the second corresponding relation comprises a corresponding relation between a preset duration range and a moving speed grade; if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action according to the preset condition met by the motion state information and a first corresponding relation, wherein the screen switching action comprises: and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade. Therefore, the terminal can automatically determine the screen switching action according to the moving speed grade of the flexible screen subjected to the push-pull acting force and then execute the screen switching action, the screen switching mode is simple, a screen switching button does not need to be manually searched in the screen and pressed, and the terminal is convenient for a user to use.
In a second aspect, an embodiment of the present invention provides a screen switching apparatus, which is applied to a terminal including a flexible screen; the device comprises:
the acquisition module is used for acquiring the motion state information of the flexible screen subjected to the push-pull acting force;
the determining module is used for determining a screen switching action according to the preset condition met by the motion state information and the first corresponding relation if the motion state information meets any one preset condition in a preset condition set; the first corresponding relation comprises a corresponding relation between a preset condition in a preset condition set and a preset screen switching action;
and the execution module is used for executing the screen switching action.
Optionally, the obtaining module is configured to: monitoring the magnetic flux by a magnetic sensor located within the spool; when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device positioned on the flexible screen is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than a preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero; if the magnetic flux is monitored to be mutated through the magnetic sensor, acquiring an electric signal generated by the magnetic sensor; and determining the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal.
Optionally, the motion state information includes push-pull times; the preset conditions in the preset condition set comprise preset push-pull times; the determining module is configured to: determining the push-pull times of the flexible screen subjected to the push-pull acting force according to the times of the magnetic sensor generating the electric signals; and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times.
Optionally, the motion state information includes a moving speed level; the preset conditions in the preset condition set comprise preset moving speed grades; the determining module is configured to: determining the moving speed grade of the flexible screen when the flexible screen is subjected to a push-pull acting force according to the time interval from the magnetic sensor to the magnetic flux detection to the generation of the electric signal and the second corresponding relation; the second corresponding relation comprises a corresponding relation between a preset duration range and a moving speed grade; and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade.
In a third aspect, an embodiment of the present invention provides a terminal, including a housing, a scroll part, a flexible screen, a magnetic sensor, a magnetic force generating device, and a screen switching device, where the screen switching device is configured to perform the method provided in any one of the first aspect. The reel part comprises a reel, a shell and a control piece; the scroll is arranged in the inner space of the shell, the scroll is used for winding the flexible screen, and the control element is used for controlling the scroll to rotate; the magnetic sensor is located in the interior space of the housing; the magnetic force generating device is located on the flexible screen, and when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer-executable instructions for causing a computer to perform a method provided by any one of the above first aspects.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory for storing program instructions; and the processor is used for calling the program instructions stored in the memory and executing the method provided by any embodiment of the first aspect according to the obtained program.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 2 is a cross-sectional view of a housing in a terminal according to an embodiment of the present invention, taken along a pulling direction of a flexible screen;
fig. 3 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a screen switching method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a screen switching device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 schematically shows a structure of a terminal to which an embodiment of the present invention is applied.
As shown in fig. 1, the terminal includes a housing 101, a flexible screen 102, and a magnetic force generating device 105, and further includes a reel portion, a magnetic sensor, and a screen switching device, which are not shown in fig. 1. The magnetic force generating device 105 is located on the flexible screen 102, such as shown in fig. 1, at an end of the flexible screen 102 near the display area of the housing 101. The magnetic force generating device 105 is used to generate a magnetic force, such as a magnet.
In fig. 1, the display area of the flexible screen is fully expanded. When the terminal is not in use, the flexible screen is wound around the reel portion into the inner space of the housing 101, which is convenient for carrying. When the terminal is needed to be used, the shells at the two ends can be pulled towards opposite directions respectively, the display area of the flexible screen is pulled out, and the display area is in an unfolded state shown in fig. 1.
Fig. 2 shows a cross-sectional view of the housing 101 in the direction of pulling away the flexible screen, and as shown in fig. 2, the housing inner space of the terminal includes a scroll part 103 and a magnetic sensor 104. The magnetic sensor 104 may be disposed on an inner wall of the housing, and the specific location is not limited. Optionally, the spool portion 103 includes a spool, a housing, and a control member. The scroll is arranged in the inner space of the shell, the scroll is used for winding the flexible screen, and the control piece is used for controlling the scroll to rotate.
The magnetic sensor 104 is used for detecting the magnetic flux of the magnetic field generated by the magnetic force generating device 105, and the magnetic sensor 104 may be a hall sensor, an inductive sensor, or the like.
Fig. 3 is a schematic structural diagram of another terminal to which the embodiment of the present invention is applicable.
As shown in fig. 3, the terminal includes a housing 101, a flexible screen 102, a rotation shaft 103, a magnetic sensor 104, and a spring 106, and optionally, a magnetic force generating device and a screen switching device, which are not shown in fig. 3.
When the flexible screen is located in the internal space of the housing 101, the magnetic sensor is not powered on, so that the screen switching action can be prevented from being executed by mistake when the motion state information is judged by mistake.
When the magnetic sensor is unfolded in the display area of the flexible screen to a position where the screen can be lighted or a preset area can be unfolded, the magnetic sensor starts to detect the magnetic flux of the magnetic field. Specifically, the preset area can be set according to actual needs, for example, the preset area is set to two thirds of the display area of the flexible screen, and then the preset area is set to the minimum expansion area of the content which can be displayed by the flexible screen. Optionally, whether the screen of the flexible screen is lighted or whether the screen is unfolded to the preset area is monitored to determine whether the magnetic sensor is electrified, so that the screen of the flexible screen is lighted or the flexible screen is unfolded to the preset area, the magnetic sensor is electrified, and magnetic flux is detected through the magnetic sensor.
When the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generation device is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero.
The screen switching device is used for acquiring motion state information of the flexible screen subjected to the push-pull acting force, determining a screen switching action according to a preset condition and the first corresponding relation which are met by the motion state information, and executing the screen switching action. The screen switching device can be a separate device in the terminal or can be integrated in the processor of the terminal.
The following describes in detail how to implement the screen switching.
Based on the terminals shown in fig. 1, fig. 2 and fig. 3, fig. 4 exemplarily shows a flow chart of a screen switching method provided by an embodiment of the present invention.
As shown in fig. 4, the screen switching method provided in the embodiment of the present invention is applicable to a terminal including a flexible screen, and specifically, the method may also be implemented by a screen switching device. The method comprises the following steps:
step 401: the terminal obtains the motion state information of the flexible screen under the push-pull acting force.
In the embodiment of the invention, the push-pull acting force is the pushing force applied to the flexible screen to enable the scroll shafts at the two ends to be close to each other and the pulling force applied to the flexible screen to enable the scroll shafts at the two ends to be away from each other, and the displacement and the speed of the flexible screen are determined by the magnitude and the speed of the pushing force and the pulling force.
Step 402: if the motion state information meets any one preset condition in the preset condition set, the terminal determines a screen switching action according to the preset condition met by the motion state information and the first corresponding relation; the first corresponding relation comprises a corresponding relation between a preset condition in the preset condition set and a preset screen switching action.
In the embodiment of the invention, the preset condition can be that the displacement of the flexible screen meets a certain condition, the moving speed of the flexible screen meets a certain condition, and the displacement and the moving speed of the flexible screen meet a certain condition.
Step 403: and the terminal executes the screen switching action corresponding to the preset condition met by the motion state information.
In the embodiment of the invention, the terminal acquires the motion state information of the flexible screen subjected to the push-pull acting force, and then if the motion state information meets any one preset condition in a preset condition set, the terminal determines the screen switching action according to the preset condition met by the motion state information and the first corresponding relation; the first corresponding relation comprises a corresponding relation between a preset condition in the preset condition set and a preset screen switching action. Therefore, according to the motion state information of the flexible screen subjected to the push-pull acting force, the screen switching device can automatically determine the screen switching action and then execute the screen switching action. Therefore, the terminal can automatically switch the screen without manually searching and pressing a screen switching button in the screen, and the terminal is convenient for a user to use.
Optionally, when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device located on the flexible screen is greater than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than the preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero. That is, when the flexible screen is in a fully unfolded state, the flexible screen can be pushed towards the direction of the reel, so that the distance between the magnetic force generation device on the flexible screen and the magnetic sensor is smaller than a preset distance, and the magnetic sensor can monitor the magnetic flux of the magnetic field of the magnetic force generation device. Alternatively, the preset distance is a distance at which the magnetic sensor can just detect the magnetic flux of the magnetic field generated by the magnetic force generating device.
Optionally, the obtaining, by the terminal, the motion state information of the push-pull acting force applied to the flexible screen includes: the magnetic flux is monitored by a magnetic sensor located within the spool. For example, the flexible screen receives a pushing force which enables the reels at the two ends to approach each other once, the pushing force enables the flexible screen to enable the magnetic force generation device to approach the magnetic sensor, and when the distance between the magnetic sensor and the magnetic force generation device is smaller than a preset distance, the magnetic sensor can monitor that the magnetic flux is larger than zero. The flexible screen is subjected to the pulling force which enables the reels at the two ends to be away from each other once, so that the distance between the magnetic sensor and the magnetic force generation device is larger than the preset distance, the magnetic flux can be monitored by the magnetic sensor to become zero, namely, the flexible screen is subjected to the pushing force and the pulling force once respectively, so that the magnetic sensor monitors that the magnetic flux is subjected to one-time mutation, and the magnetic sensor can generate an electric signal.
If the magnetic flux is monitored to be suddenly changed by the magnetic sensor, the terminal acquires an electric signal generated by the magnetic sensor; and the terminal determines the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal. So, through the magnetic flux of the magnet on the magnetic sensor monitoring flexible screen, whether the flexible screen produces the displacement of determing that just can be accurate to and the rate of motion of flexible screen etc. thereby the accurate motion state information of determing, and then the terminal can realize the automatic switch-over screen, and does not need manual seeking and press the screen switch-over button in the screen, convenience of customers uses.
Based on step 401 and the above-described embodiment, the motion state information includes the number of push and pull times and/or the moving speed level. The push-pull frequency is the frequency that one end of the flexible screen is subjected to the pushing force enabling the reels at the two ends to be close to each other and then the pulling force enabling the reels at the two ends to be far away from each other. For example, one end of the flexible screen is subjected to a pushing force which enables the two end reels to be close to each other once, and then is subjected to a pulling force which enables the two end reels to be far away from each other once, and the pushing and pulling times are once.
The moving speed grade can represent the moving speed of the flexible screen when one end of the flexible screen is subjected to the pushing force which enables the scroll shafts at the two ends to be close to each other or the pulling force which enables the scroll shafts at the two ends to be far away from each other. In the concrete implementation, to the moving speed grade is confirmed to the tensile speed that flexible screen one end received to make both ends spool keep away from each other for example, can predetermine the corresponding relation of length of time scope and moving speed grade, determine flexible screen one end receive make both ends spool keep away from each other the length of time scope that the required time of unit distance was located, and then determine the moving speed grade.
For example, the preset time range is 0 to 5ms corresponding to a moving speed level one, 6 to 10ms corresponding to a moving speed level two, and 11 to 15ms corresponding to a moving speed level three, if the time used for moving the flexible screen by a unit distance when the flexible screen is subjected to a pulling force which causes the reels at the two ends to be away from each other is 12ms, within the preset time range of 11 to 15ms, the corresponding moving speed level three can be determined.
Several alternative embodiments of determining motion state information are provided below.
In an optional implementation, the motion state information includes push-pull times, and the preset condition in the preset condition set includes preset push-pull times, so that the first corresponding relationship includes a corresponding relationship between the preset push-pull times and a preset screen switching action, for example, page switching in an application program corresponding to one push-pull, and page switching between two corresponding applications program corresponding to two push-pulls.
According to the electric signal, the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force is determined, and the method comprises the following steps: and determining the push-pull times of the flexible screen under the push-pull acting force according to the times of the magnetic sensor generating the electric signals. For example, when the number of times of generating the electric signal by the magnetic sensor is one, the number of times of pushing and pulling the flexible screen by the pushing and pulling acting force is determined to be one. For another example, when the number of times of generating the electric signal by the magnetic sensor is two, it is determined that the number of times of pushing and pulling the flexible screen by the pushing and pulling action force is two.
Further, if the motion state information satisfies any one preset condition in the preset condition set, determining a screen switching action according to the preset condition satisfied by the motion state information and the first corresponding relationship, including: and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times.
For example, if the flexible screen is pushed or pulled twice by the pushing or pulling force, the corresponding screen switching action is used as the page switching between the application programs.
Therefore, the terminal can automatically determine the screen switching action according to the push-pull times of the flexible screen subjected to the push-pull acting force and then execute the screen switching action, the screen switching mode is simple, a screen switching button does not need to be manually searched in the screen and pressed, and the terminal is convenient for a user to use.
In another optional implementation, the motion state information includes a moving speed level, where the preset condition in the preset condition set includes a preset moving speed level, and then the first corresponding relationship includes a corresponding relationship between the preset moving speed level and a preset screen switching action, for example, the moving speed level corresponds to page switching in an application, and the moving speed level corresponds to page switching between applications.
According to the electric signal, the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force is determined, and the method specifically comprises the following steps: determining a preset time length range to which the time interval from the magnetic sensor to the generation of the electric signal belongs according to the time interval from the magnetic sensor to the generation of the electric signal and a second corresponding relation, and determining a moving speed grade corresponding to the preset time length range according to the second corresponding relation, namely the moving speed grade of the flexible screen under the action of the push-pull force; the second corresponding relationship includes a corresponding relationship between a preset time length range and a moving speed level.
Further, if the motion state information satisfies any one preset condition in the preset condition set, determining a screen switching action according to the preset condition satisfied by the motion state information and the first corresponding relationship, including: and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade.
For example, if the flexible screen is moved at a level of one when being pushed or pulled, the corresponding screen switching action is used as the page switching in the application.
Therefore, the terminal can automatically determine the screen switching action according to the moving speed grade of the flexible screen subjected to the push-pull acting force and then execute the screen switching action, the screen switching mode is simple, a screen switching button does not need to be manually searched in the screen and pressed, and the terminal is convenient for a user to use.
In combination with the two optional embodiments, the present invention further provides an optional embodiment, where the motion state information includes push-pull times and a moving speed level, the preset condition in the preset condition set includes the push-pull times and the preset moving speed level, and the first corresponding relationship includes a corresponding relationship among the preset moving speed level, the preset push-pull times, and the preset screen switching action.
Further, if the motion state information satisfies any one preset condition in the preset condition set, determining a screen switching action according to the preset condition satisfied by the motion state information and the first corresponding relationship, including: and aiming at any preset condition, if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included by the preset condition, and the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included by the preset condition, determining the screen switching action corresponding to the preset condition. In the embodiment of the present invention, how to set the first corresponding relationship is not limited, and may be set according to actual needs.
Based on the same concept, the screen switching device provided by the embodiment of the invention is used for executing the screen switching method flow provided by any one of the above embodiments.
Fig. 5 schematically illustrates a structural diagram of a screen switching device according to an embodiment of the present invention. The screen switching apparatus is applied to a terminal including a flexible screen, and as shown in fig. 5, the screen switching apparatus 500 includes an obtaining module 501, a determining module 502, and an executing module 503. Wherein:
the acquiring module 501 is used for acquiring motion state information of the flexible screen subjected to a push-pull acting force;
a determining module 502, configured to determine, if the motion state information meets any preset condition in a preset condition set, a screen switching action according to the preset condition met by the motion state information and a first corresponding relationship; the first corresponding relation comprises a corresponding relation between a preset condition in a preset condition set and a preset screen switching action;
an executing module 503, configured to execute the screen switching action.
Optionally, the obtaining module 501 is configured to: monitoring the magnetic flux by a magnetic sensor located within the spool; when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device positioned on the flexible screen is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than a preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero; if the magnetic flux is monitored to be mutated through the magnetic sensor, acquiring an electric signal generated by the magnetic sensor; and determining the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal.
Optionally, the motion state information includes push-pull times; the preset conditions in the preset condition set comprise preset push-pull times; the determining module 502 is configured to: determining the push-pull times of the flexible screen subjected to the push-pull acting force according to the times of the magnetic sensor generating the electric signals; and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times.
Optionally, the motion state information includes a moving speed level; the preset conditions in the preset condition set comprise preset moving speed grades; the determining module 502 is configured to: determining the moving speed grade of the flexible screen when the flexible screen is subjected to a push-pull acting force according to the time interval from the magnetic sensor to the magnetic flux detection to the generation of the electric signal and the second corresponding relation; the second corresponding relation comprises a corresponding relation between a preset duration range and a moving speed grade; and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade.
Based on the same conception, the terminal provided by the embodiment of the invention comprises a shell, a scroll part, a flexible screen, a magnetic sensor, a magnetic force generating device and a screen switching device, wherein the screen switching device is used for executing the screen switching method flow provided by any one of the embodiments.
Wherein, the scroll part comprises a scroll, a shell and a control piece; the scroll is arranged in the inner space of the shell, the scroll is used for winding the flexible screen, and the control piece is used for controlling the scroll to rotate; the magnetic sensor is positioned in the inner space of the shell; the magnetic force generating device is positioned on the flexible screen, and when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero.
Based on the same conception, the embodiment of the invention provides an electronic device which comprises a memory and a processor. Wherein: a memory for storing program instructions; and the processor is used for calling the program instructions stored in the memory and executing the screen switching method provided by any one of the above embodiments according to the obtained program.
Based on the same concept, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing a computer to execute a screen switching method provided in any one of the above embodiments.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (8)
1. A screen switching method is characterized in that the method is suitable for a terminal comprising a flexible screen; the method comprises the following steps:
acquiring the motion state information of the flexible screen under the action of push-pull force; the motion state information comprises push-pull times or moving speed grades; the push-pull times are the times that one end of the flexible screen is subjected to a pushing force which enables the reels at the two ends to be close to each other and then is subjected to a pulling force which enables the reels at the two ends to be far away from each other; the moving speed grade is used for representing the moving speed of the flexible screen when one end of the flexible screen is subjected to the thrust force which enables the reels at the two ends to be close to each other or the pulling force which enables the reels at the two ends to be far away from each other;
if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action according to the preset condition met by the motion state information and a first corresponding relation; the first corresponding relation comprises a corresponding relation between a preset condition in a preset condition set and a preset screen switching action;
executing the screen switching action;
wherein, the motion state information of the flexible screen subjected to the push-pull acting force comprises:
monitoring the magnetic flux by a magnetic sensor located within the spool; when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device positioned on the flexible screen is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than a preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero;
if the magnetic flux is monitored to be mutated through the magnetic sensor, acquiring an electric signal generated by the magnetic sensor;
and determining the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal.
2. The method of claim 1, wherein the preset condition in the preset condition set comprises a preset push-pull number;
the determining the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force according to the electric signal comprises the following steps:
determining the push-pull times of the flexible screen subjected to the push-pull acting force according to the times of the magnetic sensor generating the electric signals;
if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action according to the preset condition met by the motion state information and a first corresponding relation, wherein the screen switching action comprises:
and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times.
3. The method of claim 1, wherein a preset condition of the set of preset conditions comprises a preset movement speed level;
the determining the motion state information of the flexible screen when the flexible screen is subjected to the push-pull acting force according to the electric signal comprises the following steps:
determining the moving speed grade of the flexible screen when the flexible screen is subjected to a push-pull acting force according to the time interval from the magnetic sensor to the magnetic flux detection to the generation of the electric signal and the second corresponding relation; the second corresponding relation comprises a corresponding relation between a preset duration range and a moving speed grade;
if the motion state information meets any one preset condition in a preset condition set, determining a screen switching action according to the preset condition met by the motion state information and a first corresponding relation, wherein the screen switching action comprises:
and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade.
4. A screen switching device is characterized by being applied to a terminal comprising a flexible screen; the device comprises:
the acquisition module is used for acquiring the motion state information of the flexible screen subjected to the push-pull acting force; the motion state information comprises push-pull times or moving speed grades; the push-pull times are the times that one end of the flexible screen is subjected to a pushing force which enables the reels at the two ends to be close to each other and then is subjected to a pulling force which enables the reels at the two ends to be far away from each other; the moving speed grade is used for representing the moving speed of the flexible screen when one end of the flexible screen is subjected to the thrust force which enables the reels at the two ends to be close to each other or the pulling force which enables the reels at the two ends to be far away from each other;
the determining module is used for determining a screen switching action according to the preset condition met by the motion state information and the first corresponding relation if the motion state information meets any one preset condition in a preset condition set; the first corresponding relation comprises a corresponding relation between a preset condition in a preset condition set and a preset screen switching action;
the execution module is used for executing the screen switching action;
wherein the obtaining module is configured to:
monitoring the magnetic flux by a magnetic sensor located within the spool; when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device positioned on the flexible screen is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero; when the distance is smaller than a preset distance, the magnetic flux monitored by the magnetic sensor is larger than zero;
if the magnetic flux is monitored to be mutated through the magnetic sensor, acquiring an electric signal generated by the magnetic sensor;
and determining the motion state information of the flexible screen subjected to the push-pull acting force according to the electric signal.
5. The apparatus of claim 4, wherein the preset condition of the preset set of conditions comprises a preset number of push-pulls; the determining module is configured to: determining the push-pull times of the flexible screen subjected to the push-pull acting force according to the times of the magnetic sensor generating the electric signals;
and if the push-pull times of the flexible screen subjected to the push-pull acting force are the same as the preset push-pull times included in any preset condition, determining the screen switching action corresponding to the preset push-pull times.
6. The apparatus of claim 4, wherein the preset condition of the set of preset conditions comprises a preset moving speed level;
the determining module is configured to:
determining the moving speed grade of the flexible screen when the flexible screen is subjected to a push-pull acting force according to the time interval from the magnetic sensor to the magnetic flux detection to the generation of the electric signal and the second corresponding relation; the second corresponding relation comprises a corresponding relation between a preset duration range and a moving speed grade;
and if the moving speed grade of the flexible screen subjected to the push-pull acting force is the same as the preset moving speed grade included in any preset condition, determining the screen switching action corresponding to the preset moving speed grade.
7. A terminal comprising a housing, a reel portion, a flexible screen, a magnetic sensor, a magnetic force generating device, and a screen switching device for performing the method according to any one of claims 1 to 3;
the reel part comprises a reel, a shell and a control piece; the scroll is arranged in the inner space of the shell, the scroll is used for winding the flexible screen, and the control element is used for controlling the scroll to rotate;
the magnetic sensor is located in the interior space of the housing;
the magnetic force generating device is located on the flexible screen, and when the flexible screen is in a fully unfolded state, the distance between the magnetic sensor and the magnetic force generating device is larger than a preset distance, and the magnetic flux monitored by the magnetic sensor is zero.
8. A computer storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810500047.2A CN108874031B (en) | 2018-05-23 | 2018-05-23 | Screen switching method and device and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810500047.2A CN108874031B (en) | 2018-05-23 | 2018-05-23 | Screen switching method and device and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108874031A CN108874031A (en) | 2018-11-23 |
| CN108874031B true CN108874031B (en) | 2021-08-17 |
Family
ID=64334577
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810500047.2A Active CN108874031B (en) | 2018-05-23 | 2018-05-23 | Screen switching method and device and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108874031B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111124225B (en) * | 2019-12-16 | 2021-09-10 | 维沃移动通信有限公司 | Display control method and electronic equipment |
| CN113495632B (en) * | 2020-04-03 | 2025-01-21 | 北京小米移动软件有限公司 | Flexible screen posture detection method and device, electronic device and storage medium |
| CN113760079B (en) * | 2020-06-02 | 2025-01-24 | Oppo广东移动通信有限公司 | Screen control method, device, mobile terminal and storage medium |
| CN112396962B (en) * | 2020-11-16 | 2022-11-01 | 京东方科技集团股份有限公司 | Curled display device, method for controlling curling of flexible display screen and electronic equipment |
| CN112652246B (en) * | 2020-12-31 | 2022-10-25 | Oppo广东移动通信有限公司 | Electronic device, control method and storage medium |
| CN112964164A (en) * | 2021-03-02 | 2021-06-15 | Oppo广东移动通信有限公司 | Calibration method, calibration device, computer-readable storage medium and electronic equipment |
| CN115728676A (en) * | 2021-08-31 | 2023-03-03 | 北京小米移动软件有限公司 | Magnetic sensor calibration method, magnetic sensor calibration device and storage medium |
| CN115775506A (en) * | 2021-09-08 | 2023-03-10 | 北京小米移动软件有限公司 | Screen control method and device, terminal equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103365669A (en) * | 2012-03-26 | 2013-10-23 | 联想(北京)有限公司 | Application function control method and electronic terminal |
| CN103399616A (en) * | 2013-07-02 | 2013-11-20 | 惠州Tcl移动通信有限公司 | Screen capable of changing display area, movable terminal and screen display method of movable terminal |
| CN103426366A (en) * | 2012-05-22 | 2013-12-04 | 三星显示有限公司 | Display device |
| CN203721163U (en) * | 2014-02-28 | 2014-07-16 | 京东方科技集团股份有限公司 | Flexible display apparatus |
| CN106951163A (en) * | 2017-04-05 | 2017-07-14 | 宇龙计算机通信科技(深圳)有限公司 | A kind of display control method and device |
| CN107316605A (en) * | 2016-04-26 | 2017-11-03 | 三星显示有限公司 | Flexible display device and for the method for the image for compensating flexible display device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FI111998B (en) * | 1999-12-08 | 2003-10-15 | Nokia Corp | User interface |
-
2018
- 2018-05-23 CN CN201810500047.2A patent/CN108874031B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103365669A (en) * | 2012-03-26 | 2013-10-23 | 联想(北京)有限公司 | Application function control method and electronic terminal |
| CN103426366A (en) * | 2012-05-22 | 2013-12-04 | 三星显示有限公司 | Display device |
| CN103399616A (en) * | 2013-07-02 | 2013-11-20 | 惠州Tcl移动通信有限公司 | Screen capable of changing display area, movable terminal and screen display method of movable terminal |
| CN203721163U (en) * | 2014-02-28 | 2014-07-16 | 京东方科技集团股份有限公司 | Flexible display apparatus |
| CN107316605A (en) * | 2016-04-26 | 2017-11-03 | 三星显示有限公司 | Flexible display device and for the method for the image for compensating flexible display device |
| CN106951163A (en) * | 2017-04-05 | 2017-07-14 | 宇龙计算机通信科技(深圳)有限公司 | A kind of display control method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108874031A (en) | 2018-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108874031B (en) | Screen switching method and device and terminal | |
| KR102340795B1 (en) | Mobile device including stylus pen and operating method for the same | |
| JP5310403B2 (en) | Information processing apparatus, information processing method, and program | |
| US10817163B2 (en) | Method and device for managing item | |
| US8373549B2 (en) | Tactile feedback in an electronic device | |
| RU2604435C2 (en) | Method and apparatus for controlling touch screen using timeline bar, recording medium with program for same recorded therein, and user terminal having same | |
| US9262065B2 (en) | Time based touch screen input recognition | |
| RU2660141C2 (en) | Method of controlling portable device and portable device thereof | |
| EP2894562A1 (en) | Method of controlling device and control apparatus | |
| KR101471708B1 (en) | Apparatus, method, computer program and user interface for enabling user unput | |
| EP2715499A1 (en) | Invisible control | |
| KR970071235A (en) | Editing method and editing control device for recording materials | |
| EP3103526A1 (en) | Information processing apparatus, information processing system, information processing method, and information processing program | |
| WO2013031135A1 (en) | Information processing apparatus, information processing method, and program | |
| JP6105850B2 (en) | Portable terminal device, display control method, and display control program | |
| CN104065883B (en) | Image pickup method and device | |
| CN105824493B (en) | A kind of control method and mobile terminal of mobile terminal | |
| WO2015200400A1 (en) | Remote control of a mobile computing device with an auxiliary device | |
| CN105337368A (en) | Terminal charging method and device | |
| US20120278758A1 (en) | Image browsing system and method for zooming images and method for switching among images | |
| WO2014183407A1 (en) | Quick scrolling device, method and terminal | |
| CN104883600A (en) | List entry display method and apparatus | |
| KR101699491B1 (en) | Device, method, and computer program for displaying function instructions | |
| JP6116409B2 (en) | Waveform display device, waveform display method, and waveform display program | |
| JP6399131B2 (en) | Information processing device |
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 |