【发布时间】:2019-07-15 15:10:35
【问题描述】:
我在Toolbar 中看到了这一点,例如
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:navigationIcon="?attr/homeAsUpIndicator">
要么我添加app:navigationIcon="?attr/homeAsUpIndicator",要么如果缺少,即
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary">
显示返回箭头。我想知道,有没有理由添加?attr/homeAsUpIndicator?
【问题讨论】:
标签: android android-layout android-toolbar android-resources android-theme