Giter Club home page Giter Club logo

Comments (4)

DeveloperMobilePersonal avatar DeveloperMobilePersonal commented on August 17, 2024

Screenshot at Mar 20 15-33-41
adView.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS

from googleads-mobile-android-examples.

NVentimiglia avatar NVentimiglia commented on August 17, 2024

Screenshot at Mar 20 15-33-41 adView.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS

  1. How did you replicate this problem.

  2. Is the second comment a fix?

from googleads-mobile-android-examples.

DeveloperMobilePersonal avatar DeveloperMobilePersonal commented on August 17, 2024
  1. I got the error Parameter must be a descendant of this view when using banner ads. It's been reported on firebase, but not all users have encountered it so I haven't been able to reproduce this issue.
  2. According to the documentation on many sites, this error is fixed when adding FOCUS_BLOCK but the problem is adding it to its parent or adding it to the pain. My experimental decision was to add FOCUS_BLOCK_DESCENDANTS to the AdView Banner Admob and the problem was almost resolved.

So you can try to fix it my way.

viewGroup.removeAllViews()
viewGroup.addView(adView)

adView.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS

adView.load(...)

from googleads-mobile-android-examples.

NVentimiglia avatar NVentimiglia commented on August 17, 2024

Thanks, I will look into it b/332712693

from googleads-mobile-android-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.