ADD week 5
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
package androidx.constraintlayout.motion.utils;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ViewState {
|
||||
public int bottom;
|
||||
public int left;
|
||||
public int right;
|
||||
public float rotation;
|
||||
public int top;
|
||||
|
||||
public int height() {
|
||||
return this.bottom - this.top;
|
||||
}
|
||||
|
||||
public int width() {
|
||||
return this.right - this.left;
|
||||
}
|
||||
|
||||
public void getState(View v) {
|
||||
this.left = v.getLeft();
|
||||
this.top = v.getTop();
|
||||
this.right = v.getRight();
|
||||
this.bottom = v.getBottom();
|
||||
this.rotation = v.getRotation();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user