android.support.v7.widget.Toolbar.setOverflowIcon()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中android.support.v7.widget.Toolbar.setOverflowIcon()方法的一些代码示例,展示了Toolbar.setOverflowIcon()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Toolbar.setOverflowIcon()方法的具体详情如下:
包路径:android.support.v7.widget.Toolbar
类名称:Toolbar
方法名:setOverflowIcon

Toolbar.setOverflowIcon介绍

暂无

代码示例

代码示例来源:origin: chrisk44/Hijacker

static void refreshState(){
  //refresh overflow icon to show what is running
  int state = Airodump.isRunning() ? 1 : 0;
  if(aireplay_running!=0) state += 2;
  if(bf || ados) state += 4;
  toolbar.setOverflowIcon(overflow[state]);
  if(!(ReaverFragment.isRunning() || CrackFragment.isRunning() || wpa_thread.isAlive())){
    progress.setIndeterminate(false);
    progress.setProgress(deauthWait);
  }
}
static void refreshDrawer(){

代码示例来源:origin: chrisk44/Hijacker

toolbar.setOverflowIcon(overflow[0]);

代码示例来源:origin: yiyibb/Zhihu

private void initToolBar() {
  mtoolBar.inflateMenu(R.menu.menu_main);
  mtoolBar.setTitle(mContext.getResources().getString(R.string.topic_list_home));
  mtoolBar.setNavigationIcon(ContextCompat.getDrawable(this, R.drawable.ic_actionbar_menu));
  mtoolBar.setOverflowIcon(ContextCompat.getDrawable(this, R.drawable.ic_actionbar_menu_overflow));
}

代码示例来源:origin: kollerlukas/Camera-Roll-Android-App

public static void colorToolbarOverflowMenuIcon(Toolbar toolbar, int color) {
  //set Toolbar overflow icon color
  Drawable drawable = toolbar.getOverflowIcon();
  if (drawable != null) {
    drawable = DrawableCompat.wrap(drawable);
    DrawableCompat.setTint(drawable.mutate(), color);
    toolbar.setOverflowIcon(drawable);
  }
}

代码示例来源:origin: filestack/filestack-android

@SuppressLint("RestrictedApi")
  private void tintToolbar(Toolbar toolbar, @ColorInt int color) {
    Drawable drawable = DrawableCompat.wrap(toolbar.getOverflowIcon());
    DrawableCompat.setTint(drawable.mutate(), color);
    toolbar.setOverflowIcon(drawable);

    for (int i = 0; i < toolbar.getChildCount(); i++) {
      View child = toolbar.getChildAt(i);
      if (child instanceof AppCompatImageButton) {
        ((AppCompatImageButton) child).setSupportImageTintList(ColorStateList.valueOf(color));
      }
    }
  }
}

代码示例来源:origin: pinguo-zhouwei/MaterialDesignSamples

toolbar.setOverflowIcon(getResources().getDrawable(R.drawable.abc_ic_menu_moreoverflow_mtrl_alpha));

代码示例来源:origin: laotan7237/EasyReader

toolbarDoubanDetail.setSubtitleTextAppearance(this, R.style.Toolbar_SubTitle);
toolbarDoubanDetail.inflateMenu(R.menu.base_header_menu);
toolbarDoubanDetail.setOverflowIcon(getResources().getDrawable(R.mipmap.actionbar_more));
toolbarDoubanDetail.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
  @Override

代码示例来源:origin: xuhongv/SmartHome

ImmersionBar.setTitleBar(getActivity(), toolbarl);
toolbarl.inflateMenu(R.menu.menu_devices_add_login_out);
toolbarl.setOverflowIcon(getActivity().getResources().getDrawable(R.drawable.ic_toolbar_devices_add));
toolbarl.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {

代码示例来源:origin: laotan7237/EasyReader

mTitleToolBar.setOverflowIcon(ContextCompat.getDrawable(this, R.mipmap.actionbar_more));
mTitleToolBar.setNavigationOnClickListener(new View.OnClickListener() {
  @Override

代码示例来源:origin: jahirfiquitiva/IconShowcase

if (drawable != null) {
  drawable = DrawableCompat.wrap(drawable);
  toolbar.setOverflowIcon(IconUtils.getTintedIcon(drawable,
      toolbarIconsColor));

相关文章

Toolbar类方法