本文整理汇总了Java中android.support.v7.internal.view.SupportMenuInflater类的典型用法代码示例。如果您正苦于以下问题:Java SupportMenuInflater类的具体用法?Java SupportMenuInflater怎么用?Java SupportMenuInflater使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SupportMenuInflater类属于android.support.v7.internal.view包,在下文中一共展示了SupportMenuInflater类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public final MenuInflater getMenuInflater()
{
if (this.mMenuInflater == null)
{
initWindowDecorActionBar();
if (this.mActionBar == null) {
break label43;
}
}
label43:
for (Context localContext = this.mActionBar.getThemedContext();; localContext = this.mContext)
{
this.mMenuInflater = new SupportMenuInflater(localContext);
return this.mMenuInflater;
}
}
示例2: onListItemClick
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
@Override
public void onListItemClick(ListView lv, View v, int position, long id)
{
v.setTag("selected");
selectedKey = position;
selectedBackground = v.getBackground();
v.setBackgroundColor(accentColor);
// https://gist.github.com/mediavrog/9345938#file-iconizedmenu-java-L55
MenuBuilder menu = new MenuBuilder(getActivity());
menu.setCallback(this);
MenuPopupHelper popup = new MenuPopupHelper(getActivity(), menu, v.findViewById(R.id.name));
popup.setForceShowIcon(true);
popup.setCallback(this);
new SupportMenuInflater(getActivity()).inflate(navigation? R.menu.routewaypointnavigation_menu : R.menu.routewaypoint_menu, menu);
popup.show();
}
示例3: onItemClick
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
@Override
public void onItemClick(AdapterView<?> l, View v, int position, long id)
{
v.setTag("selected");
selectedPosition = position;
selectedBackground = v.getBackground();
v.setBackgroundColor(accentColor);
// https://gist.github.com/mediavrog/9345938#file-iconizedmenu-java-L55
MenuBuilder menu = new MenuBuilder(this);
menu.setCallback(this);
MenuPopupHelper popup = new MenuPopupHelper(this, menu, v.findViewById(R.id.name));
popup.setForceShowIcon(true);
popup.setCallback(this);
new SupportMenuInflater(this).inflate(R.menu.tracker_popup, menu);
popup.show();
}
示例4: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
private MenuInflater getMenuInflater() {
if(this.mMenuInflater == null) {
this.mMenuInflater = new SupportMenuInflater(this.getContext());
}
return this.mMenuInflater;
}
示例5: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public final MenuInflater getMenuInflater()
{
return new SupportMenuInflater(this.mActionModeContext);
}
示例6: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
private MenuInflater getMenuInflater()
{
return new SupportMenuInflater(getContext());
}
示例7: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public MenuInflater getMenuInflater()
{
return new SupportMenuInflater(mActionModeContext);
}
示例8: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public MenuInflater getMenuInflater()
{
return new SupportMenuInflater(mContext);
}
示例9: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
private MenuInflater getMenuInflater()
{
return new SupportMenuInflater(getContext());
}
示例10: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
@Override
public MenuInflater getMenuInflater() {
return new SupportMenuInflater(getThemedContext());
}
示例11: getMenuInflater
import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
/**
* @return a {@link MenuInflater} that can be used to inflate menu items from XML into the
* menu returned by {@link #getMenu()}.
*
* @see #getMenu()
*/
public MenuInflater getMenuInflater() {
return new SupportMenuInflater(mContext);
}