keyboard 的间隙详解

<Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="10%"
            android:horizontalGap="10%p"
            android:keyWidth="40%p"
            android:keyEdgeFlags="left"  />
        <Key android:codes="27941" android:keyLabel="10%"
            android:horizontalGap="10%p" android:keyWidth="40%p" />
    </Row>


    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="5%"
            android:horizontalGap="5%p" android:keyWidth="40%p"
            android:keyEdgeFlags="left"  />
        <Key android:codes="27941" android:keyLabel="10%"
            android:horizontalGap="10%p" android:keyWidth="40%p" />
    </Row>

    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="5%"
            android:horizontalGap="5%p" android:keyWidth="40%p"
            android:keyEdgeFlags="left"  />
        <Key android:codes="27941" android:keyLabel="5%"
            android:horizontalGap="5%p" android:keyWidth="40%p" />
    </Row>





    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="5%"
            android:horizontalGap="6.5%p" android:keyWidth="40%p"
            android:keyEdgeFlags="left"  />

        <Key android:codes="27941" android:keyLabel=""
            android:horizontalGap="0.2%p" android:keyWidth="0dp" />
        <Key android:codes="27941" android:keyLabel="5..%"
            android:horizontalGap="6.5%p" android:keyWidth="40%p" />
    </Row>




    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="7.5%"
            android:horizontalGap="7.5%p" android:keyWidth="40%p"
            />
        <Key android:codes="27941" android:keyLabel="7.5%"
            android:horizontalGap="7.5%p" android:keyWidth="40%p" />
    </Row>

    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="7.3%"
            android:horizontalGap="7.3%p" android:keyWidth="40%p"
            />
        <Key android:codes="27941" android:keyLabel="7.5%"
            android:horizontalGap="7.5%p" android:keyWidth="40%p" />
    </Row>




    <Row android:verticalGap="1.9%p">
        <Key android:codes="20140" android:keyLabel="0%"
            android:keyWidth="100%p"
            android:keyEdgeFlags="left"  />
    </Row>
image.png

间隙也就是两边的间隙,比如这里2个按钮一个占用了百分之80 那么屏幕的百分之20如何规划呢?
实际上应该让各自的边界都只有7.5% 然后中间 7.5x2=15 剩下的百分之5就是中间的,但是为什么图上面出现这种情况呢?我发现给按钮百分之百也是这样,所以问题不是出在这里了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值