vetalitet
vetalitet

Reputation: 703

ListView. Hot to highlight whole listview item when touching on it

There is ListView with items which contains TextView. When you are touching listview item and hold the finger on it, listview item is highlighted a little.

But if textview contains just a few letters - not all row is highlighted.

Is any simple solution (some xml property, etc) to highlight whole row?

enter image description here

Upvotes: 0

Views: 114

Answers (3)

abh22ishek
abh22ishek

Reputation: 2671

you try to make listview width android:layout_width="fill_parent" .And also if u are using custom adapter for (images and text) -make layout width size-fill parent or match parent

Upvotes: 1

ishu
ishu

Reputation: 1332

Hi Set This Code In Your Xml Of ListView
=================================
<ListView android:id="@+id/list1"
         android:layout_width="match_parent"
        android:layout_height="match_parent"/>

Upvotes: 1

Prashant Rane
Prashant Rane

Reputation: 19

Set android:layout_width attribute of parent Layout tag to fill_Parent for in xml for Listview.

Upvotes: 0

Related Questions