Skip to content Skip to sidebar Skip to footer

Screen Rotate 3 Times When Back To Landscape Activity From Portrait Activity

I have this issue in my tablet device Android 8.1. This device has natural orientation is landscape I have 2 activity : A is configured with fullSensor, contains a recyclerview to

Solution 1:

Try this:

<activity
     android:name="com.hdq.myapp.activities.AActivity"
     android:configChanges="locale|keyboard|keyboardHidden|orientation"
     android:windowSoftInputMode="stateAlwaysHidden|adjustResize|screenSize"
     android:theme="@style/AppTheme.NoActionBar">
     <intent-filter>
          <action android:name="android.intent.action.MAIN" />

          <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

    <activity
        android:name="com.hdq.myapp.activities.BActivity"
        android:configChanges="locale|keyboard|keyboardHidden|orientation|screenSize"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
        android:theme="@style/AppTheme.NoActionBar">

Post a Comment for "Screen Rotate 3 Times When Back To Landscape Activity From Portrait Activity"