Android Question Change EditText Cursor Color

Mike1970

Well-Known Member
Licensed User
Hi everyone,
i already looked for something in the forum but i did not find nothing working.
Someone of you knows how can i change the cursor color of an edittext? more precisely, i want to make it invisible.

(note: i use appcompat, i don't know if this information can be useful)

Thanks in advance!
 

mangojack

Well-Known Member
Licensed User
Using this example , I was able to make EditText cursor invisible by setting the color to Transparent...

I'm thinking that once you introduce / load the customised EditText, you would remove the layout EditText ..? .Unsure if using appcompat has an affect

 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Using this example , I was able to make EditText cursor invisible by setting the color to Transparent...

I'm thinking that once you introduce / load the customised EditText, you would remove the layout EditText ..? .Unsure if using appcompat has an affect

Thanks. With this method i don't have to add the edittext into the designer?
At the moment i style the edittext bycode with the colorDrawable, it interfiers?
 
Upvote 0

mangojack

Well-Known Member
Licensed User
After another look at this .... Yes , you don't have to add EditText into the designer.

After the edittext is loaded you can add colordrawable to background for border & color etc...
Unsure if this could be done initially within the manifest ...
 

Attachments

  • EditText Test.zip
    9.6 KB · Views: 73
Upvote 0
Top