Hi there,
I was searching the forum a hours and days but didn't find a solution for my simple problem. I also tried IME, but I didn't get it work.
Here is my sample code
All I want, is that the TextBox and the Label will be visible when the virtual keybord is on and i can scroll through all 20 lines.
On my device (Galaxy Tab3) - when the Keyboard is on - the top of the TextBox and the height changes, depending which line I click or which line is shown. Sometimes I see 10 lines, then the TextBox shrinks to 1,5 lines.
Could anyone help me out?
Kind regards, Oskar
I was searching the forum a hours and days but didn't find a solution for my simple problem. I also tried IME, but I didn't get it work.
Here is my sample code
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim IME As IME
Dim p As Panel
Dim e As EditText
Dim l As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
p.Initialize("panel")
l.Initialize("label")
l.Text = "Labeltext"
p.AddView(l,0%x,60%y,30%x,40%y)
e.Initialize("edittext1")
e.Color = Colors.LightGray
For i = 1 To 20
e.Text = e.Text & i & Chr(10) & Chr(13)
Next
p.AddView(e,30%x,60%y,70%x,40%y)
Activity.AddView(p,0,0,100%x, 100%y)
End Sub
All I want, is that the TextBox and the Label will be visible when the virtual keybord is on and i can scroll through all 20 lines.
On my device (Galaxy Tab3) - when the Keyboard is on - the top of the TextBox and the height changes, depending which line I click or which line is shown. Sometimes I see 10 lines, then the TextBox shrinks to 1,5 lines.
Could anyone help me out?
Kind regards, Oskar