自定义SoftKeyboard:表情符号弹出窗口没有显示最后一行

时间:2014-07-12 23:12:01

标签: android android-layout android-keypad

我正在创建一个自定义键盘,当我长按表情符号时,弹出布局会截断最后一行,如下面的屏幕截图所示。我将如何让它显示最后一行? 这是我的 popup_smileys.xml 文件:

<?xml version="1.0" encoding="utf-8"?>
<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
    android:keyWidth="15%p"
    android:horizontalGap="0px"
    android:verticalGap="0px"
    android:keyHeight="@dimen/key_height"
    >
    <Row android:rowEdgeFlags="top">
        <Key android:keyLabel="o_O" android:keyOutputText="o_O " android:keyEdgeFlags="left" />
        <Key android:keyLabel="&lt;3" android:keyOutputText="&lt;3 "/>
        <Key android:keyLabel="x-(" android:keyOutputText="x-( "/>
        <Key android:keyLabel=":-/" android:keyOutputText=":-/ "/>
        <Key android:keyLabel=":-I" android:keyOutputText=":-I " android:keyEdgeFlags="right" />
    </Row>
    <Row>
        <Key android:keyLabel=":-D" android:keyOutputText=":-D " android:keyEdgeFlags="left" />
        <Key android:keyLabel=":'(" android:keyOutputText=":'( "/>
        <Key android:keyLabel=":-\\" android:keyOutputText=":-\\ "/>
        <Key android:keyLabel="O:-)" android:keyOutputText="O:-) "/>
        <Key android:keyLabel=":-[" android:keyOutputText=":-[ " android:keyEdgeFlags="right" />
    </Row>
    <Row>
        <Key android:keyLabel=":-!" android:keyOutputText=":-! " android:keyEdgeFlags="left" />
        <Key android:keyLabel=":-$" android:keyOutputText=":-$ "/>
        <Key android:keyLabel="B-)" android:keyOutputText="B-) "/>
        <Key android:keyLabel=":O" android:keyOutputText=":O "/>
        <Key android:keyLabel=":-*" android:keyOutputText=":-* " android:keyEdgeFlags="right" />
    </Row>
    <Row android:rowEdgeFlags="bottom">
        <Key android:keyLabel="=-O" android:keyOutputText="=-O " android:keyEdgeFlags="left" />
        <Key android:keyLabel=":-P" android:keyOutputText=":-P "/>
        <Key android:keyLabel=";-)" android:keyOutputText=";-) "/>
        <Key android:keyLabel=":-(" android:keyOutputText=":-( "/>
        <Key android:keyLabel=":-)" android:keyOutputText=":-) " android:keyEdgeFlags="right" />
    </Row>
</Keyboard>

popup_smileys.xml

0 个答案:

没有答案