ADD week 5

This commit is contained in:
2025-03-31 16:33:42 +02:00
parent 86f265f22d
commit bf645048e6
4927 changed files with 544053 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package androidx.appcompat.widget;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import androidx.appcompat.widget.FitWindowsViewGroup;
/* loaded from: classes.dex */
public class FitWindowsLinearLayout extends LinearLayout implements FitWindowsViewGroup {
private FitWindowsViewGroup.OnFitSystemWindowsListener mListener;
@Override // androidx.appcompat.widget.FitWindowsViewGroup
public void setOnFitSystemWindowsListener(FitWindowsViewGroup.OnFitSystemWindowsListener onFitSystemWindowsListener) {
this.mListener = onFitSystemWindowsListener;
}
public FitWindowsLinearLayout(Context context) {
super(context);
}
public FitWindowsLinearLayout(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
@Override // android.view.View
protected boolean fitSystemWindows(Rect rect) {
FitWindowsViewGroup.OnFitSystemWindowsListener onFitSystemWindowsListener = this.mListener;
if (onFitSystemWindowsListener != null) {
onFitSystemWindowsListener.onFitSystemWindows(rect);
}
return super.fitSystemWindows(rect);
}
}