Code example for View

Methods: setVisibilitystartAnimation

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) { 
Stop searching for code, let great code find you!  Add Codota to your java IDE