On switch change the views in the repeat layout change
[unical.git] / src / ro / ieval / unical / Utils.java
CommitLineData
402e19d8
MG
1package ro.ieval.unical;
2
3import android.view.View;
4import android.view.ViewGroup;
5
6final class Utils {
361c6a28 7 public static void setEnabledRecursively(final View view, final boolean enabled){
402e19d8
MG
8 view.setEnabled(enabled);
9 if(view instanceof ViewGroup){
10 final ViewGroup group=(ViewGroup) view;
11 for(int i=0;i<group.getChildCount();i++)
12 setEnabledRecursively(group.getChildAt(i), enabled);
13 }
14 }
15}
This page took 0.009701 seconds and 4 git commands to generate.