I want to change the theme of the my custom snackbar
public class CustomSnackbar extends BaseTransientBottomBar<CustomSnackbar> {
public CustomSnackbar(
CoordinatorLayout parent,
View contentView,
BaseTransientBottomBar.ContentViewCallback contentViewCallback) {
super(parent, contentView, contentViewCallback);
}
i see in the layout it can be set as:
android:theme="@style/Theme.my.WithDarkTextButton"
I have tried to set the theme grammatically but found no equivalent:
contentView.setTheme
is missing. doesn't evey xml attribute can be set via code?