...
development/AndroidManifest.xml 수정..
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
// 리사이즈 설정으로 주면 화면을 자동으로 맞춰준다..
android:screenOrientation="portrait"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Manifest file을 수정하면 중복 오류가 날 수 있다..
AndroidManifest.xml to override.
https://developer.android.com/studio/build/manifest-merge?hl=ko
Manifest 파일 수정..
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myapp"
xmlns:tools="http://schemas.android.com/tools">
<activity android:name="com.example.ActivityOne"
android:screenOrientation="portrait"
tools:replace="android:windowSoftInputMode"
>
</activity>
설정 추가 후 빌드하니 다시 잘 된다..