E edm68 Member Licensed User Longtime User Nov 26, 2020 #1 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. I've attached a sample program. Thanks for any help or ideas. Attachments IMEHeightTest.zip IMEHeightTest.zip 11.9 KB · Views: 528
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. I've attached a sample program. Thanks for any help or ideas.
M Mahares Expert Licensed User Longtime User Nov 26, 2020 #2 edm68 said: I'm having problems with the IME height Click to expand... Since the customlistview clvEvents is a child of pnlMain,, all you need to do is handle the changes in pnlMain position: Code: Copy 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: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Upvote 0
edm68 said: I'm having problems with the IME height Click to expand... Since the customlistview clvEvents is a child of pnlMain,, all you need to do is handle the changes in pnlMain position: Code: Copy 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: Code: Copy SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
E edm68 Member Licensed User Longtime User Nov 26, 2020 #3 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
Thanks very much. That worked. Was up late last night trying to figure it out. Never even thought to move the panel. Thanks again.