l.java
5.32 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.AnimatorSet.Builder;
import android.animation.ObjectAnimator;
import android.animation.StateListAnimator;
import android.annotation.TargetApi;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.InsetDrawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build.VERSION;
import android.support.annotation.RequiresApi;
import android.support.design.widget.VisibilityAwareImageButton;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.view.View;
@TargetApi(21)
@RequiresApi(21)
public final class l
extends j
{
private InsetDrawable r;
public l(VisibilityAwareImageButton paramVisibilityAwareImageButton, o paramo, s.d paramd)
{
super(paramVisibilityAwareImageButton, paramo, paramd);
}
public final float a()
{
return this.n.getElevation();
}
final void a(float paramFloat1, float paramFloat2)
{
if (Build.VERSION.SDK_INT == 21) {
if (this.n.isEnabled())
{
this.n.setElevation(paramFloat1);
if ((this.n.isFocused()) || (this.n.isPressed())) {
this.n.setTranslationZ(paramFloat2);
}
}
}
for (;;)
{
if (this.o.b()) {
f();
}
return;
this.n.setTranslationZ(0.0F);
continue;
this.n.setElevation(0.0F);
this.n.setTranslationZ(0.0F);
continue;
StateListAnimator localStateListAnimator = new StateListAnimator();
AnimatorSet localAnimatorSet = new AnimatorSet();
localAnimatorSet.play(ObjectAnimator.ofFloat(this.n, "elevation", new float[] { paramFloat1 }).setDuration(0L)).with(ObjectAnimator.ofFloat(this.n, View.TRANSLATION_Z, new float[] { paramFloat2 }).setDuration(100L));
localAnimatorSet.setInterpolator(b);
localStateListAnimator.addState(j, localAnimatorSet);
localAnimatorSet = new AnimatorSet();
localAnimatorSet.play(ObjectAnimator.ofFloat(this.n, "elevation", new float[] { paramFloat1 }).setDuration(0L)).with(ObjectAnimator.ofFloat(this.n, View.TRANSLATION_Z, new float[] { paramFloat2 }).setDuration(100L));
localAnimatorSet.setInterpolator(b);
localStateListAnimator.addState(k, localAnimatorSet);
localAnimatorSet = new AnimatorSet();
localAnimatorSet.playSequentially(new Animator[] { ObjectAnimator.ofFloat(this.n, "elevation", new float[] { paramFloat1 }).setDuration(0L), ObjectAnimator.ofFloat(this.n, View.TRANSLATION_Z, new float[] { this.n.getTranslationZ() }).setDuration(100L), ObjectAnimator.ofFloat(this.n, View.TRANSLATION_Z, new float[] { 0.0F }).setDuration(100L) });
localAnimatorSet.setInterpolator(b);
localStateListAnimator.addState(l, localAnimatorSet);
localAnimatorSet = new AnimatorSet();
localAnimatorSet.play(ObjectAnimator.ofFloat(this.n, "elevation", new float[] { 0.0F }).setDuration(0L)).with(ObjectAnimator.ofFloat(this.n, View.TRANSLATION_Z, new float[] { 0.0F }).setDuration(0L));
localAnimatorSet.setInterpolator(b);
localStateListAnimator.addState(m, localAnimatorSet);
this.n.setStateListAnimator(localStateListAnimator);
}
}
final void a(int paramInt)
{
if ((this.e instanceof RippleDrawable))
{
((RippleDrawable)this.e).setColor(ColorStateList.valueOf(paramInt));
return;
}
super.a(paramInt);
}
final void a(ColorStateList paramColorStateList, PorterDuff.Mode paramMode, int paramInt1, int paramInt2)
{
this.d = DrawableCompat.wrap(h());
DrawableCompat.setTintList(this.d, paramColorStateList);
if (paramMode != null) {
DrawableCompat.setTintMode(this.d, paramMode);
}
if (paramInt2 > 0) {
this.f = a(paramInt2, paramColorStateList);
}
for (paramColorStateList = new LayerDrawable(new Drawable[] { this.f, this.d });; paramColorStateList = this.d)
{
this.e = new RippleDrawable(ColorStateList.valueOf(paramInt1), paramColorStateList, null);
this.g = this.e;
this.o.a(this.e);
return;
this.f = null;
}
}
final void a(Rect paramRect)
{
if (this.o.b())
{
float f1 = this.o.a();
float f2 = this.n.getElevation() + this.i;
int i = (int)Math.ceil(n.b(f2, f1, false));
int j = (int)Math.ceil(n.a(f2, f1, false));
paramRect.set(i, j, i, j);
return;
}
paramRect.set(0, 0, 0, 0);
}
final void a(int[] paramArrayOfInt) {}
final void b() {}
final void b(Rect paramRect)
{
if (this.o.b())
{
this.r = new InsetDrawable(this.e, paramRect.left, paramRect.top, paramRect.right, paramRect.bottom);
this.o.a(this.r);
return;
}
this.o.a(this.e);
}
final void c()
{
f();
}
final boolean d()
{
return false;
}
final d g()
{
return new e();
}
final GradientDrawable i()
{
return new l.a();
}
static final class a
extends GradientDrawable
{
public final boolean isStateful()
{
return true;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/l.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/