Reputation: 148634
I have a simple TextField
:
How can I change the blue color (programmatically) to another color , when textfield is in focused ?
I've already accomplished partial solution :
var v=this.page.getViewById< TextField>("a");
var drawable = v.android.getBackground();
drawable.setColorFilter(new Color("#b21755").android, android.graphics.PorterDuff.Mode.SRC_ATOP);
But When I navigate to another control , the red color remains :
When It's in focus :
when It's out of focus : (red remains — I don't want that , I want the default color )
How can I make the color to back to its default color when moving out of focus ?
Upvotes: 1
Views: 463