CN106371732B - Method for controlling electronic curtain and electronic terminal - Google Patents

Method for controlling electronic curtain and electronic terminal Download PDF

Info

Publication number
CN106371732B
CN106371732B CN201611060013.3A CN201611060013A CN106371732B CN 106371732 B CN106371732 B CN 106371732B CN 201611060013 A CN201611060013 A CN 201611060013A CN 106371732 B CN106371732 B CN 106371732B
Authority
CN
China
Prior art keywords
electronic
curtain
sliding operation
sliding
electronic curtain
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.)
Expired - Fee Related
Application number
CN201611060013.3A
Other languages
Chinese (zh)
Other versions
CN106371732A (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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201611060013.3A priority Critical patent/CN106371732B/en
Publication of CN106371732A publication Critical patent/CN106371732A/en
Application granted granted Critical
Publication of CN106371732B publication Critical patent/CN106371732B/en
Expired - Fee Related 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/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention belongs to the technical field of communication, and provides a method for controlling an electronic curtain and an electronic terminal, wherein the method comprises the following steps: when the sliding operation of a user on an electronic curtain displayed by the electronic terminal is detected, acquiring the sliding distance of the sliding operation in the moving direction of the electronic curtain; and changing the transparency value of a preset level according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation so as to control the light intensity of the corresponding picture displayed by the electronic terminal. The invention can solve the problems that the pulling process of the electronic curtain in the prior art is harsh and abrupt, and the pulling effect of the electronic curtain in a real scene cannot be well simulated.

Description

Method for controlling electronic curtain and electronic terminal
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method for controlling an electronic curtain and an electronic terminal.
Background
At present, most electronic terminals (such as mobile phones, tablet computers and the like) are provided with entertainment applications, such as entertainment game applications like love nurturing and star volunteers. However, these applications are generally simple clicking operations, which automatically complete the pulling effect of the electronic curtain in the screen displayed by the electronic terminal. For example, when the electronic curtain in the screen is in an open state, the electronic curtain is clicked, the electronic curtain is completely closed, and the light of the screen changes from bright to dark. The pulling process of the electronic curtain is harsh and abrupt, and the pulling effect of the electronic curtain in a real scene cannot be well simulated.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for controlling an electronic curtain and an electronic terminal, so as to solve the problem that a pulling process of an electronic curtain in the prior art is harsh and abrupt, and cannot well simulate a pulling effect of the electronic curtain in a real scene.
In a first aspect of the embodiments of the present invention, a method for controlling an electronic window curtain is provided, which is applied to an electronic terminal, and the method includes:
when the sliding operation of a user on an electronic curtain displayed by the electronic terminal is detected, acquiring the sliding distance of the sliding operation in the moving direction of the electronic curtain;
and changing the transparency value of a preset level according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation so as to control the light intensity of the corresponding picture displayed by the electronic terminal.
In a second aspect of the embodiments of the present invention, an electronic terminal is provided, where the electronic terminal includes:
the distance acquisition module is used for acquiring the sliding distance of the sliding operation in the moving direction of the electronic curtain when the sliding operation of the electronic curtain displayed by the electronic terminal by a user is detected;
and the changing module is used for changing the transparency value of a preset level according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation so as to control the light intensity of the corresponding picture displayed by the electronic terminal.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, when the sliding operation of the electronic curtain displayed by the electronic terminal by a user is detected, the sliding distance of the sliding operation in the moving direction of the electronic curtain is obtained, and the transparency value of the preset level is changed according to the distance and the sliding direction of the sliding operation, so as to control the light intensity of the corresponding picture displayed by the electronic terminal. The embodiment of the invention can ensure that the pulling process of the electronic curtain is smoother, and the light intensity of the corresponding picture displayed by the electronic terminal is changed along with the pulling of the electronic curtain, thereby ensuring the better pulling effect of the electronic curtain in the simulated real scene.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a method for controlling an electronic window covering according to an embodiment of the present invention;
fig. 2 is a view illustrating a sliding operation of the electronic window curtain displayed on the electronic terminal;
FIG. 3a is an exemplary view of a screen displayed by the electronic terminal when the electronic curtain is opened; FIG. 3b is an exemplary diagram of a screen displayed by the electronic terminal when the electronic curtain is closed;
FIG. 4a is a close-up view of the electronic window covering of FIG. 2; FIG. 4b is an open view of the electronic window covering of FIG. 2;
fig. 5 is a schematic block diagram of an electronic terminal according to a second embodiment of the present invention;
fig. 6 is a schematic block diagram of an electronic terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the electronic terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, an electronic terminal is described that includes a display and a touch-sensitive surface. However, it should be understood that the electronic terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The electronic terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the electronic terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the electronic terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the electronic terminal may support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, which is a schematic flowchart illustrating a method for controlling an electronic window curtain according to an embodiment of the present invention, the method being applied to an electronic terminal, and as shown in the figure, the method may include the following steps:
step S101, when the sliding operation of the electronic curtain displayed by the electronic terminal by the user is detected, the sliding distance of the sliding operation in the moving direction of the electronic curtain is obtained.
In an embodiment of the present invention, the sliding operation of the electronic curtain displayed by the electronic terminal by the user may be an operation in which the user clicks the electronic curtain displayed by the electronic terminal and slides on a screen of the electronic terminal from a clicked position (i.e., a start position of the sliding operation). For example, a user clicks an electronic curtain displayed on a mobile phone having a touch screen with a finger and slides on the screen of the mobile phone from the clicked position. Fig. 2 is a diagram illustrating an example of a sliding operation of an electronic window shade displayed on an electronic terminal.
Optionally, before obtaining the sliding distance of the sliding operation in the moving direction of the electronic window curtain, the embodiment of the present invention further includes:
and acquiring the starting position of the sliding operation and the preset level transparency value of the electronic curtain at the starting position of the sliding operation.
As shown in fig. 2, point a is a starting position of the sliding operation of the electronic window curtain by the user, and the preset level transparency value of the electronic window curtain at the starting position a of the sliding operation refers to a preset level transparency value of the electronic window curtain when the shielding range of the electronic window curtain is from the rightmost edge of the window in fig. 2 to the starting position a.
Optionally, the moving direction of the electronic window curtain includes a direction of closing the electronic window curtain and a direction of opening the electronic window curtain.
In the embodiment of the present invention, the moving direction of the electronic window curtain refers to a direction in which the electronic window curtain can be moved. As shown in fig. 2, the horizontal direction is the moving direction of the electronic window curtain, and the arrow x is1Direction of the electronic curtain for closing, arrow x2And L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain.
And S102, changing a transparency value of a preset level according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation so as to control the light intensity of a corresponding picture displayed by the electronic terminal.
In the embodiment of the invention, the corresponding picture displayed by the electronic terminal is a picture including the electronic curtain displayed by the electronic terminal. For example, fig. 3a is an exemplary view of a screen displayed by the electronic terminal when the electronic curtain is opened, and fig. 3b is an exemplary view of a screen displayed by the electronic terminal when the electronic curtain is closed.
In the embodiment of the invention, the pulling effect of the electronic curtain in the real scene is better simulated by the pulling effect of the electronic curtain displayed by the electronic terminal. And superposing a preset level on a picture containing the electronic curtain displayed by the electronic terminal, so that the light intensity of the picture is dynamically changed along with the pulling of the electronic curtain. The transparency value of the preset level may refer to a gray value of the preset level, when the transparency value of the preset level is increased from small to large, the light intensity of the corresponding picture is changed from bright to dark, and when the electronic curtain is completely pulled open, the transparency value of the preset level may be defined as a minimum value Pmin(e.g., 0), the transparency value of the preset level may be defined as a maximum value P when the electronic window shade is completely closedmax(e.g., 200). The preset level can be a black level, and the minimum value and the maximum value of the transparency value of the preset level can be set according to needs.
Optionally, when the sliding direction of the sliding operation is a direction for closing the electronic curtain;
the changing the transparency value of the preset hierarchy according to the sliding distance of the sliding operation in the moving direction of the electronic window curtain and the sliding direction of the sliding operation includes:
controlling the electronic curtain to extend a distance d from the starting position of the sliding operation to the direction of closing the electronic curtain according to the distance d of the sliding operation in the moving direction of the electronic curtain;
according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd the sliding distance d of the sliding operation in the moving direction of the electronic curtain, and calculating the transparency value of the electronic curtain at a preset level after the electronic curtain extends the distance d from the starting position of the sliding operation to the direction of closing the electronic curtain
Figure BDA0001161075680000061
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
In the embodiment of the present invention, when the sliding direction of the sliding operation of the electronic curtain displayed by the electronic terminal by the user is the direction for closing the electronic curtain, the electronic terminal controls the electronic curtain to extend the distance d from the starting position of the sliding operation to the direction for closing the electronic curtain according to the distance d that the sliding operation slides in the moving direction of the electronic curtain, which is obtained in step S101, so that the closing process of the electronic curtain changes along with the distance d that the sliding operation slides in the moving direction of the electronic curtain, and the light intensity of the picture including the electronic curtain displayed by the electronic terminal also changes along with the change of the transparency value of the preset level, which effectively solves the problem that the electronic curtain is completely closed when the electronic curtain is clicked when the electronic curtain is in the open state in the prior art, the light intensity of the picture is directly changed from bright to dark. As shown in fig. 4a, which is a closed example of the electronic window shade in fig. 2, the electronic window shade is extended by a distance d from the starting position a of the sliding operation to the direction of closing the electronic window shade.
Optionally, when the sliding direction of the sliding operation is a direction for opening the electronic curtain;
the changing the transparency value of the preset hierarchy according to the sliding distance of the sliding operation in the moving direction of the electronic window curtain and the sliding direction of the sliding operation includes:
controlling the electronic curtain to shorten the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain according to the distance d of the sliding operation in the moving direction of the electronic curtain;
according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd a distance d of the sliding operation in the moving direction of the electronic curtain, and calculating a preset level transparency value after the electronic curtain is shortened by the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain
Figure BDA0001161075680000071
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
In the embodiment of the present invention, when the sliding direction of the sliding operation of the electronic curtain displayed by the electronic terminal by the user is the direction of opening the electronic curtain, the electronic terminal controls the electronic curtain to extend the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain according to the distance d that the sliding operation slides in the moving direction of the electronic curtain, which is obtained in step S101, so that the opening process of the electronic curtain changes along with the distance d that the sliding operation slides in the moving direction of the electronic curtain, and the light intensity of the picture including the electronic curtain displayed by the electronic terminal also changes along with the change of the transparency value of the preset level, which effectively solves the problem that the electronic curtain is completely opened when the electronic curtain is clicked when the electronic curtain is in the closed state in the prior art, the light intensity of the picture is directly changed from dark to light. As shown in fig. 4b, which is an opening example of the electronic window covering in fig. 2, the electronic window covering is extended by a distance d from the starting position a of the sliding operation to the direction of opening the electronic window covering.
In the embodiment of the invention, the transparency value of the preset level is dynamically changed according to the ratio of the sliding distance d of the sliding operation in the moving direction of the electronic curtain to the total length L of the moving range of the electronic curtain in the moving direction of the electronic curtain, so that the gradual change process of the light intensity of the corresponding picture can be better simulated.
The embodiment of the invention can ensure that the pulling process of the electronic curtain is smoother, and the light intensity of the corresponding picture displayed by the electronic terminal is changed along with the pulling of the electronic curtain, thereby ensuring the better pulling effect of the electronic curtain in the simulated real scene.
It should be understood that, in the above embodiments, the order of execution of the steps is not meant to imply any order, and the order of execution of the steps should be determined by their function and inherent logic, and should not limit the implementation process of the embodiments of the present invention.
Fig. 5 is a schematic block diagram of an electronic terminal according to a second embodiment of the present invention, and for convenience of description, only the parts related to the second embodiment of the present invention are shown.
The electronic terminal includes:
a distance obtaining module 51, configured to, when a sliding operation of an electronic curtain displayed by the electronic terminal by a user is detected, obtain a distance that the sliding operation slides in a moving direction of the electronic curtain;
and a changing module 52, configured to change a preset level transparency value according to a sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation, so as to control the light intensity of the corresponding picture displayed by the electronic terminal.
Optionally, the electronic terminal further includes:
a position obtaining module 53, configured to obtain a start position of the sliding operation and a preset level of transparency value of the electronic window curtain at the start position of the sliding operation before obtaining a distance that the sliding operation slides in the moving direction of the electronic window curtain.
Optionally, the moving direction of the electronic window curtain includes a direction of closing the electronic window curtain and a direction of opening the electronic window curtain.
Optionally, when the sliding direction of the sliding operation is a direction for closing the electronic curtain;
the changing module 52 includes:
a first control unit 521, configured to control the electronic window shade to extend a distance d from a start position of the sliding operation to a direction in which the electronic window shade is closed, according to the distance d by which the sliding operation slides in the moving direction of the electronic window shade;
a first calculating unit 522 for calculating a transparency value P of a preset level according to the electronic window covering at a start position of the sliding operationsAnd the sliding distance d of the sliding operation in the moving direction of the electronic curtain, and calculating the transparency value of the electronic curtain at a preset level after the electronic curtain extends the distance d from the starting position of the sliding operation to the direction of closing the electronic curtain
Figure BDA0001161075680000081
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
Optionally, when the sliding direction of the sliding operation is a direction for opening the electronic curtain;
the changing module 52 includes:
a second control unit 523 configured to control the electronic window shade to shorten a distance d from a start position of the sliding operation to a direction in which the electronic window shade is opened, according to the distance d of the sliding operation in the moving direction of the electronic window shade;
a second calculating unit 524 for calculating the sliding operation of the electronic window curtainA preset level of transparency value P at the starting position of (2)sAnd a distance d of the sliding operation in the moving direction of the electronic curtain, and calculating a preset level transparency value after the electronic curtain is shortened by the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain
Figure BDA0001161075680000091
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the foregoing function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the electronic terminal is divided into different functional units or modules to perform all or part of the above-described functions. Each functional module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the module in the electronic terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 6 is a schematic block diagram of an electronic terminal according to a third embodiment of the present invention. The electronic terminal as shown in the figure may include: one or more processors 601 (only one shown); one or more input devices 602 (only one shown), one or more output devices 603 (only one shown), and memory 604. The processor 601, the input device 602, the output device 603, and the memory 604 are connected by a bus 605. The memory 604 is used for storing instructions and the processor 601 is used for executing instructions stored by the memory 604. Wherein:
the processor 601 is configured to, when a sliding operation of a user on an electronic curtain displayed by the electronic terminal is detected, obtain, through the input device 602, a sliding distance of the sliding operation in a moving direction of the electronic curtain, and change a preset level transparency value according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation, so as to control light intensity of a corresponding screen displayed by the electronic terminal.
Optionally, before obtaining the distance that the sliding operation slides in the moving direction of the electronic window curtain, the processor 601 is further configured to obtain a start position of the sliding operation and a preset level of transparency value of the electronic window curtain at the start position of the sliding operation.
Optionally, the moving direction of the electronic window curtain includes a direction of closing the electronic window curtain and a direction of opening the electronic window curtain.
Optionally, when the sliding direction of the sliding operation is a direction to close the electronic window curtain, the processor 601 is specifically configured to control the electronic window curtain to extend a distance d from a starting position of the sliding operation to a direction to close the electronic window curtain according to the distance d that the sliding operation slides in the moving direction of the electronic window curtain; according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd the sliding distance d of the sliding operation in the moving direction of the electronic curtain, and calculating the transparency value of the electronic curtain at a preset level after the electronic curtain extends the distance d from the starting position of the sliding operation to the direction of closing the electronic curtain
Figure BDA0001161075680000101
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
Optionally, when the sliding direction of the sliding operation is a direction for opening the electronic window curtain, the processor 601 is specifically configured to perform the sliding operation on the electronic window curtainThe distance d of the electronic curtain sliding in the moving direction controls the electronic curtain to shorten from the starting position of the sliding operation to the direction of opening the electronic curtain by the distance d; according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd a distance d of the sliding operation in the moving direction of the electronic curtain, and calculating a preset level transparency value after the electronic curtain is shortened by the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain
Figure BDA0001161075680000111
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
The output device 603 is configured to feed back execution result information to the user.
The memory 604 is used for storing software programs and units, and the processor 601 executes various functional applications and data processing by running the software programs and units stored in the memory 604, so as to control the light intensity of the corresponding picture displayed by the electronic terminal.
It should be understood that, in the embodiment of the present invention, the Processor 601 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 602 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 603 may include a display (LCD, etc.), a speaker, etc.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include non-volatile random access memory. For example, the memory 604 may also store device type information.
In a specific implementation, the processor 601, the input device 602, and the output device 603 described in this embodiment of the present invention may execute the implementation described in the embodiment of the method for controlling an electronic window shade provided in this embodiment of the present invention, and may also execute the implementation described in the electronic terminal described in the second embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present application, it should be understood that the disclosed electronic terminal and method may be implemented in other ways. For example, the above-described electronic terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electrical, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (2)

1. A method for controlling an electronic curtain is applied to an electronic terminal, and is characterized by comprising the following steps:
when the sliding operation of a user on an electronic curtain in a picture displayed by the electronic terminal is detected, acquiring the sliding distance of the sliding operation in the moving direction of the electronic curtain, wherein the moving direction of the electronic curtain refers to the direction of moving the electronic curtain; the moving direction of the electronic curtain comprises a direction for closing the electronic curtain and a direction for opening the electronic curtain;
changing a preset level transparency value according to the sliding distance of the sliding operation in the moving direction of the electronic curtain and the sliding direction of the sliding operation to control the light intensity of the picture containing the electronic curtain displayed by the electronic terminal to dynamically change along with the pulling of the electronic curtain, wherein a preset level is superposed on the picture containing the electronic curtain displayed by the electronic terminal;
before obtaining the sliding distance of the sliding operation in the moving direction of the electronic window curtain, the method further comprises the following steps: acquiring a starting position of the sliding operation and a preset level transparency value of the electronic curtain at the starting position of the sliding operation;
when the sliding direction of the sliding operation is the direction for closing the electronic curtain;
the changing the transparency value of the preset hierarchy according to the sliding distance of the sliding operation in the moving direction of the electronic window curtain and the sliding direction of the sliding operation includes:
controlling the electronic curtain to extend a distance d from the starting position of the sliding operation to the direction of closing the electronic curtain according to the distance d of the sliding operation in the moving direction of the electronic curtain;
according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd the sliding distance d of the sliding operation in the moving direction of the electronic curtain, and calculating the transparency value of the electronic curtain at a preset level after the electronic curtain extends the distance d from the starting position of the sliding operation to the direction of closing the electronic curtain
Figure FDA0002355254400000011
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxThe maximum value of the transparency of a preset level is obtained;
when the sliding direction of the sliding operation is the direction of opening the electronic curtain;
the changing the transparency value of the preset hierarchy according to the sliding distance of the sliding operation in the moving direction of the electronic window curtain and the sliding direction of the sliding operation includes:
controlling the electronic curtain to shorten the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain according to the distance d of the sliding operation in the moving direction of the electronic curtain;
according to the transparency value P of the preset level of the electronic curtain at the starting position of the sliding operationsAnd a distance d of the sliding operation in the moving direction of the electronic curtain, and calculating a preset level transparency value after the electronic curtain is shortened by the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain
Figure FDA0002355254400000021
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
2. An electronic terminal, characterized in that the electronic terminal comprises:
the distance acquisition module is used for acquiring the sliding distance of the sliding operation in the moving direction of the electronic curtain when the sliding operation of the electronic curtain in the picture displayed by the electronic terminal by a user is detected, wherein the moving direction of the electronic curtain refers to the direction of moving the electronic curtain; the moving direction of the electronic curtain comprises a direction for closing the electronic curtain and a direction for opening the electronic curtain;
a changing module, configured to change a transparency value of a preset level according to a sliding distance of the sliding operation in a moving direction of the electronic window curtain and a sliding direction of the sliding operation, so as to control a light intensity of a picture including the electronic window curtain displayed by the electronic terminal to dynamically change along with pulling of the electronic window curtain, where the preset level is superimposed on the picture including the electronic window curtain displayed by the electronic terminal;
a position acquisition module, configured to acquire a start position of the sliding operation and a preset level of transparency value of the electronic window curtain at the start position of the sliding operation before acquiring a distance that the sliding operation slides in a moving direction of the electronic window curtain;
when the sliding direction of the sliding operation is the direction for closing the electronic curtain;
the changing module includes:
a first control unit, configured to control the electronic window curtain to extend a distance d from a start position of the sliding operation to a direction of closing the electronic window curtain according to the distance d of the sliding operation in the moving direction of the electronic window curtain;
a first calculation unit for calculating a transparency value P of a preset hierarchy according to the start position of the sliding operation of the electronic window curtainsAnd the sliding distance d of the sliding operation in the moving direction of the electronic curtain, and calculating the transparency value of the electronic curtain at a preset level after the electronic curtain extends the distance d from the starting position of the sliding operation to the direction of closing the electronic curtain
Figure FDA0002355254400000031
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxThe maximum value of the transparency of a preset level is obtained;
when the sliding direction of the sliding operation is the direction of opening the electronic curtain;
the changing module includes:
a second control unit, configured to control the electronic window curtain to shorten a distance d from a start position of the sliding operation to a direction in which the electronic window curtain is opened, according to the distance d by which the sliding operation is slid in the moving direction of the electronic window curtain;
a second calculation unit for calculating a transparency value P of a preset hierarchy according to the start position of the sliding operation of the electronic window curtainsAnd a distance d of the sliding operation in the moving direction of the electronic curtain, and calculating a preset level transparency value after the electronic curtain is shortened by the distance d from the starting position of the sliding operation to the direction of opening the electronic curtain
Figure FDA0002355254400000032
Wherein L is the total length of the moving range of the electronic curtain in the moving direction of the electronic curtain, PmaxIs the maximum value of transparency of a preset level.
CN201611060013.3A 2016-11-24 2016-11-24 Method for controlling electronic curtain and electronic terminal Expired - Fee Related CN106371732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611060013.3A CN106371732B (en) 2016-11-24 2016-11-24 Method for controlling electronic curtain and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611060013.3A CN106371732B (en) 2016-11-24 2016-11-24 Method for controlling electronic curtain and electronic terminal

Publications (2)

Publication Number Publication Date
CN106371732A CN106371732A (en) 2017-02-01
CN106371732B true CN106371732B (en) 2020-05-29

Family

ID=57892361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611060013.3A Expired - Fee Related CN106371732B (en) 2016-11-24 2016-11-24 Method for controlling electronic curtain and electronic terminal

Country Status (1)

Country Link
CN (1) CN106371732B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112731821B (en) * 2020-12-18 2023-03-24 卧安科技(深圳)有限公司 Equipment movement method and electronic equipment
CN113671855A (en) * 2021-08-20 2021-11-19 广东好太太智能家居有限公司 Clothes airing equipment control method, device and system and clothes airing equipment
CN114489443A (en) * 2022-01-25 2022-05-13 珠海格力电器股份有限公司 Intelligent curtain control method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294362A (en) * 2013-06-28 2013-09-11 贝壳网际(北京)安全技术有限公司 Screen display control method and device for mobile equipment and mobile equipment
CN103970422A (en) * 2014-05-26 2014-08-06 深圳市中兴移动通信有限公司 Screen transparency automatic changing method of mobile terminal and mobile terminal
CN103984488A (en) * 2014-05-26 2014-08-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104915139A (en) * 2015-04-30 2015-09-16 努比亚技术有限公司 Automatic adjusting method and device for brightness of display interface
CN104916270A (en) * 2015-05-29 2015-09-16 努比亚技术有限公司 Method for adjusting screen brightness and device thereof
CN106055191A (en) * 2016-04-19 2016-10-26 乐视控股(北京)有限公司 Terminal equipment and interface display method for same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9529515B2 (en) * 2011-04-19 2016-12-27 Google Inc. Zoom acceleration widgets

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294362A (en) * 2013-06-28 2013-09-11 贝壳网际(北京)安全技术有限公司 Screen display control method and device for mobile equipment and mobile equipment
CN103970422A (en) * 2014-05-26 2014-08-06 深圳市中兴移动通信有限公司 Screen transparency automatic changing method of mobile terminal and mobile terminal
CN103984488A (en) * 2014-05-26 2014-08-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104915139A (en) * 2015-04-30 2015-09-16 努比亚技术有限公司 Automatic adjusting method and device for brightness of display interface
CN104916270A (en) * 2015-05-29 2015-09-16 努比亚技术有限公司 Method for adjusting screen brightness and device thereof
CN106055191A (en) * 2016-04-19 2016-10-26 乐视控股(北京)有限公司 Terminal equipment and interface display method for same

Also Published As

Publication number Publication date
CN106371732A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106454139B (en) Photographing method and mobile terminal
US9035887B1 (en) Interactive user interface
WO2015188674A1 (en) Method and apparatus for displaying information content
CN107181858B (en) Method and terminal for displaying notification message
CN107451244B (en) Folder naming method, mobile terminal and computer readable storage medium
CN109118447B (en) Picture processing method, picture processing device and terminal equipment
CN108898082B (en) Picture processing method, picture processing device and terminal equipment
CN106371732B (en) Method for controlling electronic curtain and electronic terminal
CN109032727B (en) Application program starting method, application program starting device and terminal equipment
CN111142650B (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN106485173A (en) Sensitive information methods of exhibiting and device
CN107766108A (en) A kind of method of interception image, terminal and computer-readable medium
CN108629767B (en) Scene detection method and device and mobile terminal
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
CN109358927B (en) Application program display method and device and terminal equipment
US20140137018A1 (en) File position shortcut and window arrangement
CN109298907B (en) Application program display method, application program display device and terminal
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
CN107122686B (en) Method and device for sharing screen content and mobile terminal
WO2021068766A1 (en) Image display method, image display apparatus, and mobile terminal
CN107291367B (en) Use method and device of eraser
CN104898928A (en) Graphic and text information display method and terminal
CN108469938B (en) Electronic book reading reminding method and device and terminal equipment
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN113330407A (en) Interaction method, flexible electronic device and readable storage medium

Legal Events

Date Code Title Description
C06 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200529

Termination date: 20211124

CF01 Termination of patent right due to non-payment of annual fee