Lines Matching defs:child

36  * Use with one ListView child. The top and bottom panels will track the ListView's scrolling.
37 * If there is no ListView child, it will act like a normal FrameLayout.
77 View child = getChildAt(i);
78 if (child instanceof ListView) {
80 throw new IllegalArgumentException("only one ListView child allowed");
82 mListView = (ListView) child;
88 int gravity = (((LayoutParams) child.getLayoutParams()).gravity
91 mTopPanel = child;
93 mBottomPanel = child;
112 private void applyMeasureToChild(View child, int widthMeasureSpec, int heightMeasureSpec) {
113 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
143 child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
146 private int measureAndGetHeight(View child, int widthMeasureSpec, int heightMeasureSpec) {
147 if (child != null) {
148 if (child.getVisibility() != GONE) {
150 return child.getMeasuredHeight();
172 final View child = getChildAt(i);
173 if (getMeasureAllChildren() || child.getVisibility() != GONE) {
174 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
175 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
177 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin);
179 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin);
180 childState = combineMeasuredStates(childState, child.getMeasuredState());
184 mMatchParentChildren.add(child);
232 final View child = mMatchParentChildren.get(i);
233 if (mListView == null || (child != mTopPanel && child != mBottomPanel)) {
234 applyMeasureToChild(child, widthMeasureSpec, heightMeasureSpec);
297 // shift to hide the frame, last child is not the last position
301 setScrolling(mTopPanel, 0); // no visible child, fallback to default behaviour
313 // shift to hide the frame, last child is not the last position
317 setScrolling(mBottomPanel, 0); // no visible child, fallback to default behaviour