{"id":16687250,"url":"https://github.com/redth/flatui.xamarin.android","last_synced_at":"2025-03-21T18:33:24.038Z","repository":{"id":12204145,"uuid":"14809915","full_name":"Redth/FlatUI.Xamarin.Android","owner":"Redth","description":"FlatUI Port for Xamarin.Android of CengaLabs FlatUI Kit by @eluleci","archived":false,"fork":false,"pushed_at":"2014-02-08T05:09:44.000Z","size":1920,"stargazers_count":46,"open_issues_count":2,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-18T00:43:26.080Z","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.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-29T20:45:38.000Z","updated_at":"2021-09-15T13:32:54.000Z","dependencies_parsed_at":"2022-09-06T16:30:44.691Z","dependency_job_id":null,"html_url":"https://github.com/Redth/FlatUI.Xamarin.Android","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%2FFlatUI.Xamarin.Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FFlatUI.Xamarin.Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FFlatUI.Xamarin.Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FFlatUI.Xamarin.Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/FlatUI.Xamarin.Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849547,"owners_count":20520735,"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:25.395Z","updated_at":"2025-03-21T18:33:23.535Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"##FlatUI - Xamarin.Android##\n\nFlatUI Port for Xamarin.Android of CengaLabs FlatUI Kit by @eluleci \n\n![FlatUI Sample Screenshot](https://raw.github.com/Redth/FlatUI.Xamarin.Android/master/Art/FlatUI-Banner.png)\n\n\n###Features###\n\n\n - Very easy to use\n - Many themes built in\n - Create custom themes in only a few lines of code\n - Change themes on the fly\n - ActionBar gets themed too\n\n###Getting Started###\n\nTo use FlatUI, all you need to do is replace some of your normal widgets with the FlatUI version\n\nYour normal button:\n\n```xml\n\u003cButton\n  android:id=\"@+id/buttonBlock\"\n  android:layout_width=\"wrap_content\"\n  android:layout_height=\"wrap_content\" /\u003e\n```\n\nNow becomes:\n\n```xml\n\u003cFlatUI.FlatButton\n  android:id=\"@+id/buttonBlock\"\n  android:layout_width=\"wrap_content\"\n  android:layout_height=\"wrap_content\" /\u003e\n```\n\n\n**NOTE:** FlatUI only works on Android 4.x+!\n\n\n###Changing Themes###\n\nYou can set the theme a number of ways:\n\n - Call `FlatUI.SetActivityTheme(FlatTheme.Sky());` to theme all controls the same in the activity\n - Set the attribute on the widget in the layout file: `flatui:theme=\"sky\"`\n - Programmatically set each widget's theme: `myFlatButton.Theme = FlatTheme.Sky();`\n\n###FlatUI Widgets###\n\nThere are a number of 'flat' versions of android widgets available that inherit from their normal counterparts:\n\n\n - FlatEditText\n - FlatTextView\n - FlatToggleButton\n - FlatRadioButton\n - FlatCheckBox\n - FlatSeekBar\n - FlatButton\n \n\n###Custom Themes###\nIt's very easy to make custom themes:\n\n```csharp\n//Create a custom theme very easily!\nvar customJabbrTheme = new FlatUI.FlatTheme () {\n    DarkAccentColor = Android.Graphics.Color.ParseColor(\"#00103f\"),\n    BackgroundColor = Android.Graphics.Color.ParseColor(\"#003259\"),\n    LightAccentColor = Android.Graphics.Color.ParseColor(\"#005191\"),\n    VeryLightAccentColor = Android.Graphics.Color.ParseColor(\"#719fc3\")\n};\n\n//Set your theme programmatically\nFlatUI.SetActivityTheme(this, customJabbrTheme);\n```\n\n\n###ActionBar###\n\nFinally, the ActionBar can also be themed:\n\n```csharp\nFlatUI.FlatUI.SetActionBarTheme (this, FlatUI.FlatUI.DefaultTheme, false);\n```\n\n\n###Layout File Attributes###\n\nIf you want, you can specify some of the attributes for the FlatUI widgets directly in your Android Layout axml files.\n\nFirst, make sure you add the `xmlns:flatui` namespace to your root Layout item like this:\n\n```xml\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:flatui=\"http://schemas.android.com/apk/res-auto\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\u003e ...\n```\n\nNow, you can set attributes on various FlatUI widgets like this:\n\n```xml\n    \u003cFlatUI.FlatEditText\n        android:id=\"@+id/edittextFlat\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        flatui:fieldStyle=\"flat\"\n        flatui:cornerRadius=\"3dip\"\n        flatui:fontWeight=\"bold\" /\u003e\n```\n\nHere's a list of all the attributes you can set in your layout file for the various FlatUI widgets:\n\n - **FlatEditText:** fieldStyle, cornerRadius,textPadding, fontFamily, fontWeight, textApperance\n - **FlatSeekBar:** none\n - **FlatButton:** textAppearance, textPadding, cornerRadius, isFullFlat\n - **FlatCheckBox:** cornerRadius, size, fontFamily, fontWeight\n - **FlatRadioButton:** size, fontFamily, fontWeight\n - **FlatToggleButton:** size\n \n\n\n###Changes###\n\n\n - Nov. 30, 2013 - Initial Release\n \n\n###Thanks###\n\nBig thanks goes to @eluleci for his initial work on the original Java version of FlatUI: https://github.com/eluleci/FlatUI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fflatui.xamarin.android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredth%2Fflatui.xamarin.android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fflatui.xamarin.android/lists"}