Tuesday, December 11, 2007

Adaptative UI sample using our multiline MeasureString implementation

I've decided to post a sample application showing how to use the multiline MeasureString code provided on my previous post, to build a dynamic/adaptative UI. It also support screen rotation.

Here you have some screenshots:

image

After changing the text and pressing "Relayout" you can get something like this:

image

And rotating the screen:

image

Finally, this is the source code, enjoy it!

1 comment:

Anonymous said...

Thanks