- Home /
[How to resize application panel according to the android / iOS keyboard]
Hello,
I'm actually working on an android application and I don't found the solution to resize the panel according to the virtual keyboard (on mobile).
I get the AndroidManifest.xml file, copy/paste it in Assets/Plugins/Android/ and add the line : android:windowSoftInputMode="adjustResize" but when I compile and start the app on my android phone, when I want to write in an input field the keyboard take the whole screen in landscape and the half in portrait.
I just want the panel to be moved at the same time as the keyboard in order to see what i'm writing IN the input field.
Is it possible? how?
I'm actually working on Unity 5.2.1f1.
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:windowSoftInputMode="adjustResize"
android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
</application>
</manifest>
Your answer
Follow this Question
Related Questions
Android. failed to re-package resources 1 Answer
Why cant I change the android:windowBackground? 0 Answers
Specific game with vibration capabilities not working due to something with AndroidManifest.xml 0 Answers
Unable to merge Android Manifests 1 Answer
How to increase number of supported devices when publishing to the google play store 0 Answers