android - Appliying an accent color to an particular EditText while others are unaffected -


i have situtation half of activity has background color similar actionbar. hence edittext displayed in region background should have white accent color , ones in remaining region should have color of actionbar.

[plan a]

i using appcompat-v7 , managed accent colors edittext <item name="coloraccent">@color/createtaskprimaryactionbar</item> in theme have used activity. sets color of edit texts @color/createtaskprimaryactionbar.

is there way set individual colors individual edittext ?

[plan b]

my next best hope setting actionbar custom layout edittext in it , think complicate things. i'm not sure if practice.

my hope if using darkaction bar shouldn't accent color light default.

have tried plan b, dont want invest more time in if it's not worth it..

for plan a.

it possible set individual colors individual edittext

youredittext.getbackground().setcolorfilter(getresources().getcolor(r.color.yourcolor), porterduff.mode.src_atop); 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -