ADD week 5
This commit is contained in:
@ -0,0 +1,138 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.widget.FrameLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ContentFrameLayout extends FrameLayout {
|
||||
private OnAttachListener mAttachListener;
|
||||
private final Rect mDecorPadding;
|
||||
private TypedValue mFixedHeightMajor;
|
||||
private TypedValue mFixedHeightMinor;
|
||||
private TypedValue mFixedWidthMajor;
|
||||
private TypedValue mFixedWidthMinor;
|
||||
private TypedValue mMinWidthMajor;
|
||||
private TypedValue mMinWidthMinor;
|
||||
|
||||
public interface OnAttachListener {
|
||||
void onAttachedFromWindow();
|
||||
|
||||
void onDetachedFromWindow();
|
||||
}
|
||||
|
||||
public void setAttachListener(OnAttachListener onAttachListener) {
|
||||
this.mAttachListener = onAttachListener;
|
||||
}
|
||||
|
||||
public ContentFrameLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public ContentFrameLayout(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public ContentFrameLayout(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.mDecorPadding = new Rect();
|
||||
}
|
||||
|
||||
public void dispatchFitSystemWindows(Rect rect) {
|
||||
fitSystemWindows(rect);
|
||||
}
|
||||
|
||||
public void setDecorPadding(int i, int i2, int i3, int i4) {
|
||||
this.mDecorPadding.set(i, i2, i3, i4);
|
||||
if (ViewCompat.isLaidOut(this)) {
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0050 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x006b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x0094 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:38:0x00bb */
|
||||
/* JADX WARN: Removed duplicated region for block: B:44:0x00ca */
|
||||
/* JADX WARN: Removed duplicated region for block: B:47:0x00e2 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:49:0x00ee */
|
||||
/* JADX WARN: Removed duplicated region for block: B:51:0x00f6 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:54:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:55:0x00d0 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:59:0x00be */
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
protected void onMeasure(int r14, int r15) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 250
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ContentFrameLayout.onMeasure(int, int):void");
|
||||
}
|
||||
|
||||
public TypedValue getMinWidthMajor() {
|
||||
if (this.mMinWidthMajor == null) {
|
||||
this.mMinWidthMajor = new TypedValue();
|
||||
}
|
||||
return this.mMinWidthMajor;
|
||||
}
|
||||
|
||||
public TypedValue getMinWidthMinor() {
|
||||
if (this.mMinWidthMinor == null) {
|
||||
this.mMinWidthMinor = new TypedValue();
|
||||
}
|
||||
return this.mMinWidthMinor;
|
||||
}
|
||||
|
||||
public TypedValue getFixedWidthMajor() {
|
||||
if (this.mFixedWidthMajor == null) {
|
||||
this.mFixedWidthMajor = new TypedValue();
|
||||
}
|
||||
return this.mFixedWidthMajor;
|
||||
}
|
||||
|
||||
public TypedValue getFixedWidthMinor() {
|
||||
if (this.mFixedWidthMinor == null) {
|
||||
this.mFixedWidthMinor = new TypedValue();
|
||||
}
|
||||
return this.mFixedWidthMinor;
|
||||
}
|
||||
|
||||
public TypedValue getFixedHeightMajor() {
|
||||
if (this.mFixedHeightMajor == null) {
|
||||
this.mFixedHeightMajor = new TypedValue();
|
||||
}
|
||||
return this.mFixedHeightMajor;
|
||||
}
|
||||
|
||||
public TypedValue getFixedHeightMinor() {
|
||||
if (this.mFixedHeightMinor == null) {
|
||||
this.mFixedHeightMinor = new TypedValue();
|
||||
}
|
||||
return this.mFixedHeightMinor;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
OnAttachListener onAttachListener = this.mAttachListener;
|
||||
if (onAttachListener != null) {
|
||||
onAttachListener.onAttachedFromWindow();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
OnAttachListener onAttachListener = this.mAttachListener;
|
||||
if (onAttachListener != null) {
|
||||
onAttachListener.onDetachedFromWindow();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user