Resizable Apps & Multi-Window Support in Android

Mar 30 2021 · Kotlin 1.4, Android 11, Android Studio 4

Part 1: Resizable Apps & Multi-Window Support in Android

03. Enable The Resizable App Feature

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 02. Set Up The Project Next episode: 04. Handle Multi-Window Lifecycle

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

In order to enable the resizable app feature in your apps, you can do two things. You can either enable the resizableActivity flag for your entire app, to make everything support the resizable mode, or you can enable the same flag on a per-Activity-basis, allowing only certain activities to support resizability.

<application
  android:resizeableActivity="true">
<activity
  android:configChanges="screenSize|screenLayout|smallestScreenSize|orientation" //
  android:resizeableActivity="true"> // here
<activity
  android:name=".ui.addNote.AddNoteActivity"
  android:configChanges="screenSize|screenLayout|smallestScreenSize|orientation" //
  android:windowSoftInputMode="adjustPan|adjustResize" />