【发布时间】:2017-05-23 14:15:38
【问题描述】:
我必须在我的 Android 应用程序中使用形状。这个形状在渐变中定义了三种颜色:
<shape
...
<gradient
android:startColor="#001aff"
android:centerColor="#1eff00"
android:endColor="#FF0000"
android:angle="90"/>
</shape>
我有问题,因为这个渐变在这些颜色上移动非常平滑,但我需要这些颜色更加独立。每种颜色都应该清晰可见,两种颜色之间的过渡必须非常小。
任何想法如何处理?提前致谢!
【问题讨论】:
标签: android transition gradient shape