android - How to remove the Default orange Highlight Effect for EditText programmatically? -



android - How to remove the Default orange Highlight Effect for EditText programmatically? -

i utilize selector styling edittexts. want rid of orange color, when doubletap on edittext. utilize this:

states.addstate(new int[] {r.attr.textcolorhighlight}, getresources().getdrawable(r.color.transparent));

but doesn't create difference! body know why? , interestingly part of code works well:

states.addstate(new int[] {r.attr.state_focused}, getresources().getdrawable(r.color.transparent));

but don't want alter state, when focuced!

this not easy (programmatically). seek accomplish using statelistdrawable. can utilize statelistdrawable background of edittext in theme can handle different states.

if found interesting sample maybe helps out. sorry didn't seek myself: apply statelistdrawable programmatically

android android-edittext state highlighting

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -