Code example for View

Methods: setVisibility, startAnimation

0
        mDialogRootLayout.startAnimation(mFadeOutAnim);
        mDialogRootLayout.setVisibility(View.GONE);
    } 
 
    private void fadeInDialog() { 
        mDialogRootLayout.startAnimation(mFadeInAnim);
        mDialogRootLayout.setVisibility(View.VISIBLE);
    } 
 
    public void dismissDialog() { 
        if (mDialogRootLayout != null && mDialogRootLayout.getVisibility() != View.GONE) {
            fadeOutDialog(); 
        } 
    } 
 
    public void showAlertDialog(String title, String msg, String button1Text,
                final Runnable r1, String button2Text, final Runnable r2) {
        resetRotateDialog(); 
 
        if (title != null) { 
            mRotateDialogTitle.setText(title);