|
AI2 Component
(Version nb184)
|
Go to the documentation of this file.
7 package com.google.appinventor.components.runtime;
18 import android.app.Activity;
19 import android.view.View;
45 @DesignerComponent(version = YaVersion.TABLEARRANGEMENT_COMPONENT_VERSION,
46 description =
"<p>A formatting element in which to place components " +
47 "that should be displayed in tabular form.</p>",
48 category = ComponentCategory.LAYOUT)
52 private final Activity context;
78 return viewLayout.getNumColumns();
90 viewLayout.setNumColumns(numColumns);
100 return viewLayout.getNumRows();
111 public
void Rows(
int numRows) {
112 viewLayout.setNumRows(numRows);
129 viewLayout.
add(component);
135 System.err.println(
"TableArrangment.setChildWidth: width = " + width +
" component = " + component);
144 System.err.println(
"%%TableArrangement.setChildWidth(): width = " + width +
" parent Width = " + cWidth +
" child = " + component);
void setLastHeight(int height)
-*- mode: java; c-basic-offset: 2; -*-
TableArrangement(ComponentContainer container)
static final String PROPERTY_TYPE_NON_NEGATIVE_INTEGER
void setChildHeight(AndroidViewComponent component, int height)
void setLastWidth(int width)
static final int LENGTH_PERCENT_TAG
void $add(AndroidViewComponent component)
static void setChildHeightForTableLayout(View view, int height)
void setChildWidth(AndroidViewComponent component, int width)
ViewGroup getLayoutManager()
static final int LENGTH_PREFERRED
Copyright 2009-2011 Google, All Rights reserved.
final ComponentContainer container
static void setChildWidthForTableLayout(View view, int width)
void $add(AndroidViewComponent component)
void add(AndroidViewComponent child)