Hitarth
Hitarth

Reputation: 1950

Popup screen position change in blackberry application

when i click on Buttonfield i want to show Popup screen .everything working fine .but that PopupScreen open by default at the center of the Mainscreen.

i have already try this code.setMargin and setPosstion method to change the possition. but its not working as my requrement .

i want to open that Popupscreen at the top of Mainscreen with Animation(top to bottom).

and another issue is that in this popup screen there is one Edittextfield ..when i click on edittext field keyboard open fine but at that time device Menu button not working and i cant access keyborad hide functionality ..

how to set popup screen at the top of the mainscreen ?

Upvotes: 1

Views: 685

Answers (1)

baek
baek

Reputation: 450

Have you tried overriding the sublayout() method in the popupScreen class ?


protected void sublayout(int width, int height) {

        super.sublayout(width, height);

       // replace x,y with your values //

        setPosition(x, y);

    }

HOWEVER, if you are trying to animate the popup screen from top to bottom, you are better off using EyelidFieldManager, it does the animation for you :)

Try:

EyelidFieldManager Sample

EyelidFieldManager API

Upvotes: 2

Related Questions