@Test public void testIsShown() { ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout); mixin.setShown(true); assertTrue(mixin.isShown()); mixin.setShown(false); assertFalse(mixin.isShown()); }
public boolean isShown() { final View progressBar = mTemplateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; }
ProgressBarMixin implements Mixin { public boolean isShown() { final View progressBar = mTemplateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; } }
ProgressBarMixin implements Mixin { public boolean isShown() { final View progressBar = mTemplateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; } ProgressBarMixin(TemplateLayout layout); }
ProgressBarMixin implements Mixin { public boolean isShown() { final View progressBar = mTemplateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; } ProgressBarMixin(TemplateLayout layout); boolean isShown(); void setShown(boolean shown); ProgressBar peekProgressBar(); void setColor(@Nullable ColorStateList color); @Nullable ColorStateList getColor(); }
ProgressBarMixin implements Mixin { public boolean isShown() { final View progressBar = mTemplateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; } ProgressBarMixin(TemplateLayout layout); boolean isShown(); void setShown(boolean shown); ProgressBar peekProgressBar(); void setColor(@Nullable ColorStateList color); @Nullable ColorStateList getColor();  }