@Test public void whenPlayingIsTrue_showsPlayingIcon() { button.setPlaying(true); assertThat(getCreatedFromResId(button.getIcon()), equalTo(R.drawable.ic_stop_black_24dp)); }
public void setPlaying(Boolean isPlaying) { playing = isPlaying; render(); }
AudioButton extends MaterialButton implements View.OnClickListener { public void setPlaying(Boolean isPlaying) { playing = isPlaying; render(); } }
AudioButton extends MaterialButton implements View.OnClickListener { public void setPlaying(Boolean isPlaying) { playing = isPlaying; render(); } AudioButton(Context context);  AudioButton(Context context, AttributeSet attrs); }
AudioButton extends MaterialButton implements View.OnClickListener { public void setPlaying(Boolean isPlaying) { playing = isPlaying; render(); } AudioButton(Context context);  AudioButton(Context context, AttributeSet attrs); Boolean isPlaying(); void setColors(Integer idleColor, Integer playingColor); void setPlaying(Boolean isPlaying); void setListener(Listener listener); @Override void onClick(View view); }
AudioButton extends MaterialButton implements View.OnClickListener { public void setPlaying(Boolean isPlaying) { playing = isPlaying; render(); } AudioButton(Context context);  AudioButton(Context context, AttributeSet attrs); Boolean isPlaying(); void setColors(Integer idleColor, Integer playingColor); void setPlaying(Boolean isPlaying); void setListener(Listener listener); @Override void onClick(View view);  }