【发布时间】:2014-12-26 05:06:06
【问题描述】:
【问题讨论】:
-
如果只是将其设置为空字符串,问题在哪里?我认为您不必使用仅使用图标的自定义布局。你猜这有点矫枉过正?
-
@maffelbaffel 设置空字符串没有错,但感觉不合适。但是,是的,使用自定义布局将是矫枉过正。
-
我必须这样做:
toolbar.setTitle(""); -
@FerranMaylinch 是的,这也适合我!我使用 toolbar.setTitle(null); 将应用程序名称作为默认标题。所以我设置 toolbar.setTitle(""); 工作正常。
标签: android android-actionbar android-appcompat android-toolbar