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

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

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

Toolbar.setSubtitleTextColor介绍

暂无

代码示例

代码示例来源:origin: omadahealth/LolliPin

private void initView() {
    Toolbar toolbar = (Toolbar) findViewById(R.id.id_toolbar);
    setSupportActionBar(toolbar);

    toolbar.setTitle("Title");
    toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));
    toolbar.setSubtitle("SubTitle");
    toolbar.setSubtitleTextColor(getResources().getColor(android.R.color.white));
    toolbar.setLogo(R.drawable.ic_launcher);
    toolbar.setNavigationIcon(R.drawable.ic_menu_white_36dp);
  }
}

代码示例来源:origin: 0xZhangKe/ShiZhong

itemView.setBackgroundResource(toolbarColor.resourceId);
toolbar.setTitleTextColor(resources.getColor(textColor.resourceId));
toolbar.setSubtitleTextColor(resources.getColor(textColor.resourceId));

代码示例来源:origin: goo4it/MediaPlayer

toolbar.setTitleTextColor(Color.WHITE);
toolbar.setSubtitle("毕书尽");
toolbar.setSubtitleTextColor(Color.WHITE);
handler = new Handler() {
  @Override

代码示例来源:origin: 18Gray/ProCamera

toolbar.setSubtitleTextColor(getResources().getColor(R.color.text));
toolbar.setNavigationOnClickListener(new View.OnClickListener()

代码示例来源:origin: powerpoint45/Lucid-Browser

/**
 * Use this method to colorize toolbar icons to the desired target color
 * @param toolbarView toolbar view being colored
 * @param toolbarIconsColor the target color of toolbar icons
 */
public static void colorizeToolbar(Toolbar toolbarView, int toolbarIconsColor) {
  final PorterDuffColorFilter colorFilter
      = new PorterDuffColorFilter(toolbarIconsColor, PorterDuff.Mode.SRC_IN);
  for(int i = 0; i < toolbarView.getChildCount(); i++) {
    final View v = toolbarView.getChildAt(i);
    doColorizing(v, colorFilter, toolbarIconsColor);
  }
  //Step 3: Changing the color of title and subtitle.
  toolbarView.setTitleTextColor(toolbarIconsColor);
  toolbarView.setSubtitleTextColor(toolbarIconsColor);
}

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

toolbar.setSubtitleTextColor(getResources().getColor(R.color.white));

代码示例来源:origin: chaychan/MaterialDesignExercise

mToolbar.setSubtitleTextColor(getResources().getColor(android.R.color.white));//设置子标题的字体颜色

代码示例来源:origin: maoni-app/maoni

toolbar.setSubtitleTextColor(
    intent.getIntExtra(TOOLBAR_SUBTITLE_TEXT_COLOR, R.color.maoni_white));

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

toolbar.setSubtitleTextColor(ColorUtils.setAlphaComponent(theme.getBackgroundColor(), 220));
toolbar.setBackgroundColor(theme.getAccentColor());
findViewById(R.id.content).setBackgroundColor(theme.getBackgroundColor());

代码示例来源:origin: Mike-bel/MDStudySamples

toolbarView.setSubtitleTextColor(toolbarIconsColor);

代码示例来源:origin: IdeaTrackerPlus/IdeaTrackerPlus

toolbarView.setSubtitleTextColor(toolbarIconsColor);

代码示例来源:origin: garretyoder/app-theme-engine

collapsingToolbar.setCollapsedTitleTextColor(tintColor);
else toolbar.setTitleTextColor(tintColor);
toolbar.setSubtitleTextColor(Config.getToolbarSubtitleColor(context, toolbar, key, toolbarColor));

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

if (subjectsBean != null) {
  toolbarDoubanDetail.setTitle(subjectsBean.getTitle());
  toolbarDoubanDetail.setSubtitleTextColor(Color.WHITE);
  setImgHeaderBg(subjectsBean.getImages().getMedium());
  GlideUtils.loadMovieTopImg(ivOnePhoto, subjectsBean.getImages().getLarge());

代码示例来源:origin: AEFeinstein/mtg-familiar

toolbar.setPopupTheme(R.style.ThemeOverlay_AppCompat);
toolbar.setSubtitleTextColor(ContextCompat.getColor(this, android.R.color.white));
toolbar.setTitleTextColor(ContextCompat.getColor(this, android.R.color.white));
setSupportActionBar(toolbar);

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

toolbar.setSubtitleTextColor(toolbarIconsColor);

相关文章

Toolbar类方法