I was wondering how you check if a scrollView exists for an if statement. The current code for creating the scollView is below. Any help will be much appreciated 🙂
Code:
public void tickBox(int i){
//Create GUI
LinearLayout mainView = (LinearLayout) findViewById(R.id.MainLayout);
ScrollView sc = new ScrollView(this);
sc.setId(i + 100);
if (/*If statement to be made*/){
mainView.addView(sc);
}
//My other code
}
it can be as: