I am beginner to learn android,I have assigned table row value by dynamically. But I am not able to get the row value using on click listener method . Can any one please help to solve the issues .
I have tried following methods
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.passbook);
TableLayout tl = (TableLayout) findViewById(R.id.mytable);
tl.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
//obj.myShow(Passbook.this, v.getTag() + ": Row is clicked" );
}
});
}