Skip to content

Identification question #22

Description

@geoplin

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions