ij.gui.Toolbar.setBackground()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(141)

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

Toolbar.setBackground介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
               Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment, container, false);
    Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);

    //set toolbar appearance
    toolbar.setBackground(R.color.material_blue_grey_800);

    //for crate home button
    AppCompatActivity activity = (AppCompatActivity) getActivity();
    activity.setSupportActionBar(toolbar);
    activity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}

代码示例来源:origin: stackoverflow.com

@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
               Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment, container, false);
    Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);

    //set toolbar appearance
    toolbar.setBackground(R.color.material_blue_grey_800);

    //for crate home button
    ActionBarActivity activity = (ActionBarActivity) getActivity();
    activity.setSupportActionBar(toolbar);
    activity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}

代码示例来源:origin: net.imagej/ij

public Toolbar() {
  init();
  down = new boolean[MAX_TOOLS];
  resetButtons();
  down[0] = true;
  setForeground(Color.black);
  setBackground(ImageJ.backgroundColor);
  addMouseListener(this);
  addMouseMotionListener(this);
  instance = this;
  names[getNumTools()-1] = "\"More Tools\" menu (switch toolsets or add tools)";
  icons[getNumTools()-1] = "C900T1e15>T7e15>"; // ">>"
  addPopupMenus();
}

代码示例来源:origin: imagej/ImageJA

public Toolbar() {
  init();
  down = new boolean[MAX_TOOLS];
  resetButtons();
  down[0] = true;
  setForeground(Color.black);
  setBackground(ImageJ.backgroundColor);
  addMouseListener(this);
  addMouseMotionListener(this);
  instance = this;
  names[getNumTools()-1] = "\"More Tools\" menu (switch toolsets or add tools)";
  icons[getNumTools()-1] = "C900T1e15>T7e15>"; // ">>"
  addPopupMenus();
}

相关文章