# Set android:windowSoftInputMode automatically

**URL:** <https://forum.ionicframework.com/t/set-android-windowsoftinputmode-automatically/101130>\
**Category:** ionic-v3\
**Created:** [August 7, 2017, 11:53am UTC](https://forum.ionicframework.com/t/set-android-windowsoftinputmode-automatically/101130 "2017-08-07T11:53:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhochmayr](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fhochmayr](https://forum.ionicframework.com/u/fhochmayr)\
**Post date:** [August 7, 2017, 11:53am UTC](https://forum.ionicframework.com/t/set-android-windowsoftinputmode-automatically/101130/1 "2017-08-07T11:53:26Z")

</div>

Hello everyone,  
In my project, I want to use the “adjustPan” keyboard for Android so I have to manually change the AndroidManifest.xml.  
But, the problem, is that we are 6 on the project and we have to change it manually everytime we checkout the project, after to add android platform.  
Is there a way that when I had the platform (or npm install) that it changes the AndroidManifest.xml ?

I tryed inside the tag inside in my config.xml but didn’t work 😕

---

<div class="post-metadata">

**Author:** ![danielcombain](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@danielcombain](https://forum.ionicframework.com/u/danielcombain)\
**Post date:** [October 16, 2018, 9:05am UTC](https://forum.ionicframework.com/t/set-android-windowsoftinputmode-automatically/101130/2 "2018-10-16T09:05:57Z")

</div>

Working on it now. Would also like to know this.

---

<div class="post-metadata">

**Author:** ![danielcombain](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@danielcombain](https://forum.ionicframework.com/u/danielcombain)\
**Post date:** [October 16, 2018, 10:30am UTC](https://forum.ionicframework.com/t/set-android-windowsoftinputmode-automatically/101130/3 "2018-10-16T10:30:05Z")

</div>

Found a solution.

In config.xml:  
Make sure widget has this property:

> xmlns:android=“[http://schemas.android.com/apk/res/android](http://schemas.android.com/apk/res/android)”

```auto
<widget xmlns:android="http://schemas.android.com/apk/res/android">

//Then add this inside
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
        <activity android:windowSoftInputMode="adjustPan" />
</edit-config>

</widget>

```

Then remove platform:

`ionic cordova platform remove android`

Then build again.
