ExpandedMenuView.java
2.11 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
package android.support.v7.view.menu;
import android.content.Context;
import android.support.annotation.RestrictTo;
import android.support.v7.widget.TintTypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAdapter;
import android.widget.ListView;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public final class ExpandedMenuView
extends ListView
implements MenuBuilder.ItemInvoker, MenuView, AdapterView.OnItemClickListener
{
private static final int[] a = { 16842964, 16843049 };
private MenuBuilder b;
private int c;
public ExpandedMenuView(Context paramContext, AttributeSet paramAttributeSet)
{
this(paramContext, paramAttributeSet, 16842868);
}
public ExpandedMenuView(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
{
super(paramContext, paramAttributeSet);
setOnItemClickListener(this);
paramContext = TintTypedArray.obtainStyledAttributes(paramContext, paramAttributeSet, a, paramInt, 0);
if (paramContext.hasValue(0)) {
setBackgroundDrawable(paramContext.getDrawable(0));
}
if (paramContext.hasValue(1)) {
setDivider(paramContext.getDrawable(1));
}
paramContext.recycle();
}
public final int getWindowAnimations()
{
return this.c;
}
public final void initialize(MenuBuilder paramMenuBuilder)
{
this.b = paramMenuBuilder;
}
public final boolean invokeItem(MenuItemImpl paramMenuItemImpl)
{
return this.b.performItemAction(paramMenuItemImpl, 0);
}
protected final void onDetachedFromWindow()
{
super.onDetachedFromWindow();
setChildrenDrawingCacheEnabled(false);
}
public final void onItemClick(AdapterView paramAdapterView, View paramView, int paramInt, long paramLong)
{
invokeItem((MenuItemImpl)getAdapter().getItem(paramInt));
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/view/menu/ExpandedMenuView.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/