In the xml template I have EditText:
<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textMultiLine" android:ems="10" android:id="@+id/edit_cmnt_field" android:layout_weight="1" /> In the code I connect it:
textField = (TextView) findViewById(com.frienddime.frienddime.R.id.edit_cmnt_field); And then I want to set the cursor to a certain position, for this I write a textField. and start typing setSelection, but it is unavailable, it is printed in red. I looked at different examples, there is a setSelection and it works without problems. Why is it not available to me?