Hi guys...
For some of you this will be a breeze to accomplish, but to me, expert at being no noob... it's kinda complicated.
So, I have a scrollview with a single label.
The purpose of this label is to act as a logger, so at each new entry, a new line is added...
I need to make sure that the last line of my label remains visible, that is to say, I need the scrollview to auto scroll to the last log entered.. but still be able to pull up or down to see the rest of the logs...
I have come to the conclusion that the best is to set both inner panel and label to single line height and at each entry, recalculate the panel/label height according to the new string height...
This is my theory... but I just can't get a grip to code it!
Is my line of thought correct? Or am I missing some auto scroll mechanism already present in the scrollview?
Ia there any beter/easier way to do this?
For some of you this will be a breeze to accomplish, but to me, expert at being no noob... it's kinda complicated.
So, I have a scrollview with a single label.
The purpose of this label is to act as a logger, so at each new entry, a new line is added...
I need to make sure that the last line of my label remains visible, that is to say, I need the scrollview to auto scroll to the last log entered.. but still be able to pull up or down to see the rest of the logs...
I have come to the conclusion that the best is to set both inner panel and label to single line height and at each entry, recalculate the panel/label height according to the new string height...
This is my theory... but I just can't get a grip to code it!
Is my line of thought correct? Or am I missing some auto scroll mechanism already present in the scrollview?
Ia there any beter/easier way to do this?