I am unable to get dark background for my custom view, though the app theme is dark. I've also tried setting background for the view group of the layout.
I found that instead of setting android:background, if I set android:backgroundTint, it is working. However, background tint is supported from lollipop.
I am unable to get dark background for my custom view, though the app theme is dark. I've also tried setting background for the view group of the layout.
I'm inflating my layout like this:
binding.getRoot()
is given to bottom sheet builder.I have tried setting the theme and background to
my_layout
Also tried setting
bottom_sheet_bg_color
as part ofMyDarkTheme
What am I missing? I'm using
2.4.1