Android之实现首尾带圆角的多颜色水平条

1 效果图

Android之实现首尾带圆角的多颜色水平条_第1张图片

 

 

 

 

 

 

 

 

 

3 代码实现

这里我们采用PercentRelativeLayout布局,首尾我们用半圆shape实现,代码如下

color.xml

    #1ebBd5
    #f36f53
    #6F2BD5
    #0083f1
    #3CC43C
    #ffe161
    #4D000000

shape_start.xml




    

你可能感兴趣的:(Andriod,积累)