{"id":13712225,"url":"https://github.com/tobias-oschmann/ResponsiveLayout","last_synced_at":"2025-05-06T21:33:50.386Z","repository":{"id":239505156,"uuid":"213462860","full_name":"tobias-oschmann/ResponsiveLayout","owner":"tobias-oschmann","description":"A responsive LayoutView for Xamarin.Forms where you can define multiple layout templates for different widths, platforms or device types (Idioms).","archived":false,"fork":false,"pushed_at":"2019-10-10T20:24:33.000Z","size":9796,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T23:24:08.405Z","etag":null,"topics":["layout","responsive","responsive-layout","xamarin","xamarin-forms"],"latest_commit_sha":null,"homepage":"","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/tobias-oschmann.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":"2019-10-07T18:57:54.000Z","updated_at":"2021-11-16T13:33:33.000Z","dependencies_parsed_at":"2024-05-13T00:39:08.905Z","dependency_job_id":null,"html_url":"https://github.com/tobias-oschmann/ResponsiveLayout","commit_stats":null,"previous_names":["tobias-oschmann/responsivelayout"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobias-oschmann%2FResponsiveLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobias-oschmann%2FResponsiveLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobias-oschmann%2FResponsiveLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobias-oschmann%2FResponsiveLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobias-oschmann","download_url":"https://codeload.github.com/tobias-oschmann/ResponsiveLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224535883,"owners_count":17327611,"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":["layout","responsive","responsive-layout","xamarin","xamarin-forms"],"created_at":"2024-08-02T23:01:16.198Z","updated_at":"2024-11-13T22:31:28.713Z","avatar_url":"https://github.com/tobias-oschmann.png","language":"C#","funding_links":[],"categories":["UI"],"sub_categories":[],"readme":"# **ResponsiveLayout**\nA responsive LayoutView for Xamarin.Forms where you can define multiple layout templates for different widths, platforms or device types (Idioms).\n\nTested on Android and UWP. iOS might also work.\n\n## NuGet Installation\n\nhttps://www.nuget.org/packages/ResponsiveLayout.Xamarin.Forms\n\n    Install-Package ResponsiveLayout.Xamarin.Forms\n\n\n\n\n## Properties\n\n### **EnableContentCaching**: bool\n\nIf this option is enabled, the **ResponsiveLayout** will cache the created contents for each requested template.\nThis is especially useful if you use the LayoutMode \"Width\" on a desktop application.\n\n### **LayoutMode**: ResponsiveLayoutMode\n\nDetermines which DataTemplates will be used.\n\nAvailable values are: **[Width](#LayoutMode:\u0026nbsp;Width)**, **[Idiom](#LayoutMode:\u0026nbsp;Idiom)**, **[Platform](#LayoutMode:\u0026nbsp;Platform)** and **[Orientation](#LayoutMode:\u0026nbsp;Orientation)**.\n\n---\n\n**Here are some examples:**\n\n\n# LayoutMode: Width\n\nThe **ResponsiveLayout** will choose one of the given templates depending on the width of the main page.\nYou don't have to sepcify a template for every size (XS - XL), the **ResponsiveLayout** takes the next appropriate template.\n\n## Templates\n- **ContentTemplateXS** - Width \u003c 576px\n- **ContentTemplateSM** - Width \u003e= 576px\n- **ContentTemplateMD** - Width \u003e= 768px\n- **ContentTemplateLG** - Width \u003e= 992px\n- **ContentTemplateXL** - Width \u003e= 1200px\n\n![Demo of Layout Mode \"Width\" on Android](./Docs/LayoutMode_Width_Android.gif)\n![Demo of Layout Mode \"Width\" on UWP](./Docs/LayoutMode_Width_UWP.gif)\n\n# LayoutMode: Idiom\n\nThe **ResponsiveLayout** takes the template for the current Device Idiom.\nIf you don't have a specific template for an Idiom, the **ResponsiveLayout** uses the default template.\n\n## Templates\n- **ContentTemplateIdiomDefault** - The default template for this mode.\n- **ContentTemplateIdiomPhone** - TargetIdiom:Phone\n- **ContentTemplateIdiomTablet** - TargetIdiom:Tablet\n- **ContentTemplateIdiomDesktop** - TargetIdiom:Desktop\n- **ContentTemplateIdiomTV** - TargetIdiom:TV\n- **ContentTemplateIdiomWatch** - TargetIdiom:Watch\n\n![Demo of Layout Mode \"Idiom\" on Android](./Docs/LayoutMode_Idiom_Android.png)\n![Demo of Layout Mode \"Idiom\" on UWP](./Docs/LayoutMode_Idiom_UWP.png)\n\n# LayoutMode: Platform\n\nThe **ResponsiveLayout** uses the appropriate template for the current RuntimePlatform.\nIf you don't have a specific template for a Platform, the **ResponsiveLayout** uses the default template.\n\n## Templates\n- **ContentTemplatePlatformDefault** - The default template for this mode.\n- **ContentTemplatePlatformIOS** - Device.iOS\n- **ContentTemplatePlatformAndroid** - Device.Android\n- **ContentTemplatePlatformUWP** - Device.UWP\n- **ContentTemplatePlatformMacOS** - Device.MacOS\n- **ContentTemplatePlatformGTK** - Device.GTK\n- **ContentTemplatePlatformTizen** - Device.Tizen\n- **ContentTemplatePlatformWPF** - Device.WPF\n\n# LayoutMode: Orientation\n\nThe **ResponsiveLayout** uses the appropriate template for the current device orientation.\n\n## Templates\n- **ContentTemplatePortrait** - Height \u003e Width\n- **ContentTemplateLandscape** - Width \u003e Height\n\n![Demo of Layout Mode \"Orientation\" on Android](./Docs/LayoutMode_Orientation_Android.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobias-oschmann%2FResponsiveLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobias-oschmann%2FResponsiveLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobias-oschmann%2FResponsiveLayout/lists"}