public void onLayout(boolean changed, int left, int top, int right, int bottom) { if (callbackProcs != null && callbackProcs[CB_LAYOUT] != null) { super.onLayout(changed, left, top, right, bottom); Script.callMethod( callbackProcs[CB_LAYOUT], "call", new Object[] {changed, left, top, right, bottom}); } else { super.onLayout(changed, left, top, right, bottom); } }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); if (listener != null) { listener.onScroll(getScrollY()); } }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); if (changed == true) { view_height = b - t; } }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); if (contentView == null) return; // ScrollView中的唯一子控件的位置信息, 这个位置信息在整个控件的生命周期中保持不变 originalRect.set( contentView.getLeft(), contentView.getTop(), contentView.getRight(), contentView.getBottom()); }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); if (isFirstLoaded && changed) { scrollViewHeight = getHeight(); all_container = getChildAt(0); mUrls = new ArrayList<String>(); first = (LinearLayout) all_container.findViewById(R.id.first); second = (LinearLayout) all_container.findViewById(R.id.second); third = (LinearLayout) all_container.findViewById(R.id.third); isFirstLoaded = false; columnWidth = first.getWidth(); loadMoreImg(); } }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); onLightweightThemeChanged(); }