This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Edit Text Background Color  RSS feed

 
david foley
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating an App, which has nine Edit Texts,

what i am hoping to do is if input is Greater then 10 change Edit Text background to Red if Less then 10 Change to Blue, other wise stay the same.

I have Text Watcher set up for my Edit Texts i have also have


double t1 = 0;
t1=Double.parseDouble(T1.getText().toString());

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!