SimpleItemAnimator.java
5.96 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package android.support.v7.widget;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
public abstract class SimpleItemAnimator
extends RecyclerView.ItemAnimator
{
boolean i = true;
public abstract boolean animateAdd(RecyclerView.ViewHolder paramViewHolder);
public boolean animateAppearance(@NonNull RecyclerView.ViewHolder paramViewHolder, @Nullable RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo1, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo2)
{
if ((paramItemHolderInfo1 != null) && ((paramItemHolderInfo1.left != paramItemHolderInfo2.left) || (paramItemHolderInfo1.top != paramItemHolderInfo2.top))) {
return animateMove(paramViewHolder, paramItemHolderInfo1.left, paramItemHolderInfo1.top, paramItemHolderInfo2.left, paramItemHolderInfo2.top);
}
return animateAdd(paramViewHolder);
}
public abstract boolean animateChange(RecyclerView.ViewHolder paramViewHolder1, RecyclerView.ViewHolder paramViewHolder2, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
public boolean animateChange(@NonNull RecyclerView.ViewHolder paramViewHolder1, @NonNull RecyclerView.ViewHolder paramViewHolder2, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo1, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo2)
{
int m = paramItemHolderInfo1.left;
int n = paramItemHolderInfo1.top;
int j;
if (paramViewHolder2.b()) {
j = paramItemHolderInfo1.left;
}
for (int k = paramItemHolderInfo1.top;; k = paramItemHolderInfo2.top)
{
return animateChange(paramViewHolder1, paramViewHolder2, m, n, j, k);
j = paramItemHolderInfo2.left;
}
}
public boolean animateDisappearance(@NonNull RecyclerView.ViewHolder paramViewHolder, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo1, @Nullable RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo2)
{
int m = paramItemHolderInfo1.left;
int n = paramItemHolderInfo1.top;
paramItemHolderInfo1 = paramViewHolder.itemView;
int j;
if (paramItemHolderInfo2 == null)
{
j = paramItemHolderInfo1.getLeft();
if (paramItemHolderInfo2 != null) {
break label103;
}
}
label103:
for (int k = paramItemHolderInfo1.getTop();; k = paramItemHolderInfo2.top)
{
if ((paramViewHolder.k()) || ((m == j) && (n == k))) {
break label112;
}
paramItemHolderInfo1.layout(j, k, paramItemHolderInfo1.getWidth() + j, paramItemHolderInfo1.getHeight() + k);
return animateMove(paramViewHolder, m, n, j, k);
j = paramItemHolderInfo2.left;
break;
}
label112:
return animateRemove(paramViewHolder);
}
public abstract boolean animateMove(RecyclerView.ViewHolder paramViewHolder, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
public boolean animatePersistence(@NonNull RecyclerView.ViewHolder paramViewHolder, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo1, @NonNull RecyclerView.ItemAnimator.ItemHolderInfo paramItemHolderInfo2)
{
if ((paramItemHolderInfo1.left != paramItemHolderInfo2.left) || (paramItemHolderInfo1.top != paramItemHolderInfo2.top)) {
return animateMove(paramViewHolder, paramItemHolderInfo1.left, paramItemHolderInfo1.top, paramItemHolderInfo2.left, paramItemHolderInfo2.top);
}
dispatchMoveFinished(paramViewHolder);
return false;
}
public abstract boolean animateRemove(RecyclerView.ViewHolder paramViewHolder);
public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder paramViewHolder)
{
return (!this.i) || (paramViewHolder.h());
}
public final void dispatchAddFinished(RecyclerView.ViewHolder paramViewHolder)
{
onAddFinished(paramViewHolder);
dispatchAnimationFinished(paramViewHolder);
}
public final void dispatchAddStarting(RecyclerView.ViewHolder paramViewHolder)
{
onAddStarting(paramViewHolder);
}
public final void dispatchChangeFinished(RecyclerView.ViewHolder paramViewHolder, boolean paramBoolean)
{
onChangeFinished(paramViewHolder, paramBoolean);
dispatchAnimationFinished(paramViewHolder);
}
public final void dispatchChangeStarting(RecyclerView.ViewHolder paramViewHolder, boolean paramBoolean)
{
onChangeStarting(paramViewHolder, paramBoolean);
}
public final void dispatchMoveFinished(RecyclerView.ViewHolder paramViewHolder)
{
onMoveFinished(paramViewHolder);
dispatchAnimationFinished(paramViewHolder);
}
public final void dispatchMoveStarting(RecyclerView.ViewHolder paramViewHolder)
{
onMoveStarting(paramViewHolder);
}
public final void dispatchRemoveFinished(RecyclerView.ViewHolder paramViewHolder)
{
onRemoveFinished(paramViewHolder);
dispatchAnimationFinished(paramViewHolder);
}
public final void dispatchRemoveStarting(RecyclerView.ViewHolder paramViewHolder)
{
onRemoveStarting(paramViewHolder);
}
public boolean getSupportsChangeAnimations()
{
return this.i;
}
public void onAddFinished(RecyclerView.ViewHolder paramViewHolder) {}
public void onAddStarting(RecyclerView.ViewHolder paramViewHolder) {}
public void onChangeFinished(RecyclerView.ViewHolder paramViewHolder, boolean paramBoolean) {}
public void onChangeStarting(RecyclerView.ViewHolder paramViewHolder, boolean paramBoolean) {}
public void onMoveFinished(RecyclerView.ViewHolder paramViewHolder) {}
public void onMoveStarting(RecyclerView.ViewHolder paramViewHolder) {}
public void onRemoveFinished(RecyclerView.ViewHolder paramViewHolder) {}
public void onRemoveStarting(RecyclerView.ViewHolder paramViewHolder) {}
public void setSupportsChangeAnimations(boolean paramBoolean)
{
this.i = paramBoolean;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/widget/SimpleItemAnimator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/