Android search dialog in activity.. two problems
<p>I have a simple ListActivity right now, created using the code at <a href="http://developer.android.com/guide/topics/search/search-dialog.html#PerformingSearch" rel="nofollow">http://developer.android.com/guide/topics/search/search-dialog.html#PerformingSearch</a>.</p>

<p>I simply call onSearchRequested() in onCreate for the activity, and have this in the manifest inside the activity tag so it calls itself for search (copied from the android.com link above):</p>

<pre><code>    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.SEARCH" /&gt;
    &lt;/intent-filter&gt;
    &lt;meta-data android:name="android.app.searchable"
               android:resource="@xml/searchable"/&gt;
</code></pre>

<p>I have two problems:</p>

<p>1) The dialog covers the first two items in the listview, is there an id for the search dialog height, so I can set an appropriate margin-top value on my listview?</p>

<p>2) There's problems when clicking an item in the listview. It takes two taps, the first dismisses (puts out of focus and closes) the search dialog, then the second to be able to click it. I don't want this. I want to be able to click on a listview item with one tap, WITHOUT dismissing the search dialog. How can this be done?</p>

<p>Any help appreciated, the documentation for this is really useless.</p>
