Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to find component via code?

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have something like this and want to find a component via code;



You see, it does not work. What is missing?

(I do not want to use binding-property)
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
findComponent() is a method of UIViewRoot.
 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh okay, now it works, thanks!

UIViewRoot view = context.getViewRoot();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic