I want to make a some words highlighted and clickable in an EditText like it does when you misspell something. For example, if I type "flight" when I am typing, I want it to be highlighted and clickable.
Here is a snippet of the code and the XML:
Activity:
public class MainActivity extends Activity {
EditText editText;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
editText = (EditText)findViewById(R.id.textplace);
}
}
Layout:
<EditText
android:id="@+id/textplace"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>