android - Find the view under the user's finger -


i want write debugging tool info printed view tapped user. similiar stetho does.

i plan approach this:

  • make overlay view on top of layout hierarchy, same size screen
  • the view catches touches , records screen coordinates
  • take root view , recursively walk on view tree find views bounding box overlaps touch coordinate
  • print info found views adb

would approach?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -