• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to “hide” the real TextView value?

 
Kovacs Akos
Ranch Hand
Posts: 86
1
Firefox Browser Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have textview fields, which should have seemingly the same value, but they should have a second "hidden" value, which I can test after clicking and do the right action for the value. So I would like to hide the real value of the textview fields. What do you think, how can I do this?
I would like to use one copy of this textviews for click perception.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By "value", do you mean their textual content?

I don't fully understand what you're trying to do, but it seems you could extend the TextView class with something that holds an additional CharSequence object for that alternate text, along with the appropriate getters and setters.
 
Kovacs Akos
Ranch Hand
Posts: 86
1
Firefox Browser Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to add a second, hidden value for every TextView fields exactly.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then my suggestion should work.
 
Kovacs Akos
Ranch Hand
Posts: 86
1
Firefox Browser Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please show me an example code?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example of what? Extending a class? Just add a setter and a getter for the additional data field.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic