首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >同时使用scrollview和adjustPan

同时使用scrollview和adjustPan
EN

Stack Overflow用户
提问于 2011-07-28 20:43:49
回答 1查看 2K关注 0票数 2

我的代码是

在我的清单中我写道

代码语言:javascript
复制
 <activity android:name=".email" android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="adjustPan">        </activity>

在我的布局中,我写下了

代码语言:javascript
复制
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent" android:layout_height="fill_parent"
        android:background="@color/white">

        <ImageView android:layout_width="fill_parent"
            android:layout_height="wrap_content" android:background="@drawable/ic_backdrop_wave"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true" android:id="@+id/bottomImage" />
          <ScrollView android:layout_width="fill_parent"
                android:layout_height="wrap_content"       
                android:layout_marginTop="10dip"
                            android:isScrollContainer="false">
                <LinearLayout android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                                    android:orientation="vertical">
                               <EditText></EditText>
                               <EditText></EditText>
                               <EditText></EditText>
                       </LinearLayout>
            </ScrollView>
        </RelativeLayout>

因此,当我单击任何编辑文本时,它不会调整图像视图的大小,但也会禁用滚动视图。

现在我要做的就是出来。

EN

回答 1

Stack Overflow用户

发布于 2011-07-28 21:30:26

请试试这个..

代码语言:javascript
复制
<activity android:name=".email" android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="adjustResize">        </activity>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6859164

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档