本文整理了Java中android.support.v7.widget.Toolbar.setTitleTextAppearance()
方法的一些代码示例,展示了Toolbar.setTitleTextAppearance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Toolbar.setTitleTextAppearance()
方法的具体详情如下:
包路径:android.support.v7.widget.Toolbar
类名称:Toolbar
方法名:setTitleTextAppearance
暂无
代码示例来源:origin: ywwynm/EverythingDone
public void updateTitleTextSize() {
Toolbar toolbar = mContextualToolbar;
toolbar.setTitleTextAppearance(mApp, R.style.ContextualToolbarText);
toolbar.invalidate();
}
}
代码示例来源:origin: envyfan/AndroidReview
/**
* 初始化ToolBar
*/
public void initToolBar() {
toolbar = (Toolbar) findViewById(R.id.tb_toolbar);
if (toolbar != null) {
// toolbar.setLogo(R.mipmap.ic_top);
toolbar.setBackgroundColor(getResources().getColor(R.color.theme_color));
toolbar.setTitleTextAppearance(this, R.style.ToolBarTitleTextApperance);
setSupportActionBar(toolbar);
}
}
代码示例来源:origin: onlyloveyd/JuheNews
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_web);
ButterKnife.bind(this);
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
if (bundle != null) {
URL = bundle.getString("URL");
}
setSupportActionBar(tlWeb);
tlWeb.setNavigationIcon(R.drawable.back);
tlWeb.setTitleTextAppearance(this, R.style.ToolBarTextAppearance);
initWebViewSettings();
wvContent.removeJavascriptInterface("searchBoxJavaBridge_");
wvContent.removeJavascriptInterface("accessibilityTraversal");
wvContent.removeJavascriptInterface("accessibility");
wvContent.loadUrl(URL);
}
代码示例来源:origin: laotan7237/EasyReader
toolbarDoubanDetail.setTitleTextAppearance(this, R.style.ToolBar_Title);
toolbarDoubanDetail.setSubtitleTextAppearance(this, R.style.Toolbar_SubTitle);
toolbarDoubanDetail.inflateMenu(R.menu.base_header_menu);
代码示例来源:origin: leonHua/LFilePicker
mToolbar.setTitleTextAppearance(this, mParamEntity.getTitleStyle());
代码示例来源:origin: onlyloveyd/JuheNews
toolbar.setTitleTextAppearance(this, R.style.ToolBarTextAppearance);
setSupportActionBar(toolbar);
代码示例来源:origin: ywwynm/EverythingDone
public void showContextualToolbar(boolean anim) {
Toolbar tb = mContextualToolbar;
tb.setTitleTextAppearance(mApp, R.style.ContextualToolbarText);
tb.setNavigationIcon(R.drawable.act_close);
tb.setNavigationOnClickListener(backNormalModeListener);
tb.setOnMenuItemClickListener(mContextualListener);
int limit = mApp.getLimit();
if (limit <= Def.LimitForGettingThings.GOAL_UNDERWAY) {
tb.inflateMenu(R.menu.menu_contextual_underway);
} else if (limit == Def.LimitForGettingThings.ALL_FINISHED) {
tb.inflateMenu(R.menu.menu_contextual_finished);
} else {
tb.inflateMenu(R.menu.menu_contextual_deleted);
}
RelativeLayout rl = mRlContextualToolbar;
rl.setVisibility(View.VISIBLE);
if (anim) {
rl.setAnimation(showContextualToolbar);
showContextualToolbar.startNow();
}
mRecyclerView.postDelayed(hideActionBarShadowRunnable, 200);
}
代码示例来源:origin: gigabytedevelopers/FireFiles
mToolbar.setTitleTextAppearance(context,
android.R.style.TextAppearance_DeviceDefault_Widget_ActionBar_Title);
mToolbarStack = (Spinner) findViewById(R.id.stack);
mRootsToolbar = (Toolbar) findViewById(R.id.roots_toolbar);
if (mRootsToolbar != null) {
mRootsToolbar.setTitleTextAppearance(context,
android.R.style.TextAppearance_DeviceDefault_Widget_ActionBar_Title);
代码示例来源:origin: gigabytedevelopers/FireFiles
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(Utils.hasKitKat() && !Utils.hasLollipop()){
setTheme(R.style.Theme_Document_Translucent);
}
setContentView(R.layout.activity_about);
Toolbar mToolbar = (Toolbar) findViewById(R.id.toolbar);
mToolbar.setTitleTextAppearance(this, R.style.TextAppearance_AppCompat_Widget_ActionBar_Title);
if(Utils.hasKitKat() && !Utils.hasLollipop()) {
//((LinearLayout.LayoutParams) mToolbar.getLayoutParams()).setMargins(0, getStatusBarHeight(this), 0, 0);
mToolbar.setPadding(0, getStatusBarHeight(this), 0, 0);
}
int color = SettingsActivity.getPrimaryColor();
mToolbar.setBackgroundColor(color);
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle(null);
setUpDefaultStatusBar();
initControls();
}
代码示例来源:origin: gigabytedevelopers/FireFiles
mToolbar.setTitleTextAppearance(context, R.style.TextAppearance_AppCompat_Widget_ActionBar_Title);
if(Utils.hasKitKat() && !Utils.hasLollipop()) {
((LinearLayout.LayoutParams) mToolbar.getLayoutParams()).setMargins(0, getStatusBarHeight(this), 0, 0);
内容来源于网络,如有侵权,请联系作者删除!