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

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

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

Toolbar.setTitle介绍

暂无

代码示例

代码示例来源:origin: chrisjenx/Calligraphy

@Override public void run() {
    toolbar.setTitle(null);
    toolbar.setSubtitle("Added subtitle");
  }
}, 2000);

代码示例来源:origin: chrisjenx/Calligraphy

@Override public void run() {
    toolbar.setTitle("Calligraphy added back");
    toolbar.setSubtitle("Added subtitle");
  }
}, 3000);

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("设置");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mIsDiscussion = getIntent().getBooleanExtra(INTENT_DIS, false);
  if (mIsDiscussion) {
    mCommonToolbar.setTitle("综合讨论区");
  } else {
    mCommonToolbar.setTitle("原创区");
  }
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("详情");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("WiFi传书");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle(R.string.subject_book_list);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle(R.string.subject_book_list_detail);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("书荒互助区");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("书荒互助区详情");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("书评区");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle("书评详情");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
  mCommonToolbar.setTitle(R.string.book_detail);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  author = getIntent().getStringExtra(INTENT_AUTHOR);
  mCommonToolbar.setTitle(author);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  bookId = getIntent().getStringExtra(INTENT_BOOK_ID);
  mCommonToolbar.setTitle("选择来源");
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  mCommonToolbar.setTitle(getIntent().getStringExtra("tag"));
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  cate = getIntent().getStringExtra(INTENT_CATE_NAME);
  if (menuItem != null) {
    menuItem.setTitle(cate);
  }
  gender = getIntent().getStringExtra(INTENT_GENDER);
  mCommonToolbar.setTitle(cate);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  title = getIntent().getStringExtra(INTENT_TITLE).split(" ")[0];
  id = getIntent().getStringExtra(BUNDLE_ID);
  mCommonToolbar.setTitle(title);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  String filePath = Uri.decode(getIntent().getDataString().replace("file://", ""));
  String fileName = filePath.substring(filePath.lastIndexOf("/") + 1, filePath.lastIndexOf("."));
  mCommonToolbar.setTitle(fileName);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

代码示例来源:origin: smuyyh/BookReader

@Override
public void initToolBar() {
  chmFilePath = Uri.decode(getIntent().getDataString().replace("file://", ""));
  chmFileName = chmFilePath.substring(chmFilePath.lastIndexOf("/") + 1, chmFilePath.lastIndexOf("."));
  mCommonToolbar.setTitle(chmFileName);
  mCommonToolbar.setNavigationIcon(R.drawable.ab_back);
}

相关文章

Toolbar类方法