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);
// now I want to find the tvPrice in that row
// but I'm not sure how to go about this
}
any tips would be great :D
The way I normally approach this would be to do the following:
I hope this helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.