• Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
Thursday, July 30, 2026
No Result
View All Result
Subscribe Now
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

    TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

    NBA players are ‘being taught’ to flop

    NBA players are ‘being taught’ to flop

    Industry was warned for years about chemical ‘runaway’ dangers. Then came near-catastrophe in O.C.

    Industry was warned for years about chemical ‘runaway’ dangers. Then came near-catastrophe in O.C.

    Trump administration seeks government-wide NDAs to stop leaks : NPR

    Trump administration seeks government-wide NDAs to stop leaks : NPR

    Dog discharges shotgun inside truck, striking woman at Nebraska traffic light

    Dog discharges shotgun inside truck, striking woman at Nebraska traffic light

    Toshifumi Suzuki, Japan’s ‘God’ of Convenience Stores, Dies at 93

    Toshifumi Suzuki, Japan’s ‘God’ of Convenience Stores, Dies at 93

     Judge Sanctioned CoreCivic for Destroying Video in ICE Death Suit

     Judge Sanctioned CoreCivic for Destroying Video in ICE Death Suit

    Suspect dead after opening fire near White House security checkpoint, Secret Service says

    Suspect dead after opening fire near White House security checkpoint, Secret Service says

    Trump trashes Colbert’s high-rated finale as “no ratings”

    Trump trashes Colbert’s high-rated finale as “no ratings”

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
The Insight Post
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

    TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

    NBA players are ‘being taught’ to flop

    NBA players are ‘being taught’ to flop

    Industry was warned for years about chemical ‘runaway’ dangers. Then came near-catastrophe in O.C.

    Industry was warned for years about chemical ‘runaway’ dangers. Then came near-catastrophe in O.C.

    Trump administration seeks government-wide NDAs to stop leaks : NPR

    Trump administration seeks government-wide NDAs to stop leaks : NPR

    Dog discharges shotgun inside truck, striking woman at Nebraska traffic light

    Dog discharges shotgun inside truck, striking woman at Nebraska traffic light

    Toshifumi Suzuki, Japan’s ‘God’ of Convenience Stores, Dies at 93

    Toshifumi Suzuki, Japan’s ‘God’ of Convenience Stores, Dies at 93

     Judge Sanctioned CoreCivic for Destroying Video in ICE Death Suit

     Judge Sanctioned CoreCivic for Destroying Video in ICE Death Suit

    Suspect dead after opening fire near White House security checkpoint, Secret Service says

    Suspect dead after opening fire near White House security checkpoint, Secret Service says

    Trump trashes Colbert’s high-rated finale as “no ratings”

    Trump trashes Colbert’s high-rated finale as “no ratings”

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
No Result
View All Result
No Result
View All Result
Home Mobile

What’s new in WindowManager 1.1.0-beta01

by Theinsightpost
April 5, 2023
in Mobile
0 0
0
What’s new in WindowManager 1.1.0-beta01


Posted by Jon Eckenrode, Technical Writer, Software Engineering
blog header featuring Android logos

The 1.1.0-beta01 release of Jetpack WindowManager continues the library’s steady progress toward stable release of version 1.1.0. The beta adds an assortment of new features and capabilities, which are ready for testing and early adoption today!

We need your feedback so we can make WindowManager work best for you. Add the 1.1.0-beta01 dependency to your app, follow the migration steps below (if you’re already using a previous version of the library), and let us know what you think!

Activity embedding

androidx.window.embedding

Activity embedding enables you to optimize your multi-activity apps for large screens. The 1.1.0-beta01 release augments and refactors the APIs to provide greater versatility, capability, and control in managing task window splits. We started with experimental APIs in 1.0.0 and are promoting them ultimately to stable in 1.1.0.

tl;dr

Added a manifest setting so you can inform the system your app has implemented activity embedding. Refactored SplitController to be more focused on split properties; extracted split rule APIs to RuleController and activity embedding APIs to ActivityEmbeddingController. Added the SplitAttributes class to describe embedding splits. Added the EmbeddingAspectRatio class to set a minimum ratio for applying activity embedding rules. Changed pixels units to display-independent pixels (dp). Enabled customization of split layouts. Added a tag to rules so that developers can identify and manage specific rules.

What’s new

PROPERTY_ACTIVITY_EMBEDDING_SPLITS_ENABLED

  • Added as a boolean property of the  tag in the app manifest.

ActivityEmbeddingController

  • Added class for operations related to the Activity or ActivityStack classes.
  • Includes isActivityEmbedded() to replace the API in SplitController.

RuleController

  • Added class for operations related to the EmbeddingRule class and subclasses.
  • Includes the following APIs to replace APIs in SplitController:
    • addRule() — Adds a rule or updates the rule that has the same tag.
    • removeRule() — Removes a rule from the collection of registered rules.
    • setRules() — Establishes a collection of rules.
    • clearRules() — Removes all registered rules.
    • parseRules() — Parses rules from XML rule definitions.

SplitAttributes

  • Added class to define the split layout.

EmbeddingAspectRatio

  • Added class to define enum-like behavior constants related to display aspect ratio. Lets you specify when splits are enabled based on the parent window’s aspect ratio.

See SplitRule for properties that use the constants.

What’s changed

EmbeddingRule

  • Added tag field for identification of split rules.

SplitController

  • Refactored APIs to the following modules:
    • ActivityEmbeddingController
      • Moved isActivityEmbedded() to ActivityEmbeddingController.
    • RuleController
      • Removed the following APIs and replaced their functionality with RuleController APIs:
        • clearRegisteredRules()
        • getSplitRules()
        • initialize()
        • registerRule()
        • unregisterRule()
  • Deprecated isSplitSupported() method and replaced with splitSupportStatus property to provide more detailed information about why the split feature is not available.
  • The getInstance() method now has a Context parameter.

Note: The getInstance() methods of ActivityEmbeddingController and RuleController also have a Context parameter.

  • Added SplitAttributes calculator functions to customize split layouts:
    • setSplitAttributesCalculator()
    • clearSplitAttributesCalculator()
    • isSplitAttributesCalculatorSupported() to check whether the SplitAttributesCalculator APIs are supported on the device.
  • Defined SplitSupportStatus nested class to provide state constants for the splitSupportStatus property. Enables you to modify app behavior based on whether activity embedding splits are supported in the current app environment.

SplitRule

  • Added defaultSplitAttributes property which defines the default layout of a split; replaces splitRatio and layoutDirection.
  • Added translation of the XML properties splitRatio and splitLayoutDirection to defaultSplitAttributes.
  • Changed minimum dimension definitions to use density-independent pixels (dp) instead of pixels.
    • Changed minWidth to minWidthDp with default value 600dp.
    • Changed minSmallestWidth to minSmallestWidthDp with default value 600dp.
    • Added minHeightDp property with default value 600dp.
  • Added maxAspectRatioInHorizontal with default value ALWAYS_ALLOW.
  • Added maxAspectRatioInPortrait with default value 1.4.
  • Defined FinishBehavior nested class to replace finish behavior constants.
  • Applied the property changes to the Builder nested class of SplitPairRule and SplitPlaceholderRule.

SplitInfo

  • Replaced getSplitRatio() with getSplitAttributes() to provide additional split-related information.

Window layout

androidx.window.layout

The window layout library lets you determine features of app display windows. With the 1.1.0-beta01 release, you can now work in contexts other than just activities.

What’s changed

WindowInfoTracker

  • Added non-activity UI context support in experimental.

WindowMetricsCalculator

  • Added non-activity UI context support.

Migration steps

Take the next step and upgrade your app from a previous alpha version. And please let us know how we can further facilitate the upgrade process.

PROPERTY_ACTIVITY_EMBEDDING_SPLITS_ENABLED

  • To enable activity embedding, apps must add the property to the tag in the app manifest: 

< property android:name="android.window.PROPERTY_ACTIVITY_EMBEDDING_SPLITS_ENABLED" android:value="true" />

When the property is set to true, the system can optimize split behavior for the app early.

SplitInfo

  • Check if the current split is stacked:

SplitInfo.splitAttributes.splitType is SplitAttributes.SplitType.ExpandContainersSplitType

