mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 772940 - Add height setter/getter to AnimatorProxy (r=mfinkle)
This commit is contained in:
parent
207125d431
commit
912bfa7deb
@ -9,6 +9,7 @@ import android.graphics.Matrix;
|
||||
import android.graphics.RectF;
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.animation.Animation;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.view.animation.Transformation;
|
||||
@ -56,6 +57,23 @@ public class AnimatorProxy {
|
||||
return proxy;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
View view = mImpl.getView();
|
||||
if (view != null)
|
||||
return view.getHeight();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setHeight(int height) {
|
||||
View view = mImpl.getView();
|
||||
if (view != null) {
|
||||
ViewGroup.LayoutParams lp = view.getLayoutParams();
|
||||
lp.height = height;
|
||||
view.setLayoutParams(lp);
|
||||
}
|
||||
}
|
||||
|
||||
public int getScrollX() {
|
||||
View view = mImpl.getView();
|
||||
if (view != null)
|
||||
|
Loading…
Reference in New Issue
Block a user