{"id":16687142,"url":"https://github.com/redth/xamarin.chromecustomtabs","last_synced_at":"2025-05-15T04:34:54.483Z","repository":{"id":32890525,"uuid":"36485005","full_name":"Redth/Xamarin.ChromeCustomTabs","owner":"Redth","description":"How to use Chrome Custom Tabs in your Xamarin.Android apps!","archived":false,"fork":false,"pushed_at":"2016-04-04T19:50:57.000Z","size":241,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T23:48:14.903Z","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":"apache-2.0","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.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-29T06:00:01.000Z","updated_at":"2022-06-10T10:04:14.000Z","dependencies_parsed_at":"2022-09-02T22:22:47.073Z","dependency_job_id":null,"html_url":"https://github.com/Redth/Xamarin.ChromeCustomTabs","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/Redth%2FXamarin.ChromeCustomTabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarin.ChromeCustomTabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarin.ChromeCustomTabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarin.ChromeCustomTabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/Xamarin.ChromeCustomTabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254274732,"owners_count":22043575,"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:07:57.863Z","updated_at":"2025-05-15T04:34:54.154Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NOTE: This code is now deprecated since Android Support Library now includes Custom Tabs.  You can find the Xamarin bindings and samples in the component: https://components.xamarin.com/view/xamandroidsupportcustomtabs\n\n----\n\n# Xamarin.ChromeCustomTabs\n\nGoogle just announced the ability to use the Chrome browser's tabs within your own app at Google I/O 2015.\n\nThis is currently only available in Chrome for Android version 44 and higher, which as of the time of this document is available as the *Chrome Dev* app on the Play Store.\n\n![Chrome Custom Tabs in Xamarin.Android](ChromeCustomTabs.png)\n\n## Setup\nOnce you've installed the [*Chrome Dev*](https://play.google.com/store/apps/details?id=com.chrome.dev) app, you need to navigate to [chrome://flags](chrome://flags) and enable **Enable Hosted Mode**, and restart your browser.\n\n## Loading a Page\nYou can load pages without any customization very easily:\n\n```csharp\nvar hostedManager = new HostedActivityManager (this);\nvar uiBuilder = new HostedUIBuilder ();\n\nhostedManager.LoadUrl (\"http://google.com\", uiBuilder);\n```\n\n## Customization\nYou can also customize the look and feel of the browser tab.  You can change the background colour of the toolbar, customize start and exit animations, add items to the overflow menu, and even add icons to the action bar!\n\n\n```csharp\n// Xamarin Blue\nuiBuilder.SetToolbarColor (Color.Argb (255, 52, 152, 219));\n\n// Customize animations\nuiBuilder.SetStartAnimations (this, Resource.Animation.slide_in_right, Resource.Animation.slide_out_left);\nuiBuilder.SetExitAnimations (this, Resource.Animation.slide_in_left, Resource.Animation.slide_out_right);\n```\nSee the sample for more information about adding menu and action bar items.\n\n## NuGet\n\nThere is a package available on NuGet: http://www.nuget.org/packages/Xamarin.Android.ChromeCustomTabs\n\nThere will be a component in the Xamarin Component Store soon with Samples and documentation!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fxamarin.chromecustomtabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredth%2Fxamarin.chromecustomtabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fxamarin.chromecustomtabs/lists"}