![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
com.github.spyhunter99:super-tooltip-aar
Advanced tools
SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views. Originally written by nhaarman at github
*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
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
:
Published 1/6/2017, v4.0.0
dependencies {
compile 'com.github.spyhunter99:super-tooltip-aar:4.0.0'
}
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;
}
});
You can customize the ToolTip
in several ways:
ToolTip.setText()
.ToolTip.setColor()
.ToolTip.setShadow()
.ToolTip.setAnimationType()
.ToolTip.setContentView()
.See the examples.
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.
FAQs
SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views. Originally written by nhaarman at github
We found that com.github.spyhunter99:super-tooltip-aar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.