@Test public void shouldShowBlurredBacgrondWithOnEnabling() { drawerBackgroundView.blurBackground.setVisibility(View.GONE); drawerBackgroundView.orginalBackground.setVisibility(View.GONE); drawerBackgroundView.enableBlurredLayers(); assertThat(drawerBackgroundView.blurBackground.getVisibility()).isEqualTo(View.VISIBLE); assertThat(drawerBackgroundView.orginalBackground.getVisibility()) .isEqualTo(View.VISIBLE); }
public void enableBlurredLayers() { blurBackground.setVisibility(View.VISIBLE); orginalBackground.setVisibility(View.VISIBLE); }
DrawerBackgroundView { public void enableBlurredLayers() { blurBackground.setVisibility(View.VISIBLE); orginalBackground.setVisibility(View.VISIBLE); } }
DrawerBackgroundView { public void enableBlurredLayers() { blurBackground.setVisibility(View.VISIBLE); orginalBackground.setVisibility(View.VISIBLE); } DrawerBackgroundView(DrawerLayoutWithBlurredBackground drawerLayoutWithBlurredBackground); }
DrawerBackgroundView { public void enableBlurredLayers() { blurBackground.setVisibility(View.VISIBLE); orginalBackground.setVisibility(View.VISIBLE); } DrawerBackgroundView(DrawerLayoutWithBlurredBackground drawerLayoutWithBlurredBackground); synchronized void addBlurredLayer(); synchronized void setImageBitmap(Bitmap blurredImage); synchronized void reset(); synchronized void setAlpha(float alphaLevel); void disableBlurredLayers(); void enableBlurredLayers(); }
DrawerBackgroundView { public void enableBlurredLayers() { blurBackground.setVisibility(View.VISIBLE); orginalBackground.setVisibility(View.VISIBLE); } DrawerBackgroundView(DrawerLayoutWithBlurredBackground drawerLayoutWithBlurredBackground); synchronized void addBlurredLayer(); synchronized void setImageBitmap(Bitmap blurredImage); synchronized void reset(); synchronized void setAlpha(float alphaLevel); void disableBlurredLayers(); void enableBlurredLayers(); static final float NOT_TRANSPARENT_ALPHA_LEVEL; }