Tuesday, April 14, 2015

Android : how to get textview text



In my android app, I have a activity that contain a listview. And within the each row of the listview, i have another listview let called it lv. Inside this lv, it contain some textview. My question is how can i get the text from the listview (A)?


I know that if there is only one listview and in order to get the text of each row when i click on a button, i can use the following code



textview.getText().toString();


However, when i try with this code to get the text in lv, it always give me the last value (n row) in lv. I am not able to get the text of 1st row to n-1 row of lv.


Anyone help will be nice!


Thanks


No comments:

Post a Comment