Android 矩形背景渐变

MyN*_*ame 3 android gradient background

我想创建一个从内到外的背景渐变。在外面它应该变得更暗。这是一张图片:

在此处输入图片说明

谁能给我一些建议,我如何才能创造出这样的东西?或者我应该为此拍照?如果是,不同的屏幕分辨率有什么关系?或者关于横向/纵向模式?

Ash*_*iye 5

根据需要使用此更改颜色

<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
    <gradient
        android:type="radial"
        android:startColor="#f15330"
        android:endColor="#da0000"
        android:gradientRadius="150dp"
        />
   <size android:height="400dp"
       android:width="250dp"/>
</shape>
Run Code Online (Sandbox Code Playgroud)