Added  android:windowSoftInputMode="stateVisible|adjustResize"  to AndroidManifiest.xml