public void show ( Activity activity ) { show ( ( ViewGroup ) activity . getWindow ( ) . findViewById ( Window . ID_ANDROID_CONTENT ) ) ; }
Show this SnackBar . It will auto attach to the activity s root view .