@Test public void givenFalse_whenSetActionTextAllCaps_thenActionNotAllCaps() { TextViewExtension.from(getActionView()).setAllCaps(true); wrapper.setActionTextAllCaps(false); assertThat(getActionView().getTransformationMethod()).isNull(); }
@NonNull @SuppressWarnings("WeakerAccess") public SnackbarWrapper setActionTextAllCaps(boolean allCaps) { actionViewExtension.setAllCaps(allCaps); return this; }
SnackbarWrapper { @NonNull @SuppressWarnings("WeakerAccess") public SnackbarWrapper setActionTextAllCaps(boolean allCaps) { actionViewExtension.setAllCaps(allCaps); return this; } }
SnackbarWrapper { @NonNull @SuppressWarnings("WeakerAccess") public SnackbarWrapper setActionTextAllCaps(boolean allCaps) { actionViewExtension.setAllCaps(allCaps); return this; } @SuppressWarnings("WeakerAccess")  SnackbarWrapper(Snackbar snackbar); }
SnackbarWrapper { @NonNull @SuppressWarnings("WeakerAccess") public SnackbarWrapper setActionTextAllCaps(boolean allCaps) { actionViewExtension.setAllCaps(allCaps); return this; } @SuppressWarnings("WeakerAccess")  SnackbarWrapper(Snackbar snackbar); Snackbar getSnackbar(); @SuppressWarnings("WeakerAccess") View getView(); @SuppressWarnings("WeakerAccess") CharSequence getActionText(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionText(@StringRes int actionText); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionText(CharSequence actionText); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionClickListener(OnClickListener actionClickListener); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setAction(@StringRes int actionText, OnClickListener actionClickListener); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setAction(CharSequence actionText, OnClickListener actionClickListener); @SuppressWarnings("WeakerAccess") ColorStateList getActionTextColors(); @ColorInt @SuppressWarnings("WeakerAccess") int getActionCurrentTextColor(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColor(ColorStateList colors); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColorRes(@ColorRes int color); @SuppressWarnings("WeakerAccess") int getActionVisibility(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionVisibility(int visibility); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextAllCaps(boolean allCaps); @SuppressWarnings("WeakerAccess") CharSequence getText(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setText(@StringRes int message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setText(@NonNull CharSequence message); @SuppressWarnings("WeakerAccess") ColorStateList getTextColors(); @ColorInt @SuppressWarnings("WeakerAccess") int getCurrentTextColor(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColor(ColorStateList colors); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColorRes(@ColorRes int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@NonNull CharSequence message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@StringRes int message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@NonNull CharSequence message, @ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@StringRes int message,
                                       @ColorRes int color); @SuppressWarnings("WeakerAccess") int getMessageVisibility(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setMessageVisibility(int visibility); @SuppressWarnings("WeakerAccess") int getDuration(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setDuration(int duration); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setBackgroundColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setBackgroundColorRes(@ColorRes int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addCallback(Callback callback); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addCallbacks(List<Callback> callbacks); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addSnackbarCallback(SnackbarCallback callback); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIcon(@DrawableRes int icon); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIcon(Drawable icon); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIconMargin(int iconMarginPixels); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIconMarginRes(@DimenRes int iconMargin); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper show(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper dismiss(); @SuppressWarnings("WeakerAccess") boolean isShown(); @SuppressWarnings("WeakerAccess") boolean isShownOrQueued(); }
SnackbarWrapper { @NonNull @SuppressWarnings("WeakerAccess") public SnackbarWrapper setActionTextAllCaps(boolean allCaps) { actionViewExtension.setAllCaps(allCaps); return this; } @SuppressWarnings("WeakerAccess")  SnackbarWrapper(Snackbar snackbar); Snackbar getSnackbar(); @SuppressWarnings("WeakerAccess") View getView(); @SuppressWarnings("WeakerAccess") CharSequence getActionText(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionText(@StringRes int actionText); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionText(CharSequence actionText); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionClickListener(OnClickListener actionClickListener); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setAction(@StringRes int actionText, OnClickListener actionClickListener); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setAction(CharSequence actionText, OnClickListener actionClickListener); @SuppressWarnings("WeakerAccess") ColorStateList getActionTextColors(); @ColorInt @SuppressWarnings("WeakerAccess") int getActionCurrentTextColor(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColor(ColorStateList colors); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextColorRes(@ColorRes int color); @SuppressWarnings("WeakerAccess") int getActionVisibility(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionVisibility(int visibility); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setActionTextAllCaps(boolean allCaps); @SuppressWarnings("WeakerAccess") CharSequence getText(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setText(@StringRes int message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setText(@NonNull CharSequence message); @SuppressWarnings("WeakerAccess") ColorStateList getTextColors(); @ColorInt @SuppressWarnings("WeakerAccess") int getCurrentTextColor(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColor(ColorStateList colors); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setTextColorRes(@ColorRes int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@NonNull CharSequence message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@StringRes int message); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@NonNull CharSequence message, @ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper appendMessage(@StringRes int message,
                                       @ColorRes int color); @SuppressWarnings("WeakerAccess") int getMessageVisibility(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setMessageVisibility(int visibility); @SuppressWarnings("WeakerAccess") int getDuration(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setDuration(int duration); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setBackgroundColor(@ColorInt int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setBackgroundColorRes(@ColorRes int color); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addCallback(Callback callback); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addCallbacks(List<Callback> callbacks); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper addSnackbarCallback(SnackbarCallback callback); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIcon(@DrawableRes int icon); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIcon(Drawable icon); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIconMargin(int iconMarginPixels); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper setIconMarginRes(@DimenRes int iconMargin); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper show(); @NonNull @SuppressWarnings("WeakerAccess") SnackbarWrapper dismiss(); @SuppressWarnings("WeakerAccess") boolean isShown(); @SuppressWarnings("WeakerAccess") boolean isShownOrQueued();  }