Is there any way to access a layout\'s view from a non-Activity-derived class? I\'m creating an Accordion class and need to access some of the activity\'s UI elements. I\'
I'm pretty sure you can just pass an activity as a parameter, e.g.
public void initSouthViews(Activity activity) { for (int i = 0; i < southScores_.length; ++i) { southScores_[i] = (EditText) activity.findViewById(10); } }