TableRow OnClickListener's getId returns -1 - What gives?
<p>I'm creating tablerows programmatically, and I'm trying to implement an OnClickListener:</p>

<pre><code>            final TableRow tr = new TableRow(this);
            tr.setId(tourney.getColumnIndex("_id"));
            tr.setClickable(true);

            tr.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                    v.setBackgroundColor(Color.GRAY);
                    System.out.println("Row clicked: " + v.getId());

                }
            });
</code></pre>

<p>But everytime I click on the row, I get a value of -1.  Why am I not getting the id that I set?</p>
