我在创作自己的工作时遇到过这种情况,Keyboard但不能为我的生活记住我遇到过它的地方.
我想要打开数字键盘.但是,我希望我EditText只接受IP地址.EditText由于这个答案,为我添加过滤器并不太难.
但是,现在我想打开数字键盘而不是标准文本键盘.不幸的是,搜索结果已经饱和了"你如何限制EditText数字输入?" 一遍又一遍的问题.
任何人都可以指向我正确的地方手动打开数字键盘.
我有Activity单身Fragment就可以了.EditText片段上有一个.
一旦片段显示,键盘就会弹出,但我设法在清单android中阻止它设置:windowSoftInputMode ="stateHidden"
但是,还有一个按钮,用于打开另一个EditText的对话框.
我有一个方法可以在对话框关闭时自动关闭键盘.
public static void closeInput(final View caller) {      
    caller.post(new Runnable() {
        @Override
        public void run() {
            InputMethodManager imm = (InputMethodManager) caller.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
            imm.hideSoftInputFromWindow(caller.getWindowToken(), InputMethodManager.HIDE_IMPLICIT_ONLY);
        }
    });
}
这个方法不是很糟糕,而且有些不对劲.Dialog EditText有inputType="numberDecimal".在closeInput()似乎不关闭键盘时,仅将其改为默认的字母排列状态.
这里发生了什么?
我希望我的Android设备上的菜单键打开一个对话框,而不是在我的应用程序运行时打开菜单.我尝试将其编入,onCreateOptionsMenu(Menu menu)但它仅在我第一次按下菜单按钮时起作用.我可以用其他方式吗?
我想在android中使用自定义键盘.我已经在github上提到了更多的例子和看过的源代码但是,找不到任何关于滑动功能的相关参考.现在我想要功能性,如果用户想要编写Hello World那么它应该只刷在那些单词上,就像在某些设备中一样它默认给出.所以,任何人都可以对此有任何想法或建议,因为我第一次面对这种类型的要求.提前致谢.下面这张图片是我真正想要的.
android android-custom-view android-keypad android-softkeyboard
我正在尝试使用软键盘检测德语变音。为了识别输入的字符,我使用了方法onKeyUp()。但是这种方法不适用于德语变音。  
有没有办法让我认出他们?
我想检测当前用户手机是否有硬件键盘或只有屏幕键盘.这可能与SDK有关吗?
当我点击下面显示的edittext时,我在软android键盘上设置了一个Ok键:
 <EditText
            android:id="@+id/rlMP3SeekContainer"
            android:layout_width="0dp"
            android:layout_height="40dp"
            android:layout_weight="1"
            android:background="@drawable/text_rougea"
            android:singleLine="true" 
            android:imeOptions="actionDone"
            android:ems="10"
            android:hint="@string/hint_deezer_search"
            android:paddingLeft="@dimen/eight_dp"
            android:paddingRight="@dimen/eight_dp"
            android:textColor="@color/black"
            android:textColorHint="@color/gray_text"
            android:textSize="@dimen/twelve_sp" />
当键盘出现时,我希望用户在单击"确定"按钮时执行某些操作.但我怎么能覆盖键盘上的确定按钮来做我想做的事情
我有一些关于EditText字段的对话框.当我想填补一些EditText键盘打开,我无法填写上面的一些字段.我应该关闭键盘,然后点击EditText上面.如何在键盘打开时使对话框可滚动以避免关闭键盘?
在Android中输入编辑文本字段时,需要删除下划线。对于名字,编辑文本的首字母应为大写,以便于给出textCapSentences,但在我的情况下,我在edittext字段中看到下划线。如何删除?
我尝试了所有的组合 textFilter|textNoSuggestions|textCapSentences
它是我的名字编辑文字:
    <EditText
        android:id="@+id/signup_lname"
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:background="@color/signup_layer_bg2"
        android:ems="10"
        android:gravity="center"
        android:hint="@string/signup_lname"
        android:imeOptions="actionDone"
        android:inputType="textFilter|textNoSuggestions|textCapSentences"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:singleLine="true"
        android:textColor="@android:color/white"
        android:textColorHint="@android:color/white"
        android:textCursorDrawable="@drawable/custom_cursor" />
我的萤幕: