在appcompat-v7的工具栏中删除标题 [英] Remove title in Toolbar in appcompat-v7

查看:88
本文介绍了在appcompat-v7的工具栏中删除标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Toolbar文档说,

如果应用使用徽标图像,则应强烈考虑省略标题和副标题.

If an app uses a logo image it should strongly consider omitting a title and subtitle.

删除标题的正确方法是什么?

What is the proper way to remove the title?

推荐答案

getSupportActionBar().setDisplayShowTitleEnabled(false);

这篇关于在appcompat-v7的工具栏中删除标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