327763e518
This change introduces the following features to Keyboard XML format. * "keyXPos" can specify the key X coordinate directly. * "keyXPos" can be negative. The X coordinate will be calcluated from the right edge of the keyboard toward left. * "keyWidth" can be zero to be filled up to the right side. * "keyWidth can be negative. The key will be filled up to both sides. * Spacer's horizontalGap is renamed as keyWidth, and can be inherited from key-style. * Spacer can have keyXPos attribute. Using these syntax, all keyboard layouts have been re-written. Cherry-Pick: I314b2e8ca2aa145ff9506cbf927140a15685af42 Bug: 4442045 Change-Id: I048fe5eaef020d8472ab577e9d326042bae2f3fa
106 lines
3 KiB
XML
106 lines
3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
/*
|
||
**
|
||
** Copyright 2011, The Android Open Source Project
|
||
**
|
||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||
** you may not use this file except in compliance with the License.
|
||
** You may obtain a copy of the License at
|
||
**
|
||
** http://www.apache.org/licenses/LICENSE-2.0
|
||
**
|
||
** Unless required by applicable law or agreed to in writing, software
|
||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
** See the License for the specific language governing permissions and
|
||
** limitations under the License.
|
||
*/
|
||
-->
|
||
|
||
<!-- This file for Hebrew layout is an alpha version. It allows to enter -->
|
||
<!-- some right-to-left text, but it has gone through no study whatsoever, -->
|
||
<!-- and needs to be run through UX. -->
|
||
<merge
|
||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||
>
|
||
<include
|
||
latin:keyboardLayout="@xml/kbd_key_styles" />
|
||
<Row
|
||
latin:rowEdgeFlags="top"
|
||
>
|
||
<Key
|
||
latin:keyLabel="ק"
|
||
latin:keyXPos="5%p"
|
||
latin:keyEdgeFlags="left" />
|
||
<Key
|
||
latin:keyLabel="ר" />
|
||
<Key
|
||
latin:keyLabel="א" />
|
||
<Key
|
||
latin:keyLabel="ט" />
|
||
<Key
|
||
latin:keyLabel="ו" />
|
||
<Key
|
||
latin:keyLabel="ן" />
|
||
<Key
|
||
latin:keyLabel="ם" />
|
||
<Key
|
||
latin:keyLabel="פ" />
|
||
<Key
|
||
latin:keyStyle="deleteKeyStyle"
|
||
latin:keyWidth="fillRight"
|
||
latin:visualInsetsLeft="1%p"
|
||
latin:keyEdgeFlags="right" />
|
||
</Row>
|
||
<Row>
|
||
<Key
|
||
latin:keyLabel="ש"
|
||
latin:keyEdgeFlags="left" />
|
||
<Key
|
||
latin:keyLabel="ד" />
|
||
<Key
|
||
latin:keyLabel="ג" />
|
||
<Key
|
||
latin:keyLabel="כ" />
|
||
<Key
|
||
latin:keyLabel="ע" />
|
||
<Key
|
||
latin:keyLabel="י" />
|
||
<Key
|
||
latin:keyLabel="ח" />
|
||
<Key
|
||
latin:keyLabel="ל" />
|
||
<Key
|
||
latin:keyLabel="ך" />
|
||
<Key
|
||
latin:keyLabel="ף"
|
||
latin:keyWidth="fillRight"
|
||
latin:keyEdgeFlags="right" />
|
||
</Row>
|
||
<Row>
|
||
<Key
|
||
latin:keyLabel="ז"
|
||
latin:keyXPos="5%p"
|
||
latin:keyEdgeFlags="left" />
|
||
<Key
|
||
latin:keyLabel="ס" />
|
||
<Key
|
||
latin:keyLabel="ב" />
|
||
<Key
|
||
latin:keyLabel="ה" />
|
||
<Key
|
||
latin:keyLabel="נ" />
|
||
<Key
|
||
latin:keyLabel="מ" />
|
||
<Key
|
||
latin:keyLabel="צ" />
|
||
<Key
|
||
latin:keyLabel="ת" />
|
||
<Key
|
||
latin:keyLabel="ץ"
|
||
latin:keyEdgeFlags="right" />
|
||
<!-- Here is 5%p space -->
|
||
</Row>
|
||
<include latin:keyboardLayout="@xml/kbd_qwerty_row4" />
|
||
</merge>
|