【发布时间】:2021-06-25 08:19:54
【问题描述】:
我想创建附图中显示的背景渐变。
目前我正在使用这个 xml,它没有提供所需的效果:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="225"
android:endColor="#FF5C1E"
android:startColor="#A300F3"
android:type="linear"
android:useLevel="false" />
</shape>
【问题讨论】:
-
你有什么问题?!
-
@miladsalimi 效果和上图不一样。
-
@miladsalimi 这是我得到的,drive.google.com/file/d/1g6MJvNbjIH3elMk_RwUQJMG_YLw31e4E/…
标签: android xml android-layout android-drawable