0

我安装了https://code.google.com/p/hackerskeyboard/项目并将以下行添加到文件 kbd_full.xml

  <Row  >
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="GMAIL"
                android:keyOutputText="GMAIL"
                android:keyWidth="10.0%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="Hotmail"
                android:keyOutputText="Hotmail"
                android:keyWidth="19.0%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="YAHOO"
                android:keyOutputText="YAHOO"

                android:keyWidth="19.0%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="LIVE"
                android:keyOutputText="LIVE"
                android:keyWidth="13.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="MAIL"
                android:keyOutputText="MAIL"
                android:keyWidth="13.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="\@"
                android:keyOutputText="\@"
                android:keyWidth="12.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel=".COM"
                android:keyOutputText=".COM"
                android:keyWidth="13.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel=".CO.UK"
                android:keyOutputText=".CO.UK"
                android:keyWidth="17.0%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel=".EU"
                android:keyOutputText=".EU"
                android:keyWidth="13.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="-"
                android:keyOutputText="-"
                android:keyWidth="13.185714%p" />
            <Key
                android:horizontalGap="1.1%p"
                android:keyLabel="_"
                android:keyOutputText="_"
                android:keyWidth="13.185714%p" />
        </Row>

但它看起来很大,所以我想减小这一行的字体大小,我试图改变属性 android:labelTextSize="6dp" 但没有任何反应,我怎样才能减少这个项目的字体大小?

4

1 回答 1

0

我使用以下方法解决了我的问题

 <Row  android:rowEdgeFlags="top"   android:keyHeight="4%p"     android:horizontalGap="1.8%p">
        <Key
             android:codes="300"

            android:keyIcon="@drawable/icon_gmail"
            android:keyOutputText="gmail"
             />
        <Key
            android:codes="301"

             android:keyOutputText="hotmail"
            android:keyIcon="@drawable/icon_hotmail" />
        <Key
             android:codes="302"

            android:keyOutputText="yahoo"
           android:keyIcon="@drawable/icon_yahoo"

            />


      <Key
           android:codes="303"

            android:keyIcon="@drawable/icon_live"
            android:keyOutputText="live"
            />
        <Key
               android:codes="304"

             android:keyIcon="@drawable/icon_mail"
            android:keyOutputText="mail"
           />
        <Key
               android:codes="305"

              android:keyIcon="@drawable/icon_at"
            android:keyOutputText="\@"
           />
        <Key
               android:codes="306"

             android:keyIcon="@drawable/icon_com"
            android:keyOutputText=".com"
            />
        <Key
               android:codes="307"

            android:keyIcon="@drawable/icon_co_uk"
            android:keyOutputText=".co.uk"
            />
        <Key
               android:codes="308"

           android:keyIcon="@drawable/icon_eu"
            android:keyOutputText=".eu"
            />
        <Key
               android:codes="309"

             android:keyIcon="@drawable/icon_dash"
            android:keyOutputText="-"
           />
        <Key
               android:codes="310"

            android:keyIcon="@drawable/icon_underscore"
            android:keyOutputText="_"
            />
     </Row>

并且有图标 https://docs.google.com/file/d/0B01ew9ECCvc8eVZYVTVzZVhvNUk/edit?usp=sharing

于 2013-02-06T10:15:11.570 回答