{"id":13639807,"url":"https://github.com/dimorinny/floating-text-button","last_synced_at":"2025-04-28T16:31:27.735Z","repository":{"id":44331165,"uuid":"80314693","full_name":"dimorinny/floating-text-button","owner":"dimorinny","description":"Simple floating button with action text","archived":false,"fork":false,"pushed_at":"2023-02-05T03:07:15.000Z","size":780,"stargazers_count":148,"open_issues_count":6,"forks_count":50,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-24T17:54:08.224Z","etag":null,"topics":["android","ui"],"latest_commit_sha":null,"homepage":null,"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/dimorinny.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}},"created_at":"2017-01-28T22:20:35.000Z","updated_at":"2024-11-13T10:21:42.000Z","dependencies_parsed_at":"2024-01-14T11:06:05.333Z","dependency_job_id":"de17b042-9230-4255-8695-fc4f618f770b","html_url":"https://github.com/dimorinny/floating-text-button","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimorinny%2Ffloating-text-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimorinny%2Ffloating-text-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimorinny%2Ffloating-text-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimorinny%2Ffloating-text-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimorinny","download_url":"https://codeload.github.com/dimorinny/floating-text-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251345933,"owners_count":21574807,"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","ui"],"created_at":"2024-08-02T01:01:05.126Z","updated_at":"2025-04-28T16:31:26.557Z","avatar_url":"https://github.com/dimorinny.png","language":"Java","readme":"# Floating Text Button\n\n[![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14)\n[![](https://jitpack.io/v/dimorinny/floating-text-button.svg)](https://jitpack.io/#dimorinny/floating-text-button)\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/dimorinny/floating-text-button/master/art/logo.png\" width=\"512\"\u003e\n\u003c/div\u003e\n\n## Dependency\n\nFirstly, add [Jitpack](https://jitpack.io/#dimorinny/floating-text-button/) repository in your root build.gradle file (not your module build.gradle file):\n\n```\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nAdd dependency to your module's build.gradle file:\n\n```\ndependencies {\n    compile 'com.github.dimorinny:floating-text-button:0.0.4'\n}\n```\n\n## Usage\n\nAdd floating text button to your layout file like this:\n\n```xml\n\u003cru.dimorinny.floatingtextbutton.FloatingTextButton\n\tandroid:id=\"@+id/action_button\"\n\tandroid:layout_width=\"wrap_content\"\n\tandroid:layout_height=\"wrap_content\"\n\tapp:floating_background_color=\"@color/color_action\"\n\tapp:floating_left_icon=\"@drawable/ic_action_white_24dp\"\n\tapp:floating_title=\"@string/action_button_title\"\n\tapp:floating_title_color=\"@android:color/white\"\n\t/\u003e\n```\n\nAlso you can use `app:floating_right_icon` for adding icon to right side.\n\nFor more complication usage - see [example](https://github.com/dimorinny/floating-text-button/tree/master/app/src/main).\n\n## Demo\n\n![Demo](https://github.com/dimorinny/floating-text-button/blob/master/art/sample.gif?raw=true)\n\n## Use with snackbar\n\nIf you want to use FloatingTextButton with snackbar, you should add `layout_behavior` attribute to your layout like this:\n\n```\n\u003cru.dimorinny.floatingtextbutton.FloatingTextButton\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:layout_behavior=\"ru.dimorinny.floatingtextbutton.behavior.SnackbarBehavior\"\n        app:floating_background_color=\"?attr/colorPrimary\"\n        app:floating_icon=\"@drawable/ic_phone_white_24dp\"\n        app:floating_title=\"@string/call_button_title\"\n        app:floating_title_color=\"@android:color/white\"/\u003e\n```\n\n![Demo](https://github.com/dimorinny/floating-text-button/blob/master/art/sample_behavior.gif?raw=true)","funding_links":[],"categories":["按钮"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimorinny%2Ffloating-text-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimorinny%2Ffloating-text-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimorinny%2Ffloating-text-button/lists"}