I have the need for basic input from the user. In some instances the text gets a little long. The InputTemplate dialog meets the needs except for when the text gets a little long. I saw that Erel had posted a solution for B4A using EditText (see below). In B4i I don't know how to reference EditText so I can use it or is there a different solution for B4i.
One additional question. When I have some text already entered into the InputTemplate, when I show it the text is selected. How would I have it put the cursor at the end of the pre-entered text and not have anything selected?
More than likely I am just being dense and need someone to point that out .
Thanks
One additional question. When I have some text already entered into the InputTemplate, when I show it the text is selected. How would I have it put the cursor at the end of the pre-entered text and not have anything selected?
More than likely I am just being dense and need someone to point that out .
Thanks
B4X:
InputTemplate.Initialize
InputTemplate.TextField1.TextColor = xui.Color_Black
InputTemplate.TextField1.SetTextAlignment("TOP", "LEFT")
InputTemplate.mBase.Height = 200dip
Dim et As EditText = InputTemplate.TextField1
et.SingleLine = False
et.Height = 150dip