{"id":16687154,"url":"https://github.com/redth/mauiedgetoedge","last_synced_at":"2025-04-10T00:17:49.747Z","repository":{"id":255236641,"uuid":"848959604","full_name":"Redth/MauiEdgeToEdge","owner":"Redth","description":"Playing around with edge to edge apps and safe areas","archived":false,"fork":false,"pushed_at":"2024-08-28T19:33:22.000Z","size":224,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:17:41.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/Redth.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":"2024-08-28T18:07:25.000Z","updated_at":"2025-02-10T12:20:50.000Z","dependencies_parsed_at":"2024-08-28T19:54:50.945Z","dependency_job_id":"83c12aeb-11fa-419d-9778-e46883ca8511","html_url":"https://github.com/Redth/MauiEdgeToEdge","commit_stats":null,"previous_names":["redth/mauiedgetoedge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMauiEdgeToEdge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMauiEdgeToEdge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMauiEdgeToEdge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMauiEdgeToEdge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/MauiEdgeToEdge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131318,"owners_count":21052820,"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-10-12T15:08:01.677Z","updated_at":"2025-04-10T00:17:49.721Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MauiEdgeToEdge\nPlaying around with edge to edge apps and safe areas\n\n## Android\nIf we enable Edge to Edge on Android in a MAUI app (built against, targeting, and _running_ on API 35), things don't quite look right:\n\n![image](https://github.com/user-attachments/assets/7f3d46cf-bd24-4e7c-b383-f7a117db5b10)\n\n\u003e The 'EdgeToEdge' class was ported from Kotlin code until we reference newer AndroidX packages which contain this functionality\n\n\n### Fixing the MaterialToolbar on NavigationPage\n\nIt looks like we use `MaterialToolbar` nested inside an `AppBarLayout`.  The `AppBarLayout` needs to be set to fit system windows in order to have the correct padding to cause content to not layout beneath the status bar:\n\n```csharp\nMicrosoft.Maui.Handlers.ToolbarHandler.Mapper.AppendToMapping(\"FixInsets\", (handler, view)=\u003e\n{\n    var parentView = view.Parent?.Handler?.PlatformView;\n\n    if (parentView is Activity activity)\n    {\n        activity?.FindViewById\u003cAppBarLayout\u003e(Resource.Id.navigationlayout_appbar)\n            ?.SetFitsSystemWindows(true);\n    }\n    else if (parentView is Android.Views.View androidView)\n    {\n        androidView?.FindViewById\u003cAppBarLayout\u003e(Resource.Id.navigationlayout_appbar)\n            ?.SetFitsSystemWindows(true);\n    }\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fmauiedgetoedge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredth%2Fmauiedgetoedge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fmauiedgetoedge/lists"}