Fragmentation icon indicating copy to clipboard operation
Fragmentation copied to clipboard

请问如何取消跳转动画?

Open qdyao opened this issue 5 years ago • 1 comments

Issues Guideline

Following information can help us to resolve the issue faster.

  • Library version
  • Support-v4 version
  • Logs
  • Screenshots

In addition, we do not accept issues unrelated to Fragmentation.

qdyao avatar Aug 10 '19 11:08 qdyao

仿照作者的写法,他有个默认的动画。 把动画的进出全部设为0. `public class GuideViewAnimal extends FragmentAnimator implements Parcelable{

public GuideViewAnimal() {
    enter = 0;
    exit = 0;
    popEnter = 0;
    popExit = 0;
}

protected GuideViewAnimal(Parcel in) {
    super(in);
}

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
}

@Override
public int describeContents() {
    return 0;
}

public static final Creator<GuideViewAnimal> CREATOR = new Creator<GuideViewAnimal>() {
    @Override
    public GuideViewAnimal createFromParcel(Parcel in) {
        return new GuideViewAnimal(in);
    }

    @Override
    public GuideViewAnimal[] newArray(int size) {
        return new GuideViewAnimal[size];
    }
};

}`

githubtangchao avatar Oct 24 '19 09:10 githubtangchao