I did something similar in some code that I donβt have right now, but from memory it should be something like this (assuming the parent view of LinearLayout with the identifier "layout"):
LinearLayout layout = (LinearLayout)findViewById(R.id.layout); boolean success = formIsValid(layout); public boolean formIsValid(LinearLayout layout) { for (int i = 0; i < layout.getChildCount(); i++) { View v = layout.getChildAt(i); if (v instanceof EditText) {
kcoppock Jan 26 2018-11-21T00: 00Z
source share