{"id":13428339,"url":"https://github.com/sephiroth74/android-target-tooltip","last_synced_at":"2025-05-15T08:10:06.457Z","repository":{"id":17516599,"uuid":"20304564","full_name":"sephiroth74/android-target-tooltip","owner":"sephiroth74","description":"Create Toast like tooltips, but targets can be specified, plus custom properties and features","archived":false,"fork":false,"pushed_at":"2023-10-19T09:12:49.000Z","size":11546,"stargazers_count":1523,"open_issues_count":88,"forks_count":278,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-14T12:18:41.890Z","etag":null,"topics":["android-library","android-tooltip","java","kotlin","kotlin-android","toast","tooltip"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/sephiroth74.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}},"created_at":"2014-05-29T18:50:04.000Z","updated_at":"2025-04-13T07:31:55.000Z","dependencies_parsed_at":"2022-08-23T15:02:30.957Z","dependency_job_id":"83f53b1d-0676-45de-a3a3-b0944f6a08ef","html_url":"https://github.com/sephiroth74/android-target-tooltip","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2Fandroid-target-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2Fandroid-target-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2Fandroid-target-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2Fandroid-target-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sephiroth74","download_url":"https://codeload.github.com/sephiroth74/android-target-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877968,"owners_count":21176244,"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-library","android-tooltip","java","kotlin","kotlin-android","toast","tooltip"],"created_at":"2024-07-31T01:00:53.227Z","updated_at":"2025-04-14T12:18:52.259Z","avatar_url":"https://github.com/sephiroth74.png","language":"Kotlin","readme":"Android Tooltip\n======================\n\nCreate Toast like tooltips, physical targets can be specified, or even points on screen.\nMany additional features and customizations. Just look at the samples Activities.\n\n[![Build Status](https://travis-ci.org/sephiroth74/android-target-tooltip.svg?branch=master)](https://travis-ci.org/sephiroth74/android-target-tooltip)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/it.sephiroth.android.library.targettooltip/target-tooltip-library/badge.svg)](https://maven-badges.herokuapp.com/maven-central/it.sephiroth.android.library.targettooltip/target-tooltip-library)\n[![](https://jitpack.io/v/sephiroth74/android-target-tooltip.svg)](https://jitpack.io/#sephiroth74/android-target-tooltip)\n\nInstallation\n===\n\n## Maven\n\n```gradle\nimplementation 'it.sephiroth.android.library.targettooltip:target-tooltip-library:**version**'\n```\t\n\t\n## JitPack\n\n**Step 1.** Add the JitPack repository to your build file:\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n**Step 2.** Add the dependency\n\n```gradle\ndependencies {\n        implementation 'com.github.sephiroth74:android-target-tooltip:Tag'\n}\n```\n\nGet the latest version  on [JitPack](https://jitpack.io/#sephiroth74/android-target-tooltip)\t\n\n\nUsage\n===\n\n```kotlin\n    val tooltip = Tooltip.Builder(Context)\n        .anchor(View, Int, Int, Boolean)\n        .anchor(Int, Int)\n        .text(CharSequence)\n        .styleId(Int)\n        .typeface(Typeface)\n        .maxWidth(Int)\n        .arrow(Boolean)\n        .floatingAnimation(Tooltip.Animation)\n        .closePolicy(ClosePolicy)\n        .showDuration(Long)\n        .fadeDuration(Long)\n        .overlay(Boolean)\n        .create()\n    \n    tooltip\n        .doOnHidden { }\n        .doOnFailure { }\n        .doOnShown { }\n        .show(View, Tooltip.Gravity, Boolean)\n```\n\nSee the inner [Builder][1] class for the complete set of options\n\nCustomization\n===\n\nTooltip style can be customized in your style object:\n\n```xml\n    \u003c!-- default style --\u003e\n    \u003cdeclare-styleable name=\"TooltipLayout\"\u003e\n        \u003cattr name=\"ttlm_padding\" format=\"dimension\" /\u003e\n        \u003cattr name=\"ttlm_strokeColor\" format=\"color\" /\u003e\n        \u003cattr name=\"ttlm_backgroundColor\" format=\"color\" /\u003e\n        \u003cattr name=\"ttlm_strokeWeight\" format=\"dimension\" /\u003e\n        \u003cattr name=\"ttlm_cornerRadius\" format=\"dimension\" /\u003e\n        \u003cattr name=\"ttlm_arrowRatio\" format=\"float\" /\u003e\n        \u003cattr name=\"android:textAppearance\" /\u003e\n        \u003cattr name=\"ttlm_overlayStyle\" format=\"reference\" /\u003e\n        \u003cattr name=\"ttlm_elevation\" format=\"dimension\" /\u003e\n\n        \u003c!-- font file path inside your assets folder --\u003e\n        \u003cattr name=\"ttlm_font\" format=\"string\" /\u003e\n\n        \u003c!-- textview text gravity --\u003e\n        \u003cattr name=\"android:gravity\" /\u003e\n    \u003c/declare-styleable\u003e\n```\n\nAnd this is the style for the overlay touch:\n\n```xml\n    \u003cdeclare-styleable name=\"TooltipOverlay\"\u003e\n        \u003cattr name=\"android:color\" /\u003e\n        \u003cattr name=\"android:alpha\" /\u003e\n        \u003cattr name=\"ttlm_repeatCount\" format=\"integer\" /\u003e\n        \u003cattr name=\"ttlm_duration\" format=\"integer\" /\u003e\n        \u003cattr name=\"android:layout_margin\" /\u003e\n    \u003c/declare-styleable\u003e\n```\n\nthen pass the style in the Builder method **withStyleId(int resId)**\n\nScreenshots\n===\n![Screen shot](./screenshots/video2.gif)\n\n\n[1]: https://github.com/sephiroth74/android-target-tooltip/blob/master/library/src/main/java/it/sephiroth/android/library/tooltip/Tooltip.java#L1471\n\n\nLicense\n===\nThe MIT License\n\nSee [LICENSE](LICENSE)\n","funding_links":[],"categories":["Libraries","Kotlin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2Fandroid-target-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsephiroth74%2Fandroid-target-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2Fandroid-target-tooltip/lists"}