Comments (10)
Seems you didnt use theme or you use this library in widnowManger so add Them to your Context
from android-target-tooltip.
@medozeus @firasalkafri I am also getting the same issue. Here is my code where I displayed tooltip.
Tooltip.make(MainActivity.this,
new Tooltip.Builder()
.anchor(v, Tooltip.Gravity.BOTTOM)
.closePolicy(new Tooltip.ClosePolicy()
.insidePolicy(true, false)
.outsidePolicy(true, false), 3000)
.activateDelay(800)
.showDelay(300)
.text(strToDisplay)
.typeface(Typeface.DEFAULT)
.withArrow(true)
.withOverlay(true)
.floatingAnimation(Tooltip.AnimationBuilder.DEFAULT)
.build()
).show();
But I am getting error:
java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x3/d=0x1d1 "res/drawable/ic_menu_moreoverflow_material.xml" a=1 r=0x10803d6}
at android.content.res.TypedArray.getColor(TypedArray.java:447)
at it.sephiroth.android.library.tooltip.TooltipOverlayDrawable.(TooltipOverlayDrawable.java:54)
at it.sephiroth.android.library.tooltip.TooltipOverlay.init(TooltipOverlay.java:25)
at it.sephiroth.android.library.tooltip.TooltipOverlay.(TooltipOverlay.java:37)
at it.sephiroth.android.library.tooltip.Tooltip$TooltipViewImpl.(Tooltip.java:472)
at it.sephiroth.android.library.tooltip.Tooltip.make(Tooltip.java:71)
at com.cwa.eltekiq8quadselector.MainActivity$5.onClick(MainActivity.java:218)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
from android-target-tooltip.
@kevalpatel2106 did you use the code in activity or in window manger you must have an theme in your context and seems you don't have theme #fb.com/deluxezeus998
from android-target-tooltip.
@medozeus I used the tooltip in activity. I did not add theme to my style file.
from android-target-tooltip.
@kevalpatel2106 just try appcompatactivity theme
from android-target-tooltip.
News about this issue?
from android-target-tooltip.
from android-target-tooltip.
@medozeus I've do this!
from android-target-tooltip.
Hi! I have the same issue. Have anyone solved it? Using API level 19. Thanks.
@michelelacorte have you solved it?
Fatal Exception: java.lang.RuntimeException
Failed to resolve attribute at index 96
android.content.res.TypedArray.getColor (TypedArray.java:401)
androidx.appcompat.widget.AppCompatTextView.<init> (AppCompatTextView.java:79)
it.sephiroth.android.library.xtooltip.Tooltip.preparePopup (Tooltip.kt:309)
it.sephiroth.android.library.xtooltip.Tooltip.show (Tooltip.kt:624)
......
Uo.handleMessage (PG:64)
from android-target-tooltip.
Hi! I have the same issue. Have anyone solved it? Using API level 19. Thanks.
@michelelacorte have you solved it?Fatal Exception: java.lang.RuntimeException Failed to resolve attribute at index 96 android.content.res.TypedArray.getColor (TypedArray.java:401) androidx.appcompat.widget.AppCompatTextView.<init> (AppCompatTextView.java:79) it.sephiroth.android.library.xtooltip.Tooltip.preparePopup (Tooltip.kt:309) it.sephiroth.android.library.xtooltip.Tooltip.show (Tooltip.kt:624) ...... Uo.handleMessage (PG:64)
I'm having the same issue
from android-target-tooltip.
Related Issues (20)
- Gravity.TOP not honored with fitToScreen=True HOT 4
- Not able to click outside HOT 1
- How to have multiple gravity to the tooltip? HOT 1
- Does this work with ConstrainLayout? HOT 1
- There is a problem when Show In Multi Fragments
- Unable to show double values HOT 1
- Fix tooltip issue in RTL layout HOT 4
- How to you use in Java? HOT 2
- not working with status bar
- Missing documentation
- Latest version (2.0.5) not published in Jitpack HOT 1
- Positioning issues when upgrading from 1.x to 2.x
- Positioning Issue: Tip Window appear to be more bottom on Android 11 HOT 6
- Ripple effect is not animated in release build HOT 2
- How to set margin start
- Crashes when loading animation
- Type inference failed at new kotlin version
- Dependencies arent working HOT 1
- Arrow located is wrong on landscape on Samsung S10 API 31 HOT 1
- Stop Floating Animation of tooltip view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-target-tooltip.