How to add a color thick border top of a card in Android
<p>This is my XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item&gt;
        &lt;shape android:shape="rectangle"&gt;
            &lt;solid android:color="#CABBBBBB" /&gt;
            &lt;corners android:radius="2dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;

    &lt;item
        android:bottom="2dp"
        android:left="0dp"
        android:right="0dp"
        android:top="0dp"&gt;
        &lt;shape android:shape="rectangle"&gt;
            &lt;solid android:color="@android:color/white" /&gt;
            &lt;corners android:radius="2dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;
&lt;/layer-list&gt;
</code></pre>

<p>It gives this:</p>

<p><a href="https://i.stack.imgur.com/RFbxS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFbxS.png" alt="enter image description here"></a></p>

<p>How can I add a color border at the top.</p>

<p><a href="https://i.stack.imgur.com/HDZsI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HDZsI.png" alt="enter image description here"></a></p>