[MonoTouch] Scroll + TextView problem

Mittchel Van Vliet mittchel at gmail.com
Fri Oct 28 05:13:58 EDT 2011


Hello everyone,

Currently I'm finding my way around with MonoTouch and I really like the way
it works.
Mostly because of some great help I recieved from Danny Pronk. He showed me
that a lot of things were possible, and it made me made a cool app so far.

There is only one problem I'm facing.. I've got a few which shows
information about an advertisement and his retailer, the setup is something
like this:

Address
- Street
- Postal

Contact
- email
-phone

Description
- Large description text about the product.

A description could be very large, so a scrollview is needed to show all of
the text. But how am I able to accomplish this? I don't want only the
TextView to be scrollable but I want the hole View to be scrollable. The
reason I want this is because I think that a scrollable textview looks
rather ugly.

How can I accomplish this by code? I tried a few things to test, like:

uiScroll.Frame = new RectangleF(0, 0, 320, 460);

textView.ContentSize = new SizeF(320, 1200);

uiScroll.ContentSize = new SizeF(320, 1200);

But the text just gets cut off.. so how can I auto resize the textview to
the text?

I hope its clear enough, if not just let me know and I'll try to explain it
further.

Thanks,
Mittchel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111028/021bb471/attachment.html 


More information about the MonoTouch mailing list