Skip to content

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

@UFreedom

Description

@UFreedom

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions