Added android:windowSoftInputMode="adjustNothing"  to MainActivity.