kotlin enable and disable parents view children
private static void setViewAndChildrenEnabled(View view, boolean enabled) {
view.setEnabled(enabled);
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i = 0; i < viewGroup.getChildCount(); i++) {
View child = viewGroup.getChildAt(i);
setViewAndChildrenEnabled(child, enabled);
}
}
}
Also in Java:
- linux command to see all the java version installed
- fragment button nullpointerexception
- Could not resolve project :app
- java observable
- déclarer un tableau en java
- java creare costante
- generate all prime number less than n java
- java output array lists to file
- Java.awt graphics tutorial
- funzione random in java
- convert int to string java
- how to get witdth of window android
- abstract class java constructor
- java set value of arraylist
- priority queue java reverse order
- how to create a java jframe
- biginteger in java
- android get distance between two locations kotlin
- java integer to binary string with leading zeros
- set java
- string remove last character
- android get sdk version
- java 8 loop in map
- determine if a given binary tree is a valid bst