AvatarMakeupViewHolder.java
2.86 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
package com.bitstrips.imoji.abv3.option;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.PorterDuff.Mode;
import android.support.v7.widget.RecyclerView.LayoutParams;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.ImageView;
public class AvatarMakeupViewHolder
extends AvatarOptionBaseViewHolder
{
private View n;
private final MakeupImageView o;
private final MakeupImageView p;
private final ImageView q;
private int r;
public AvatarMakeupViewHolder(View paramView, Context paramContext)
{
super(paramView);
this.n = paramView;
this.o = ((MakeupImageView)paramView.findViewById(2131689575));
this.p = ((MakeupImageView)paramView.findViewById(2131689902));
this.q = ((ImageView)paramView.findViewById(2131689876));
int i = (int)(paramContext.getResources().getDisplayMetrics().widthPixels * 0.025D) / 2;
paramView = new RecyclerView.LayoutParams(-1, -1);
paramView.setMargins(i, i, i, i);
this.n.setLayoutParams(paramView);
}
public void setOption(String paramString, int paramInt)
{
int i = 0;
this.o.setImageDrawable(null);
this.o.setVisibility(0);
this.p.setVisibility(8);
this.q.setVisibility(8);
this.r = paramInt;
if (paramInt != -1)
{
if (paramString.equals("blush_tone"))
{
this.o.setSquare();
label62:
this.o.setColorFilter(paramInt, PorterDuff.Mode.MULTIPLY);
switch (paramString.hashCode())
{
default:
label112:
paramInt = -1;
}
}
for (;;)
{
switch (paramInt)
{
default:
return;
this.o.setCircle();
break label62;
if (!paramString.equals("blush_tone")) {
break label112;
}
paramInt = i;
continue;
if (!paramString.equals("eyeshadow_tone")) {
break label112;
}
paramInt = 1;
continue;
if (!paramString.equals("lipstick_tone")) {
break label112;
}
paramInt = 2;
}
}
this.o.setImageResource(2130837621);
return;
this.o.setImageResource(2130837622);
return;
this.o.setImageResource(2130837623);
return;
}
this.o.setVisibility(8);
this.p.setVisibility(0);
if (paramString.equals("blush_tone"))
{
this.p.setSquare();
return;
}
this.p.setCircle();
}
public void setSelected(boolean paramBoolean)
{
if ((paramBoolean) && (this.r != -1))
{
this.q.setVisibility(0);
return;
}
this.q.setVisibility(4);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/option/AvatarMakeupViewHolder.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/