make a card shape border and radius
I have no idea how to make border!
create view
<View
android:id="@+id/view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="5dp"/>
>Solution :
Add xml file
<View
android:id="@+id/view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="5dp"
android:background="@drawable/card_round"/>
Create a drawable resource file
card_round
And past the code…
Maybe your problem solve
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid android:color="#00FFFFFF" />
<stroke android:width="1dip" android:color="#000000"/>
<corners android:radius="20dp"/>
</shape>