0

I have a ViewPager and on touch of its tabstrip, I'm moving the whole ViewPager with the touch movement. At this point I want the ViewPager to adjust its height accordingly. I have tried:

vPager.setTranslationY(movableY);
vPager.getLayoutParams().height+=movableY;
vPager.requestLayout();

(movableY is the movement required in Y direction) But results aren't satisfactory.

ndsmyter
  • 6,535
  • 3
  • 22
  • 37
Kitty
  • 75
  • 2
  • 9
  • Can you explain what you don't find 'statisfactory' about your result? Some more info on what is happening right now that you don't like. – ndsmyter Jul 03 '15 at 07:00
  • It's height isn't changing while inside MotionEvent.ACTION_MOVE. – Kitty Jul 03 '15 at 09:36

0 Answers0