【问题标题】:Android: Increase title bar size? [duplicate]Android:增加标题栏大小? [复制]
【发布时间】:2011-07-17 05:49:18
【问题描述】:

可能重复:
How to increase the size of the title bar in an Android application?

如何在 Android 中增加标题栏的大小?

我创建了一个自定义布局 R.layout.mytitle 和 onCreate() 我调用:

getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);

但在我的布局中,无论我使用什么高度,它似乎都忽略了它,并使用了默认高度。

我该如何更改?

【问题讨论】:

标签: android android-layout


【解决方案1】:

你基本上可以改变标题栏上的任何东西。

签出this

对已经给出的 cmets 的一个很好的补充。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-24
    • 2011-09-07
    • 2016-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-26
    • 1970-01-01
    相关资源
    最近更新 更多