Back to project page BluetoothHidEmu.
The source code is released under:
Apache License
If you think the Android project BluetoothHidEmu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package andraus.bluetoothhidemu.view; /* ww w . j a v a 2 s. c o m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.EditText; /** * Specialization of EditText. This class is used to prevent user from moving the cursor position. */ public class EchoEditText extends EditText { public EchoEditText(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public EchoEditText(Context context, AttributeSet attrs) { super(context, attrs); } public EchoEditText(Context context) { super(context); } protected void onSelectionChanged(int start, int end) { setSelection(getText().length()); } }