Copyright 2010-2017 Obihai Technology, Inc.
If an attribute is not specified in <style>, it inherits the value from the
same attribute in <SoftKeyStyles>
Optional: width, height,
xpos, ypos, font, size,
textcolor, align, valign,
hidden
This optional child element of <style> specifies the style to render the
label (text) of the soft key. It inherts the following attributes from its
ancestors: font, size, textcolor
Optional: width, height,
xpos, ypos, font, size,
textcolor, align, valign,
hidden,src
This optional child element of <style> specifies the style to render the
icon of the soft key.
Attributes in a <SoftKeyStyles> XML
<SoftKeyStyles>,
<style>, <label>, <icon>
x position of the upper left corner pixel of the bounding box within the
parent bounding box
<SoftKeyStyles>,
<style>, <label>, <icon>
y position of the upper left corner pixel of the bounding box within the
parent bounding box
Horizontal alignment of the widget within its own bounding box. Note
that the bounding box’s own location within its parent bounding box is
determined by the xpos and ypos attributes
Vertical alignment of the widget within its own bounding box
<SoftKeyStyles>,
<style>, <label>, <icon>
Width of the bounding box
<SoftKeyStyles>,
<style>, <label>, <icon>
Height of the bounding box
Background color or color pattern. Note that if bgimg is specified and
available, it will cover the background color.
Example:
<style bgimg="" hlimg="" hlcolor="black"
bgcolor="$eval($alert?{red,black,1}:{white,black,1})">
Note that in the example we set bgimg and hlimg to empty string to
remove overwrite the default bgimg or hlimg, otherwise the bgcolor and
hlcolor will be covered.
Background color or color pattern when the key is highlighted or
pressed. Note that if hlimg is specified and available, it will cover the
background color when the key is hightlighted or pressed.
Background image. It can be an internal path or a http/https URL
Background image to show when the soft key is highlighted or pressed.
It can be an internal path or http/https URL
The ID to refer to this style in a custom soft key configuration
<SoftKeyStyles>,
<style>, <label>
Text font (the value must be either "@gfont" or "@gfont-bold")
<SoftKeyStyles>,
<style>, <label>
<SoftKeyStyles>,
<style>, <label>
The default is “0” means no border around the bounding box. “n” means
a border of n-pixel around the bounding box
The color of the border to draw around the bounding box of the widget
Overwrites the soft key icon’s file path or URL