Fix xml tag in comment
Bug: 6620122 Change-Id: I2852f77d78b242c1a96c53cdd1e4c0e299f8ea4f
This commit is contained in:
parent
21b782cf22
commit
2bf014d2a8
1 changed files with 41 additions and 41 deletions
|
@ -422,67 +422,67 @@ public class Keyboard {
|
|||
* This class parses Keyboard XML file and eventually build a Keyboard.
|
||||
* The Keyboard XML file looks like:
|
||||
* <pre>
|
||||
* >!-- xml/keyboard.xml --<
|
||||
* >Keyboard keyboard_attributes*<
|
||||
* >!-- Keyboard Content --<
|
||||
* >Row row_attributes*<
|
||||
* >!-- Row Content --<
|
||||
* >Key key_attributes* /<
|
||||
* >Spacer horizontalGap="32.0dp" /<
|
||||
* >include keyboardLayout="@xml/other_keys"<
|
||||
* <!-- xml/keyboard.xml -->
|
||||
* <Keyboard keyboard_attributes*>
|
||||
* <!-- Keyboard Content -->
|
||||
* <Row row_attributes*>
|
||||
* <!-- Row Content -->
|
||||
* <Key key_attributes* />
|
||||
* <Spacer horizontalGap="32.0dp" />
|
||||
* <include keyboardLayout="@xml/other_keys">
|
||||
* ...
|
||||
* >/Row<
|
||||
* >include keyboardLayout="@xml/other_rows"<
|
||||
* </Row>
|
||||
* <include keyboardLayout="@xml/other_rows">
|
||||
* ...
|
||||
* >/Keyboard<
|
||||
* </Keyboard>
|
||||
* </pre>
|
||||
* The XML file which is included in other file must have >merge< as root element,
|
||||
* The XML file which is included in other file must have <merge> as root element,
|
||||
* such as:
|
||||
* <pre>
|
||||
* >!-- xml/other_keys.xml --<
|
||||
* >merge<
|
||||
* >Key key_attributes* /<
|
||||
* <!-- xml/other_keys.xml -->
|
||||
* <merge>
|
||||
* <Key key_attributes* />
|
||||
* ...
|
||||
* >/merge<
|
||||
* </merge>
|
||||
* </pre>
|
||||
* and
|
||||
* <pre>
|
||||
* >!-- xml/other_rows.xml --<
|
||||
* >merge<
|
||||
* >Row row_attributes*<
|
||||
* >Key key_attributes* /<
|
||||
* >/Row<
|
||||
* <!-- xml/other_rows.xml -->
|
||||
* <merge>
|
||||
* <Row row_attributes*>
|
||||
* <Key key_attributes* />
|
||||
* </Row>
|
||||
* ...
|
||||
* >/merge<
|
||||
* </merge>
|
||||
* </pre>
|
||||
* You can also use switch-case-default tags to select Rows and Keys.
|
||||
* <pre>
|
||||
* >switch<
|
||||
* >case case_attribute*<
|
||||
* >!-- Any valid tags at switch position --<
|
||||
* >/case<
|
||||
* <switch>
|
||||
* <case case_attribute*>
|
||||
* <!-- Any valid tags at switch position -->
|
||||
* </case>
|
||||
* ...
|
||||
* >default<
|
||||
* >!-- Any valid tags at switch position --<
|
||||
* >/default<
|
||||
* >/switch<
|
||||
* <default>
|
||||
* <!-- Any valid tags at switch position -->
|
||||
* </default>
|
||||
* </switch>
|
||||
* </pre>
|
||||
* You can declare Key style and specify styles within Key tags.
|
||||
* <pre>
|
||||
* >switch<
|
||||
* >case mode="email"<
|
||||
* >key-style styleName="f1-key" parentStyle="modifier-key"
|
||||
* <switch>
|
||||
* <case mode="email">
|
||||
* <key-style styleName="f1-key" parentStyle="modifier-key"
|
||||
* keyLabel=".com"
|
||||
* /<
|
||||
* >/case<
|
||||
* >case mode="url"<
|
||||
* >key-style styleName="f1-key" parentStyle="modifier-key"
|
||||
* />
|
||||
* </case>
|
||||
* <case mode="url">
|
||||
* <key-style styleName="f1-key" parentStyle="modifier-key"
|
||||
* keyLabel="http://"
|
||||
* /<
|
||||
* >/case<
|
||||
* >/switch<
|
||||
* />
|
||||
* </case>
|
||||
* </switch>
|
||||
* ...
|
||||
* >Key keyStyle="shift-key" ... /<
|
||||
* <Key keyStyle="shift-key" ... />
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue