Android Tooltip


Source link: https://github.com/sephiroth74/android-target-tooltip

Android Tooltip

Create Toast like tooltips, physical targets can be specified, or even points on screen. Many additional features and customizations. Just look at the samples Activities.

Installation

compile 'it.sephiroth.android.library.targettooltip:target-tooltip-library:1.3.15' 

Usage

Tooltip.make(this,
new Builder(101)
.anchor(aView, Gravity.BOTTOM)
.closePolicy(new ClosePolicy()

 .insidePolicy(true, false)

 .outsidePolicy(true, false), 3000)
.activateDelay(800)
.showDelay(300)
.text(R.string.hello_world)
.maxWidth(500)
.withArrow(true)
.withOverlay(true)
.typeface(mYourCustomFont)
.floatingAnimation(AnimationBuilder.DEFAULT)
.build()  ).show();
 

See the inner Builder class for the complete set of options

Customization

Tooltip style can be customized in your style object:

<!-- default style --> <declare-styleable name="TooltipLayout">
  <attr name="ttlm_padding" format="dimension" />
  <attr name="ttlm_strokeColor" format="color" />
  <attr name="ttlm_backgroundColor" format="color" />
  <attr name="ttlm_strokeWeight" format="dimension" />
  <attr name="ttlm_cornerRadius" format="dimension" />
  <attr name="ttlm_arrowRatio" format="float" />
  <attr name="android:textAppearance" />
  <attr name="ttlm_overlayStyle" format="reference" />
  <attr name="ttlm_elevation" format="dimension" />

<!-- font file path inside your assets folder -->
  <attr name="ttlm_font" format="string" />

<!-- textview text gravity -->
  <attr name="android:gravity" /> </declare-styleable> 

And this is the style for the overlay touch:

<declare-styleable name="TooltipOverlay">
  <attr name="android:color" />
  <attr name="android:alpha" />
  <attr name="ttlm_repeatCount" format="integer" />
  <attr name="ttlm_duration" format="integer" />
  <attr name="android:layout_margin" /> </declare-styleable> 

then pass the style in the Builder method withStyleId(int resId)

Video

Screenshots

Resources

This is a Scrollable App Bar for Android.

Fixed viewport image cropping library for Android with built-in support for Picasso or Glide.

Permiso is an Android library that makes requesting runtime permissions a whole lot easier.

This is a wrapper of IP-API for Android platform using Volley.

This is a simple library that resolves U.S. postal zip codes to the appropriate City/State.

BadgedImageview allows you to show badge into Imageview.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes