title: Find layout with x,y coordinate
body: <p>I have an app filled with custom buttons for Android. I would like to allow user to rearrange these buttons like image buttons of Home or Application panel.</p>
  
  <p>I researched on this and found out that I can use drag &amp; drop functionality to interact with user's motion. But in my case parent layout can be different. OnMove or OnDrop event, I need to actually move that button in that corresponding layout. </p>
  
  <p>So question is <strong>how I can find a layout that contains coordinate x &amp; y and put the button in it.</strong></p>
  
  <pre><code>@Override
  public boolean onTouchEvent(MotionEvent event) {
  
  
      switch (event.getAction()) {
      case MotionEvent.ACTION_DOWN:
          status = START_DRAGGING;
          break;
      case MotionEvent.ACTION_UP:
          status = STOP_DRAGGING;
          break;
      case MotionEvent.ACTION_MOVE:
          if(status == START_DRAGGING){
              //parentLayout.setPadding((int)event.getRawX(), 0,0,0);
              //**What to do here**
              parentLayout.invalidate();
          }                           
          break;
  
      }
  
      return true;
  }
  </code></pre>