[{"data":1,"prerenderedAt":231},["ShallowReactive",2],{"public-settings":3,"footer-custom-pages":18,"post-android-17-adaptive-first-large-screen-resizability":31,"article-code-13plup7":230},{"site_title":4,"tagline":5,"site_url":6,"footer_text":5,"social_twitter":7,"social_github":7,"social_youtube":7,"social_linkedin":7,"social_mastodon":7,"og_image":8,"comments_enabled":9,"ads_mode":10,"ads_publisher_id":11,"ads_adtest":12,"ads_in_article_enabled":9,"ads_in_article_slot":13,"ads_in_article_paragraph":14,"ads_end_of_post_enabled":9,"ads_end_of_post_slot":13,"ads_feed_enabled":9,"ads_feed_slot":13,"ads_feed_every":15,"ads_sidebar_enabled":9,"ads_sidebar_slot":13,"ads_consent_enabled":9,"clarity_enabled":12,"clarity_project_id":16,"seo_enabled":9,"llms_enabled":9,"verification_google":7,"verification_bing":7,"seo_home_title":7,"seo_description":7,"indexnow_key":7,"performance_lcp_preload":9,"pwa_enabled":9,"bookmarks_enabled":9,"comments_moderation":9,"home_carousel_featured":9,"home_carousel_latest":9,"home_carousel_latest_mode":17,"home_carousel_series":9,"home_carousel_topics":9},"Android Learner","Practical Android development, explained clearly.","https:\u002F\u002Fwww.androidlearner.com","","\u002Fmedia\u002Fseed\u002Fcover-llm.webp","1","live","ca-pub-3394535770235553","0","9901451769","2","3","jmrmm96ef6","latest",[19,26],{"id":20,"title":21,"slug":22,"show_in_footer":23,"sort_order":24,"updated_at":25},1,"Terms & Conditions","terms",true,10,"2026-11-28 13:13:48",{"id":27,"title":28,"slug":29,"show_in_footer":23,"sort_order":30,"updated_at":25},2,"Privacy Policy","privacy",20,{"post":32,"comments":229},{"id":33,"title":34,"slug":35,"path":36,"excerpt":37,"cover_image":38,"cover_media_id":39,"status":40,"publish_at":41,"reading_time":27,"seo_title":42,"seo_description":43,"og_image":38,"canonical_url":44,"noindex":45,"featured":45,"faq":46,"howto":53,"review_note":53,"submitted_at":53,"reviewed_at":53,"category":54,"series":53,"tags":59,"author":78,"created_at":81,"updated_at":41,"body_md":82,"body_html":83,"related":84},25,"Android 17's Mandatory Adaptive-First & Large-Screen Resizability Rules","android-17-adaptive-first-large-screen-resizability","\u002Fposts\u002Fandroid-17-adaptive-first-large-screen-resizability","Android 17 enforces adaptive-first layouts and large-screen resizability. Here is how to audit orientation locks, adopt WindowSizeClass, and ship ListDetailPaneScaffold.","\u002Fmedia\u002F2026\u002F11\u002F2df599bf25a8e4e3.webp",67,"published","2026-11-28 10:15:06","Android 17 Adaptive-First & Resizability Requirements","Prepare your Android app for Android 17's mandatory large-screen resizability and adaptive-first layout rules using WindowSizeClass and Material 3 adaptive scaffolds.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fandroid-17-adaptive-first-large-screen-resizability\u002F",false,[47,50],{"question":48,"answer":49},"Can I still lock screenOrientation=portrait on tablets and foldables in Android 17?","Android 17 removes legacy opt-outs for resizability on large screens (smallest width >= 600dp), meaning the system ignores fixed portrait\u002Flandscape locks and non-resizable flags.",{"question":51,"answer":52},"What is the fastest way to make an existing Compose screen adaptive?","Read currentWindowAdaptiveInfo() from Material 3 Adaptive, avoid hardcoded dp widths, and use ListDetailPaneScaffold or SupportingPaneScaffold for two-pane tablet and desktop layouts.",null,{"id":55,"name":56,"slug":57,"description":58},4,"Architecture","architecture","App architecture and data layers.",[60,64,68,70,74],{"id":61,"name":62,"slug":63,"description":53},28,"Android","android",{"id":65,"name":66,"slug":67,"description":53},35,"Android 17","android-17",{"id":69,"name":56,"slug":57,"description":53},48,{"id":71,"name":72,"slug":73,"description":53},18,"Jetpack Compose","jetpack-compose",{"id":75,"name":76,"slug":77,"description":53},46,"Material 3","material-3",{"id":20,"name":4,"username":79,"avatar":53,"profile_path":80},"superadmin","\u002Fu\u002Fsuperadmin","2026-11-28 10:11:53","With Android 17, **adaptive-first** is no longer an optional polish item—it is a platform baseline. On large screens (tablets, unfolded foldables, and desktop windowing), the OS ignores legacy orientation locks and non-resizable manifest attributes, forcing apps to resize gracefully.\n\n## What Breaks When Apps Assume Portrait Phone Widths\n\n- **Stretched single-column feeds** with 800dp-wide buttons and unreadable line lengths.\n- **Clipped dialogs or bottom sheets** when the app enters split-screen or freeform desktop mode.\n- **Lost UI state** on window resize when state lives in `Activity` fields instead of `ViewModel` or `rememberSaveable`.\n\n## 1. Read `WindowAdaptiveInfo` in Compose\n\nUse `androidx.compose.material3.adaptive` to react to window size classes and posture changes without querying raw display metrics:\n\n```kotlin\ndependencies {\n    implementation(\"androidx.compose.material3.adaptive:adaptive:1.1.0\")\n    implementation(\"androidx.compose.material3.adaptive:adaptive-layout:1.1.0\")\n    implementation(\"androidx.compose.material3.adaptive:adaptive-navigation:1.1.0\")\n}\n```\n\nThen switch layout density cleanly based on `windowSizeClass`:\n\n```kotlin\n@Composable\nfun DashboardScreen(\n    adaptiveInfo: WindowAdaptiveInfo = currentWindowAdaptiveInfo()\n) {\n    val isExpanded = adaptiveInfo.windowSizeClass\n        .isWidthAtLeastBreakpoint(WindowSizeClass.WIDTH_DP_EXPANDED_LOWER_BOUND)\n\n    if (isExpanded) {\n        ExpandedTwoPaneDashboard()\n    } else {\n        CompactSingleColumnDashboard()\n    }\n}\n```\n\n## 2. Use `ListDetailPaneScaffold` for Master-Detail Flows\n\nInstead of writing separate phone and tablet navigation graphs, `ListDetailPaneScaffold` shows one pane on compact screens and two side-by-side panes on medium\u002Fexpanded windows automatically:\n\n```kotlin\n@Composable\nfun ArticlesAdaptiveScreen(\n    articles: List\u003CArticle>,\n    selectedId: String?,\n    onSelect: (String) -> Unit\n) {\n    val navigator = rememberListDetailPaneScaffoldNavigator\u003CString>()\n\n    ListDetailPaneScaffold(\n        directive = navigator.scaffoldDirective,\n        value = navigator.scaffoldValue,\n        listPane = {\n            AnimatedPane {\n                ArticleListPane(\n                    articles = articles,\n                    onArticleClick = { id ->\n                        onSelect(id)\n                        navigator.navigateTo(ListDetailPaneScaffoldRole.Detail, id)\n                    }\n                )\n            }\n        },\n        detailPane = {\n            AnimatedPane {\n                ArticleDetailPane(articleId = navigator.currentDestination?.contentKey ?: selectedId)\n            }\n        }\n    )\n}\n```\n\n## 3. Quick Audit Checklist Before Targeting Android 17\n\n1. Remove `android:screenOrientation` and `android:resizeableActivity=\"false\"` assumptions from your layouts.\n2. Constrain readable text columns to a max width (e.g., `widthIn(max = 680.dp)`).\n3. Test your app in **freeform desktop windowing** and **split-screen** in the Android 17 emulator to catch clipped modals and keyboard overlap.\n\n","\u003Cp>With Android 17, \u003Cstrong>adaptive-first\u003C\u002Fstrong> is no longer an optional polish item—it is a platform baseline. On large screens (tablets, unfolded foldables, and desktop windowing), the OS ignores legacy orientation locks and non-resizable manifest attributes, forcing apps to resize gracefully.\u003C\u002Fp>\n\u003Ch2 id=\"what-breaks-when-apps-assume-portrait-phone-widths\">What Breaks When Apps Assume Portrait Phone Widths\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Stretched single-column feeds\u003C\u002Fstrong> with 800dp-wide buttons and unreadable line lengths.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Clipped dialogs or bottom sheets\u003C\u002Fstrong> when the app enters split-screen or freeform desktop mode.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Lost UI state\u003C\u002Fstrong> on window resize when state lives in \u003Ccode>Activity\u003C\u002Fcode> fields instead of \u003Ccode>ViewModel\u003C\u002Fcode> or \u003Ccode>rememberSaveable\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"1-read-windowadaptiveinfo-in-compose\">1. Read \u003Ccode>WindowAdaptiveInfo\u003C\u002Fcode> in Compose\u003C\u002Fh2>\n\u003Cp>Use \u003Ccode>androidx.compose.material3.adaptive\u003C\u002Fcode> to react to window size classes and posture changes without querying raw display metrics:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"kotlin\">\u003Ccode class=\"language-kotlin\">dependencies {\n    implementation(&quot;androidx.compose.material3.adaptive:adaptive:1.1.0&quot;)\n    implementation(&quot;androidx.compose.material3.adaptive:adaptive-layout:1.1.0&quot;)\n    implementation(&quot;androidx.compose.material3.adaptive:adaptive-navigation:1.1.0&quot;)\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Then switch layout density cleanly based on \u003Ccode>windowSizeClass\u003C\u002Fcode>:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"kotlin\">\u003Ccode class=\"language-kotlin\">@Composable\nfun DashboardScreen(\n    adaptiveInfo: WindowAdaptiveInfo = currentWindowAdaptiveInfo()\n) {\n    val isExpanded = adaptiveInfo.windowSizeClass\n        .isWidthAtLeastBreakpoint(WindowSizeClass.WIDTH_DP_EXPANDED_LOWER_BOUND)\n\n    if (isExpanded) {\n        ExpandedTwoPaneDashboard()\n    } else {\n        CompactSingleColumnDashboard()\n    }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"2-use-listdetailpanescaffold-for-master-detail-flows\">2. Use \u003Ccode>ListDetailPaneScaffold\u003C\u002Fcode> for Master-Detail Flows\u003C\u002Fh2>\n\u003Cp>Instead of writing separate phone and tablet navigation graphs, \u003Ccode>ListDetailPaneScaffold\u003C\u002Fcode> shows one pane on compact screens and two side-by-side panes on medium\u002Fexpanded windows automatically:\u003C\u002Fp>\n\u003Cpre class=\"code-block\" data-lang=\"kotlin\">\u003Ccode class=\"language-kotlin\">@Composable\nfun ArticlesAdaptiveScreen(\n    articles: List&lt;Article&gt;,\n    selectedId: String?,\n    onSelect: (String) -&gt; Unit\n) {\n    val navigator = rememberListDetailPaneScaffoldNavigator&lt;String&gt;()\n\n    ListDetailPaneScaffold(\n        directive = navigator.scaffoldDirective,\n        value = navigator.scaffoldValue,\n        listPane = {\n            AnimatedPane {\n                ArticleListPane(\n                    articles = articles,\n                    onArticleClick = { id -&gt;\n                        onSelect(id)\n                        navigator.navigateTo(ListDetailPaneScaffoldRole.Detail, id)\n                    }\n                )\n            }\n        },\n        detailPane = {\n            AnimatedPane {\n                ArticleDetailPane(articleId = navigator.currentDestination?.contentKey ?: selectedId)\n            }\n        }\n    )\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"3-quick-audit-checklist-before-targeting-android-17\">3. Quick Audit Checklist Before Targeting Android 17\u003C\u002Fh2>\n\u003Col>\n\u003Cli>Remove \u003Ccode>android:screenOrientation\u003C\u002Fcode> and \u003Ccode>android:resizeableActivity=&quot;false&quot;\u003C\u002Fcode> assumptions from your layouts.\u003C\u002Fli>\n\u003Cli>Constrain readable text columns to a max width (e.g., \u003Ccode>widthIn(max = 680.dp)\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>Test your app in \u003Cstrong>freeform desktop windowing\u003C\u002Fstrong> and \u003Cstrong>split-screen\u003C\u002Fstrong> in the Android 17 emulator to catch clipped modals and keyboard overlap.\u003C\u002Fli>\n\u003C\u002Fol>\n",[85,123,158,190],{"id":86,"title":87,"slug":88,"path":89,"excerpt":90,"cover_image":91,"cover_media_id":92,"status":40,"publish_at":93,"reading_time":27,"seo_title":94,"seo_description":95,"og_image":91,"canonical_url":96,"noindex":45,"featured":45,"faq":97,"howto":53,"review_note":53,"submitted_at":53,"reviewed_at":53,"category":104,"series":53,"tags":108,"author":120,"created_at":121,"updated_at":122},23,"Android 17 AppFunctions & Android MCP: Exposing App Actions to Gemini","android-17-appfunctions-android-mcp-gemini","\u002Fposts\u002Fandroid-17-appfunctions-android-mcp-gemini","Android 17 expands AppFunctions so apps can expose structured actions to Gemini and Android MCP clients. Learn how to declare functions, validate inputs, and test locally.","\u002Fmedia\u002F2026\u002F11\u002F89e9aba2e88d1684.webp",65,"2026-11-28 15:45:00","Android 17 AppFunctions & Android MCP Guide","Learn how to expose structured in-app capabilities using Android 17 AppFunctions and Jetpack libraries for Gemini and Android MCP orchestration.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fandroid-17-appfunctions-android-mcp-gemini\u002F",[98,101],{"question":99,"answer":100},"Do AppFunctions replace deep links or App Actions?","No. Deep links still open specific screens from URLs or intents, while AppFunctions expose typed, callable capabilities that the system or an on-device assistant can invoke with structured parameters and receive a typed result.",{"question":102,"answer":103},"Can users or the OS restrict which AppFunctions run?","Yes. AppFunctions follow Android's permission and user-consent model, and sensitive actions should require explicit confirmation or foreground verification before mutating user data.",{"id":20,"name":105,"slug":106,"description":107},"On-device AI","on-device-ai","Running models on the phone, not the cloud.",[109,112,113,114,118],{"id":30,"name":110,"slug":111,"description":53},"AI Development","ai-development",{"id":61,"name":62,"slug":63,"description":53},{"id":65,"name":66,"slug":67,"description":53},{"id":115,"name":116,"slug":117,"description":53},3,"Gemini Nano","gemini-nano",{"id":119,"name":105,"slug":106,"description":53},51,{"id":20,"name":4,"username":79,"avatar":53,"profile_path":80},"2026-11-28 10:11:52","2026-11-28 10:15:23",{"id":124,"title":125,"slug":126,"path":127,"excerpt":128,"cover_image":129,"cover_media_id":130,"status":40,"publish_at":131,"reading_time":27,"seo_title":132,"seo_description":133,"og_image":129,"canonical_url":134,"noindex":45,"featured":45,"faq":135,"howto":53,"review_note":53,"submitted_at":53,"reviewed_at":53,"category":142,"series":53,"tags":143,"author":155,"created_at":156,"updated_at":157},27,"Jetpack AppState & Snapshot State Architecture: Beyond UI State","jetpack-appstate-snapshot-state-architecture","\u002Fposts\u002Fjetpack-appstate-snapshot-state-architecture","Compose's snapshot state system isn't just for UI. Learn how Jetpack AppState and snapshot-backed stores synchronize reactive state across screens, services, and widgets.","\u002Fmedia\u002F2026\u002F11\u002F3a2381e9f25fce93.webp",69,"2026-11-28 15:43:00","Jetpack AppState & Snapshot State Architecture in Android","Use Compose's snapshot state system and Jetpack AppState patterns to manage reactive state cleanly across ViewModels, background workers, and widgets.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fjetpack-appstate-snapshot-state-architecture\u002F",[136,139],{"question":137,"answer":138},"How is snapshot state different from MutableStateFlow?","Snapshot state tracks fine-grained property reads automatically without explicit combine\u002Fmap operators, and supports atomic multi-property transactions via Snapshot.withMutableSnapshot.",{"question":140,"answer":141},"Can snapshot state be used outside @Composable functions?","Yes. Compose Runtime's snapshot system has no Android View or UI dependency and can run in ViewModels, repositories, or background workers using snapshotFlow.",{"id":55,"name":56,"slug":57,"description":58},[144,145,146,150,151],{"id":61,"name":62,"slug":63,"description":53},{"id":69,"name":56,"slug":57,"description":53},{"id":147,"name":148,"slug":149,"description":53},24,"Jetpack","jetpack",{"id":71,"name":72,"slug":73,"description":53},{"id":152,"name":153,"slug":154,"description":53},5,"State hoisting","state-hoisting",{"id":20,"name":4,"username":79,"avatar":53,"profile_path":80},"2026-11-28 10:11:54","2026-11-28 10:14:38",{"id":147,"title":159,"slug":160,"path":161,"excerpt":162,"cover_image":163,"cover_media_id":164,"status":40,"publish_at":165,"reading_time":27,"seo_title":166,"seo_description":167,"og_image":163,"canonical_url":168,"noindex":45,"featured":45,"faq":169,"howto":53,"review_note":53,"submitted_at":53,"reviewed_at":53,"category":176,"series":53,"tags":178,"author":189,"created_at":81,"updated_at":165},"Google's \"Compose First\" Era: Migrating Legacy XML & RecyclerView Screens","compose-first-migrating-legacy-xml-recyclerview","\u002Fposts\u002Fcompose-first-migrating-legacy-xml-recyclerview","With android.widget Views, Fragments, and XML layout editors officially in maintenance mode, here is a practical, incremental playbook for migrating to Jetpack Compose.","\u002Fmedia\u002F2026\u002F11\u002F5f47e539df8d96b9.webp",66,"2026-11-28 10:14:54","Compose First Migration Guide: XML & RecyclerView to Compose","Step-by-step guide to migrating legacy Android XML layouts, Fragments, and RecyclerView adapters to Jetpack Compose without rewriting your entire app at once.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fcompose-first-migrating-legacy-xml-recyclerview\u002F",[170,173],{"question":171,"answer":172},"Do I have to rewrite my entire app to adopt Compose First?","No. You can embed Compose inside existing XML layouts with ComposeView, replace RecyclerView item types incrementally, and migrate Fragment navigation screen by screen.",{"question":174,"answer":175},"Are XML Views being removed from Android?","No, existing View APIs remain in the Android SDK for compatibility, but they are in maintenance mode—meaning critical bug fixes only, while all new UI capabilities ship in Jetpack Compose.",{"id":27,"name":72,"slug":73,"description":177},"Modern Android UI.",[179,180,181,184,185],{"id":61,"name":62,"slug":63,"description":53},{"id":69,"name":56,"slug":57,"description":53},{"id":55,"name":182,"slug":183,"description":53},"Compose","compose",{"id":71,"name":72,"slug":73,"description":53},{"id":186,"name":187,"slug":188,"description":53},31,"Recycler View","recycler-view",{"id":20,"name":4,"username":79,"avatar":53,"profile_path":80},{"id":191,"title":192,"slug":193,"path":194,"excerpt":195,"cover_image":196,"cover_media_id":197,"status":40,"publish_at":198,"reading_time":199,"seo_title":200,"seo_description":201,"og_image":196,"canonical_url":202,"noindex":45,"featured":45,"faq":203,"howto":53,"review_note":53,"submitted_at":53,"reviewed_at":53,"category":210,"series":53,"tags":214,"author":226,"created_at":227,"updated_at":228},22,"Google Play's 16 KB Page Size Rule: What to Fix Before 1 February 2027","android-16kb-page-size-google-play-deadline","\u002Fposts\u002Fandroid-16kb-page-size-google-play-deadline","Apps that target API 35+ and ship native code must support 16 KB pages before 1 February 2027 or Play will block updates. Pure Kotlin and Java apps are already compatible.","\u002Fmedia\u002F2026\u002F11\u002F723c07ce07ee95c5.webp",62,"2026-11-25 02:00:00",8,"Android 16 KB page size: Play deadline 1 February 2027","If your app targets API 35+ and ships native code, Google Play will block updates after 1 February 2027 unless you support 16 KB pages. How to check, rebuild, and test.","https:\u002F\u002Fwww.androidlearner.com\u002Fposts\u002Fandroid-16kb-page-size-google-play-deadline\u002F",[204,207],{"question":205,"answer":206},"Does a pure Kotlin or Java app need a native rebuild?","No. Android Developers say that if the app and all of its libraries are written only in Java or Kotlin, it already supports 16 KB devices. They still recommend testing on a 16 KB emulator image.",{"question":208,"answer":209},"Will Google remove my app from Play on 1 February 2027 if I miss the deadline?","The official compatibility section says you will not be able to release updates that do not support 16 KB pages. It does not say existing listings are removed. Check Play Console for the wording on your own app, and re-read the page-sizes guide for the current date.",{"id":152,"name":211,"slug":212,"description":213},"Performance","performance","Startup, frames, and profiles.",[215,216,220,224],{"id":61,"name":62,"slug":63,"description":53},{"id":217,"name":218,"slug":219,"description":53},49,"Google Play","google-play",{"id":221,"name":222,"slug":223,"description":53},50,"NDK","ndk",{"id":225,"name":211,"slug":212,"description":53},12,{"id":20,"name":4,"username":79,"avatar":53,"profile_path":80},"2026-11-24 19:51:51","2026-11-24 19:53:15",[],"\u003Cp>With Android 17, \u003Cstrong>adaptive-first\u003C\u002Fstrong> is no longer an optional polish item—it is a platform baseline. On large screens (tablets, unfolded foldables, and desktop windowing), the OS ignores legacy orientation locks and non-resizable manifest attributes, forcing apps to resize gracefully.\u003C\u002Fp>\n\u003Ch2 id=\"what-breaks-when-apps-assume-portrait-phone-widths\">What Breaks When Apps Assume Portrait Phone Widths\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Stretched single-column feeds\u003C\u002Fstrong> with 800dp-wide buttons and unreadable line lengths.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Clipped dialogs or bottom sheets\u003C\u002Fstrong> when the app enters split-screen or freeform desktop mode.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Lost UI state\u003C\u002Fstrong> on window resize when state lives in \u003Ccode>Activity\u003C\u002Fcode> fields instead of \u003Ccode>ViewModel\u003C\u002Fcode> or \u003Ccode>rememberSaveable\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"1-read-windowadaptiveinfo-in-compose\">1. Read \u003Ccode>WindowAdaptiveInfo\u003C\u002Fcode> in Compose\u003C\u002Fh2>\n\u003Cp>Use \u003Ccode>androidx.compose.material3.adaptive\u003C\u002Fcode> to react to window size classes and posture changes without querying raw display metrics:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"kotlin\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">kotlin\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">dependencies\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">    implementation\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">\"androidx.compose.material3.adaptive:adaptive:1.1.0\"\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">    implementation\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">\"androidx.compose.material3.adaptive:adaptive-layout:1.1.0\"\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">    implementation\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">\"androidx.compose.material3.adaptive:adaptive-navigation:1.1.0\"\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Then switch layout density cleanly based on \u003Ccode>windowSizeClass\u003C\u002Fcode>:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"kotlin\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">kotlin\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">@Composable\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">fun\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\"> DashboardScreen\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    adaptiveInfo: \u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">WindowAdaptiveInfo\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\"> currentWindowAdaptiveInfo\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">    val\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> isExpanded \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> adaptiveInfo.windowSizeClass\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        .\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">isWidthAtLeastBreakpoint\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(WindowSizeClass.WIDTH_DP_EXPANDED_LOWER_BOUND)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">    if\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> (isExpanded) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">        ExpandedTwoPaneDashboard\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    } \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">else\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">        CompactSingleColumnDashboard\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2 id=\"2-use-listdetailpanescaffold-for-master-detail-flows\">2. Use \u003Ccode>ListDetailPaneScaffold\u003C\u002Fcode> for Master-Detail Flows\u003C\u002Fh2>\n\u003Cp>Instead of writing separate phone and tablet navigation graphs, \u003Ccode>ListDetailPaneScaffold\u003C\u002Fcode> shows one pane on compact screens and two side-by-side panes on medium\u002Fexpanded windows automatically:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\" data-lang=\"kotlin\">\u003Cdiv class=\"code-block__header\">\u003Cspan class=\"code-block__lang\">kotlin\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"code-block__copy\" aria-label=\"Copy code\">Copy\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cdiv class=\"code-block__body\">\u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">@Composable\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">fun\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\"> ArticlesAdaptiveScreen\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    articles: \u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">List\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">Article\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">>,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    selectedId: \u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">String\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">?,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    onSelect: (\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">String\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">) -> \u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">Unit\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">    val\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> navigator \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\"> rememberListDetailPaneScaffoldNavigator\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">String\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">>()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">    ListDetailPaneScaffold\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        directive \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> navigator.scaffoldDirective,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">        value\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> navigator.scaffoldValue,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        listPane \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">            AnimatedPane\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">                ArticleListPane\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                    articles \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> articles,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                    onArticleClick \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> { id \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">->\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">                        onSelect\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(id)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                        navigator.\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\">navigateTo\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(ListDetailPaneScaffoldRole.Detail, id)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">                )\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">            }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        detailPane \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">            AnimatedPane\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">                ArticleDetailPane\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(articleId \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> navigator.currentDestination?.contentKey ?: selectedId)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">            }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">        }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">    )\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2 id=\"3-quick-audit-checklist-before-targeting-android-17\">3. Quick Audit Checklist Before Targeting Android 17\u003C\u002Fh2>\n\u003Col>\n\u003Cli>Remove \u003Ccode>android:screenOrientation\u003C\u002Fcode> and \u003Ccode>android:resizeableActivity=&quot;false&quot;\u003C\u002Fcode> assumptions from your layouts.\u003C\u002Fli>\n\u003Cli>Constrain readable text columns to a max width (e.g., \u003Ccode>widthIn(max = 680.dp)\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>Test your app in \u003Cstrong>freeform desktop windowing\u003C\u002Fstrong> and \u003Cstrong>split-screen\u003C\u002Fstrong> in the Android 17 emulator to catch clipped modals and keyboard overlap.\u003C\u002Fli>\n\u003C\u002Fol>\n",1795877411956]