当键盘出现时,titanium视图被推高

我有一个窗口(垂直布局),看起来像这样:

-Window -View1 -View2 -ScrollView1 -ScrollView2 -TextArea (contained in the scrollView2) 

当我将注意力集中在textarea键盘上时,但是当View1和View2向上滚动并且出现在窗口外时。 所以现在看起来像这样:

 -Window -ScrollView1 -ScrollView2 -Textarea -Keyboard 

我需要这两个视图留下来,只有在scrollView1和scrollView2(scrollView2,因为它包含textarea,如果它不在scrollView键盘重叠textarea,所以用户不能看到他们正在键入)的内容。 如何阻止View1和View2被推高? 我想如果我使View1和View2的顶级属性为0,他们将始终保持。

你有没有尝试在清单文件中使用以下内容?

 android:windowSoftInputMode="adjustPan" 

喜欢这个

 <activity android:name="com.example.activity.YourActivity" android:label="@string/title_activity_subscription_setup" android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan" > </activity> 

adjustPan,adjustResize等有各种各样的值等等。试试看看什么对您的情况最好。