Manifest file changes
In the manifest file, for the activity that includes our fragment, please ensure that the following properties are defined as follows. You may add any other additional properties as you desire.
<activity
android:name="com.example.PaymentActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize">
</activity>