Asked
Active
Viewed 47 times
-4

Ali Sadeghi
- 397
- 4
- 16

Weam
- 31
- 2
-
Welcome to community. please be clear what you mean exactly. – Ali Sadeghi Dec 27 '19 at 21:22
-
check [this](https://stackoverflow.com/questions/6054562/how-to-make-the-corners-of-a-button-round) – Mohammed Alaa Dec 27 '19 at 21:38
-
Does this answer your question? [Rounded corner for textview in android](https://stackoverflow.com/questions/18781902/rounded-corner-for-textview-in-android) – Dmitrii Leonov Dec 27 '19 at 23:15
1 Answers
0
Use a layer list drawable, something like this :)
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="4dp"
android:top="4dp">
<shape android:shape="rectangle">
<corners android:radius="2dp" />
<stroke
android:width="1dp"
android:color="@color/gray" />
<solid android:color="@color/transparent" />
</shape>

Alan Cruz
- 137
- 1
- 3