Android : How to add two view in single listview dynamically in android

on Monday, September 22, 2014


I just wanna do an android application which has dynamic listview with two layouts.(i.e) I've an listview with one custom view & one Textview called a "ADD".If i click that textview "ADD", an dialog should open which gets some inputs from the user & those should be populated in the Custom listview as name1 & 11111.


If again i click ADD textview, it should again gets values from user as for example name2 & 22222 that should populate in the listview as


name1 11111


name2 22222


ADD


It simply means, should add a textview at the end of each updated listview in android.How could i do that?Thanks in advance.Below is my code.in this,i couldn't able to make click listener on that ADD Textview & second value of that arraylist is not populated well.


Code: http://pastebin.com/4UvKc63G


0 comments:

Post a Comment