我正在制作自定义键盘..现在我的问题是我想要按键自定义弹出窗口.那么,我可以改变吗?像这个图像的关键弹出窗口

如果有人知道这个,请帮帮我...
CapDroid
在TextBox输入中.输入密钥后,我想隐藏软键盘.怎么做代码?
private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
if (e.Key != Key.Enter)
return;
...}
Run Code Online (Sandbox Code Playgroud) 当编辑文本获得焦点后出现软键盘时,我试图调整布局。现在,如果我有很多编辑文本并且键盘出现,则最后一个编辑文本被隐藏并且我无法向上滚动。
这是我的布局是如何构建的:
模板:
<LinearLayout>
<LinearLayout>
// header 1
</LinearLayout>
<LinearLayout>
// header 1
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:orientation="vertical">
// where I inflate view_1
</LinearLayout>
<LinearLayout>
// footer
</LinearLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
视图 (view_1):
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true">
<LinearLayout>
// ...
</LinearLayout>
<LinearLayout>
// ...
</LinearLayout>
<LinearLayout>
<TextView/>
<EditText/>
<TextView/>
<EditText/>
<TextView/>
<EditText/>
<TextView/>
<EditText/>
</LinearLayout>
</LinearLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)
我已经尝试了android:windowSoftInputMode(在 manifest.xml 上和以编程方式)的各种组合。我试图设置android:isScrollContainer="false"滚动视图,但没有。
我也试过这个答案,在我的滚动视图中放置了一个 GlobalLayoutListener ,但是当键盘出现时没有调用 onGlobalLayout 。而且isKeyboardShown总是假的。
在哪里可以找到创建自定义InputScope的教程?我想创建一个自定义键盘,只显示屏幕键盘上的数字1-9(无符号).


我想在我的布局中复制这个效果.但是在我的布局中,当键盘出现时,我的弹出窗口没有调整.设备调整下面的主要活动,而不是弹出窗口.
这是我的popup layout.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/sfondo_semi_trasparente_scuro">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/white"
android:orientation="vertical">
<EditText
android:id="@+id/textNomeGiocatoreNewTeam"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:hint="Nome giocatore"/>
<EditText
android:id="@+id/textNumeroMagliaGiocatoreNewTeam"
android:inputType="number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Numero Maglia"/>
<Button
android:id="@+id/buttonConfirmAddNewPlayer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Aggiungi giocatore"
android:layout_gravity="center"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
有人能帮我吗?
当键盘显示时,我的布局变得混乱.

这是我的android清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.BJ.Food4All"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application
android:name="CookTales"
android:icon="@drawable/application_icon"
android:label="@string/app_name" >
<activity
android:screenOrientation="portrait"
android:name=".MyFood4AllActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Activities.Mailbox.MailboxActivity"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity android:name=".Activities.About.AboutDialog"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity android:name=".Activities.Settings.SettingsActivity"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity android:name="org.BJ.Food4All.Share_Facebook" />
<activity android:name=".NewRecipeActivity"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity android:name=".Activities.RecipeBook.RecipeBookTabHostActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.Light.NoFrame"
android:configChanges="keyboard|keyboardHidden|orientation"
android:label="@string/searchRecipe_title" >
</activity>
<activity android:name=".Activities.NewRecipe.Ingredients"
android:screenOrientation="portrait"
android:label="@string/ingredients_title"
android:configChanges="keyboard|keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
</activity> …Run Code Online (Sandbox Code Playgroud) 在TEdit聚焦时,你能帮我隐藏(并再次显示)软键盘吗?
我在我的Android应用程序中使用一个输入字段来获取一个字符串当我输入一个字符串时弹出一个软键盘但是现在我想在用户按下软键盘中的"完成"按钮时调用一个函数我该怎么办?
Unity3d 4.6.2f1

发生的情况是这样的:活动 A 和 B 有一个EditText并且它们都有IME_SEARCH。只能通过 SAMSUNG 平板电脑上的软键盘进行输入。在 Activity AI 上可以毫无问题地使用EditText。问题是,在 Activity BI 上,在我点击“空格”后或每当我使用建议中的单词时,无法使用退格键删除文本。它的表现就像那里不再有文字了。如果我输入新字符,我可以将它们删除到空格。
要点:
EditTexts包含相同的视图层次结构IME_SEARCH(通过setOnEditorActionListener)是相同的TextWatcher也相同Run Code Online (Sandbox Code Playgroud)android:configChanges="keyboardHidden|keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustUnspecified"
beforeTextChanged我在两者的方法上设置了断点TextWatcher。我插入了一个“空格”并按了“退格键”。在活动 A上Edittext,该方法被触发,但在活动 B 上,该方法没有被触发。我看不出发生这种情况的原因,因为两者的属性Edittext配置相同。我也尝试删除该IME选项,但行为保持不变。
有谁知道会发生什么?
编辑1:
searchTxt.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void …Run Code Online (Sandbox Code Playgroud) 我正在学习如何为Android设备创建自定义键盘.我使用的是Android Studio 2.1.2.程序中没有任何活动,因为您必须在语言和输入设置中激活键盘.
当我运行该程序时,我收到此错误:"无法识别启动活动:启动活动时未找到默认活动错误"
我在网站上发布但没有得到回应.我按照教程一步一步地查看了几天.我是Android Studio和Android应用程序的新手,想知道是否有人知道如何帮助我.
这是我关注的网站的链接:http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615
android soft-keyboard android-softkeyboard android-studio custom-keyboard
嗨,我试图在点击监听器上添加editText,以便当用户使用下面的代码单击edittext时,我可以禁用软键盘,该怎么做?
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0);
Run Code Online (Sandbox Code Playgroud) 以下是我的软键盘标题当前在 iOS 键盘选项中的显示方式:
我希望它像上面的 Gboard 示例一样显示,只需在顶行显示“ASETNIOP”,在下面显示“多种语言”,如此处的模型所示:
如果我在“目标”->“常规”->“身份”中修改扩展程序的“显示名称”,我可以更改小写前缀,但我无法完全消除它(或关联的破折号):
而且(虽然我实际上不需要这样做)看起来根本不可能更改主应用程序的显示名称 - 它呈灰色:
谁能让我知道我需要去哪里进行这些更改,以及我需要去哪里更改语言指定?
soft-keyboard ios iphone-softkeyboard ios-keyboard-extension
嗨我将edittext控件包装到用户请求屏幕上显示的控件上.它覆盖整个屏幕,直到用户按下键盘上的"完成"按钮.
我无法在屏幕上明确显示控件.只有当用户点击控制权时才会显示.我错过了什么吗?
我甚至尝试了这个,当我启动编辑文本存在的叠加层时,它并没有使用它:
customCOntrol.showKeyboard();
public void showKeyboard()
{
InputMethodManager imm = (InputMethodManager)_context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(this._textView.getWindowToken(), InputMethodManager.SHOW_IMPLICIT);
}
Run Code Online (Sandbox Code Playgroud)
这是我在配置文件android屏幕上的settig:windowSoftInputMode ="stateHidden | adjustPan"
先感谢您
soft-keyboard ×13
android ×10
adjustment ×1
c# ×1
delphi ×1
delphi-xe7 ×1
firemonkey ×1
ios ×1
layout ×1
popup ×1