Vote count:
0
I have a custom view that write text and I wish to know how to deal with height wrap content.
Questions:
1) When to calculate the height of the text? In the OnMeasure?
2) What if the text height will be too large to fit in any view, in the onDraw() should I keep drawing the whole text lines? will that be inefficient to have lots of text be drawn though it wont appear any way?
3) Considering point 2 what if this custom view is put in a ScrollView? how efficient will that be? or should I handle scrolling manually in my view?
asked 33 secs ago
Aucun commentaire:
Enregistrer un commentaire