setText(String) is not available for the TextView
<p>I'm trying to simplify my code, but for some reasons the "setText" method is not available.</p>

<p>Here is the code which is currently working for me:</p>

<pre><code>TextView textView = (TextView)view.findViewById(R.id.testId);
textView.setText("Test");
</code></pre>

<p>I'm trying to simply it to this code:</p>

<pre><code>(TextView)view.findViewById(R.id.testId).setText("Test");
</code></pre>

<p>But I'm getting the error message: "Cannot find symbol".
Even IDE does not give me this option:</p>

<p><img src="http://i.stack.imgur.com/GJP0p.png" alt="enter image description here"></p>

<p>However, this code is working fine for some other things, like this:</p>

<pre><code>view.findViewById(R.id.another_testID).setOnClickListener(test_listener);
</code></pre>

<p>Any ideas?</p>
