mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
25 lines
661 B
Java
25 lines
661 B
Java
package androidx.viewbinding;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ViewBindings {
|
|
private ViewBindings() {
|
|
}
|
|
|
|
public static <T extends View> T findChildViewById(View view, int i) {
|
|
if (!(view instanceof ViewGroup)) {
|
|
return null;
|
|
}
|
|
ViewGroup viewGroup = (ViewGroup) view;
|
|
int childCount = viewGroup.getChildCount();
|
|
for (int i2 = 0; i2 < childCount; i2++) {
|
|
T t = (T) viewGroup.getChildAt(i2).findViewById(i);
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|