android中自定义标题栏左边距问题
问题:解决方法:只需添加 app:contentInsetStart=“0dp” 这个属性就可以<androidx.appcompat.widget.Toolbarandroid:background="@color/theme_color"app:contentInsetStart="0dp"android:layout_width="match_parent"android:layout
·
问题:
解决方法:
只需添加 app:contentInsetStart=“0dp” 这个属性就可以
<androidx.appcompat.widget.Toolbar
android:background="@color/theme_color"
app:contentInsetStart="0dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
更多推荐
已为社区贡献15条内容
所有评论(0)