I have a Labelfield
, EditField
and a Button
which are centered align vertically. This three fields i have added in a Verticalfield manager which is then added to a Horizontal Field Manager. And finally the HFM is added to another VFM. Now in the 9800 device or 9380 curve i have observed that when i am touching the Edit field, virtual keypad is coming. And it is hiding the Edit Field partially.
I want to move the things up when the virtual keyboard appeared. How can i make it. My code is here:
HorizontalFieldManager hfm = new HorizontalFieldManager();
VerticalFieldManager vfmComponent = new VerticalFieldManager(USE_ALL_WIDTH);
vfmComponent.add(lfServerUrl);
vfmComponent.add(mEfURL);
vfmComponent.add(mBtnSave);
hfm.add(vfmComponent);
int topEmptySpace = (Display.getHeight() - (Bitmap.getBitmapResource(mStrTopBar).getHeight() + hfm.getPreferredHeight() + 25)) / 2;
hfm.setMargin(topEmptySpace, 0, 0, 0);
VerticalFieldManager vfmMain = new VerticalFieldManager(VERTICAL_SCROLL| NO_HORIZONTAL_SCROLL );
vfmMain.add(hfm);
add(vfmMain);
Please Help.