Hi all, i m trying to hours to find a good solution for this problem *-*
i m making a app based on text.
ok the problem for now is
1° i need make it with scroll
2° i need calculate the textsize and make the textsize = inner of scrollview
how can i make this?
for example:
I have one scrollview and i add on this scrollview my label.
Its ok
the inner is 500 perfect
now i open one text, 50 lines ok works fine.
now i open another text 5000 lines *-* = problem
how can i know and make my text auto ajustable?
if the text have 5000 lines the 100%y is go change and the inner of scrollview need change too, but how to make it automatic?
note: i never know the text size, can have 50 - 10.000 lines *-*
if i set
and inner 5000 for big text it work fine, but to small text is realy ugly, and i think this is not a good way
here is a image using 1000%y and inner 5000 *-*
thx to all
i m making a app based on text.
ok the problem for now is
1° i need make it with scroll
2° i need calculate the textsize and make the textsize = inner of scrollview
how can i make this?
for example:
I have one scrollview and i add on this scrollview my label.
B4X:
scletra.Panel.AddView(lbtextoletra,0%x,0%y,100%x, 100%y)
the inner is 500 perfect
now i open one text, 50 lines ok works fine.
now i open another text 5000 lines *-* = problem
how can i know and make my text auto ajustable?
if the text have 5000 lines the 100%y is go change and the inner of scrollview need change too, but how to make it automatic?
note: i never know the text size, can have 50 - 10.000 lines *-*
if i set
B4X:
scletra.Panel.AddView(lbtextoletra,0%x,0%y,100%x, 1000%y)
here is a image using 1000%y and inner 5000 *-*
thx to all
Attachments
Last edited: