2011-07-28 4 views
2

내 코드는scrollview와 adjustPan을 함께 사용하여 android

내 매니페스트에 작성했습니다.

 <activity android:name=".email" android:label="@string/app_name" 
      android:theme="@android:style/Theme.NoTitleBar" 
      android:windowSoftInputMode="adjustPan">  </activity> 
 <activity android:name=".email" android:label="@string/app_name" 
      android:theme="@android:style/Theme.NoTitleBar" 
      android:windowSoftInputMode="adjustPan">  </activity> 

 <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> 
그래서 편집 텍스트를 클릭하면 크기가 조정되지 않습니다. imageview하지만 스크롤보기도 비활성화됩니다.

이제 나와야합니다.

답변

0

u는 UR 대답은 PLZ이 글을 읽을 가지고 있지 않은 경우 ..

<activity android:name=".email" android:label="@string/app_name" 
      android:theme="@android:style/Theme.NoTitleBar" 
      android:windowSoftInputMode="adjustResize">  </activity> 
+0

을이 시도 http://developer.android.com/guide/topics/manifest/activity-element.html하세요 – AndroidDanger

관련 문제