{"id":24543841,"url":"https://github.com/douglasjunior/android-simple-tooltip","last_synced_at":"2025-05-16T08:06:31.620Z","repository":{"id":8460866,"uuid":"58489415","full_name":"douglasjunior/android-simple-tooltip","owner":"douglasjunior","description":"A simple library based on PopupWindow to create Tooltips on Android. 💚","archived":false,"fork":false,"pushed_at":"2024-08-11T00:42:01.000Z","size":997,"stargazers_count":815,"open_issues_count":2,"forks_count":192,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-12T04:48:05.372Z","etag":null,"topics":["android","animation","dialog","easy-to-use","hacktoberfest","kiss","popup-window","tooltip","ui"],"latest_commit_sha":null,"homepage":"","language":"Java","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/douglasjunior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"douglasjunior","patreon":"douglasjunior","custom":"paypal.me/douglasnassif"}},"created_at":"2016-05-10T19:51:48.000Z","updated_at":"2025-03-25T10:15:54.000Z","dependencies_parsed_at":"2024-08-11T01:48:57.683Z","dependency_job_id":null,"html_url":"https://github.com/douglasjunior/android-simple-tooltip","commit_stats":{"total_commits":110,"total_committers":14,"mean_commits":7.857142857142857,"dds":0.4636363636363636,"last_synced_commit":"21083fce4495666cf29f062b23a8e2838cbabc46"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasjunior%2Fandroid-simple-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasjunior%2Fandroid-simple-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasjunior%2Fandroid-simple-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasjunior%2Fandroid-simple-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douglasjunior","download_url":"https://codeload.github.com/douglasjunior/android-simple-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"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","animation","dialog","easy-to-use","hacktoberfest","kiss","popup-window","tooltip","ui"],"created_at":"2025-01-22T20:15:18.149Z","updated_at":"2025-05-16T08:06:26.612Z","avatar_url":"https://github.com/douglasjunior.png","language":"Java","funding_links":["https://github.com/sponsors/douglasjunior","https://patreon.com/douglasjunior","paypal.me/douglasnassif","https://www.patreon.com/douglasjunior","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=E32BUP77SVBA2"],"categories":[],"sub_categories":[],"readme":"# Android Simple Tooltip\n\n[PT](https://github.com/douglasjunior/android-simple-tooltip/blob/master/README.pt.md)\n\n[![Licence MIT](https://img.shields.io/badge/licence-MIT-blue.svg)](https://github.com/douglasjunior/android-simple-tooltip/blob/master/LICENSE)\n[![Build Status](https://app.travis-ci.com/douglasjunior/android-simple-tooltip.svg?branch=master)](https://app.travis-ci.com/douglasjunior/android-simple-tooltip)\n[![Release](https://jitpack.io/v/douglasjunior/android-simple-tooltip.svg)](https://jitpack.io/#douglasjunior/android-simple-tooltip)\n[![Downloads](https://jitpack.io/v/douglasjunior/android-simple-tooltip/month.svg)](#download)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20Simple%20Tooltip-yellow.svg?style=flat)](http://android-arsenal.com/details/1/3578)\n\nA simple library based on [PopupWindow](http://developer.android.com/intl/pt-br/reference/android/widget/PopupWindow.html) to create Tooltips on Android.\n\n## Features\n\n - Working from Android 4.0 (API 14)\n - Simple to use: few parameters in a single line of code\n - Animation with speed and size control\n - Option to close with touch inside or outside of the tooltip.\n - Modal mode (prevents touch in the background)\n - Overlay (darkens the background highlighting the anchor)\n - Customizable arrow\n - Inflatable content from a `View` or `XML` layout.\n - Colors and dimensions customized by `Builder` or `XML` resources\n\n## Demo\n\n![Demo](https://raw.githubusercontent.com/douglasjunior/android-simple-tooltip/master/screenshots/demo.gif)\n\n## Usage\n### Basic\n\n```java\nView yourView = findViewById(R.id.your_view);\n\nnew SimpleTooltip.Builder(this)\n    .anchorView(yourView)\n    .text(\"Texto do Tooltip\")\n    .gravity(Gravity.END)\n    .animated(true)\n    .transparentOverlay(false)\n    .build()\n    .show();\n```\n\n### Resources\n\n```xml\n\u003ccolor name=\"simpletooltip_background\"\u003e@color/colorAccent\u003c/color\u003e\n\u003ccolor name=\"simpletooltip_text\"\u003e@android:color/primary_text_light\u003c/color\u003e\n\u003ccolor name=\"simpletooltip_arrow\"\u003e@color/colorAccent\u003c/color\u003e\n```\n```xml\n\u003cdimen name=\"simpletooltip_max_width\"\u003e150dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_overlay_offset\"\u003e10dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_margin\"\u003e10dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_padding\"\u003e8dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_arrow_width\"\u003e30dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_arrow_height\"\u003e15dp\u003c/dimen\u003e\n\u003cdimen name=\"simpletooltip_animation_padding\"\u003e4dp\u003c/dimen\u003e\n```\n```xml\n\u003cinteger name=\"simpletooltip_overlay_alpha\"\u003e120\u003c/integer\u003e\n\u003cinteger name=\"simpletooltip_animation_duration\"\u003e800\u003c/integer\u003e\n```\n```xml\n\u003cstyle name=\"simpletooltip_default\" parent=\"@android:style/TextAppearance.Medium\"\u003e\u003c/style\u003e\n```\n\nMore info on the [sample project](https://github.com/douglasjunior/android-simple-tooltip/blob/master/sample/src/main/java/io/github/douglasjunior/androidSimpleTooltip/sample/MainActivity.java) and [javadoc](https://jitpack.io/com/github/douglasjunior/android-simple-tooltip/master-SNAPSHOT/javadoc/).\n\n## Download\n### Release\n\n1. Add it in your root `build.gradle` at the end of repositories:\n\n    ```javascript\n    allprojects {\n    \trepositories {\n    \t\t...\n    \t\tmaven { url \"https://jitpack.io\" }\n    \t}\n    }\n    ```\n\n2. Add the dependency in your `app/build.gradle`:\n\n    ```javascript\n    dependencies {\n        implementation 'com.github.douglasjunior:android-simple-tooltip:1.1.0'\n    }\n    ```\n\n### Snapshot\n\n```javascript\ndependencies {\n    implementation('com.github.douglasjunior:android-simple-tooltip:master-SNAPSHOT') {\n        changing = true // Gradle will then check for updates every 24 hours\n    }\n}\n```\n\n## Contribute\n\nNew features, bug fixes and improvements in the translation are welcome! For questions and suggestions use the [issues](https://github.com/douglasjunior/android-simple-tooltip/issues).\n\nBefore submit your PR, run the gradle check.\n```bash\n./gradlew build connectedCheck\n```\n\n\u003ca href=\"https://www.patreon.com/douglasjunior\"\u003e\u003cimg src=\"http://i.imgur.com/xEO164Z.png\" alt=\"Become a Patron!\" width=\"200\" /\u003e\u003c/a\u003e\n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=E32BUP77SVBA2)\n\n\n## Known issues\n\n1. If you close the `Dialog/Activity` without the Tooltip is closed, there may be the exception `java.lang.IllegalArgumentException: Could not lock surface`. This error occurs because the animation continue for a while after closing the `Dialog/Activity`. (This error does not impact the execution of the app)\n\n2. If you call `tooltip.show()` after `Activity/Dialog` is closed, there may be the exception `android.view.WindowLeaked: Activity has leaked window android.widget.PopupWindow$PopupViewContainer that was originally added here`. [Read more.](http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added) (This error does not impact the execution of the app)\n\n3. From API 24, Android has changed the behavior of `PopupWindow` in relation to the [`setClippingEnabled`](https://developer.android.com/reference/android/widget/PopupWindow.html#setClippingEnabled(boolean)) property, which causes the Popup to be cut off. [Read more](https://github.com/douglasjunior/android-simple-tooltip/issues/40).\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=douglasjunior/android-simple-tooltip\u0026type=Date)](https://star-history.com/#douglasjunior/android-simple-tooltip\u0026Date)\n\n## Licence\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2016 Douglas Nassif Roma Junior\n```\n\nSee the full [licence file](https://github.com/douglasjunior/android-simple-tooltip/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasjunior%2Fandroid-simple-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglasjunior%2Fandroid-simple-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasjunior%2Fandroid-simple-tooltip/lists"}