[英]How can I change the font size of hackerskeyboard project?
我安裝了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”,但是沒有任何反應,如何減小此項目中的字體大小?
我用以下方法解決了我的問題
<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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.