I'm always debating what is the efficient way: when I have to use any widgets from the xml several times what is better:

  • to use findViewById several times
  • to create a field with the findViewById result and to use this field.

I think (?) that the first option is matter of time and the second option is matter of space but what is the accepted way??

I'm android/development beginner and looking for accepted/true ways to do the things better.

Edit
Report