I'm creating a table in which each row contains text as well as a button. Now when that button is pressed I want to call an event that uses the value of the text next to the button. How can I access the content of that TextView? I can get the ViewParent
of my button, which should be the row, but there's no method to access that views children.
private OnClickListener updateButtonListener = new OnClickListener(){
public void onClick(View v) {
ViewParent parent = v.getParent();
//Here I would like to get the first child of that ViewParent
}
};