HI, All
What are the common rules for creating new custom visual views ?
Expecially, if the view should have some component with the variable height - say some custom list view, where the lines qty is unknown yet when the view overall size should be created.
If the each line height should be calcualted according to its text length and already fixed width - the overall view height should be calculated only at the very final.
And if some lines (say, 1....7), the overall view height should be < 100%y, so the view hight must not be fixed during creation.
For using StringUtils.MeasureMultilineTextHeight(label, label.text) - this label must be already added on some container, but inside the view - no container is created yet...
How to be ?
What are the common rules for creating new custom visual views ?
Expecially, if the view should have some component with the variable height - say some custom list view, where the lines qty is unknown yet when the view overall size should be created.
If the each line height should be calcualted according to its text length and already fixed width - the overall view height should be calculated only at the very final.
And if some lines (say, 1....7), the overall view height should be < 100%y, so the view hight must not be fixed during creation.
For using StringUtils.MeasureMultilineTextHeight(label, label.text) - this label must be already added on some container, but inside the view - no container is created yet...
How to be ?
Last edited: