Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
Dim intKeyboardSize As Int = Max(NewHeight, OldHeight) - Min(NewHeight, OldHeight)
If NewHeight < OldHeight Then ' Keyboard displayed
customlist1.AsView.Height = customlist1.AsView.Height - intKeyboardSize
Else ' Keyboard hidden
customlist1.AsView.Height = customlist1.AsView.Height + intKeyboardSize
End If
End Sub