CN109564503A - A kind of interface control method and device - Google Patents

A kind of interface control method and device Download PDF

Info

Publication number
CN109564503A
CN109564503A CN201680088149.7A CN201680088149A CN109564503A CN 109564503 A CN109564503 A CN 109564503A CN 201680088149 A CN201680088149 A CN 201680088149A CN 109564503 A CN109564503 A CN 109564503A
Authority
CN
China
Prior art keywords
light intensity
interface image
current environment
terminal device
interface
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.)
Pending
Application number
CN201680088149.7A
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN109564503A publication Critical patent/CN109564503A/en
Pending legal-status Critical Current

Links

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Abstract

The embodiment of the invention discloses a kind of interface control method and devices, include: that terminal device receives first object operation by taking the realization of method as an example, need to draw interface image if responding above-mentioned first object operation, it is determined that whether Interface Control function has been switched on;If so, judging current time whether in effectual time;If so, obtaining the light intensity of terminal device current environment by hardware device;Light intensity according to current environment determines the first interface image;Wherein, the light intensity of above-mentioned current environment is stronger, then the color depth of the first interface image is more shallow;The first interface image is drawn, and shows the first interface image.Implementing the embodiment of the present invention, user is not required to carry out cumbersome operation to carry out Interface Control manually, and terminal device can automatically select suitable interface image according to light intensity to be drawn, and it is convenient and time-saving, and then improve user experience.

Description

