forked from MarkClayDev/ThesisRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NavHeaderBinding.java
68 lines (59 loc) · 1.99 KB
/
NavHeaderBinding.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Generated by view binder compiler. Do not edit!
package com.example.thesistest.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.thesistest.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class NavHeaderBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final TextView fullname;
private NavHeaderBinding(@NonNull LinearLayout rootView, @NonNull TextView fullname) {
this.rootView = rootView;
this.fullname = fullname;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static NavHeaderBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static NavHeaderBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.nav_header, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static NavHeaderBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.fullname;
TextView fullname = ViewBindings.findChildViewById(rootView, id);
if (fullname == null) {
break missingId;
}
return new NavHeaderBinding((LinearLayout) rootView, fullname);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}