Android ViewGroup Set setSelected(ViewGroup viewGroup, boolean selected)

Here you can find the source of setSelected(ViewGroup viewGroup, boolean selected)

Description

set Selected

Declaration

public static void setSelected(ViewGroup viewGroup, boolean selected) 

Method Source Code

//package com.java2s;

import android.view.ViewGroup;

public class Main {
    public static void setSelected(ViewGroup viewGroup, boolean selected) {
        for (int i = 0; i < viewGroup.getChildCount(); i++) {
            viewGroup.getChildAt(i).setSelected(selected);
        }//from w w  w . j  a  v  a 2s.  c om
    }
}

Related

  1. layoutChildAbsoluteCenter(ViewGroup parent, View child, int tWidth, int tHeight)
  2. setReadingFontOnChildren(ViewGroup container)
  3. disableView(ViewGroup rootView, float alpha)