How to set focus on a TextView when an Activity starts?
<p>There are an EditText and a TextView in my Activity. I want to set focus on the TextView when the Activity starts. I used the following code:</p>

<pre><code>    TextView myTextView = (TextView) findViewById(R.id.my_text_vew);
    myTextView.setFocusable(true);
    myTextView.setOnClickListener(this);
    myTextView.requestFocus();
</code></pre>

<p>But the code doesn't work. The EditText always receives focus when the activity starts.</p>

<p>Can anyone help?</p>

<p>Thanks.</p>
