Question: I know I can use margins to do that but I am getting some problems when objects are near edge of the screen. In this case android tries to fit all contents of view into screen which is something I don't want. For example if I give 200 width to a view and 100px of this is outside the screen it fits it to
100 px.

How can I avoid this? 

Also why AbsoluteLayout is deprecated? I am currently working with it and it works but I wonder if people will throw stones at me

Answer: 
You add class `notes` to close tag `</tr>`.

You have:

```
echo "</tr class='notes'>"; 
echo "<tr>";

```

Should be:

```
echo "</tr>"; 
echo "<tr class='notes'>";

```

And jQuery:

```
$(document).ready(function() {
  $('#showNotes').click(function() {
      $('#listTable tr.notes').toggle();
  });
});

```

---

Now some remarks about your code:

1. Use `mysqli_*`, `mysql_*` is deprecated.
2. If you're using HTML in echo maybe try `'` for it: `echo '<tr class="notes">'` looks better I think.
3. Use prepared statements: [mysqli.prepare](http://php.net/manual/en/mysqli.prepare.php)
4. Check this out (against your `for` loop): [mysqli-stmt.fetch](http://php.net/manual/en/mysqli-stmt.fetch.php)
Wrap the script in document ready function:

```
$(document).ready(function() {
  $('#showNotes').click(function() {
      var showN = rows.filter('.showN').show();
      rows.not( showN ).hide();
  });
});

```