Android中的渐变选项?
我张贴的梯度布局径向代码。。 线性布局可以使用什么? 或者简单地说,我需要在我的android应用程序背景中使用线性渐变布局。。不使用图像Android中的渐变选项?,android,layout,Android,Layout,我张贴的梯度布局径向代码。。 线性布局可以使用什么? 或者简单地说,我需要在我的android应用程序背景中使用线性渐变布局。。不使用图像 <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#93cc1a"
android:endColor="#6C9B06"
android:type="radial"
android:gradientRadius="326"
/>
</shape>
你是在问线性梯度吗
嗯。这是我需要的代码。。。你能解释一下吗 安卓:角度
- 0=从左到右(开始颜色>结束颜色)
- 90=从下到上(起始颜色>结束颜色)
- 180=从右向左(起始颜色>结束颜色)
- 270=从上到下(起始颜色>结束颜色)
android:centerColor
。
<gradient android:type="linear"
android:startColor="#ffffff"
android:endColor="#005aa9"
android:angle="270.0" />