Android examples for User Interface:View Child
Get View offset Children Top And Bottom
//package com.java2s; import android.view.View; import android.view.ViewGroup; public class Main { public static void offsetChildrenTopAndBottom(ViewGroup viewGroup, int offset) { final int count = viewGroup.getChildCount(); for (int i = 0; i < count; i++) { final View child = viewGroup.getChildAt(i); child.offsetTopAndBottom(offset); }/*from w w w .ja v a 2 s. c o m*/ } }