Open sembozdemir opened 5 years ago
I found the same issue. I fixed it by putting it in a view.post()
call.
I the workaroud of Kassim it works, seems that you set the tooltip too early on the lifecycle, when no all the views was loaded.
Be sure to use OnViewCreated on Fragment or use the work around @kassim told
mine was in a ViewHolder of RecyclerView, which would have items added in onViewCreated maybe the 'show' method itself should be using post?
Hi, i have same issue please help me
I found the same issue. I fixed it by putting it in a
view.post()
call.
can you explain it how can i do?
select any view in your layout, for example a TextView, has a post method you can call
textView.post(()-> { showTooltip()})
I was having the issue inside a recycler view. this fixed it:
holder.itemView.post { holder.showTooltip() }
when i am clicking second time on same item of recylerview, the activity closes itself
FATAL EXCEPTION: main Process: com.Dominos, PID: 30862 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
Hi,
I could not make it to show tooltip. It always crash by saying
parent.windowToken must not be null
Stacktrace:
Code to show tooltip:
What is wrong with my implementation? Could you please help?