Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Circles changing colour with status

 
Ranch Hand
Posts: 97
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am wondering if there is a way to make a few circles that change colour depending on a trigger?
For ex. if the app is displaying temperature of the user, the circle will be green if the temperature is in a normal range, red if the temperature is a low grade fever and blue if a high grade fever. (And another circle for other measurements etc)

Can this be done in android studio itself or will I have to add something like JavaFx or the like?

Thanks so much!
 
reply
    Bookmark Topic Watch Topic
  • New Topic