A kind of interface control method and device Technical field
The present invention relates to field of terminal technology, in particular to a kind of interface control method and device.
Background technique
With the development of terminal technology, the terminal devices such as smart phone, tablet computer are widely popularized.Terminal device can satisfy various demands such as people's office, amusement, communication, in addition to this, in order to bring the more personalized user experience of user, terminal device often can change the pattern and style at interface, such as replacement wallpaper, application icon, input method skin, locking screen interface.The interfacial effect of multiplicity allows user to show individual character by terminal device, and more pleasant user experience is brought to user.However change the pattern at interface and the operation of style, it is often comparatively laborious time-consuming, for example, if user wants replacement input method skin, firstly the need of downloading installation kit manual from input method skin provider, after installation kit is installed, the input method skin of downloading is found in set interface and is selected, to complete the replacement of input method skin.The process of above-mentioned replacement input method skin needs user to carry out the operation of multiple steps, very complicated.
Summary of the invention
The embodiment of the invention provides a kind of interface control method and devices, it is drawn for making terminal device automatically select suitable interface image according to light intensity, it saves user and carries out the step of cumbersome manual operation carries out Interface Control, it is convenient and time-saving, and then improve user experience.
First aspect of the embodiment of the present invention discloses a kind of interface control method, comprising:
Terminal device receives first object operation, needs to draw interface image if responding the first object operation, it is determined that whether Interface Control function has been switched on;
If so, judging current time whether in effectual time;
If so, obtaining the light intensity of the terminal device current environment by hardware device;
Light intensity according to the current environment determines the first interface image;The light intensity of the current environment is stronger, then the color depth of first interface image is more shallow;
First interface image is drawn, and shows first interface image.
Determine that the first interface image is drawn according to the light intensity of current environment, the light intensity of current environment is stronger, then the color depth of the first interface image is more shallow, and the color of the interface image thus drawn can be with Current light intensity is mutually echoed, and the stimulation to eyes of user is reduced.
As an alternative embodiment, the object of the Interface Control includes:
At least one of in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and the input method skin that the terminal device is shown.The above-mentioned object enumerated is the component part of user interface, and carrying out Interface Control to it can be enhanced the personalization level of terminal device.
As an alternative embodiment, after display first interface image, the method also includes:
The terminal device receives the second object run, if response second object run needs to close first interface image, closes the hardware device for obtaining the light intensity of the terminal device current environment.After closing first interface image, terminal device is not needed with Interface Control function, thus closes the hardware device, helps the energy consumption for reducing terminal device.
As an alternative embodiment, the light intensity according to the current environment determines the first interface image, comprising:
If the light intensity of the current environment is more than to preset strong photo threshold, the terminal device selects the interface image of light color as first interface image;If the light intensity of the current environment is lower than default dim light threshold value, the terminal device selects the dark interface image for being as first interface image;Alternatively,
The terminal device determines the light intensity section where the light intensity of the current environment;Select interface image corresponding with the light intensity section where the light intensity of the current environment as first interface image.
First interface image that the present embodiment determines, color can mutually be echoed with current light intensity, the stimulation to eyes of user be reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
As an alternative embodiment, the light intensity according to the current environment determines the first interface image, comprising:
If the light intensity of the current environment presets strong photo threshold more than described, the terminal device selects text color and background color to compare strong interface image as first interface image;If the light intensity of the current environment is lower than the default dim light threshold value, the terminal device selects text color and background color to compare soft interface image as first interface image.
First interface image that the present embodiment determines, user does not see the text in interface image when can be too strong to avoid ambient light intensity;And ambient light intensity it is weaker when, text color and background color, which compare soft interface image, can reduce stimulation to eyes of user.
As an alternative embodiment, the hardware device of the light intensity for obtaining the terminal device current environment includes: at least one in ambient light sensor, camera and illuminance transducer.By any one or a combination thereof in the sensor, the accurate light intensity for obtaining terminal device current environment.
As an alternative embodiment, the effectual time is the night hours for being currently located ground.The variation of the light intensity of day time natural environment is very rapid, if therefore during the day between interface is controlled according to light intensity if, will cause and switch excessively frequent problem.The night hours for being currently located ground are thus determined as effectual time, can be to avoid excessively frequent switching the problem of.
Second aspect of the embodiment of the present invention discloses a kind of interface control device, comprising:
First receiving unit, for receiving first object operation;
First determination unit, for determining whether Interface Control function has been switched on when the response first object operation needs to draw interface image;
Judging unit, for judging current time whether in effectual time when the Interface Control function has been switched on;
Acquiring unit obtains the light intensity of the terminal device current environment by hardware device in the case where for current time in the effectual time;
Second determination unit, for determining the first interface image according to the light intensity of the current environment;The light intensity of the current environment is stronger, then the color depth of first interface image is more shallow;
Drawing unit, for drawing first interface image;
Display unit, for showing first interface image.
Determine that the first interface image is drawn according to the light intensity of current environment, the light intensity of current environment is stronger, then the color depth of the first interface image is more shallow, and the color for the interface image thus drawn can mutually be echoed with current light intensity, reduces the stimulation to eyes of user.
As an alternative embodiment, the object of the Interface Control includes:
At least one of in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and the input method skin that the terminal device is shown.The above-mentioned object enumerated is the component part of user interface, and carrying out Interface Control to it can be enhanced the personalization level of terminal device.
As an alternative embodiment, described device further include:
Second receiving unit, for receiving the second object run;
Closing unit, for when responding second object run and needing to close first interface image, Close the hardware device for obtaining the light intensity of the terminal device current environment.After closing first interface image, terminal device is not needed with Interface Control function, thus closes the hardware device, helps the energy consumption for reducing terminal device.
As an alternative embodiment, second determination unit, comprising:
First choice subelement, for selecting the interface image of light color as first interface image when the light intensity of the current environment is more than to preset strong photo threshold;When the light intensity of the current environment is lower than default dim light threshold value, select the dark interface image for being as first interface image;Alternatively,
Determine subelement, the light intensity section where light intensity for determining the current environment;Second selection subelement, for selecting interface image corresponding with the light intensity section where the light intensity of the current environment as first interface image.
First interface image that the present embodiment determines, color can mutually be echoed with current light intensity, the stimulation to eyes of user be reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
As an alternative embodiment, second determination unit, comprising:
Third selects subelement, for when the light intensity of the current environment be more than it is described preset strong photo threshold when, select text color and background color to compare strong interface image as first interface image;When the light intensity of the current environment is lower than the default dim light threshold value, text color and background color is selected to compare soft interface image as first interface image.
First interface image that the present embodiment determines, user does not see the text in interface image when can be too strong to avoid ambient light intensity;And ambient light intensity it is weaker when, text color and background color, which compare soft interface image, can reduce stimulation to eyes of user.
As an alternative embodiment, the hardware device of the light intensity for obtaining the terminal device current environment includes: at least one in ambient light sensor, camera and illuminance transducer.By any one or a combination thereof in the sensor, the accurate light intensity for obtaining terminal device current environment.
As an alternative embodiment, the effectual time is the night hours for being currently located ground.The variation of the light intensity of day time natural environment is very rapid, if therefore during the day between interface is controlled according to light intensity if, will cause and switch excessively frequent problem.The night hours for being currently located ground are thus determined as effectual time, can be to avoid excessively frequent switching the problem of.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, terminal device works as front ring before drawing interface image, by obtaining terminal device The light intensity in border determines the interface image of drafting;The light intensity of current environment is stronger, then the color depth for being selected for drawing the first interface image of interface image is more shallow.It can be seen that implementing the embodiment of the present invention, user is not required to carry out cumbersome operation to carry out Interface Control manually, and terminal device can automatically select suitable interface image according to light intensity to be drawn, convenient and time-saving, and then improves user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, attached drawing needed in describing below to embodiment is briefly introduced, apparently, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art, without any creative labor, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of interface control method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another interface control method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structural schematic diagram of interface control device disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram of another interface control device disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal device disclosed by the embodiments of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be describe below in further detail with reference to the accompanying drawings, it is clear that the described embodiments are only some of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, all other embodiment obtained by those of ordinary skill in the art without making creative efforts, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of interface control method and devices, it is drawn for making terminal device automatically select suitable interface image according to light intensity, it saves user and carries out the step of cumbersome manual operation carries out Interface Control, it is convenient and time-saving, and then improve user experience.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of interface control method disclosed by the embodiments of the present invention.Wherein, interface control method shown in FIG. 1 may comprise steps of:
101, terminal device receives first object operation, if response first object operation needs to draw interface image, it is determined that whether Interface Control function has been switched on.
In the embodiment of the present invention, terminal device can be the various terminal devices with display screen, including mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), point-of-sale terminal (Point Of Sales, POS) etc., the embodiment of the present invention is subsequent not to be repeated.
In the embodiment of the present invention, has the function of Interface Control setting in terminal device, user can be according to their needs, it chooses whether to open Interface Control function, if opening the Interface Control function, terminal device may be implemented that interface image is selected and drawn automatically according to the light intensity of current environment.
In the embodiment of the present invention, the object of above-mentioned Interface Control includes: at least one in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and input method skin that terminal device is shown.It is then directed to different Interface Control objects, corresponding first object operation is different.For example, if Interface Control object is that input method skin responds the instruction and need to draw entering method keyboard image, then terminal device determines whether Interface Control function has been switched on when terminal device receives the instruction of pull-up input method;If Interface Control object is that wallpaper should mutually instruct when terminal device receives wake-up screen or returns to wallpaper interface instructions and need to draw wallpaper image, then terminal device determines whether Interface Control function has been switched on.
102, if so, judging current time whether in effectual time.
In the embodiment of the present invention, above-mentioned effectual time is the night hours for being currently located ground.Between during the day, the variation of available light is compared with horn of plenty, such as cloudy or cloudy weather, the variation of the light intensity of natural environment where terminal device is very rapid, therefore during the day between if interface is controlled according to light intensity if, it will cause and switch excessively frequent problem, influence the usage experience of user, and increase the power consumption of terminal device.Therefore, in embodiments of the present invention, the night hours that terminal device is currently located ground are set by effectual time, at night, the light of environment is generated by artificial light sources mostly where terminal device, such as indoor light or the street lamp of outdoor, light intensity changes infrequently, thus can determine selected interface image according to light intensity and carry out the drafting of interface image.
103, if so, obtaining the light intensity of terminal device current environment by hardware device.
In the embodiment of the present invention, the hardware device of the light intensity of above-mentioned acquisition terminal device current environment can be with are as follows: ambient light sensor, camera and illuminance transducer, which kind of specifically used hardware device, the embodiment of the present invention is with no restriction.
104, the light intensity according to above-mentioned current environment determines the first interface image.
In the embodiment of the present invention, the light intensity according to current environment determines the first interface image, which is the interface image for being subsequently used for drawing.Wherein, the light intensity of current environment is stronger, then the color depth of the first interface image is more shallow, thus the color of interface image can mutually be echoed with current light intensity, the stimulation to eyes of user is reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
As a kind of optional embodiment, it is interface image library that light color interface image library and dark color are preset in terminal device, if the light intensity of current environment is more than to preset strong photo threshold, terminal device randomly chooses the interface image of a light color as the first interface image from light color interface image library;If the light intensity of current environment is lower than default dim light threshold value, terminal device is that the interface image of a dark system is randomly choosed in interface image library as the first interface image from dark color.
As another optional embodiment, light intensity meter is stored in terminal device, it would be possible to light intensity range be divided into more than one light intensity section, and the corresponding at least a interface image in each light intensity section.After terminal device obtains the light intensity of current environment by ambient light sensor etc., by being compared with above-mentioned light intensity meter, it determines the light intensity section where the light intensity of current environment, selects interface image corresponding with the light intensity section where the light intensity of current environment as the first interface image later.
105, above-mentioned first interface image is drawn, and shows above-mentioned first interface image.
In the embodiment of the present invention, after the light intensity according to current environment has determined above-mentioned first interface image, terminal device draws above-mentioned first interface image, and shows above-mentioned first interface image, to obtain the operation that user carries out on this interface.
In the method depicted in fig. 1, terminal device can automatically select the interface image mutually echoed with light intensity according to the light intensity of current environment and be drawn and be shown, it eliminates user and is operated manually the tedious steps for carrying out Interface Control, user experience is more preferable;At the same time, it can mutually be echoed with current light intensity according to the color of the interface image of the method replacement, the stimulation to eyes of user be reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
Referring to Fig. 2, Fig. 2 is the flow diagram of another interface control method disclosed by the embodiments of the present invention.As shown in Fig. 2, this method may comprise steps of:
201, terminal device receives first object operation, if response first object operation needs to draw interface image, it is determined that whether Interface Control function has been switched on.
In the embodiment of the present invention, the object of above-mentioned Interface Control includes: at least one in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and input method skin that terminal device is shown.It is then directed to different Interface Control objects, corresponding first object operation is different.For example, if Interface Control object is that input method skin responds the instruction and need to draw entering method keyboard image, then terminal device determines whether Interface Control function has been switched on when terminal device receives the instruction of pull-up input method;If Interface Control object is wallpaper, terminal device, which receives, wakes up screen or return wallpaper circle When face instructs, responds the instruction and need to draw wallpaper image, then terminal device determines whether Interface Control function has been switched on.
202, if so, judging current time whether in effectual time.
In the embodiment of the present invention, above-mentioned effectual time is the night hours for being currently located ground.Between during the day, the variation of available light is compared with horn of plenty, such as cloudy or cloudy weather, the variation of the light intensity of natural environment where terminal device is very rapid, therefore during the day between if interface is controlled according to light intensity if, it will cause and switch excessively frequent problem, influence the usage experience of user, and increase the power consumption of terminal device.Therefore, in embodiments of the present invention, the night hours that terminal device is currently located ground are set by effectual time, at night, the light of environment is generated by artificial light sources mostly where terminal device, such as indoor light or the street lamp of outdoor, light intensity changes infrequently, thus can determine selected interface image according to light intensity and carry out the drafting of interface image.
203, if so, obtaining the light intensity of terminal device current environment by hardware device.
In the embodiment of the present invention, the hardware device of the light intensity of above-mentioned acquisition terminal device current environment can be with are as follows: ambient light sensor, camera and illuminance transducer, which kind of specifically used hardware device, the embodiment of the present invention is with no restriction.
204, the light intensity according to above-mentioned current environment determines the first interface image.
In the embodiment of the present invention, the light intensity according to current environment determines the first interface image, which is the interface image for being subsequently used for drawing.Wherein, the light intensity of current environment is stronger, then the color depth of the first interface image is more shallow, thus the color of interface image can mutually be echoed with current light intensity, the stimulation to eyes of user is reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
As an alternative embodiment, terminal device selects text color and background color to compare strong interface image as the first interface image if the light intensity of current environment is more than to preset strong photo threshold;If the light intensity of current environment is lower than default dim light threshold value, terminal device selects text color and background color to compare soft interface image as the first interface image.
The meaning of above-mentioned measure is taken to be, (more than strong photo threshold is preset) in the stronger situation of light intensity of current environment, whole style is selected to come for the interface image of light color for user's presentation, the color of interface image can mutually be echoed with current light intensity, help to reduce the stimulation to eyes of user.However, the visual characteristic based on human eye, in the stronger situation of received light intensity, it will affect perception of the human eye to details, thus, if the text in interface image is equally light color, if lacking comparison with background color, user may not see the text in interface image.Therefore, totality style is chosen as light color, and text color and bottom As the first interface image, the method that can be used as a compromise had both reduced the stimulation to eyes of user to a certain extent, and had in turn avoided the generation for the case where user does not see the text in interface image the strong interface image of colour contrast.
Wherein, comparing text color from background color can be realized strongly by different interface color matching methods, such as rgb value is selected to differ biggish two kinds of colors as text color and background color, for example select positive red (rgb value 255,0,0) as the text color in interface image, ivory white (rgb value 250 is selected, 255,240) it is used as interface image background color.
And it corresponds, in the case where the light intensity of current environment is weaker, when human eye has preferable perception for details, style strong in contrast with the text color of interface image and background color are arranged is not needed then, therefore, if the light intensity of current environment is lower than default dim light threshold value, terminal device selects text color and background color to compare soft interface image as the first interface image.Make text color and background color compare it is soft again may be by a variety of interface color matching methods and realize, such as select two kinds of colors of same colour system as text color and background color.
205, above-mentioned first interface image is drawn, and shows above-mentioned first interface image.
206, terminal device receives the second object run, if the second object run of response needs to close above-mentioned first interface image, closes the hardware device for obtaining the light intensity of terminal device current environment.
In the embodiment of the present invention, when terminal device receives the second object run, and the second object run needs to close above-mentioned first interface image, terminal device can accordingly close the hardware device for obtaining the light intensity of current environment, to reduce power consumption.For example, if terminal device receives the instruction of lock-screen, the instruction is so that terminal device needs to close the interface image currently shown, thus terminal device can accordingly close the hardware device (such as ambient light sensor) for obtaining current environment light intensity, to help the electricity for saving terminal device.
In the method depicted in fig. 2, terminal device can automatically select the interface image mutually echoed with light intensity according to the light intensity of current environment and be drawn and be shown, it eliminates user and is operated manually the tedious steps for carrying out Interface Control, user experience is more preferable;At the same time, in the stronger situation of light intensity of terminal device current environment, strongly according to the text color of the interface image of the method replacement and background color comparison, the case where can not seeing text in interface image clearly in the stronger situation of ambient light to avoid user generation.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of interface control device disclosed by the embodiments of the present invention.As shown in figure 3, the apparatus may include:
First receiving unit 301, for receiving first object operation.
First determination unit 302, for determining whether Interface Control function has been switched on when the above-mentioned first object operation of response needs to draw interface image.
In the embodiment of the present invention, it is directed to different Interface Control objects, corresponding first object operation is different.For example, if Interface Control object is that input method skin responds the instruction and need to draw entering method keyboard image when the first receiving unit 301 receives the instruction of pull-up input method, then the first determination unit 302 determines whether Interface Control function has been switched on;If Interface Control object is that wallpaper responds the instruction and need to draw wallpaper image when the first receiving unit 301 receives wake-up screen or returns to wallpaper interface instructions, then the first determination unit 302 determines whether Interface Control function has been switched on.
Above-mentioned Interface Control object includes: at least one in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and input method skin that terminal device is shown.
Judging unit 303, for judging current time whether in effectual time when above-mentioned Interface Control function has been switched on.
In the embodiment of the present invention, above-mentioned effectual time is the night hours for being currently located ground.Between during the day, the variation of available light is compared with horn of plenty, such as cloudy or cloudy weather, the variation of the light intensity of natural environment where terminal device is very rapid, therefore during the day between if interface is controlled according to light intensity if, it will cause and switch excessively frequent problem, influence the usage experience of user, and increase the power consumption of terminal device.Therefore, in embodiments of the present invention, the night hours that terminal device is currently located ground are set by effectual time, at night, the light of environment is generated by artificial light sources mostly where terminal device, such as indoor light or the street lamp of outdoor, light intensity changes infrequently, thus can determine selected interface image according to light intensity and carry out the drafting of interface image.
In the case where for current time in above-mentioned effectual time, the light intensity of terminal device current environment is obtained by hardware device for acquiring unit 304.
In the embodiment of the present invention, the hardware device of the light intensity of above-mentioned acquisition terminal device current environment can be with are as follows: ambient light sensor, camera and illuminance transducer, which kind of specifically used hardware device, the embodiment of the present invention is with no restriction.
Second determination unit 305, for determining the first interface image according to the light intensity of above-mentioned current environment.
In the embodiment of the present invention, the light intensity according to current environment determines the first interface image, which is the interface image for being subsequently used for drawing.Wherein, the light intensity of current environment is stronger, then the color depth of the first interface image is more shallow, thus the color of interface image can mutually be echoed with current light intensity, the stimulation to eyes of user is reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
As a kind of optional embodiment, it is interface image library that light color interface image library and dark color are preset in terminal device, if the light intensity of current environment is more than to preset strong photo threshold, the second determination unit 305 randomly chooses the interface image of a light color as the first interface image from light color interface image library;If the light intensity of current environment is lower than default dim light threshold value, the second determination unit 305 is that the interface image of a dark system is randomly choosed in interface image library as the first interface image from dark color.
Drawing unit 306, for drawing above-mentioned first interface image.
Display unit 307, for showing above-mentioned first interface image.
Utilize device described in Fig. 3, terminal device can be made to automatically select the interface image mutually echoed with light intensity according to the light intensity of current environment to be drawn and shown, it eliminates user and is operated manually the tedious steps for carrying out Interface Control, user experience is more preferable;At the same time, it can mutually be echoed with current light intensity according to the color of the interface image of the method replacement, the stimulation to eyes of user be reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
Referring to Figure 4 together, Fig. 4 is the structural schematic diagram of another interface control device disclosed by the embodiments of the present invention.Wherein, device shown in Fig. 4 is that device as shown in Figure 3 optimizes, compared with device shown in Fig. 3, device shown in Fig. 4 further include:
Second receiving unit 308, for receiving the second object run.
Closing unit 309, for closing the hardware device for obtaining the light intensity of terminal device current environment when above-mentioned second object run of response needs to close the first interface image.
In the embodiment of the present invention, when the second receiving unit 308 receives the second object run, and the second object run needs to close above-mentioned first interface image, closing unit 309 can accordingly close the hardware device for obtaining the light intensity of current environment, to reduce power consumption.For example, if the second receiving unit 308 receives the instruction of lock-screen, the instruction is so that terminal device needs to close the interface image currently shown, thus closing unit 309 can accordingly close the hardware device (such as ambient light sensor) for obtaining current environment light intensity, to help the electricity for saving terminal device.
As an alternative embodiment, the second determination unit 305, comprising:
Third selects subelement 3051, for selecting text color and background color to compare strong interface image as the first interface image when the light intensity of current environment is more than to preset strong photo threshold;When the light intensity of current environment is lower than default dim light threshold value, text color and background color is selected to compare soft interface image as the first interface image.
Using device described in Fig. 4, terminal device can be made to be selected automatically according to the light intensity of current environment It selects the interface image mutually echoed with light intensity to be drawn and shown, eliminates user and be operated manually the tedious steps for carrying out Interface Control, user experience is more preferable;At the same time, in the stronger situation of the light intensity of current environment, strong, the case where can not seeing text in interface image clearly in the stronger situation of ambient light to avoid user generation is compared according to the text color of the interface image of the method replacement and background color.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of terminal device disclosed by the embodiments of the present invention.As shown in figure 5, the terminal device may include:
The components such as input unit 501, processor unit 502, output unit 503, communication unit 504, storage unit 505 and power supply 506.These components are communicated by one or more bus.It will be appreciated by those skilled in the art that, the structure of device shown in fig. 5 does not constitute a limitation of the invention simultaneously, it is either busbar network, it is also possible to hub-and-spoke configuration, it can also include component more more or fewer than structure shown in fig. 5, perhaps certain components or different component layouts are combined.In embodiments of the present invention, terminal device shown in fig. 5 includes but is not limited to the various terminal equipments such as mobile phone, removable computer, tablet computer, personal digital assistant (Personal Digital Assistant, PDA).
Input unit 501 is for realizing the interaction of user and terminal device and/or information input into terminal device.In the specific embodiment of the invention, input unit 501 can be touch panel, and touch panel is also referred to as touch screen or touch screen, and collectable user touches on it or close operational motion.For example user drives corresponding attachment device using the operational motion of the positions of any suitable object or attachment on touch panel or close to touch panel such as finger, stylus, and according to preset formula.Optionally, touch panel may include both touch detecting apparatus and touch controller.Wherein, the touch operation of touch detecting apparatus detection user, and the touch operation that will test is converted to electric signal, and sends electric signal to touch controller;Touch controller receives electric signal from touch detecting apparatus, and is converted into contact coordinate, then gives processor unit 502.Touch controller can also receive the order that processor unit 502 is sent and execution.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray (Infrared) and surface acoustic waves.In addition to this, in the specific embodiment of the invention, input unit 501 can also be ambient light sensor, to obtain the light intensity of terminal device current environment.
Processor unit 502 is the control centre of terminal device, utilize the various pieces of various interfaces and the entire terminal device of connection, by running or executing the program code being stored in storage unit 505 and/or module, and the data being stored in storage unit 505 are called, to execute the various functions and/or processing data of terminal device.Processor unit can be made of integrated circuit (Integrated Circuit, abbreviation IC), such as the IC that can be encapsulated by single be formed, can also be by connecting more identical functions or different function It encapsulates IC and forms.For example, processor unit 502 can only include central processing unit (Central ProcessingUnit, abbreviation CPU), it is also possible to CPU, digital signal processor (digital signal processor, abbreviation DSP), the combination of graphics processor (Graphic Processing Unit, abbreviation GPU) and the control chip (such as baseband chip) in communication unit.In embodiments of the present invention, CPU can be single operation core, also may include multioperation core.
Output unit 503 can include but is not limited to image output unit, sound output and sense of touch output unit.Image output unit is used for output character, picture and/or video.Image output unit may include display panel, for example, by using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode), the forms such as Field Emission Display (field emission display, abbreviation FED) are the display panel that configures.Or image output unit may include reflected displaying device, such as electrophoresis-type (electrophoretic) display, or the display using interference of light modulation tech (Interferometric Modulation of Light).Image output unit may include individual monitor or various sizes of multiple displays.In a specific embodiment of the invention, the display panel that touch panel used by above-mentioned input unit 501 also can simultaneously as output unit 503.Such as, the visual output of display panel offer QWERTY keyboard, user operates touch panel using finger or stylus etc. according to the visual information seen, after touch panel detects touch or close gesture operation on it, it determines position indicated by touch or close to gestures, sends processor unit 502 to and obtain the character of the position on mapping keyboard to form input password.Although in Fig. 5, input unit 501 and output unit 503 are to output and input function as two independent components come realize terminal device, but it is in some embodiments it is possible to touch panel and display panel is integrated and that realizes terminal device output and input function.For example, image output unit can show QWERTY keyboard, so that user is operated by touch control manner.
Communication unit 504 makes terminal device establish connection by communication linkage and intelligent glasses, realizes data interaction between the two for establishing communication linkage.Communication unit 504 may include WLAN (Wireless Local Area Network, abbreviation wireless LAN) module, bluetooth module, wireless near field communication (Near Field Communication, abbreviation NFC), wireless communication modules and the Ethernet, universal serial bus (Universal Serial Bus such as base band (Base Band) module, abbreviation USB), the wire communication modules such as lightning interface (Lightning, Apple is for the equipment such as iPhone6/6s at present).
Storage unit 505 can be used for storing program code and module, and processor unit 502 is stored in the program code and module of storage unit 505 by operation, thereby executing the various function application and realization data processing of terminal.Storage unit 505 mainly includes program storage area and data storage area, wherein program is deposited Storage area can program code needed for storage program area, at least one function, for example obtain the character that shows on mapping keyboard to form the program code of input password;Data storage area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to terminal device.In the specific embodiment of the invention, storage unit 505 may include volatile memory, such as non-volatile dynamic random access memory (Nonvolatile RandomAccess Memory, abbreviation NVRAM), phase change random access memory (Phase Change RAM, abbreviation PRAM), magnetic-resistance random access memory (Magetoresistive RAM, abbreviation MRAM) etc., it can also include nonvolatile memory, a for example, at least disk memory, electronics, which can erase, can plan read-only memory (Electrically Erasable ProgrammableRead-OnlyMemory, abbreviation EEPR OM), flush memory device, such as anti-or flash memory (NOR flash memory) or anti-and flash memory (NAND flash memory).Nonvolatile storage stores operating system and program code performed by processor unit.Processor unit is stored in mass storage from nonvolatile storage load operating program and data to memory and by digital content.Operating system includes such as memory management, storage equipment control, power management etc. for controlling and manage general system tasks, and facilitates the various assemblies communicated between various software and hardwares and/or driver.In embodiments of the present invention, operating system can be the android system of Google company, Windows operating system etc. of the iOS system of Apple company exploitation or Microsoft Corporation exploitation or this kind of embedded OS of Vxworks.
Power supply 506 is used to be powered to the different components of terminal device to maintain its operation.Understand as generality, power supply 506 can be built-in battery, such as common lithium ion battery, nickel-metal hydride battery etc., also include directly to external power supply of power terminal equipment, such as AC adapter etc..In certain embodiments of the present invention, power supply 506 can also be made more widely to define, it such as can also include power-supply management system, charging system, power failure detection circuit, power adapter or inverter, power supply status indicator (such as light emitting diode), and generated with the electric energy of mobile terminal, manage and be distributed other associated any components.
In terminal device shown in Fig. 5, processor unit 502 can call the program code stored in storage unit 505, for performing the following operations:
It receives first object using input unit 501 to operate, if response first object operation needs to draw interface image, it is determined that whether Interface Control function has been switched on;
If so, judging current time whether in effectual time;
If so, obtaining the light intensity of terminal device current environment by input unit 501;
Light intensity according to current environment determines the first interface image;The light intensity of current environment is stronger, Then the color depth of the first interface image is more shallow;
Above-mentioned first interface image is drawn, and above-mentioned first interface image is shown by output unit 503.
As an alternative embodiment, processor unit 502 can call the program code stored in storage unit 505, it is also used to execute following operation:
The second object run is received using input unit 501, if the second object run of response needs to close the first interface image, closes the hardware device for obtaining the light intensity of terminal device current environment.
As another optional embodiment, the above-mentioned light intensity according to current environment determines the first interface image, comprising:
If the light intensity of current environment is more than to preset strong photo threshold, select the interface image of light color as the first interface image;If the light intensity of current environment is lower than default dim light threshold value, select the dark interface image for being as the first interface image;Alternatively,
Determine the light intensity section where the light intensity of current environment;Select interface image corresponding with the light intensity section where the light intensity of current environment as the first interface image.
In the terminal device described in Fig. 5, terminal device can automatically select the interface image mutually echoed with light intensity according to the light intensity of current environment and be drawn and be shown, it eliminates user and is operated manually the tedious steps for carrying out Interface Control, user experience is more preferable;At the same time, it can mutually be echoed with current light intensity according to the color of the interface image of the method replacement, the stimulation to eyes of user be reduced, if not allowing to be also easy to produce visual fatigue when user's long period using terminal equipment.
It is worth noting that, above-mentioned apparatus is only divided according to the functional logic, but it is not limited to the above division, as long as corresponding functions can be realized;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing that all or part of the steps in above-mentioned each method embodiment is that relevant hardware can be instructed to complete by program, corresponding program can store in a kind of computer readable storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above is only the preferable specific embodiments of the present invention; but scope of protection of the present invention is not limited thereto; anyone skilled in the art is in the technical scope that the embodiment of the present invention discloses, and any changes or substitutions that can be easily thought of, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

  1. A kind of interface control method characterized by comprising
    Terminal device receives first object operation, needs to draw interface image if responding the first object operation, it is determined that whether Interface Control function has been switched on;
    If so, judging current time whether in effectual time;
    If so, obtaining the light intensity of the terminal device current environment by hardware device;
    Light intensity according to the current environment determines the first interface image;The light intensity of the current environment is stronger, then the color depth of first interface image is more shallow;
    First interface image is drawn, and shows first interface image.
  2. Method according to claim 1, which is characterized in that the object of the Interface Control includes:
    At least one of in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and the input method skin that the terminal device is shown.
  3. Method according to claim 2, which is characterized in that after display first interface image, the method also includes:
    The terminal device receives the second object run, if response second object run needs to close first interface image, closes the hardware device for obtaining the light intensity of the terminal device current environment.
  4. Method according to claim 3, which is characterized in that the light intensity according to the current environment determines the first interface image, comprising:
    If the light intensity of the current environment is more than to preset strong photo threshold, the terminal device selects the interface image of light color as first interface image;If the light intensity of the current environment is lower than default dim light threshold value, the terminal device selects the dark interface image for being as first interface image;Alternatively,
    The terminal device determines the light intensity section where the light intensity of the current environment;Select interface image corresponding with the light intensity section where the light intensity of the current environment as first interface image.
  5. Method according to claim 4, which is characterized in that the light intensity according to the current environment determines the first interface image, comprising:
    If the light intensity of the current environment presets strong photo threshold more than described, the terminal device selects text color and background color to compare strong interface image as first interface image;If the light intensity of the current environment is lower than the default dim light threshold value, the terminal device selects text color and background color to compare soft interface image as first interface image.
  6. Method according to claim 4, which is characterized in that the hardware device of the light intensity for obtaining the terminal device current environment includes: at least one in ambient light sensor, camera and illuminance transducer.
  7. Method according to claim 4, which is characterized in that the effectual time is the night hours for being currently located ground.
  8. A kind of interface control device characterized by comprising
    First receiving unit, for receiving first object operation;
    First determination unit, for determining whether Interface Control function has been switched on when the response first object operation needs to draw interface image;
    Judging unit, for judging current time whether in effectual time when the Interface Control function has been switched on;
    Acquiring unit obtains the light intensity of the terminal device current environment by hardware device in the case where for current time in the effectual time;
    Second determination unit, for determining the first interface image according to the light intensity of the current environment;The light intensity of the current environment is stronger, then the color depth of first interface image is more shallow;
    Drawing unit, for drawing first interface image;
    Display unit, for showing first interface image.
  9. Device according to claim 8, which is characterized in that the object of the Interface Control includes:
    At least one of in wallpaper, application icon, locking screen interface, menu bar background, navigation bar background, dialog box skin and the input method skin that the terminal device is shown.
  10. Device according to claim 9, which is characterized in that described device further include:
    Second receiving unit, for receiving the second object run;
    Closing unit, for closing the hardware device for obtaining the light intensity of the terminal device current environment when response second object run needs to close first interface image.
  11. Device according to claim 10, which is characterized in that second determination unit, comprising:
    First choice subelement, for selecting the interface image of light color as first interface image when the light intensity of the current environment is more than to preset strong photo threshold;When the light intensity of the current environment is lower than default dim light threshold value, select the dark interface image for being as first interface image;Alternatively,
    Determine subelement, the light intensity section where light intensity for determining the current environment;The Two selection subelements, for selecting interface image corresponding with the light intensity section where the light intensity of the current environment as first interface image.
  12. Device according to claim 11, which is characterized in that second determination unit, comprising:
    Third selects subelement, for when the light intensity of the current environment be more than it is described preset strong photo threshold when, select text color and background color to compare strong interface image as first interface image;When the light intensity of the current environment is lower than the default dim light threshold value, text color and background color is selected to compare soft interface image as first interface image.
  13. Device according to claim 11, which is characterized in that the hardware device of the light intensity for obtaining the terminal device current environment includes: at least one in ambient light sensor, camera and illuminance transducer.
  14. Device according to claim 11, which is characterized in that the effectual time is the night hours for being currently located ground.
