tomergoldst / tooltips

Simple to use library for android, enabling to add a tooltip near any view with ease
835 stars 97 forks source link

Tooltip box size #36

Closed jameper closed 3 years ago

jameper commented 3 years ago

There is an issue with the tooptip popup being way to large for the contents. Works for other items, but seems to re-size incorrectly on these datepickers.

Is there a way to override the X/Y of these popup boxes to fix this issue?

ToolTipBug

tomergoldst commented 3 years ago

Tooltip measure itself before drawing and should take as little space as possible. You should check the value of your strings, Maybe you have spaces. Try to use trim() If this isn't the issue please provide a sinppet code

jameper commented 3 years ago

The value for the string is "a", seems as though my issue is similar to issues previously raised: https://github.com/tomergoldst/tooltips/issues/29 Any ideas what was causing that one?

tomergoldst commented 3 years ago

What viewgroup type is your root layout?

jameper commented 3 years ago

We're using a ContentView, and the page is split up using a grid column&row definitions. We've also tried wrapping the controls on the page within Frames, without and success

tomergoldst commented 3 years ago

Can you post your layout xml and the lines of code where you create the tooltip?