Android Softkeyboard Popup-Ansicht bei langem Tastendruck
Ich entwickle eine Android-Tastatur:
public class CustomKeyboard extends Keyboard{...}
public class CustomKeyboardView extends KeyboardView{...}
public class CustomKeyboardIME extends InputMethodService implements KeyboardView.OnKeyboardActionListener{...}
uf einigen Tasten habe ich popupKeyboard und popupCharacters:
<Key android:codes="144" android:keyLabel="0" android:popupKeyboard="@xml/key_popup" android:popupCharacters=")" android:keyEdgeFlags="right"/>
xml / key_popup.xml:
<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
android:keyWidth="10%p"
android:horizontalGap="0px"
android:verticalGap="0px"
android:keyHeight="@dimen/key_height" >
Aber wenn ich lange auf "0" drücke, wird Popup mit ")" angezeigt, aber es bleibt dort, bis ich die "X" -Taste oder das ")" -Zeichen drücke.
Und ich möchte, dass es nur geöffnet wird, während ich einen Finger darauf halte. So etwas wie auf der iPhone-Tastatur:
Kann jemand helfen?
Vielen Dank!