ActionBar.java
11.1 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
package android.support.v7.app;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.annotation.StringRes;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.appcompat.R.styleable;
import android.support.v7.view.ActionMode;
import android.support.v7.view.ActionMode.Callback;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroup.MarginLayoutParams;
import android.widget.SpinnerAdapter;
import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public abstract class ActionBar
{
public static final int DISPLAY_HOME_AS_UP = 4;
public static final int DISPLAY_SHOW_CUSTOM = 16;
public static final int DISPLAY_SHOW_HOME = 2;
public static final int DISPLAY_SHOW_TITLE = 8;
public static final int DISPLAY_USE_LOGO = 1;
@Deprecated
public static final int NAVIGATION_MODE_LIST = 1;
@Deprecated
public static final int NAVIGATION_MODE_STANDARD = 0;
@Deprecated
public static final int NAVIGATION_MODE_TABS = 2;
public void a() {}
public abstract void addOnMenuVisibilityListener(OnMenuVisibilityListener paramOnMenuVisibilityListener);
@Deprecated
public abstract void addTab(Tab paramTab);
@Deprecated
public abstract void addTab(Tab paramTab, int paramInt);
@Deprecated
public abstract void addTab(Tab paramTab, int paramInt, boolean paramBoolean);
@Deprecated
public abstract void addTab(Tab paramTab, boolean paramBoolean);
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean collapseActionView()
{
return false;
}
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public void dispatchMenuVisibilityChanged(boolean paramBoolean) {}
public abstract View getCustomView();
public abstract int getDisplayOptions();
public float getElevation()
{
return 0.0F;
}
public abstract int getHeight();
public int getHideOffset()
{
return 0;
}
@Deprecated
public abstract int getNavigationItemCount();
@Deprecated
public abstract int getNavigationMode();
@Deprecated
public abstract int getSelectedNavigationIndex();
@Deprecated
@Nullable
public abstract Tab getSelectedTab();
@Nullable
public abstract CharSequence getSubtitle();
@Deprecated
public abstract Tab getTabAt(int paramInt);
@Deprecated
public abstract int getTabCount();
public Context getThemedContext()
{
return null;
}
@Nullable
public abstract CharSequence getTitle();
public abstract void hide();
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean invalidateOptionsMenu()
{
return false;
}
public boolean isHideOnContentScrollEnabled()
{
return false;
}
public abstract boolean isShowing();
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean isTitleTruncated()
{
return false;
}
@Deprecated
public abstract Tab newTab();
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public void onConfigurationChanged(Configuration paramConfiguration) {}
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean onKeyShortcut(int paramInt, KeyEvent paramKeyEvent)
{
return false;
}
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean onMenuKeyEvent(KeyEvent paramKeyEvent)
{
return false;
}
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public boolean openOptionsMenu()
{
return false;
}
@Deprecated
public abstract void removeAllTabs();
public abstract void removeOnMenuVisibilityListener(OnMenuVisibilityListener paramOnMenuVisibilityListener);
@Deprecated
public abstract void removeTab(Tab paramTab);
@Deprecated
public abstract void removeTabAt(int paramInt);
public boolean requestFocus()
{
return false;
}
@Deprecated
public abstract void selectTab(Tab paramTab);
public abstract void setBackgroundDrawable(@Nullable Drawable paramDrawable);
public abstract void setCustomView(int paramInt);
public abstract void setCustomView(View paramView);
public abstract void setCustomView(View paramView, LayoutParams paramLayoutParams);
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public void setDefaultDisplayHomeAsUpEnabled(boolean paramBoolean) {}
public abstract void setDisplayHomeAsUpEnabled(boolean paramBoolean);
public abstract void setDisplayOptions(int paramInt);
public abstract void setDisplayOptions(int paramInt1, int paramInt2);
public abstract void setDisplayShowCustomEnabled(boolean paramBoolean);
public abstract void setDisplayShowHomeEnabled(boolean paramBoolean);
public abstract void setDisplayShowTitleEnabled(boolean paramBoolean);
public abstract void setDisplayUseLogoEnabled(boolean paramBoolean);
public void setElevation(float paramFloat)
{
if (paramFloat != 0.0F) {
throw new UnsupportedOperationException("Setting a non-zero elevation is not supported in this action bar configuration.");
}
}
public void setHideOffset(int paramInt)
{
if (paramInt != 0) {
throw new UnsupportedOperationException("Setting an explicit action bar hide offset is not supported in this action bar configuration.");
}
}
public void setHideOnContentScrollEnabled(boolean paramBoolean)
{
if (paramBoolean) {
throw new UnsupportedOperationException("Hide on content scroll is not supported in this action bar configuration.");
}
}
public void setHomeActionContentDescription(@StringRes int paramInt) {}
public void setHomeActionContentDescription(@Nullable CharSequence paramCharSequence) {}
public void setHomeAsUpIndicator(@DrawableRes int paramInt) {}
public void setHomeAsUpIndicator(@Nullable Drawable paramDrawable) {}
public void setHomeButtonEnabled(boolean paramBoolean) {}
public abstract void setIcon(@DrawableRes int paramInt);
public abstract void setIcon(Drawable paramDrawable);
@Deprecated
public abstract void setListNavigationCallbacks(SpinnerAdapter paramSpinnerAdapter, OnNavigationListener paramOnNavigationListener);
public abstract void setLogo(@DrawableRes int paramInt);
public abstract void setLogo(Drawable paramDrawable);
@Deprecated
public abstract void setNavigationMode(int paramInt);
@Deprecated
public abstract void setSelectedNavigationItem(int paramInt);
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public void setShowHideAnimationEnabled(boolean paramBoolean) {}
public void setSplitBackgroundDrawable(Drawable paramDrawable) {}
public void setStackedBackgroundDrawable(Drawable paramDrawable) {}
public abstract void setSubtitle(int paramInt);
public abstract void setSubtitle(CharSequence paramCharSequence);
public abstract void setTitle(@StringRes int paramInt);
public abstract void setTitle(CharSequence paramCharSequence);
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public void setWindowTitle(CharSequence paramCharSequence) {}
public abstract void show();
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public ActionMode startActionMode(ActionMode.Callback paramCallback)
{
return null;
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public static @interface DisplayOptions {}
public static class LayoutParams
extends ViewGroup.MarginLayoutParams
{
public int gravity = 0;
public LayoutParams(int paramInt)
{
this(-2, -1, paramInt);
}
public LayoutParams(int paramInt1, int paramInt2)
{
super(paramInt2);
this.gravity = 8388627;
}
public LayoutParams(int paramInt1, int paramInt2, int paramInt3)
{
super(paramInt2);
this.gravity = paramInt3;
}
public LayoutParams(@NonNull Context paramContext, AttributeSet paramAttributeSet)
{
super(paramAttributeSet);
paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, R.styleable.ActionBarLayout);
this.gravity = paramContext.getInt(R.styleable.ActionBarLayout_android_layout_gravity, 0);
paramContext.recycle();
}
public LayoutParams(LayoutParams paramLayoutParams)
{
super();
this.gravity = paramLayoutParams.gravity;
}
public LayoutParams(ViewGroup.LayoutParams paramLayoutParams)
{
super();
}
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public static @interface NavigationMode {}
public static abstract interface OnMenuVisibilityListener
{
public abstract void onMenuVisibilityChanged(boolean paramBoolean);
}
@Deprecated
public static abstract interface OnNavigationListener
{
public abstract boolean onNavigationItemSelected(int paramInt, long paramLong);
}
@Deprecated
public static abstract class Tab
{
public static final int INVALID_POSITION = -1;
public abstract CharSequence getContentDescription();
public abstract View getCustomView();
public abstract Drawable getIcon();
public abstract int getPosition();
public abstract Object getTag();
public abstract CharSequence getText();
public abstract void select();
public abstract Tab setContentDescription(int paramInt);
public abstract Tab setContentDescription(CharSequence paramCharSequence);
public abstract Tab setCustomView(int paramInt);
public abstract Tab setCustomView(View paramView);
public abstract Tab setIcon(@DrawableRes int paramInt);
public abstract Tab setIcon(Drawable paramDrawable);
public abstract Tab setTabListener(ActionBar.TabListener paramTabListener);
public abstract Tab setTag(Object paramObject);
public abstract Tab setText(int paramInt);
public abstract Tab setText(CharSequence paramCharSequence);
}
@Deprecated
public static abstract interface TabListener
{
public abstract void onTabReselected(ActionBar.Tab paramTab, FragmentTransaction paramFragmentTransaction);
public abstract void onTabSelected(ActionBar.Tab paramTab, FragmentTransaction paramFragmentTransaction);
public abstract void onTabUnselected(ActionBar.Tab paramTab, FragmentTransaction paramFragmentTransaction);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/app/ActionBar.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/