{"id":21803375,"url":"https://github.com/cesarvaliente/activity-embedding-sample","last_synced_at":"2026-05-19T15:05:57.311Z","repository":{"id":141835505,"uuid":"558852545","full_name":"CesarValiente/activity-embedding-sample","owner":"CesarValiente","description":"A sample that showcases Jetpack Window Manager's Activity Embedding API","archived":false,"fork":false,"pushed_at":"2022-11-02T17:58:22.000Z","size":26312,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T04:11:17.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CesarValiente.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-28T12:52:42.000Z","updated_at":"2024-02-05T06:33:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ea8ffd5-a22d-4605-92c3-9446716185ea","html_url":"https://github.com/CesarValiente/activity-embedding-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarValiente%2Factivity-embedding-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarValiente%2Factivity-embedding-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarValiente%2Factivity-embedding-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarValiente%2Factivity-embedding-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesarValiente","download_url":"https://codeload.github.com/CesarValiente/activity-embedding-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244752582,"owners_count":20504320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T11:41:56.325Z","updated_at":"2026-05-19T15:05:52.232Z","avatar_url":"https://github.com/CesarValiente.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# activity-embedding-sample\n\nWith Jetpack Window Manager's **Activity Embedding**, we can define specific rules that define how\nwe want to show the activities in our app when satisfying them. For example, we could define a rule\nthat whenever there is a specific enough width available, we show two activities side-by-side, or\notherwise, stacked one on top of the other.\n\n## Sample app\n\nIn this sample app we are going to showcase three features:\n\n- Adding an activity as **placeholder** in a two-pane scenario. This is useful when you need to show\n  two activities side-by-side (e.g., a list with options on the left and the content at the right),\n  but the content is not ready, to help handle that, we can show an activity as a placeholder.\n\n![activity-embedding-placeholder](art/placeholder.gif)\n\n- Show **two activities side-by-side** by defined in its **split rule**. This split action will be\n  explicitly triggered from the source activity.\n\n![activity-embedding-split-rules](art/a-b-c-d-split-rules.gif)\n\n- We are going to see how to **know whether an activity is running embedded or not**.\n\n![activity-embedding-is-embedded](art/activity-embedded-true-and-false.png)\n\n## Activity Embedding and Jetpack Window Manager\n\n- [Activity Embedding](https://developer.android.com/reference/androidx/window/layout/FoldingFeature#isSeparating())\n- [Jetpack Window Manager](https://developer.android.com/guide/topics/large-screens/make-apps-fold-aware)\n\n## Code of Conduct\n\nThis project has adopted\nthe [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For\nmore information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)\nor contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or\ncomments.\n\n## License\n\nThis code is licensed under [MIT](https://mit-license.org/) Open Source license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarvaliente%2Factivity-embedding-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarvaliente%2Factivity-embedding-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarvaliente%2Factivity-embedding-sample/lists"}