I want to create vertical gradient separator in android
I am able to create for horizontal separator
but in vertical gradient nothing appears
code for horizontal
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#DEDEDE"
android:centerColor="#F52578"
android:endColor= "#DEDEDE"
/>
</shape>
this is how i use in my project
<View
android:background="@drawable/divider_gradient"
android:layout_width="fill_parent"
android:layout_height="1.0px"
/>
i tried layout_width="1dp" and layout_height="fill_parent" for vertical separator but nothing appears