FunDapter icon indicating copy to clipboard operation
FunDapter copied to clipboard

Identification question

Open geoplin opened this issue 8 years ago • 0 comments

Hi,

can you help me how to find a certain item's textView. For example I have a listView with some items and every item is made of 3 textViews (name, price, description). Now i want to change the value of the "price" textView with and updateView(int index) method. How do I identify the correct textView in the correct item?

Let's say i have 5 items (product1, ..., product5). now i want to update the price of the 3rd product (product3). I call updateView(3) My updateView(int index) method so far

private void updateView(int index){
        // thats how I get the row
        View v = lvProduct.getChildAt(index); 
        // here I want to find the tvPrice in that row
        // but I'm not sure how to go about this
}

geoplin avatar Apr 13 '16 17:04 geoplin