On switch change the views in the repeat layout change
[unical.git] / src / ro / ieval / unical / Utils.java
index 497660521d96dbe0c51d499fbd7a8c13c8325c38..74fa1a2371cacea31bc46ff632928aac24e1a046 100644 (file)
@@ -1,8 +1,15 @@
 package ro.ieval.unical;
 
-public class Utils {
-       public static boolean loginSuccess(String user, String pass) {
-               // TODO Auto-generated method stub
-               return true;
+import android.view.View;
+import android.view.ViewGroup;
+
+final class Utils {
+       public static void setEnabledRecursively(final View view, final boolean enabled){
+               view.setEnabled(enabled);
+               if(view instanceof ViewGroup){
+                       final ViewGroup group=(ViewGroup) view;
+                       for(int i=0;i<group.getChildCount();i++)
+                               setEnabledRecursively(group.getChildAt(i), enabled);
+               }
        }
 }
This page took 0.008933 seconds and 4 git commands to generate.