{"id":13396090,"url":"https://github.com/hoang8f/android-flat-button","last_synced_at":"2025-05-15T15:06:40.986Z","repository":{"id":16873534,"uuid":"19633938","full_name":"hoang8f/android-flat-button","owner":"hoang8f","description":"FButton - a flat button library for Android","archived":false,"fork":false,"pushed_at":"2018-10-25T12:22:08.000Z","size":2157,"stargazers_count":1397,"open_issues_count":36,"forks_count":328,"subscribers_count":58,"default_branch":"master","last_synced_at":"2024-07-31T18:16:29.759Z","etag":null,"topics":["android","fbutton"],"latest_commit_sha":null,"homepage":"","language":"Java","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/hoang8f.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":"2014-05-10T05:10:10.000Z","updated_at":"2024-07-30T02:37:50.000Z","dependencies_parsed_at":"2022-08-04T12:00:13.893Z","dependency_job_id":null,"html_url":"https://github.com/hoang8f/android-flat-button","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/hoang8f%2Fandroid-flat-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoang8f%2Fandroid-flat-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoang8f%2Fandroid-flat-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoang8f%2Fandroid-flat-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoang8f","download_url":"https://codeload.github.com/hoang8f/android-flat-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":["android","fbutton"],"created_at":"2024-07-30T18:00:39.727Z","updated_at":"2025-05-15T15:06:40.963Z","avatar_url":"https://github.com/hoang8f.png","language":"Java","readme":"FButton [![Maven Central](https://maven-badges.herokuapp.com/maven-central/info.hoang8f/fbutton/badge.svg)](https://maven-badges.herokuapp.com/maven-central/info.hoang8f/fbutton)\n=======\nFButton is a custom Button of Android with \"Flat UI\" concept. FButton's design get inspiration from [designmono](http://designmodo.github.io/Flat-UI/). This library is very small and highly customizable.\n\nDemo application on playstore:\nhttps://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo\n\nScreenshot\n----------\n![](https://raw.githubusercontent.com/hoang8f/android-flat-button/master/screenshot/screenshot.gif)\n\nIncluding in your project\n-------------------------\n###Using Maven\nFButton Library is pushed to [Maven Central](http://search.maven.org/#search|ga|1|fbutton), so you just need to add the following dependency to your `build.gradle`.\n\n    dependencies {\n        compile 'info.hoang8f:fbutton:1.0.5'\n    }\n    \n###Manually\nCopy/merge the following files to corresponding folder/file:\n   + info/hoang8f/widget/FButton.java\n   + res/values/attrs.xml\n   + res/values/colors.xml\n   + res/values/dimens.xml\n\nCustomizable attributes\n-----------------------\n\n|  Attribute    |   default value   | xml           |                 java                |\n|---------------|-------------------|---------------|-------------------------------------|\n| button color  |      #3eadeb      | buttonColor   | setButtonColor(int color)           |\n| enable shadow |        true       | shadowEnabled | setShadowEnabled(boolean isEnabled) |\n| shadow color  |  Automatically generated \u003cbr\u003e from button color   | shadowColor   | setShadowColor(int color)           |\n| shadow height |        4dp        | shadowHeight  | setShadowHeight(int height)         |\n| corner radius |        8dp        | cornerRadius  | setCornerRadius(int radius)         |\n\nUsage\n-----\nIf the default values of custom attribues did not meet your requirement, you can easily re-config that attributes. This is sample code that you can refer. you can also browse demo app for more details.\n\n### via xml (sample)\n-  Define `xmlns:fbutton=\"http://schemas.android.com/apk/res-auto\"` on root of your xml file\n\n```xml\n\u003cinfo.hoang8f.widget.FButton\n    ...\n   fbutton:buttonColor=\"@color/color_concrete\"\n   fbutton:shadowColor=\"@color/color_asbestos\"\n   fbutton:shadowEnabled=\"true\"\n   fbutton:shadowHeight=\"5dp\"\n   fbutton:cornerRadius=\"5dp\"\n    ...\n     /\u003e\n```\n\n### via code (sample)\n```java\ndisabledBtn.setButtonColor(getResources().getColor(R.color.color_concrete));\ndisabledBtn.setShadowColor(getResources().getColor(R.color.color_asbestos));\ndisabledBtn.setShadowEnabled(true);\ndisabledBtn.setShadowHeight(5);\ndisabledBtn.setCornerRadius(5);\n```\n\nColor Swatches\n--------------\nFor your convenience Swatches Preset by [designmono](http://designmodo.github.io/Flat-UI/) are also defined in this library\n```xml\n //Color Swatches provided by http://designmodo.github.io/Flat-UI/\n\u003ccolor name=\"fbutton_color_turquoise\"\u003e#1abc9c\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_green_sea\"\u003e#16a085\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_emerald\"\u003e#2ecc71\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_nephritis\"\u003e#27ae60\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_peter_river\"\u003e#3498db\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_belize_hole\"\u003e#2980b9\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_amethyst\"\u003e#9b59b6\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_wisteria\"\u003e#8e44ad\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_wet_asphalt\"\u003e#34495e\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_midnight_blue\"\u003e#2c3e50\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_sun_flower\"\u003e#f1c40f\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_orange\"\u003e#f39c12\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_carrot\"\u003e#e67e22\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_pumpkin\"\u003e#d35400\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_alizarin\"\u003e#e74c3c\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_pomegranate\"\u003e#c0392b\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_clouds\"\u003e#ecf0f1\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_silver\"\u003e#bdc3c7\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_concrete\"\u003e#95a5a6\u003c/color\u003e\n\u003ccolor name=\"fbutton_color_asbestos\"\u003e#7f8c8d\u003c/color\u003e\n```\n\nDeveloped By\n-------\nLe Van Hoang (@hoang8f)\n\nLicense\n-------\n       Copyright {2014} {Le Van Hoang}\n    \n       Licensed under the Apache License, Version 2.0 (the \"License\");\n       you may not use this file except in compliance with the License.\n       You may obtain a copy of the License at\n    \n           http://www.apache.org/licenses/LICENSE-2.0\n    \n       Unless required by applicable law or agreed to in writing, software\n       distributed under the License is distributed on an \"AS IS\" BASIS,\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n       See the License for the specific language governing permissions and\n       limitations under the License.\n       \n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Java","Libs","fbutton"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoang8f%2Fandroid-flat-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoang8f%2Fandroid-flat-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoang8f%2Fandroid-flat-button/lists"}