MarginLayoutParamsCompat.java
4.95 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
package android.support.v4.view;
import android.os.Build.VERSION;
import android.view.ViewGroup.MarginLayoutParams;
public final class MarginLayoutParamsCompat
{
static final a a = new b();
static
{
if (Build.VERSION.SDK_INT >= 17)
{
a = new c();
return;
}
}
public static int getLayoutDirection(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
int j = a.d(paramMarginLayoutParams);
int i = j;
if (j != 0)
{
i = j;
if (j != 1) {
i = 0;
}
}
return i;
}
public static int getMarginEnd(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return a.b(paramMarginLayoutParams);
}
public static int getMarginStart(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return a.a(paramMarginLayoutParams);
}
public static boolean isMarginRelative(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return a.c(paramMarginLayoutParams);
}
public static void resolveLayoutDirection(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
a.d(paramMarginLayoutParams, paramInt);
}
public static void setLayoutDirection(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
a.c(paramMarginLayoutParams, paramInt);
}
public static void setMarginEnd(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
a.b(paramMarginLayoutParams, paramInt);
}
public static void setMarginStart(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
a.a(paramMarginLayoutParams, paramInt);
}
static abstract interface a
{
public abstract int a(ViewGroup.MarginLayoutParams paramMarginLayoutParams);
public abstract void a(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt);
public abstract int b(ViewGroup.MarginLayoutParams paramMarginLayoutParams);
public abstract void b(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt);
public abstract void c(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt);
public abstract boolean c(ViewGroup.MarginLayoutParams paramMarginLayoutParams);
public abstract int d(ViewGroup.MarginLayoutParams paramMarginLayoutParams);
public abstract void d(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt);
}
static final class b
implements MarginLayoutParamsCompat.a
{
public final int a(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.leftMargin;
}
public final void a(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.leftMargin = paramInt;
}
public final int b(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.rightMargin;
}
public final void b(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.rightMargin = paramInt;
}
public final void c(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt) {}
public final boolean c(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return false;
}
public final int d(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return 0;
}
public final void d(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt) {}
}
static final class c
implements MarginLayoutParamsCompat.a
{
public final int a(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.getMarginStart();
}
public final void a(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.setMarginStart(paramInt);
}
public final int b(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.getMarginEnd();
}
public final void b(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.setMarginEnd(paramInt);
}
public final void c(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.setLayoutDirection(paramInt);
}
public final boolean c(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.isMarginRelative();
}
public final int d(ViewGroup.MarginLayoutParams paramMarginLayoutParams)
{
return paramMarginLayoutParams.getLayoutDirection();
}
public final void d(ViewGroup.MarginLayoutParams paramMarginLayoutParams, int paramInt)
{
paramMarginLayoutParams.resolveLayoutDirection(paramInt);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/MarginLayoutParamsCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/