SoftKeyboard在对话活动平移后面的活动 [英] SoftKeyboard in Dialog Activity pans the activity behind
问题描述
正如标题所说,从一个活动,我开始一个包含EDITTEXT对话活动。当我点击它和softKeyboard出现,它平移DialogActivity,但它也会影响后面的活动。
Just as the title says, from one activity I start a dialog activity that contains an editText. When I click it and the softKeyboard comes up, it pans the DialogActivity but it also affects the activity behind.
这是父活动清单条目
<activity
android:name=".BasketStep2Activity"
android:parentActivityName=".home.Start"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".home.Start" />
</activity>
这是对话活动清单条目
and this is the manifest entry for the dialog activity
<activity
android:name=".SelectRelais"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan|stateHidden"
android:theme="@style/AppDialog" >
</activity>
父活动锅的底部,如果有重点有一个EditText。如果我使用adjustResize,一切都显然是搞砸了。有没有一种方法,以prevent背景活动的任何变化?
The parent activity pans to the bottom as if there was an editText with focus there. If i use "adjustResize", everything is obviously messed up. Is there a way to prevent any changes to the background activity?
推荐答案
使用,而不是adjustNothing adjustPan在父活动
use adjustNothing instead of adjustPan in parent activity
这篇关于SoftKeyboard在对话活动平移后面的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!