【问题标题】:By default size of toolbar through material design in android studio在android studio中通过材料设计默认工具栏的大小
【发布时间】:2015-10-06 13:29:51
【问题描述】:

我想在我的应用中创建工具栏,我想知道 android 中工具栏的标准高度是多少?

我希望它对于所有设备都足够大,但不是很大。工具栏有默认大小吗?

【问题讨论】:

标签: android


【解决方案1】:

这里是使用标准工具栏高度和标准工具栏标题文本外观的代码。

<android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="@color/yellow"
    android:title="@string/title"
    android:titleTextAppearance="@style/TextAppearance.AppCompat.Title"
    >

【讨论】:

    猜你喜欢
    • 2017-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-29
    • 1970-01-01
    相关资源
    最近更新 更多