-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can adjust custom layout height accoring to text length. #91
Comments
Hi, could you test using val myTextView = customProfileBalloon.getContentView().findViewById<TextView>(R.id.myTextView)
myTextView.maxWidth = customProfileBalloon.getMeasureWidth() |
This measuring width & height size of the TextViews function will be included in the next release. |
Please make sure that text-view dynamic size applies for custom layout as well. |
Yep. It works for now. Thanks |
Hi, @Gopinatha-L! Added measureTextWidth function for measuring the exact text size in the custom layout. val myTextView = customProfileBalloon.getContentView().findViewById<TextView>(R.id.myTextView)
customProfileBalloon.measureTextWidth(myTextView) Thanks for your issue! |
Please complete the following information:
Describe the Bug:
I"m using a custom layout that would contain a two text view's and it grows according to text length. I'm setting the text after the balllon was created by default height & width.
Expected Behavior:
I want a dynamic height for ballon based on text size or context size in custom layout.
The text was updated successfully, but these errors were encountered: