【发布时间】:2018-01-31 15:22:10
【问题描述】:
我想向我的工具栏(应用栏/标题栏)添加颜色渐变。
我已经在名为“side_nav_bar.xml”的可绘制文件夹中创建了一个 xml 渐变文件。
side_nav_bar.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="135"
android:endColor="#7524f6"
android:startColor="#2691f6"
android:type="linear" />
我在互联网上找到了一些建议来创建一个新的自定义工具栏,然后将其设置为背景图像等。但我没有足够的信息。
我们将不胜感激任何帮助。 谢谢。
【问题讨论】:
标签: android xml android-studio toolbar