您可以随时执行以下操作:
LinearLayout layout = setupLayout();int count = layout.getChildCount();View v = null;for(int i=0; i<count; i++) { v = layout.getChildAt(i); //do something with your child element}
您可以随时执行以下操作:
LinearLayout layout = setupLayout();int count = layout.getChildCount();View v = null;for(int i=0; i<count; i++) { v = layout.getChildAt(i); //do something with your child element}