title: Android: Zooming EditText Android Issue in translation And Getting Touch event of childView when Placed outside parentView
body: <p>my question is related to android feature to zoom the parent consisting of multiple child view's.</p>
  <p>ZoomView-&gt;ParentView-&gt;[multiple childViews]</p>
  <p>I am working on a <a href="https://github.com/andor201995/ZoomIt" rel="noreferrer">Demo project</a> to Zoom the child View and to pan infinitely.Zooming works perfectly as needed.</p>
  <p><strong>PROBLEM 1:</strong>
  But if there is a EditText in the view and i try to zoom on that then below issues are faced by me.</p>
  <ol>
  <li><p>on zooming in the text is blurred</p>
  </li>
  <li><p>pointing on a text is working fine but translating through the text is
  translating very fast as its translation is multiplied by the
  scalingFactor</p>
  </li>
  <li><p>Selecting the text is also having above issue.</p>
  <p>Try running the the <a href="https://github.com/andor201995/ZoomIt" rel="noreferrer">Demo</a> to understand the issue if not clear from above</p>
  </li>
  </ol>
  <p>I have tried two approaches to Zoom the content of the View but both approaches gave the same issue.</p>
  <ul>
  <li>Scaling canvas and transforming the MotionEvent by scaling the MotionEvent by Matrix.class of the Parent Class.</li>
  <li>Setting ScaleX and ScaleY of the Parent containing the childViews</li>
  </ul>
  <p>hierarchy of my demo project zooming the view(UML Diagram)</p>
  <p><a href="https://i.stack.imgur.com/iERVX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iERVX.png" alt="enter image description here" /></a></p>
  <p>Basic problem is placing the cursor at the right position when the view is scaled to some value.</p>
  <p>I have already referred to this <a href="https://stackoverflow.com/questions/21546762/how-to-pinch-zoom-an-edittext-in-android">thread</a></p>
  <p><strong>PROBLEM 2:</strong>
  if i have a childView which is movable in the parent View then after zooming out if the childView is translated outside the bounds of parentView the events are ceased to capture and the child view becomes untouchable
  i have tried using TouchDelegate but i don't know how to expand the parentView touch area .<a href="https://github.com/andor201995/ZoomIt/blob/48724c8192358b3efe85a67e652b21e7fe43c39b/app/src/main/java/com/example/anmol_5732/zoomit/view/ZoomView.kt#L119" rel="noreferrer">Code</a>  <a href="https://stackoverflow.com/questions/1343222/is-there-an-example-of-how-to-use-a-touchdelegate-in-android-to-increase-the-siz">reference Thread</a></p>
  <blockquote>
  <p>scale is 1 the area touch area is equal to screen for parentView and ZoomView</p>
  </blockquote>
  <p>But when scale factor is not equal to one the touch area of parent is lesser(zoomIn) than the ZoomView as displayed</p>
  <p><strong>Yellow-parentView Touch Region</strong></p>
  <p><strong>Cyan-ZoomView Touch Region</strong></p>
  <p><strong>Green-ChildView Touch Region</strong></p>
  <p>ScreenShot here</p>
  <p><a href="https://i.stack.imgur.com/PzOYw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PzOYw.png" alt="enter image description here" /></a></p>
  <p><strong>Note:</strong>
  This is my first Question on StackOverflow So please recommend if some edits are needed.</p>