<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="2dp"/>
<gradient
android:startColor="#2DA1F8"
android:endColor="#1991EB"
android:type="linear"
android:angle="270"/>
</shape>
本文介绍了一种使用XML定义带有圆角的线性渐变矩形的方法。通过设置不同属性如颜色和角度等,可以轻松实现美观的图形效果。
974

被折叠的 条评论
为什么被折叠?



