super-tooltip-aar

SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views. Originally written by nhaarman at github

License

License

GroupId

GroupId

com.github.spyhunter99
ArtifactId

ArtifactId

super-tooltip-aar
Last Version

Last Version

4.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

super-tooltip-aar
SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views. Originally written by nhaarman at github
Project URL

Project URL

https://github.com/spyhunter99/supertooltips
Project Organization

Project Organization

com.github.spyhunter99
Source Code Management

Source Code Management

https://github.com/spyhunter99/supertooltips

Download super-tooltip-aar

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.spyhunter99/super-tooltip-aar/ -->
<dependency>
    <groupId>com.github.spyhunter99</groupId>
    <artifactId>super-tooltip-aar</artifactId>
    <version>4.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.spyhunter99/super-tooltip-aar/
implementation 'com.github.spyhunter99:super-tooltip-aar:4.0.2'
// https://jarcasting.com/artifacts/com.github.spyhunter99/super-tooltip-aar/
implementation ("com.github.spyhunter99:super-tooltip-aar:4.0.2")
'com.github.spyhunter99:super-tooltip-aar:aar:4.0.2'
<dependency org="com.github.spyhunter99" name="super-tooltip-aar" rev="4.0.2">
  <artifact name="super-tooltip-aar" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.spyhunter99', module='super-tooltip-aar', version='4.0.2')
)
libraryDependencies += "com.github.spyhunter99" % "super-tooltip-aar" % "4.0.2"
[com.github.spyhunter99/super-tooltip-aar "4.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
com.nineoldandroids : library jar 2.4.0

Project Modules

There are no modules declared in this project.

SuperToolTips (no longer discontinued!)

Build Status Maven Central

*This project was forked from https://github.com/ryanjohn1/onboarding, which was forked from https://github.com/nhaarman/supertooltips

SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views. Feel free to use it all you want in your Android apps provided that you cite this project and include the license in your app.

Changes/Delta from the original forks

  • No layouts changes are necessary
  • Significant reduction in boilerplate code
  • Simpler and easier to use
  • Fix for adding tooltips on list view items
  • Most APIs remain the same so migration should be straight forward
  • Fix for memory leaks
  • Multiple tool tip click listeners
  • MinSdkVersion is 8

Setup

Note: SuperToolTips now uses the gradle build structure. If you want to use this project in Eclipse, you should make the necessary changes.

Add the following to your build.gradle:

Last version

Published 11/18/2017, v4.0.2

dependencies {
    compile 'com.github.spyhunter99:super-tooltip-aar:4.0.2'
}

Usage

In your activity, add this

import com.spyhunter99.supertooltips.ToolTipManager;

public class MyActivity extends Activity {
    ToolTipManager tooltips;


    public void onCreate(Bundle saved) {
        super.onCreate(saved);
        //setContentView(...);

        tooltips = new ToolTipManager(this);
        //your stuff goes here....
    }

    public void onDestroy() {
        super.onDestroy();
        tooltips.onDestroy();
        tooltips = null;
    }

    //....
 }

Then if you had a button somewhere in your layout that you wanted a tooltip on long press...

//in onCreate
findViewById(R.id.listview_activity).setOnLongClickListener(new View.OnLongClickListener() {
    @Override
    public boolean onLongClick(View v) {
        ToolTip toolTip = new ToolTip()
            .withText("A demo for tooltips on list view items")
            .withColor(Color.RED) //or whatever you want
            .withAnimationType(ToolTip.AnimationType.FROM_MASTER_VIEW)
            .withShadow();
        tooltips.showToolTip(toolTip, v);
        return true;
    }
});

ToolTip customization

You can customize the ToolTip in several ways:

  • Specify a content text using ToolTip.setText().
  • Set a color using ToolTip.setColor().
  • Specify whether to show a shadow or not with ToolTip.setShadow().
  • Specify how to animate the ToolTip: from the view itself or from the top, using ToolTip.setAnimationType().
  • Set your own custom content View using ToolTip.setContentView().

See the examples.

Developed By

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
4.0.2
4.0.1
4.0.0