Code example for PopupWindow

Methods: setAnimationStyle

0
    protected void showWindowAtLocation(View parent, int gravity, int x, int y) {
        this.window.showAtLocation(parent,  gravity,  x, y);
    } 
 
    protected void setWindowAnimationStyle(int animationStyle) {
        this.window.setAnimationStyle(animationStyle);
    } 
 
    protected void onCreate() {} 
    protected void onShow() {} 
 
 
    protected void preShow() { 
        if (root == null) {
            throw new IllegalStateException("setContentView was not called with a view to display");
        } 
        onShow(); 
 
        if (background == null) {
            window.setBackgroundDrawable(new BitmapDrawable());
        } else {