creating a drawable file to make a separator

后端 未结 1 1688
野性不改
野性不改 2021-01-25 22:46

I\'m using the following code to display a separator view in my activity:



        
相关标签:
1条回答
  • 2021-01-25 23:25

    you should try to use as below:

    <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
        <item>
            <shape android:shape="rectangle" >
        <gradient 
            android:endColor="#FFFFFF" 
            android:startColor="@color/blue"
            android:angle="90" />                  
            </shape>
        </item>    
        </layer-list>
    

    For more info here LayerList

    Hope this help you

    0 讨论(0)
提交回复
热议问题