ITeye博客

Android

共 1 篇文章

Android 自定义 ViewGroup

占位符 占位符 public class Workspace extends ViewGroup { // 省略了构造方法 @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { int childLeft = 0; final int count = getChildCount(); for (int i = 0; i < count; i++) { final View child = getChildAt(i); if (child.getVisibility() != View.…

2011-10-10 16:58 · Android