• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SupportMenuInflater类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Names类代码示例发布时间:2022-05-22
下一篇:
Java NonnullByDefault类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap