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
Post a Comment