title: Confused about setTranslationX() when translating FloatingActionButton on ViewPager scroll
body: <p>I have some tabs in a <code>ViewPager</code>. Each tab except the last displays the <code>FloatingActionButton</code> at the bottom right corner. The last tab is supposed to display it in the bottom center, after translating it while this tab is being scrolled to. When scrolling away from this tab, the <code>FloatingActionButton</code> translates back into its bottom right position. I was implementing a solution, and was surprised to find that this, more or less, was all it took:</p>
  
  <pre><code>mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
          @Override
          public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
              // One page away from last page
              if (position == mAdapter.getCount() - 2) {
                  mFab.setTranslationX(positionOffsetPixels / -2f);
              }
          }
  }
  </code></pre>
  
  <p>When I scroll to the last tab, we're translating the FAB to the left of its current position, because the argument passed to <code>setTranslationX()</code> is negative. Now, here's where I'm confused. When I scroll back one page, the FAB translates back to the right as desired--but how can this be? The argument to <code>setTranslationX()</code> is still negative. I expected the FAB to translate further left.</p>