Android:在软键盘输入法中省略一个键的文本 在普通文本视图等中,我们可以通过命令省略文本: android:ellipsize=“” 我正在定制android的软键盘。我想知道这是一种省略键盘键的方法吗? 我的代码是:
我正在定制android的软键盘。我想知道这是一种省略键盘键的方法吗?我正在动态地将文本添加到键,但文本会从键边界流出。Android:在软键盘输入法中省略一个键的文本 在普通文本视图等中,我们可以通过命令省略文本: android:ellipsize=“” 我正在定制android的软键盘。我想知道这是一种省略键盘键的方法吗? 我的代码是:,android,android-layout,keyboard,android-softkeyboard,ime,Android,Android Layout,Keyboard,Android Softkeyboard,Ime,我正在定制android的软键盘。我想知道这是一种省略键盘键的方法吗?我正在动态地将文本添加到键,但文本会从键边界流出。 我想省略号键。您不能省略号键,因为它有标签,而不是文本。这不是一种简单的方法,但您可以按照您希望的方式为每个键创建图像,然后在键盘中输入: In normal textview etc we can ellipsize the text by command: android:ellipsize="" I am customizing the android's sof
我想省略号键。您不能省略号键,因为它有标签,而不是文本。这不是一种简单的方法,但您可以按照您希望的方式为每个键创建图像,然后在键盘中输入:
In normal textview etc we can ellipsize the text by command:
android:ellipsize=""
I am customizing the android's soft keyboard. I want to know that is their a way to ellipsize the key of keyboard?
My code is:
<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
android:horizontalGap="1px"
android:keyHeight="@dimen/key_height"
android:keyWidth="10%p"
android:verticalGap="-5%p" >
<!-- android:verticalGap="@dimen/verticalGap" > -->
<Row>
<Key
android:codes="555555"
android:horizontalGap="1.5%p"
android:isRepeatable="true"
android:keyEdgeFlags="left"
android:keyHeight="@dimen/mic_key_height"
android:keyIcon="@drawable/voice_input"
android:keyWidth="28.5%p" />
<Key
android:codes="111111"
android:ellipsize="end"
android:horizontalGap="2%p"
android:keyEdgeFlags="right"
android:keyHeight="@dimen/templates_key_height"
android:keyWidth="67%p" />
</Row>
<Row>
<Key
android:codes="222222"
android:ellipsize="end"
android:horizontalGap="32%p"
android:keyEdgeFlags="right"
android:keyHeight="@dimen/templates_key_height"
android:keyWidth="67%p" />
</Row>
<Row>
<Key
android:codes="333333"
android:ellipsize="end"
android:horizontalGap="32%p"
android:keyEdgeFlags="right"
android:keyHeight="@dimen/templates_key_height"
android:keyWidth="67%p" />
</Row>
<Row>
<Key
android:codes="777777"
android:ellipsize="end"
android:horizontalGap="32%p"
android:keyEdgeFlags="right"
android:keyHeight="@dimen/templates_key_height"
android:keyWidth="67%p" />
</Row>
<Row>
<Key
android:codes="666666"
android:horizontalGap="1.5%p"
android:isModifier="true"
android:keyEdgeFlags="left"
android:keyHeight="@dimen/templates_key_height"
android:keyIcon="@drawable/voice_keyboard_enable"
android:keyWidth="28.5%p"
android:verticalGap="1.5%p" />
<Key
android:codes="444444"
android:horizontalGap="1.7%p"
android:keyEdgeFlags="right"
android:keyHeight="@dimen/templates_key_height"
android:keyLabel="@string/more_templates"
android:keyWidth="67%p"
android:verticalGap="1%p" />
</Row>
</Keyboard>
帮助我。。如果问题不完整或缺少某些信息,请让我知道。。。。。。。
android:keyIcon=""