0

I do not know how to do it

     <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="line">
            <stroke android:width="5dp"
                android:color="#698cc8"
                />
        </shape>
    </item>
</selector>

Something like this: https://i.stack.imgur.com/npZm0.png

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Qew
  • 31
  • 1
  • 1
  • 8

1 Answers1

0

I think it will help you,

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="line">
            <stroke android:width="8dp"
                android:color="#c7c7c7"
                />
        </shape>
    </item>
    <item android:bottom="4dp">
        <shape android:shape="line">
            <stroke android:width="5dp"
                android:color="#698cc8"
                />
        </shape>
    </item>
</layer-list>

out put is,

enter image description here

give needed shade color in first item. then give bottom value in second item. which means second item height get reduce from bottom corresponding to bottom value.there for we can visible shade color below the line.

Muhammed Haris
  • 340
  • 1
  • 5
  • 15