Code example for View

Methods: getVisibility

0
        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); 
            mRotateDialogTitleLayout.setVisibility(View.VISIBLE); 
        } 
 
        mRotateDialogText.setText(msg);