Home | History | Annotate | Download | only in widget

Lines Matching defs:layoutParams

40  * {@link android.widget.TableLayout.LayoutParams#MATCH_PARENT} and
41 * {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}.</p>
44 * Also see {@link TableRow.LayoutParams android.widget.TableRow.LayoutParams}
164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams();
166 if (layoutParams.column >= virtualCount) {
167 virtualCount = layoutParams.column;
170 for (int j = 0; j < layoutParams.span; j++) {
195 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth;
236 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT];
239 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2;
243 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0;
257 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams();
260 return layoutParams.span - 1;
268 return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION];
276 return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION_NEXT];
299 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams();
300 if (layoutParams.span == 1) {
302 switch (layoutParams.width) {
303 case LayoutParams.WRAP_CONTENT:
304 spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT);
306 case LayoutParams.MATCH_PARENT:
310 spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY);
314 final int width = child.getMeasuredWidth() + layoutParams.leftMargin +
315 layoutParams.rightMargin;
352 public LayoutParams generateLayoutParams(AttributeSet attrs) {
353 return new TableRow.LayoutParams(getContext(), attrs);
358 * {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT},
359 * a height of {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT} and no spanning.
362 protected LinearLayout.LayoutParams generateDefaultLayoutParams() {
363 return new LayoutParams();
370 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
371 return p instanceof TableRow.LayoutParams;
378 protected LinearLayout.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
379 return new LayoutParams(p);
397 * @see android.widget.TableLayout.LayoutParams
402 public static class LayoutParams extends LinearLayout.LayoutParams {
423 public LayoutParams(Context c, AttributeSet attrs) {
445 public LayoutParams(int w, int h) {
458 public LayoutParams(int w, int h, float initWeight) {
465 * <p>Sets the child width to {@link android.view.ViewGroup.LayoutParams}
467 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}.</p>
469 public LayoutParams() {
478 * <p>Sets the child width to {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}
480 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}.</p>
484 public LayoutParams(int column) {
492 public LayoutParams(ViewGroup.LayoutParams p) {
499 public LayoutParams