标签: android android-toolbar android-collapsingtoolbarlayout
我正在使用折叠工具栏,折叠时它看起来像这样......
我一直在试图弄清楚如何控制左边距,在图片中用黄色标记。有些人建议我使用app:contentInsetStart="0dp",但这对我没有任何帮助。有人知道吗?我在工具栏,CollapsingToolbar和AppBarLayout上尝试了几乎所有内容。
app:contentInsetStart="0dp"
答案 0 :(得分:1)
感谢Mike M提供答案。在布局XML中,将工具栏设置为
app:contentInsetStartWithNavigation="0dp"