Hey there, hope you are doing well. I was making t...
# android
m
Hey there, hope you are doing well. I was making this app in Kotlin and while setting up themes I encountered a strange situation. I am using the theme,
Theme.MaterialComponents.DayNight.DarkActionBar
and when I set the layout in action bar through
Copy code
supportActionBar?.displayOptions = androidx.appcompat.app.ActionBar.DISPLAY_SHOW_CUSTOM
supportActionBar?.setCustomView(R.layout.action_bar_textview)
it worked fine in light mode but in dark mode it is showing these black rectangled corners as in these screenshots. Any workaround for this?
😶 6
t
Read the channel description before posting.
m
Ok, sure.👍