if (SplitInfo.splitAttributes.splitType is SplitAttributes.SplitType.RatioSplitType) { val ratio = splitInfo.splitAttributes.splitType.ratio } else { // Ratio is meaningless for other types. }

 

SplitController

  • SplitController.getInstance()

    SplitController.getInstance(Context)

  • SplitController.initialize(Context, @ResId int)

changes to:

RuleController.getInstance(Context) .setRules(RuleController.parse(Context, @ResId int)) 

  • SplitController.getInstance().isActivityEmbedded(Activity)

changes to:

ActivityEmbeddingController.getInstance(Context) .isActivityEmbedded(Activity)

  • SplitController.getInstance().registerRule(rule)

          changes to:

RuleController.getInstance(Context).addRule(rule)

  • SplitController.getInstance().unregisterRule(rule)

changes to:

RuleController.getInstance(Context).removeRule(rule)

  • SplitController.getInstance().clearRegisteredRules()

changes to:

RuleController.getInstance(Context).clearRules()

  • SplitController.getInstance().getSplitRules()

changes to:

    RuleController.getInstance(Context).getRules() 

SplitRule

  • Change minWidth to minWidthDp and minSmallestWidth to minSmallestWidthDp
  • minWidthDp and minSmallestWidthDp now use dp units instead of pixels

Apps can use the following call:

TypedValue.applyDimension( COMPLEX_UNIT_DIP, minWidthInPixels, resources.displayMetrics )

or simply divide minWithInPixels by displayMetrics#density.  

SplitPairRule.Builder

  • SplitPairRule.Builder( filters, minWidth, minSmallestWidth )

changes to:

SplitPairRule.Builder(filters) // Optional if minWidthInDp argument is 600. .setMinWidthDp(minWidthInDp) // Optional if minSmallestWidthInDp argument is 600. .setMinSmallestWidthDp(minSmallestWidthInDp)

  • setLayoutDirection(layoutDirection) and setSplitRatio(ratio)

change to:

setDefaultSplitAttributes(SplitAttributes.Builder() .setLayoutDirection(layoutDirection) .setSplitType(SplitAttributes.SplitType.ratio(ratio)) .build() )

  • setFinishPrimaryWithSecondary and setFinishSecondaryWithPrimary take the FinishBehavior enum-like constants.

See SplitRule migrations for details.

setMaxAspectRatioInPortrait( EmbeddingAspectRatio.ALWAYS_ALLOW )

to show splits on portrait devices.

SplitPlaceholder.Builder

  • Has only filters and placeholderIntent parameters; other properties move to setters.

See SplitPairRule.Builder migrations for details.  

  • setFinishPrimaryWithPlaceholder takes the FinishBehavior enum-like constants.

See finish behavior migrations for details.

  • setLayoutDirection(layoutDirection) and setSplitRatio(ratio)

change to 

setDefaultSplitAttributes(SplitAttributes.Builder() .setLayoutDirection(layoutDirection) .setSplitType(SplitAttributes.SplitType.ratio(ratio)) .build() )

See layout direction migrations for details.

setMaxAspectRatioInPortrait( EmbeddingAspectRatio.ALWAYS_ALLOW )

to show splits on portrait devices.

 

Finish behavior

Finish behavior constants must be migrated to FinishBehavior enum-like class constants:

  • FINISH_NEVER changes to FinishBehavior.NEVER
  • FINISH_ALWAYS changes to FinishBehavior.ALWAYS
  • FINISH_ADJACENT changes to FinishBehavior.ADJACENT

Layout direction

Layout direction must be migrated to SplitAttributes.LayoutDirection:

  • ltr changes to SplitAttributes.LayoutDirection.LEFT_TO_RIGHT
  • rtl changes to SplitAttributes.LayoutDirection.RIGHT_TO_LEFT
  • locale changes to SplitAttributes.LayoutDirection.LOCALE
  • splitRatio migrates to SplitAttributes.SplitType.ratio(splitRatio)

Get started 

To get started with WindowManager, add the Google Maven repository to your app’s settings.gradle or project-level build.gradle file: 

dependencyResolutionManagement {

    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

    repositories {

        google()

    }

}

 Then add the 1.1.0-beta01 dependency to your app’s module-level build.gradle file: 

dependencies {

    implementation ‘androidx.window:window:1.1.0-beta01’

    . . .

}

 Happy coding!


ShareTweetSend
Previous Post

Several Tornadoes Reported as Severe Storms Strike the Midwest

Next Post

Perito Moreno Glacier Walkway & Trek (El Calafate Argentina)

Related News

React Native OTA Updates: What You Can (and Can’t) Deploy Over the Air
Mobile

React Native OTA Updates: What You Can (and Can’t) Deploy Over the Air

May 28, 2026
Your phone drawer hides an app designed to “exploit developing brains”
Mobile

Your phone drawer hides an app designed to “exploit developing brains”

May 27, 2026
iPhone 16 has a secret charging upgrade Apple didn’t even mention
Mobile

iPhone 16 has a secret charging upgrade Apple didn’t even mention

May 26, 2026
We Want to Hear From Delivery Workers in New York City.
Mobile

We Want to Hear From Delivery Workers in New York City.

May 25, 2026
Next Post
Perito Moreno Glacier Walkway & Trek (El Calafate Argentina)

Perito Moreno Glacier Walkway & Trek (El Calafate Argentina)

Discussion about this post

Subscribe To Our Newsletters

    Customer Support


    1251 Wilcrest Drive
    Houston, Texas
    77042 USA
    Call-832.795.1420
    e-mail – news@theinsightpost.com

    Subscribe To Our Newsletters

      Categories

      • Africa
      • Africa-East
      • African Sports
      • American Sports
      • Arts
      • Asia
      • Australia
      • Business
      • Business Asia
      • Business- Africa
      • Canada
      • Defense
      • Education
      • Egypt
      • Energy
      • Entertainment
      • Europe
      • European Soccer
      • Finance
      • Germany
      • Ghana
      • Health
      • Insight
      • International
      • Investing
      • Japan
      • Latest Headlines
      • Life & Living
      • Markets
      • Mobile
      • Movies
      • New Zealand
      • Nigeria
      • Politics
      • Scholarships
      • Science
      • South Africa
      • South America
      • Sports
      • Tech
      • Travel
      • Travel-Africa
      • UK
      • USA
      • Weather
      • World
      No Result
      View All Result

      Recent News

      Hochul Challenger Bruce Blakeman Needs to Make Mayor Mamdani Respect His Authority! – RedState

      Hochul Challenger Bruce Blakeman Needs to Make Mayor Mamdani Respect His Authority! – RedState

      July 30, 2026
      Moses Itauma ranks one man above himself and Daniel Dubois as the hardest hitting heavyweight

      Moses Itauma ranks one man above himself and Daniel Dubois as the hardest hitting heavyweight

      July 30, 2026
      A fundamental flaw leaves LLMs strikingly vulnerable to attack

      A fundamental flaw leaves LLMs strikingly vulnerable to attack

      July 30, 2026
      TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

      TX Rep. Brandon Gill Mocks James Talarico Over Fauci Action Figure Post

      July 30, 2026
      • Home
      • Advertise With Us
      • About Us
      • Corporate
      • Consumer Rewards
      • Forum
      • Privacy Policy
      • Social Trends

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      Welcome Back!

      Login to your account below

      Forgotten Password?

      Retrieve your password

      Please enter your username or email address to reset your password.

      Log In

      Add New Playlist

      We are using cookies to give you the best experience on our website.

      You can find out more about which cookies we are using or switch them off in .

      No Result
      View All Result
      • Home
      • Insight
      • Blog
      • Business
      • Entertainment
      • Health
      • Politics
      • Shop
        • Gift Shop
        • Value Shop
        • Store
        • Bargain Shop
        • Discount
      • Sports
      • Tech
      • Travel
      • USA
      • Video
      • World
        • Asia
        • Africa
        • South America
        • North America
        • Europe
        • Oceania

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      The Insight Post
      Powered by  GDPR Cookie Compliance
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      Cookie Policy

      More information about our Cookie Policy