JazzyViewPager icon indicating copy to clipboard operation
JazzyViewPager copied to clipboard

When change view pager width and height through ViewGroup.LayoutParams,Animation doesn't work!

Open UFreedom opened this issue 11 years ago • 0 comments

when I add this code to change the view pager width and height,the animation dosent work !

    DisplayMetrics dm = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(dm);

    int w = dm.widthPixels;
    int h = dm.heightPixels;
    ViewGroup.LayoutParams layoutParams = mJazzy.getLayoutParams();
    layoutParams.width = w - h / 4;
    layoutParams.height = layoutParams.width * 3 / 2;

UFreedom avatar Apr 13 '15 06:04 UFreedom