how to get text of the neighbour textviews on some other textview's onclick event in dynamic table?????
i have textviews in table layout like this

    ----------------
    |txt1|txt2|txt3|
    ----------------
    |txt4|txt5|txt6|
    ----------------
    |txt7|txt8|txt9|
    ----------------
    |txt1|txt2|txt3|
    ----------------
    |txt4|txt5|txt6|
    ----------------
    |txt7|txt8|txt9|

and so on and on and on0

in this manner i am adding textviews again and again in for loop in the table layout acc to the data which is coming dynamically...

on txt7 click listener event i can get the text of the txt7 like this

    ((TextView)v).getText().toString();

now i need text of txt8 and txt9 text on txt7 click event

some body suggested me to do this by tagging textview

    TextView uniqueTextView = (TextView)findViewById(R.id.unique_id);
    TextView neighbourView = new TextView();
    neighbourView.setTag(uniqueTextView);
    
    public void onTextViewClick(TextView view) {
    TextView uniqueTextView = (TextView)view.getTag();
    String text = uniqueTextView.getText().toString();   }

but this for one textview... how can i get text of both textview(txt8+txt9) on txt7 click listener.... plus i need text from txt7 also....

if it is not clear then you can comment....
how to get text of the neighbour textviews on some other textview's onclick event in dynamic table?????
===

i have textviews in table layout like this

    ----------------
    |txt1|txt2|txt3|
    ----------------
    |txt4|txt5|txt6|
    ----------------
    |txt7|txt8|txt9|
    ----------------
    |txt1|txt2|txt3|
    ----------------
    |txt4|txt5|txt6|
    ----------------
    |txt7|txt8|txt9|

and so on and on and on0

in this manner i am adding textviews again and again in for loop in the table layout acc to the data which is coming dynamically...

on txt7 click listener event i can get the text of the txt7 like this

    ((TextView)v).getText().toString();

now i need text of txt8 and txt9 text on txt7 click event

some body suggested me to do this by tagging textview

    TextView uniqueTextView = (TextView)findViewById(R.id.unique_id);
    TextView neighbourView = new TextView();
    neighbourView.setTag(uniqueTextView);
    
    public void onTextViewClick(TextView view) {
    TextView uniqueTextView = (TextView)view.getTag();
    String text = uniqueTextView.getText().toString();   }

but this for one textview... how can i get text of both textview(txt8+txt9) on txt7 click listener.... plus i need text from txt7 also....

if it is not clear then you can comment....