02-04-2014 10:21 AM
As luck would have it this has just been discussed in the Java forum and so saves me some typing.
02-04-2014 10:32 AM
02-04-2014 12:25 PM
Not sure that it's a good idea to spread solutions like this one.
But anyway - here it is.
1. We need to know the height of a label containing a single line. In my case I've just test it once and then was using this value ( for my fixed font size - 53px ).
2. Create a label, containing desired text and check its height is over 53px.
3. If not - just move our button ( or any other control ) after the label in horizontal StackLayout.
4. If so - begin to remove a single word from the end of desired text until the label get shorter. After that put removed text on a different label and arrange it with button as in previous step.
The entire solution was a little bit more complicated, but the main idea is the same.