Softkeyboard 2.2横向模式下不显示 [英] Softkeyboard not displaying in 2.2 landscape mode

查看:165
本文介绍了Softkeyboard 2.2横向模式下不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临着一个奇怪的问题。 我的应用程序工作正常,在2.1(模拟器+设备)。但是,当我使用2.2 (包括仿真器+设备),那么有一个问题,与软 键盘。 有一个在横向模式下一个活动的应用程序(使用 机器人:screenOrientation =山水)。 有在活动二的EditText。但是,软键盘是不是 显示这些。事实上,softkeyboard似乎AP $ P $面值,但作为一个 扎在底部。 请查看屏幕截图。

任何帮助将AP preciated。 此致 萨瓦尔Erfan

尝试不同的东西安卓windowSoftInputMode,没有工作

 <活动机器人:名称=。PriceCalculator
    机器人:screenOrientation =风景
    机器人:windowSoftInputMode =stateAlwaysVisible | adjustPan
    机器人:configChanges =方向
    机器人:标签=定价计算器>
    ....
< /活动>


<的EditText
    机器人:ID =@ + ID / adhesiveUnitPrice
    机器人:inputType =numberDecimal
    机器人:imeOptions =actionDone | flagNoExtractUi
    机器人:layout_column =4安卓重力=右/>
 

解决方案

我发现,在2.3中,softkeyboard不会在横向模式下显示出来,如果​​模拟器或设备有硬件键盘。

I am facing a strange problem. My app works fine in 2.1 (emulator + device). But, when I use 2.2 (both emulator + device) then there is an issue with the soft keyboard. There is a Activity in landscape mode in the app (use android:screenOrientation="landscape"). There are two EditText in that Activity. But, soft keyboard is not displaying for those. In fact, softkeyboard seems to apprear, but as a bar in the bottom. Please view the screenshot.

Any help will be appreciated. Regards Sarwar Erfan

tried different things for android:windowSoftInputMode , did not work

<Activity android:name=".PriceCalculator" 
    android:screenOrientation="landscape" 
    android:windowSoftInputMode="stateAlwaysVisible|adjustPan" 
    android:configChanges="orientation" 
    android:label="Pricing Calculator">
    ....
</Activity>


<EditText 
    android:id="@+id/adhesiveUnitPrice" 
    android:inputType="numberDecimal" 
    android:imeOptions="actionDone|flagNoExtractUi" 
    android:layout_column="4" android:gravity="right"/> 

解决方案

I found out that, in 2.3, the softkeyboard wont show up in landscape mode if the emulator or the device has an hardware keyboard.

这篇关于Softkeyboard 2.2横向模式下不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