草庐IT

KeyBoard

全部标签

android - 显示键盘时屏幕布局向上移动

假设我有以下布局:当我点击底部的编辑文本时,我得到了这个:您可以注意到顶部的图像向上移动,整个布局移动。这是我的这个布局的xml:我还在list文件中为此Activity设置了这个:android:windowSoftInputMode="adjustPan"那么有没有办法在显示键盘时阻止我的布局移动?谢谢!!!! 最佳答案 尝试使用android:windowSoftInputMode="adjustPan|adjustResize"Activity。 关于android-显示键盘时屏

android - 显示键盘时屏幕布局向上移动

假设我有以下布局:当我点击底部的编辑文本时,我得到了这个:您可以注意到顶部的图像向上移动,整个布局移动。这是我的这个布局的xml:我还在list文件中为此Activity设置了这个:android:windowSoftInputMode="adjustPan"那么有没有办法在显示键盘时阻止我的布局移动?谢谢!!!! 最佳答案 尝试使用android:windowSoftInputMode="adjustPan|adjustResize"Activity。 关于android-显示键盘时屏

android - 出现键盘时向上滚动屏幕

IhaveanactivitywithaneditTextinthemiddle.WhenIclickontheeditTextthekeyboardappears,andthescreenmovessothattheeditTextisjustabovethekeyboard,coveringtheotherstuffthatisbelow.Idon'twanttoresizeoraddpaddingtothelayout.IneedthatthescreenscrollstothetoptheamountofspacethatIneedtoseealsotheotherstuffb

android - 出现键盘时向上滚动屏幕

IhaveanactivitywithaneditTextinthemiddle.WhenIclickontheeditTextthekeyboardappears,andthescreenmovessothattheeditTextisjustabovethekeyboard,coveringtheotherstuffthatisbelow.Idon'twanttoresizeoraddpaddingtothelayout.IneedthatthescreenscrollstothetoptheamountofspacethatIneedtoseealsotheotherstuffb

android - 自定义 'Keyboard' 内置在 Android 上的应用程序中

我一直在寻找为我的应用程序创建自定义键盘。起初,我开始查看SDK示例的SoftKeyboard,但阅读Android开发人员组后,我看到了这篇文章:Thisisreallynothowtheinputmethodframeworkissupposedtowork.AnIMEshouldbeagenericinputfacility,notforaparticularapplication.Ifyouneedsomeapp-specificinput,youshouldbuilditintoyourUIratherthanpushingitouttoagenericIME.如何在UI中构

android - 自定义 'Keyboard' 内置在 Android 上的应用程序中

我一直在寻找为我的应用程序创建自定义键盘。起初,我开始查看SDK示例的SoftKeyboard,但阅读Android开发人员组后,我看到了这篇文章:Thisisreallynothowtheinputmethodframeworkissupposedtowork.AnIMEshouldbeagenericinputfacility,notforaparticularapplication.Ifyouneedsomeapp-specificinput,youshouldbuilditintoyourUIratherthanpushingitouttoagenericIME.如何在UI中构

android - setImeOptions : why the "Done" button does not show on the soft keyboard?

我尝试使用input.setImeOptions(EditorInfo.IME_ACTION_DONE)设置软键盘上的“完成”按钮;但“完成”按钮根本不显示在软键盘上。有什么建议吗?publicvoidmodif(intposition){AlertDialog.Builderalert=newAlertDialog.Builder(MainActivity.this);alert.setTitle("Modifica");EditTextinput=newEditText(MainActivity.this);input.setImeOptions(EditorInfo.IME_AC

android - setImeOptions : why the "Done" button does not show on the soft keyboard?

我尝试使用input.setImeOptions(EditorInfo.IME_ACTION_DONE)设置软键盘上的“完成”按钮;但“完成”按钮根本不显示在软键盘上。有什么建议吗?publicvoidmodif(intposition){AlertDialog.Builderalert=newAlertDialog.Builder(MainActivity.this);alert.setTitle("Modifica");EditTextinput=newEditText(MainActivity.this);input.setImeOptions(EditorInfo.IME_AC

android - 每当打开 AlertDialog.Builder 对象时显示软键盘

我打开输入对话框的代码如下:finalAlertDialog.Builderalert=newAlertDialog.Builder(this);alert.setTitle("DialogTitle");alert.setMessage("Requestinformation");LayoutInflaterfactory=LayoutInflater.from(this);finalViewtextEntryView=factory.inflate(R.layout.edittextautotextlayout,null);finalEditTextinputBox=(EditTe

android - 每当打开 AlertDialog.Builder 对象时显示软键盘

我打开输入对话框的代码如下:finalAlertDialog.Builderalert=newAlertDialog.Builder(this);alert.setTitle("DialogTitle");alert.setMessage("Requestinformation");LayoutInflaterfactory=LayoutInflater.from(this);finalViewtextEntryView=factory.inflate(R.layout.edittextautotextlayout,null);finalEditTextinputBox=(EditTe