Fix xml tag in comment

Bug: 6620122
Change-Id: I2852f77d78b242c1a96c53cdd1e4c0e299f8ea4f
main
Tadashi G. Takaoka 2012-06-06 10:35:44 -07:00
parent 21b782cf22
commit 2bf014d2a8
1 changed files with 41 additions and 41 deletions

View File

@ -422,67 +422,67 @@ public class Keyboard {
* This class parses Keyboard XML file and eventually build a Keyboard. * This class parses Keyboard XML file and eventually build a Keyboard.
* The Keyboard XML file looks like: * The Keyboard XML file looks like:
* <pre> * <pre>
* &gt;!-- xml/keyboard.xml --&lt; * &lt;!-- xml/keyboard.xml --&gt;
* &gt;Keyboard keyboard_attributes*&lt; * &lt;Keyboard keyboard_attributes*&gt;
* &gt;!-- Keyboard Content --&lt; * &lt;!-- Keyboard Content --&gt;
* &gt;Row row_attributes*&lt; * &lt;Row row_attributes*&gt;
* &gt;!-- Row Content --&lt; * &lt;!-- Row Content --&gt;
* &gt;Key key_attributes* /&lt; * &lt;Key key_attributes* /&gt;
* &gt;Spacer horizontalGap="32.0dp" /&lt; * &lt;Spacer horizontalGap="32.0dp" /&gt;
* &gt;include keyboardLayout="@xml/other_keys"&lt; * &lt;include keyboardLayout="@xml/other_keys"&gt;
* ... * ...
* &gt;/Row&lt; * &lt;/Row&gt;
* &gt;include keyboardLayout="@xml/other_rows"&lt; * &lt;include keyboardLayout="@xml/other_rows"&gt;
* ... * ...
* &gt;/Keyboard&lt; * &lt;/Keyboard&gt;
* </pre> * </pre>
* The XML file which is included in other file must have &gt;merge&lt; as root element, * The XML file which is included in other file must have &lt;merge&gt; as root element,
* such as: * such as:
* <pre> * <pre>
* &gt;!-- xml/other_keys.xml --&lt; * &lt;!-- xml/other_keys.xml --&gt;
* &gt;merge&lt; * &lt;merge&gt;
* &gt;Key key_attributes* /&lt; * &lt;Key key_attributes* /&gt;
* ... * ...
* &gt;/merge&lt; * &lt;/merge&gt;
* </pre> * </pre>
* and * and
* <pre> * <pre>
* &gt;!-- xml/other_rows.xml --&lt; * &lt;!-- xml/other_rows.xml --&gt;
* &gt;merge&lt; * &lt;merge&gt;
* &gt;Row row_attributes*&lt; * &lt;Row row_attributes*&gt;
* &gt;Key key_attributes* /&lt; * &lt;Key key_attributes* /&gt;
* &gt;/Row&lt; * &lt;/Row&gt;
* ... * ...
* &gt;/merge&lt; * &lt;/merge&gt;
* </pre> * </pre>
* You can also use switch-case-default tags to select Rows and Keys. * You can also use switch-case-default tags to select Rows and Keys.
* <pre> * <pre>
* &gt;switch&lt; * &lt;switch&gt;
* &gt;case case_attribute*&lt; * &lt;case case_attribute*&gt;
* &gt;!-- Any valid tags at switch position --&lt; * &lt;!-- Any valid tags at switch position --&gt;
* &gt;/case&lt; * &lt;/case&gt;
* ... * ...
* &gt;default&lt; * &lt;default&gt;
* &gt;!-- Any valid tags at switch position --&lt; * &lt;!-- Any valid tags at switch position --&gt;
* &gt;/default&lt; * &lt;/default&gt;
* &gt;/switch&lt; * &lt;/switch&gt;
* </pre> * </pre>
* You can declare Key style and specify styles within Key tags. * You can declare Key style and specify styles within Key tags.
* <pre> * <pre>
* &gt;switch&lt; * &lt;switch&gt;
* &gt;case mode="email"&lt; * &lt;case mode="email"&gt;
* &gt;key-style styleName="f1-key" parentStyle="modifier-key" * &lt;key-style styleName="f1-key" parentStyle="modifier-key"
* keyLabel=".com" * keyLabel=".com"
* /&lt; * /&gt;
* &gt;/case&lt; * &lt;/case&gt;
* &gt;case mode="url"&lt; * &lt;case mode="url"&gt;
* &gt;key-style styleName="f1-key" parentStyle="modifier-key" * &lt;key-style styleName="f1-key" parentStyle="modifier-key"
* keyLabel="http://" * keyLabel="http://"
* /&lt; * /&gt;
* &gt;/case&lt; * &lt;/case&gt;
* &gt;/switch&lt; * &lt;/switch&gt;
* ... * ...
* &gt;Key keyStyle="shift-key" ... /&lt; * &lt;Key keyStyle="shift-key" ... /&gt;
* </pre> * </pre>
*/ */