Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Create Rounded Corner Shape ListView
    text
    copied!<p>How to make simple ListView in Android, I am making a program in which i am getting ListView in this style:</p> <p><img src="https://i.stack.imgur.com/fpyGk.png" alt="enter image description here"></p> <p><strong>Adapter.xml:</strong></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:gravity="center_vertical" android:padding="5dip" &gt; &lt;!-- Title Of Song--&gt; &lt;TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="false" android:text="Name" android:textSize="15dip" android:typeface="sans" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p><strong>Activity.xml:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;ListView android:id="@+id/listView1" android:layout_below="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@android:color/black" android:dividerHeight="1dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="20dp"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>But I want to make this kind of simple List <strong>[same List SHAPE]</strong> , please see below screen:</p> <p><img src="https://i.stack.imgur.com/ahN5e.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload