Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Responding to the seek bar

 
Mark Do
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Say for instance, if the seek bar reaches 50%, I want to change the colour of customTipTextView to red...
Where and How do I do that?

Thanks!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems the updateCustom method is designed to do that. The value of "currentCustomPercent" could be used to determine when to do this, if I understand the code correctly.
 
Mark Do
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But where do I put an if else statement saying that if currentcustomerpercent is bigger than 50%, then change the textview to red or green?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somewhere in the customUpdate method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic