How can I attach a label to a scrollview at design time (not in the designer) So I can create a label but the content of my 100% widthx 100% height label, the long text goes off the screen. Is there a simple way to make the label scroll without getting too complex? Much appreciated.

有帮助吗?

解决方案

Not sure that I exactly understand your question. You should put the label on a ScrollView in order to make it scrollable. A tutorial about ScrollView is available here.

You can use StringUtils.MeasureMultilineTextHeight to calculate the required height.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top