-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathActVbBindingCopy.java
68 lines (57 loc) · 1.9 KB
/
ActVbBindingCopy.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.foundation.app.simple.backup;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import com.foundation.app.simple.R;
public final class ActVbBindingCopy implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final Button btn;
private ActVbBindingCopy(@NonNull LinearLayout rootView, @NonNull Button btn) {
this.rootView = rootView;
this.btn = btn;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static ActVbBindingCopy inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActVbBindingCopy inflate(@NonNull LayoutInflater inflater, @Nullable ViewGroup parent,
boolean attachToParent) {
View root = inflater.inflate(R.layout.act_vb, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActVbBindingCopy bind(@NonNull View rootView) {
System.out.println("ActVbBindingCopy bind baseAF");
// 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.btn;
Button btn = rootView.findViewById(id);
if (btn == null) {
break missingId;
}
return new ActVbBindingCopy((LinearLayout) rootView, btn);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}