title: Programmatically swipe Android view
body: <h1>What I need:</h1>
  <p>I have a recyclerview, what I want to do is to for example (pseucode at end):</p>
  <ol>
  <li>Get first item view (<code>myView</code>)</li>
  <li>Swipe <code>myView</code> to left 100px - <code>myView.Swipe(translationX, -100px)</code></li>
  <li>Swipe <code>myView</code> back to original position <code>myView.Swipe(translationX, 0px)</code></li>
  </ol>
  <p>Is there anyway to do this?</p>
  <p><strong>Important</strong> I want to emulate the swiping (as if user was swiping over view) not animate the translationX. I already have my code of what view does onSwipe but I want to give user hint of what happens when user swipes to left.</p>
  <p>This is what happens on swiping:</p>
  <ol>
  <li>Original state:</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/Rneph.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rneph.png" alt="enter image description here" /></a></p>
  <ol start="2">
  <li>User swipes to left:</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/8vnkn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8vnkn.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/5MgHK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5MgHK.png" alt="enter image description here" /></a></p>
  <h1>My problem:</h1>
  <p>When using animation pink canvas with trash icon does NOT appear. So I need to emulate/simulate the swiping action.</p>
  <h1>Update:</h1>
  <p>I'm using android native ItemTouchHelper.SimpleCallback to listen for swipe and onChildDraw() to draw pink canvas when RecyclerView items are swiped.</p>