I want to change the appearance of cursor/marker in an EditText. In general the cursor looks like this: | and is flashing. I want it to look like a black rectangle (the size of 1 character) that is flashing. Like the standard cursor used in a unix terminal. Is this possible?
            Asked
            
        
        
            Active
            
        
            Viewed 5,670 times
        
    3
            
            
        - 
                    Accepted answer is false. Here's an answer, [Can I change the Cursor size in android edit text field?][1] [1]: http://stackoverflow.com/questions/6225995/can-i-change-the-cursor-size-in-android-edit-text-field – Odaym Jun 07 '14 at 13:33
2 Answers
1
            
            
        This question may help you... Set EditText cursor color
This talks about the similar things you want to achieve.
 
    
    
        Community
        
- 1
- 1
 
    
    
        Ashwini Shahapurkar
        
- 6,586
- 6
- 26
- 35
-2
            There is no way to change the appearance of the cursor, without re-implementing TextView and android.text.Layout. The cursor's appearance is hardcoded in getCursorPath() method.
 
    
    
        ognian
        
- 11,451
- 4
- 35
- 33
- 
                    2This is not true now, you can set the android:textCursorDrawable for EditText to use a customized drawable as the cursor. – Ray Jun 28 '13 at 01:34
- 
                    1@Ray the method you are mentioning is supported only for api 12 and above – Apperside Jan 20 '15 at 19:29
