splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 383 forks source link

Resizable tokens do not seem to resize the parent view #384

Closed gcgrant closed 5 years ago

gcgrant commented 5 years ago

Hey;

I am trying to resize when of the tokens on click (to expand to show an X button). However this change does not seem to want to be reflected in the parent -- the text just ends up shrinking to accommodate the X button.

However if I put the exact same view outside of the TokenAutoComplete view, and try resizing it, it works fine. See attached screenshot.

Any ideas?

In the token view: image image

Outside the token view (chilling in a Frame Layout): image image

mgod commented 5 years ago

If you call invalidate() on your token view after expanding one of the tokens, does it update to the wider size?