繁体   English   中英

调整自定义键盘的键盘视图的行宽

[英]adjusting row width of keyboard view of custom keyboard

我在android中创建自定义键盘,并且卡在视图中。

 <Row>
    <Key android:keyLabel="a" android:codes="97"/>
    <Key android:keyLabel="s" android:codes="115"/>
    <Key android:keyLabel="d" android:codes="100"/>
    <Key android:keyLabel="f" android:codes="102"/>
    <Key android:keyLabel="g" android:codes="103"/>
    <Key android:keyLabel="h" android:codes="104"/>
    <Key android:keyLabel="j" android:codes="106"/>
    <Key android:keyLabel="k" android:codes="107"/>
    <Key android:keyLabel="l" android:codes="108" />
</Row>

这是一行,因此呈现。

在此处输入图片说明

我希望空间消失,并使整个行居中对齐,即最左边的字母“ a”必须以某种方式具有边距,而最右边的“ l”必须以右侧为边距。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM