Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.view.ViewGroup;

public class Main {
    public static void infoSwitch(ViewGroup viewgroup, ViewGroup viewgroup1) {
        viewgroup.setLayoutTransition(null);
        viewgroup1.setLayoutTransition(null);
        dismissChildren(viewgroup);
        showChildren(viewgroup1);
    }

    public static void dismissChildren(ViewGroup viewgroup) {
        int i1 = viewgroup.getChildCount();
        for (int j1 = 0; j1 < i1; j1++) {
            viewgroup.getChildAt(j1).setVisibility(4);
        }

        viewgroup.setVisibility(8);
    }

    public static void showChildren(ViewGroup viewgroup) {
        int i1 = viewgroup.getChildCount();
        for (int j1 = 0; j1 < i1; j1++) {
            viewgroup.getChildAt(j1).setVisibility(0);
        }

        viewgroup.setVisibility(0);
    }
}