Lines Matching defs:lp

409                     final LayoutParams lp = (LayoutParams) child.getLayoutParams();
410 final int top = child.getTop() - lp.topMargin - mDividerHeight;
422 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
423 bottom = child.getBottom() + lp.bottomMargin;
450 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
453 position = child.getRight() + lp.rightMargin;
455 position = child.getLeft() - lp.leftMargin - mDividerWidth;
472 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
474 position = child.getLeft() - lp.leftMargin - mDividerWidth;
476 position = child.getRight() + lp.rightMargin;
599 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams();
600 return childTop + lp.topMargin + childBaseline;
779 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
781 totalWeight += lp.weight;
783 final boolean useExcessSpace = lp.height == 0 && lp.weight > 0;
789 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin);
798 lp.height = LayoutParams.WRAP_CONTENT;
814 lp.height = 0;
819 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin +
820 lp.bottomMargin + getNextLocationOffset(child));
838 if (i < baselineChildIndex && lp.weight > 0) {
846 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) {
855 final int margin = lp.leftMargin + lp.rightMargin;
860 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT;
861 if (lp.weight > 0) {
896 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams)
901 lp.topMargin + lp.bottomMargin + getNextLocationOffset(child));
932 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
933 final float childWeight = lp.weight;
942 } else if (lp.height == 0 && (!mAllowInconsistentMeasurement
956 mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin,
957 lp.width);
965 final int margin = lp.leftMargin + lp.rightMargin;
970 lp.width == LayoutParams.MATCH_PARENT;
975 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT;
979 lp.topMargin + lp.bottomMargin + getNextLocationOffset(child));
999 final LinearLayout.LayoutParams lp =
1002 float childExtra = lp.weight;
1038 LinearLayout.LayoutParams lp = ((LinearLayout.LayoutParams)child.getLayoutParams());
1040 if (lp.width == LayoutParams.MATCH_PARENT) {
1043 int oldHeight = lp.height;
1044 lp.height = child.getMeasuredHeight();
1048 lp.height = oldHeight;
1121 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
1123 totalWeight += lp.weight;
1125 final boolean useExcessSpace = lp.width == 0 && lp.weight > 0;
1131 mTotalLength += lp.leftMargin + lp.rightMargin;
1135 lp.leftMargin + lp.rightMargin);
1159 lp.width = LayoutParams.WRAP_CONTENT;
1175 lp.width = 0;
1180 mTotalLength += childWidth + lp.leftMargin + lp.rightMargin
1184 mTotalLength = Math.max(totalLength, totalLength + childWidth + lp.leftMargin
1185 + lp.rightMargin + getNextLocationOffset(child));
1194 if (heightMode != MeasureSpec.EXACTLY && lp.height == LayoutParams.MATCH_PARENT) {
1202 final int margin = lp.topMargin + lp.bottomMargin;
1211 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity)
1223 allFillParent = allFillParent && lp.height == LayoutParams.MATCH_PARENT;
1224 if (lp.weight > 0) {
1274 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams)
1277 mTotalLength += largestChildWidth + lp.leftMargin + lp.rightMargin +
1282 lp.leftMargin + lp.rightMargin + getNextLocationOffset(child));
1319 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
1320 final float childWeight = lp.weight;
1329 } else if (lp.width == 0 && (!mAllowInconsistentMeasurement
1343 mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin,
1344 lp.height);
1353 mTotalLength += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin +
1358 lp.leftMargin + lp.rightMargin + getNextLocationOffset(child));
1362 lp.height == LayoutParams.MATCH_PARENT;
1364 final int margin = lp.topMargin + lp .bottomMargin;
1370 allFillParent = allFillParent && lp.height == LayoutParams.MATCH_PARENT;
1376 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity)
1418 final LinearLayout.LayoutParams lp =
1421 float childExtra = lp.weight;
1459 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams();
1461 if (lp.height == LayoutParams.MATCH_PARENT) {
1464 int oldWidth = lp.width;
1465 lp.width = child.getMeasuredWidth();
1469 lp.width = oldWidth;
1605 final LinearLayout.LayoutParams lp =
1608 int gravity = lp.gravity;
1617 + lp.leftMargin - lp.rightMargin;
1621 childLeft = childRight - childWidth - lp.rightMargin;
1626 childLeft = paddingLeft + lp.leftMargin;
1634 childTop += lp.topMargin;
1637 childTop += childHeight + lp.bottomMargin + getNextLocationOffset(child);
1727 final LinearLayout.LayoutParams lp =
1730 if (baselineAligned && lp.height != LayoutParams.MATCH_PARENT) {
1734 int gravity = lp.gravity;
1741 childTop = paddingTop + lp.topMargin;
1760 + lp.topMargin - lp.bottomMargin;
1764 childTop = childBottom - childHeight - lp.bottomMargin;
1779 childLeft += lp.leftMargin;
1782 childLeft += childWidth + lp.rightMargin +
1896 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {
1898 if (lp instanceof LayoutParams) {
1899 return new LayoutParams((LayoutParams) lp);
1900 } else if (lp instanceof MarginLayoutParams) {
1901 return new LayoutParams((MarginLayoutParams) lp);
1904 return new LayoutParams(lp);