title: how to add pinch to zoom textview in viewpager?
body: <p>I searched many blogs regarding pinch to zoom <code>TextView</code> in <code>ViewPager</code>. I just found many answers for pinch to zoom <code>ImageView</code>. </p>
  
  <p>How I can add pinch to zoom in ViewPager.</p>
  
  <p>Here are the links, which I read before posting:</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/20943831/view-pager-imageview-pinch-zoom-rotation">View Pager + ImageView +Pinch Zoom + Rotation</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/11672210/android-combine-swipe-and-pinch-to-zoom?rq=1">Android - combine swipe and pinch-to-zoom</a></p></li>
  </ul>
  
  <p><strong>Updated</strong></p>
  
  <pre><code>@Override
  protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {
      if (v instanceof TouchImageView) {
          return ((TouchImageView) v).canScrollHorizontallyFroyo(-dx);
      } else {
          return super.canScroll(v, checkV, dx, x, y);
      }
  }
  </code></pre>
  
  <p>I am getting error in <code>if (v instanceof TouchImageView)</code> . error message says ,<code>TouchImageView</code> cannot be resolved</p>