键盘上的EditText重叠,当我动态添加视图 [英] Keyboard overlaps on EditText, when I'm dynamically add view
问题描述
我在动态添加视图( RelativeLayout的
与的EditText
)到的FrameLayout
,并使用 setTranslate
方法设置自己的立场。但在屏幕键盘上的重叠,我的的EditText
。
I'm dynamically adding views (RelativeLayout
with EditText
) into FrameLayout
and setting their positions using setTranslate
methods. But on screen keyboard overlaps on my EditText
.
我试过设置
android:windowSoftInputMode="stateHidden|adjustResize|adjustPan"
在清单中,但仍然没有结果。我使用的是11 SDK。
in manifest, but there is still no result. I'm using 11 SDK.
如何解决这个问题?
下面是screeshots:
Here is screeshots:
推荐答案
当你已经尝试过Android的活动:windowSoftInputMode在你的清单。您可以通过换款的布局相对做到这一点,让你的EditText 的android:layout_alignParentBottom =真正的
As you have already tried activity android:windowSoftInputMode in your Manifest. You can do it by chaging the Layout to relative and make your EditText android:layout_alignParentBottom="true"
转寄此例
这篇关于键盘上的EditText重叠,当我动态添加视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!