Code example for EditText

Methods: getSelectionEndgetSelectionStart