Como ajustar o layout quando o teclado soft aparece

// add the following line in your Manifest where your Activity is called
android:windowSoftInputMode="adjustResize"
// in some version of Android you should add this instead
android:windowSoftInputMode="adjustPan|adjustResize"
  
Mohamed Boumlyk