Sneaker icon indicating copy to clipboard operation
Sneaker copied to clipboard

[FEATURE REQUEST] .setHeight wrap_content

Open vinjex opened this issue 8 years ago • 2 comments

Maybe it's an error on my end but I found that setting no height on Sneaker results in long texts truncated, and while the issue can be resolved setting an height it does not provide a reliable solution, because some device I didn't tested against or some future device could have some exotic form-factor that vanifies this implementation. So a wrap-content option could be a definitive solution to this problem. However thank you for your work.

vinjex avatar Jul 07 '17 13:07 vinjex

If you don't set the height, sneaker will by default calculate the height according to status bar height and toolbar height. If you have a long text and its truncated, you need to set the height to sneaker to wrap_content by .setHeight(ViewGroup.LayoutParams.WRAP_CONTENT) . I got your point to give wrap_content by default. Thank you for your suggestion, i will take this under consideration for next version.

Hamadakram avatar Jul 08 '17 06:07 Hamadakram

Thanks for the answer!

vinjex avatar Jul 10 '17 09:07 vinjex