@Test public void setActionText_setsButtonText() { banner.setActionText("DO IT"); Button button = banner.findViewById(R.id.button); assertThat(button.getText(), is("DO IT")); }
public void setActionText(String actionTitle) { Button button = findViewById(R.id.button); button.setText(actionTitle); }
MaterialBanner extends FrameLayout { public void setActionText(String actionTitle) { Button button = findViewById(R.id.button); button.setText(actionTitle); } }
MaterialBanner extends FrameLayout { public void setActionText(String actionTitle) { Button button = findViewById(R.id.button); button.setText(actionTitle); } MaterialBanner(@NonNull Context context);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); }
MaterialBanner extends FrameLayout { public void setActionText(String actionTitle) { Button button = findViewById(R.id.button); button.setText(actionTitle); } MaterialBanner(@NonNull Context context);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); void setText(String text); void setText(CharSequence text); void setActionText(String actionTitle); void setAction(OnActionListener listener); }
MaterialBanner extends FrameLayout { public void setActionText(String actionTitle) { Button button = findViewById(R.id.button); button.setText(actionTitle); } MaterialBanner(@NonNull Context context);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs);  MaterialBanner(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); void setText(String text); void setText(CharSequence text); void setActionText(String actionTitle); void setAction(OnActionListener listener);  }