自定义键盘中的间距

Acu*_*a66 8 android android-keypad

制作自定义键盘时,我可以使用android:horizontalGap="6.25%p.
如何获得尾随空格(右侧空格)来获得键的前导空格(左侧空格)?

Rit*_*une 5

android:horizontalGap="6.25%p.
Run Code Online (Sandbox Code Playgroud)

它创建了间隙,它位于携带horizontalGap属性的键之前. 即.键的前导空间(左侧空格).

例如.

<Row>        
    <Key android:codes="69"    android:keyLabel="E" android:horizontalGap="6.25%p" />
    <Key android:codes="70"    android:keyLabel="F" />        
</Row>
Run Code Online (Sandbox Code Playgroud)

现在添加一个horizontalGap(在键盘级别上)大于0,horizontalGap(在Key级别)不再创建一个间隙,但现在在带有该horizontalGap属性的键之后. 即.密钥的尾随空格(右侧空格)