fun BrowserMenu.showWithTheme(view: View) { show(view).also { popupMenu -> (popupMenu.contentView as? CardView)?.setCardBackgroundColor( ContextCompat.getColor( view.context, R.color.fx_mobile_layer_color_2, ), ) } }
Invokes [BrowserMenu.show] and applies the default theme color background.