Я пытаюсь сделать простой закругленный угол формы ListViewПростая закругленная угловая форма ListView
Использование ниже xmls;
row_layout.xml: -
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</RelativeLayout>
activity_main.xml: -
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ListView
android:id="@+id/listView"
android:background="@drawable/layout_border"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
</RelativeLayout>
Вы просто положить прокладку к вашему TextView внутри одного файла элемент XML. –
@ Hardy привет, я хочу, чтобы точно такой же вид, как требуется. Imageview – Sonali
Да .. Вы проверили после применения paddding? –