android - ViewHolder and changing one row details -


i'm using listview special layout row

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/backcolor"     android:id="@+id/linearlayoutmain"     android:orientation="horizontal" >          <textview             android:id="@+id/txtname"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"             android:layout_marginleft="5dp"             android:layout_margintop="5dp"             android:textcolor="@color/redcolor"             android:text="m"             android:textappearance="?android:attr/textappearancemedium" />          <textview             android:id="@+id/txtfamily"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignleft="@+id/txtname"             android:layout_below="@+id/txtname"             android:paddingbottom="5dp"             android:textcolor="@color/black"             android:layout_marginright="2dp"             android:text="s"             android:textappearance="?android:attr/textappearancesmall" /> </linearlayout>  

and i'm using viewholder usual.
when user tap on linearlayoutmain text of txtname change; how can save new value of txtname during scroll?

actually don't want change dataset; i'm going this
used set currentcontact.name text txtname
want :

txtname.settext(currentcontact.nickname); 

but how can save new value of txtname during scroll?

you have modify element in dataset used fill listview


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -