79366710

Date: 2025-01-18 07:30:03
Score: 0.5
Natty:
Report link

Try attaching the layout to the class when inflating instead of adding as a view.

Change

binding = BannerViewBinding.inflate(LayoutInflater.from(context))
addView(binding.root)

to

binding = BannerViewBinding.inflate(LayoutInflater.from(context), this)

in all 3 classes.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jokuskay