Looping through editTexts to check values

前端 未结 2 1070
悲哀的现实
悲哀的现实 2021-01-26 01:41

I have one layout with 100 blank EditTexts, all named based on their row / column IDs (e.g. box0101, box0102 etc.).

I then have another layout with 100 TextViews in exac

2条回答
  •  隐瞒了意图╮
    2021-01-26 02:11

    for(int i=0;i c) {
    
        try {
            Field idField = c.getDeclaredField(variableName);
            return idField.getInt(idField);
        } catch (Exception e) {
            e.printStackTrace();
            return -1;
        } 
    }
    

提交回复
热议问题