CN201680088149.7A 2016-08-19 2016-08-19 A kind of interface control method and device Pending CN109564503A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/096019 WO2018032500A1 (en) 2016-08-19 2016-08-19 Interface control method and apparatus

Publications (1)

Publication Number Publication Date
CN109564503A true CN109564503A (en) 2019-04-02

Family

ID=61196270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680088149.7A Pending CN109564503A (en) 2016-08-19 2016-08-19 A kind of interface control method and device

Country Status (2)

Country Link
CN (1) CN109564503A (en)
WO (1) WO2018032500A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309578A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Web page display method and terminal
CN104378688A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Mode switching method and device
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system
US20150269709A1 (en) * 2012-09-26 2015-09-24 Lenovo (Beijing) Co., Ltd. Display Method And Electronic Apparatus
CN105278907A (en) * 2015-06-27 2016-01-27 维沃移动通信有限公司 Display method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150269709A1 (en) * 2012-09-26 2015-09-24 Lenovo (Beijing) Co., Ltd. Display Method And Electronic Apparatus
CN103309578A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Web page display method and terminal
CN104378688A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Mode switching method and device
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system
CN105278907A (en) * 2015-06-27 2016-01-27 维沃移动通信有限公司 Display method and mobile terminal

Also Published As

Publication number Publication date
WO2018032500A1 (en) 2018-02-22

Similar Documents

Publication Publication Date Title
US11262709B2 (en) Method of configuring watch screen and wearable electronic device implementing same
TWI643121B (en) Method and terminal device for displaying objects
CN106020990B (en) Control method of central processing unit and terminal equipment
RU2677595C2 (en) Application interface presentation method and apparatus and electronic device
US11968482B2 (en) Method for displaying dynamic image and terminal
KR20240032765A (en) Display apparatus and control method thereof
US11237710B2 (en) Multi-function slide control
US10204593B2 (en) Display apparatus and method for controlling the same
US10402625B2 (en) Intelligent electronic device and method of operating the same
EP3009816B1 (en) Method and apparatus for adjusting color
KR102121021B1 (en) Apparatas and method for changing a setting value in an electronic device
KR101968950B1 (en) Method for displaying graphic user interface and apparatus thereof
US20140149931A1 (en) Information processing apparatus and display control method
CN116233306A (en) Control method for screen-off display and terminal equipment
CN108958633A (en) Multi-screen display method, device, storage medium and electronic equipment
TW201721357A (en) Automatically adjusting display areas to reduce power consumption
KR20200112378A (en) Electronic device having two display surfaces and method for operating a display thereof
CN106325675B (en) Icon placing method and terminal equipment
CN106227052A (en) A kind of intelligent home furnishing control method and device
CN106814932A (en) A kind of desktop wallpaper display methods and terminal
EP2800025A1 (en) Portable terminal and method for protecting a displayed object
CN105204603A (en) Mobile terminal picture taking method and device and mobile picture taking terminal
KR102192155B1 (en) Method and apparatus for providing application information
CN106598448A (en) Input method management method and terminal
CN107408004A (en) A kind of graphic user interface on method, information processor, portable electric appts and the portable electric appts that information is presented in locking screen interface

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
TA01 Transfer of patent application right

Effective date of registration: 20210430

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190402

RJ01 Rejection of invention patent application after publication