|
AI2 Component
(Version nb184)
|
Go to the documentation of this file.
7 package com.google.appinventor.components.runtime;
18 import android.view.View;
58 description =
"Specifies whether the %type% should be visible on the screen. "
59 +
"Value is true if the %type% is showing and false if hidden.",
62 return getView().getVisibility() == View.VISIBLE;
71 defaultValue =
"True")
76 getView().setVisibility(visibility ? View.VISIBLE : View.GONE);
98 @
SimpleProperty(description =
"Specifies the horizontal width of the %type%, measured in pixels.")
101 lastSetWidth = width;
117 @
SimpleProperty(description =
"Specifies the horizontal width of the %type% as a percentage of "
118 +
"the width of the Screen.")
120 if (pCent < 0 || pCent > 100) {
131 percentWidthHolder = width;
139 return percentWidthHolder;
145 percentHeightHolder = height;
153 return percentHeightHolder;
168 Width(sourceComponent.lastSetWidth);
188 @
SimpleProperty(description =
"Specifies the vertical height of the %type%, measured in pixels.")
191 lastSetHeight = height;
207 @
SimpleProperty(description =
"Specifies the vertical height of the %type% as a percentage of "
208 +
"the height of the Screen.")
210 if (pCent < 0 || pCent > 100) {
230 Height(sourceComponent.lastSetHeight);
250 this.column = column;
269 public
void Row(
int row) {
void setLastHeight(int height)
-*- mode: java; c-basic-offset: 2; -*-
void Visible(boolean visibility)
void HeightPercent(int pCent)
void setChildWidth(AndroidViewComponent component, int width)
static final int LENGTH_UNKNOWN
void setLastWidth(int width)
static final int LENGTH_PERCENT_TAG
void setChildHeight(AndroidViewComponent component, int height)
void CopyWidth(AndroidViewComponent sourceComponent)
void WidthPercent(int pCent)
HandlesEventDispatching getDispatchDelegate()
void CopyHeight(AndroidViewComponent sourceComponent)
static final String PROPERTY_TYPE_VISIBILITY
Copyright 2009-2011 Google, All Rights reserved.
AndroidViewComponent(ComponentContainer container)
static final int ERROR_BAD_PERCENT
final ComponentContainer container
static final int DEFAULT_ROW_COLUMN