2011-07-28 5 views
2

Mon code estUtilisez scrollview et adjustPan ensemble android

dans mon manifeste, je l'ai écrit

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

Et dans ma mise en page que je l'ai écrit

<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> 

Donc, quand je clique sur tout modifier le texte, il ne redimensionne pas l'image mais il va également désactiver la vue défilement.

Maintenant ce que je dois faire pour sortir.

Répondre

0

S'il vous plaît essayer .. Ce

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

si u ne réponse a obtenu ur plz lire ce http://developer.android.com/guide/topics/manifest/activity-element.html – AndroidDanger