I am trying to understand how things work when adding views on a panel .
I am creating a panel and I need to put a label with some text on it, and in the same line a button ,
Now the label width and height should be "match_content" meaning that the width and height should be according to text and font size in it.
The same is with the button.
So the question is what is the best way to do that.
1. the text is multiline
2. what about the panel height, how it should be, in order to make its height acoording to the objects heights?
3. what if i have 3 object label1 lable2 and a button how should i anchored them
You should use StringUtils.MeasureMultilineTextHeight to calculate the label's height.
Consider using CustomListView instead of ScrollView. It will probably be simpler.