Android Question EditText (or other view) with more width and height than the screen

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I don't know what view to use to make the user type a fairly large text.
The problem is that the text is wider than a screen of any tablet. And it can be longer than the height of the tablet.
So I think I need some view that allows to scroll horizontally and vertically, while typing the user.
How can I do it?
Thanks.
 

vecino

Well-Known Member
Licensed User
Longtime User
Hi, thanks for the advice, I have tried it and it is surely what I will use.
Although I was really looking for (if it exists) something that could move beyond the width of the screen and the height as well, because it will be long texts that users will type.
Thank you very much.
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Have you tried to set the Textfield wider than the screen (i.e. 2000dip) ?
But then the user can not see what he is typing
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
That's the problem, I need it to scroll horizontally and vertically, so I can see all the text.
Thank you.
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
That code appears to be for B4J, not B4A.
I think I'm going to use a simple EditText and add an option to crop the text to the width of the screen.
Thanks, folks.
Sorry, didnt noticed that really - saw only B4X
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
No problem. Thank you very much for your time.
I have implemented it with a simple EditText and the client was fine with it.
Regards.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I just discovered, by chance, that ScrollView2D exists, and it is exactly what I was looking for.
I have put an EditText in its internal panel with a much larger size than the device screen and it scrolls as you type, and you can scroll both horizontally and vertically.
?
 
Upvote 0
Top