• 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: 42970
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: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somewhere in the customUpdate method.
 
mooooooo ..... tiny ad ....
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!