Android Question (Solved) IME height changed problems

edm68

Member
Licensed User
Longtime User
Hi,
I'm having problems with the IME height changed. Have a panel with clv and some buttons and a checkbox. Can't figure out what I'm doing wrong.
When I fill the clv it looks fine (pic 1).
When I click on an edittext within the clv it does raise the clv up, but the problem there is that some of the buttons above the clv are in front of it (pic 2). There's a checkbox and label there too that goes behind it though.
When I enter a value in the edittext and click done on the keypad the clv drops down lower than where it was originally at and the buttons that were below it are then in front of it (pic 3).
I'm going from the IME tutorial.


1.png 2.png 3.png

I've attached a sample program.
Thanks for any help or ideas.
 

Attachments

  • IMEHeightTest.zip
    11.9 KB · Views: 270

Mahares

Expert
Licensed User
Longtime User
I'm having problems with the IME height
Since the customlistview clvEvents is a child of pnlMain,, all you need to do is handle the changes in pnlMain position:
B4X:
Sub IME_HeightChanged(NewHeight As Int,OldHeight As Int)   
    pnlMain.Top = NewHeight-pnlMain.Height
End Sub
Also, do not forget to add to the manifest:
B4X:
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
 
Upvote 0

edm68

Member
Licensed User
Longtime User
Thanks very much. That worked. Was up late last night trying to figure it out. Never even thought to move the panel.

Thanks again.
 
Upvote 0
Top