Android Question resize a CustomListView in a Keyboard_HeightChanged event?

HansDieter

Member
Licensed User
Longtime User
How do i resize a CustomListView on runtime?
I found nothing to height of a CustomListView on runtime.

My Keyboard_HeightChanged:

B4X:
Sub Keyboard_HeightChanged(NewHeight As Int, OldHeight As Int)
'since     CustomListView1.height  is not exist. What can i use?
    Button1.Top = Button1.Top - (OldHeight - NewHeight)
    Button2.Top = Button2.Top - (OldHeight - NewHeight)
    Button3.Top = Button3.Top - (OldHeight - NewHeight)
    EditText1.top = EditText1.Top - (OldHeight - NewHeight)
    EditText2.top = EditText2.Top - (OldHeight - NewHeight)
    CheckBox1.top = CheckBox1.Top - (OldHeight - NewHeight)
    Label1.top = Label1.Top - (OldHeight - NewHeight)
End Sub
 
Top