I am currently trying to implement a ViewPager. I have two pages within the ViewPager which both contain numerous text fields, checkboxes, buttons, and spinners.
Lets say the two XML files are layout1.xml and layout2.xml. Both of them have checkboxes with the IDs checkbox1 and checkbox2 respectively. Is there a way to call something along the lines of
Checkbox check1 = (CheckBox) findViewById( R.layout.layout1.id.checkbox1 );
Checkbox check2 = (Checkbox) findViewById( R.layout.layout2.id.checkbox2 );
Discovered the best way to do this was to use a
LayoutInflater.Look at this question for reference