当前位置: 首页>>代码示例>>Java>>正文


Java SupportMenuInflater类代码示例

本文整理汇总了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;
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:17,代码来源:AppCompatDelegateImplBase.java

示例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();
}
 
开发者ID:andreynovikov,项目名称:Androzic,代码行数:17,代码来源:RouteDetails.java

示例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();
}
 
开发者ID:andreynovikov,项目名称:androzic-plugin-tracker,代码行数:17,代码来源:TrackerList.java

示例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;
}
 
开发者ID:fython,项目名称:BiliNyan-Android,代码行数:8,代码来源:NavigationView.java

示例5: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public final MenuInflater getMenuInflater()
{
  return new SupportMenuInflater(this.mActionModeContext);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:WindowDecorActionBar.java

示例6: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
private MenuInflater getMenuInflater()
{
  return new SupportMenuInflater(getContext());
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:Toolbar.java

示例7: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public MenuInflater getMenuInflater()
{
    return new SupportMenuInflater(mActionModeContext);
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:5,代码来源:WindowDecorActionBar.java

示例8: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
public MenuInflater getMenuInflater()
{
    return new SupportMenuInflater(mContext);
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:5,代码来源:PopupMenu.java

示例9: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
private MenuInflater getMenuInflater()
{
    return new SupportMenuInflater(getContext());
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:5,代码来源:Toolbar.java

示例10: getMenuInflater

import android.support.v7.internal.view.SupportMenuInflater; //导入依赖的package包/类
@Override
public MenuInflater getMenuInflater() {
    return new SupportMenuInflater(getThemedContext());
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:5,代码来源:ActionBarImplBase.java

示例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);
}
 
开发者ID:restorer,项目名称:gloomy-dungeons-2,代码行数:10,代码来源:PopupMenu.java


注:本文中的android.support.v7.internal.view.SupportMenuInflater类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。