I have a requirement where i have to implement Buttons which can move the cursor up and down the line in a multi line Edittext.
I went through the Developer website and found that Selection class http://developer.android.com/reference/android/text/Selection.html
can be used, but i am not able to use it..
Please help me here..
Thank you.
Source: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/text/Selection.java
I copied the code and made a little modification below, then appended it to my class.
I hope this will be useful.
If somebody knows how to use real method without recreating it, please share 😀