Skip to content

Commit

Permalink
Merge pull request #127 from iampkhan/master
Browse files Browse the repository at this point in the history
Added Support for changing parallaxFactor programatically
  • Loading branch information
janheinrichmerker authored Sep 5, 2016
2 parents e0edee7 + c557e93 commit 7d371cc
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,37 @@ public LayoutParams(int width, int height) {
super(width, height);
}

public LayoutParams(int width, int height, float parallaxFactor) {
super(width, height);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(int width, int height, int gravity) {
super(width, height, gravity);
}

public LayoutParams(int width, int height, int gravity, float parallaxFactor) {
super(width, height, gravity);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(ViewGroup.LayoutParams source) {
super(source);
}

public LayoutParams(ViewGroup.LayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(MarginLayoutParams source) {
super(source);
}

public LayoutParams(MarginLayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,37 @@ public LayoutParams(int width, int height) {
super(width, height);
}

public LayoutParams(int width, int height, float parallaxFactor) {
super(width, height);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(int width, int height, int gravity) {
super(width, height, gravity);
}

public LayoutParams(int width, int height, int gravity, float parallaxFactor) {
super(width, height, gravity);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(ViewGroup.LayoutParams source) {
super(source);
}

public LayoutParams(ViewGroup.LayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(MarginLayoutParams source) {
super(source);
}

public LayoutParams(MarginLayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,28 @@ public LayoutParams(int width, int height) {
super(width, height);
}

public LayoutParams(int width, int height, float parallaxFactor) {
super(width, height);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(ViewGroup.LayoutParams source) {
super(source);
}

public LayoutParams(ViewGroup.LayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}

public LayoutParams(MarginLayoutParams source) {
super(source);
}

public LayoutParams(MarginLayoutParams source, float parallaxFactor) {
super(source);
this.parallaxFactor = parallaxFactor;
}
}

}

0 comments on commit 7d371cc

Please sign in to comment.