Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide the customizable button control implementation method of a kind of multi-layer image based on Android system and system, be intended to solve the problem that existing HMI interface button control style is single, can not freely convert.
Technical scheme of the present invention is as follows:
The customizable button control implementation method of multi-layer image based on Android system, wherein, comprises step:
A, from palette the background color of select button control;
B, on background color make three layers of layer;
C, on the top layer of layer, make text box, for showing word;
D, on text box, make forbidden energy layer.
The described customizable button control of the multi-layer image based on Android system implementation method, wherein, if under button control is in the state of pinning, then the bottom in three layers of layer is translucent shape, if be in non-pin state under, then the bottom in three layers of layer is opaque shape.
The described customizable button control of the multi-layer image based on Android system implementation method, wherein, in described steps A, when selecting background color from palette, current interface is divided into two viewing areas, left and right, the preview interface of on the left side display area background color, viewing area shows the palette of multiple color on the right; When palette receives selection instruction, on the left side viewing area is updated to the preview interface of selected color.
The customizable button control of multi-layer image based on Android system realizes a system, wherein, comprising:
Select module, for the background color of select button control from palette;
Layer makes module, for making three layers of layer on background color;
Text box makes module, for making text box on the top layer of layer, for showing word;
Forbidden energy layer makes module, for making forbidden energy layer on text box.
The customizable button control of the described multi-layer image based on Android system realizes system, wherein, if under button control is in the state of pinning, then the bottom in three layers of layer is translucent shape, if be in non-pin state under, then the bottom in three layers of layer is opaque shape.
The customizable button control of the described multi-layer image based on Android system realizes system, wherein, in described selection module, when selecting background color from palette, current interface is divided into two viewing areas, left and right, the preview interface of on the left side display area background color, viewing area shows the palette of multiple color on the right; When palette receives selection instruction, on the left side viewing area is updated to the preview interface of selected color.
Beneficial effect: the present invention can provide and realize user-defined button control, realizes self-defined effect by layer and translucent superposition, thus provides the button control be more simple and easy to for user.
Embodiment
The invention provides the customizable button control implementation method of a kind of multi-layer image based on Android system and system, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram of a kind of multi-layer image based on Android system of the present invention customizable button control implementation method preferred embodiment, and as shown in the figure, it comprises step:
S1, from palette the background color of select button control;
S2, on background color make three layers of layer;
S3, on the top layer of layer, make text box, for showing word;
S4, on text box, make forbidden energy layer.
In embodiments of the present invention, button control by by color layers, layer, text box and forbidden energy laminated become total display effect, because each layer can realize functions different separately, such as color layers can display background color, and layer then can the content of show layers, and text box can show word, forbidden energy layer then can show transparent available or forbid effect, so add the displaying contents of button control, add personalized content, avoid the display mode that legacy controls is single.
If under button control is in the state of pinning, then the bottom in three layers of layer is translucent shape, if be in non-pin state under, then the bottom in three layers of layer is opaque shape.By above-mentioned functions, can realize pinning situation or the non-different display effects pinned in situation, whether the current operation of prompting user is pinned, and avoids maloperation.
In addition, the content of three layers of layer can self-definedly be arranged, and the content of each layer is synthesized, and makes the content of button control abundanter.
The displaying contents of text frame can be the title of button control, also can self-defined title, so that user selects the content meeting self use habit, embodies the personalized life style of user.Text frame can be arranged on the bottom of button control, avoids the display affecting layer.
The effect of this forbidden energy layer changes along with the enable of button control or disabled state, under button control is in disabled state, then makes button control not respond touch click event by described forbidden energy layer, also do not respond the event pinned and activate; Under button is in enabled state, then this forbidden energy layer is transparent effect, can respond touch click event.
In described step S1, when selecting background color from palette, current interface is divided into two viewing areas, left and right, the preview interface of on the left side display area background color, viewing area shows the palette of multiple color on the right; When palette receives selection instruction, on the left side viewing area is updated to the preview interface of selected color.
When regulating background color, first can click background color and regulating button, sending the regulating command of background color; When navigation terminal system acceptance is to the regulating command of background color, display screen (current interface) is divided into two viewing areas, left and right, two viewing areas respectively account for half, the preview interface of on the left side viewing area display background, and viewing area shows the palette of multiple color on the right; It is selective that this palette has 16 kinds of colors, comprises red, yellow, blue, green, purple, grey, orange etc.Particularly, palette is arranged multiple color block, each color block has different colors, owing to there being 16 kinds of colors selective above, so color block should have 16 mutually, and size shape is identical, proper alignment, as the mode according to 4 × 4 arranges (interval is all identical up and down).
When palette receives selection instruction, so on the left side viewing area is updated to the BACKGROUNDA preview interface of selected color, thus gives the effect of this selected color of user's preview color as a setting, is convenient to user and makes the selection more meeting demand.After choosing required background color, the confirmation instruction clicking below gets final product (representing in " √ " mode in the color block chosen).Viewing area, the left side is carried out reducing display by display interface, when needs full screen display, can click the preview interface of (as clicking) background color, like this can the effect of preview when normally using, and is convenient to user and determines whether to select this background color.Again click (as clicking) and then can turn back to previous status (viewing area, the left side).
The form of viewing area, the left side can be the position display " preview region " hit exactly up, below center position display " tap top picture can full-screen preview and determine ", in the preview interface of the position display background color at middle part.
This color layers also can arrange automatic shaping modes, and under automatic shaping modes, color layers will regulate automatically.Under this automatic shaping modes, can arrange and automatically change the color of color layers every 1 cycle.The cycle changed can be temporally arrange, such as, every 1 day or every 1 week.Certainly, also can change according to weather condition, obtain up-to-date weather condition, then select suitable color.
Based on said method, the present invention also provides the customizable button control of a kind of multi-layer image based on Android system to realize system preferred embodiment, and as shown in Figure 2, it comprises:
Select module 100, for the background color of select button control from palette;
Layer makes module 200, for making three layers of layer on background color;
Text box makes module 300, for making text box on the top layer of layer, for showing word;
Forbidden energy layer makes module 400, for making forbidden energy layer on text box.
Further, if under button control is in the state of pinning, then the bottom in three layers of layer is translucent shape, if be in non-pin state under, then the bottom in three layers of layer is opaque shape.
Further, in described selection module 100, when selecting background color from palette, current interface is divided into two viewing areas, left and right, the preview interface of on the left side display area background color, viewing area shows the palette of multiple color on the right; When palette receives selection instruction, on the left side viewing area is updated to the preview interface of selected color.
Ins and outs about above-mentioned modular unit are existing in method above to be described in detail, therefore repeats no more.
In sum, the present invention can provide and realize user-defined button control, realizes self-defined effect by layer and translucent superposition, thus provides the button control be more simple and easy to for user.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.