Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
7c0d6677
Commit
7c0d6677
authored
Mar 12, 2019
by
Evaldas Latoškinas
Committed by
Jeffrey I. Schiller
Mar 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WidthPercent, HeightPercent, Width & Height Tooltips, Documentation (#1595)
parent
0341af0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
appinventor/components/src/com/google/appinventor/components/runtime/AndroidViewComponent.java
.../appinventor/components/runtime/AndroidViewComponent.java
+4
-4
appinventor/docs/reference/components/layout.html
appinventor/docs/reference/components/layout.html
+8
-8
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/AndroidViewComponent.java
View file @
7c0d6677
...
...
@@ -94,7 +94,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
* @param width in pixels
*/
@Override
@SimpleProperty
@SimpleProperty
(
description
=
"Specifies the component's horizontal width, measured in pixels."
)
public
void
Width
(
int
width
)
{
container
.
setChildWidth
(
this
,
width
);
lastSetWidth
=
width
;
...
...
@@ -110,7 +110,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
*/
@Override
@SimpleProperty
@SimpleProperty
(
description
=
"Specifies the component's horizontal width as a percentage of the Width of its parent Component."
)
public
void
WidthPercent
(
int
pCent
)
{
if
(
pCent
<
0
||
pCent
>
100
)
{
container
.
$form
().
dispatchErrorOccurredEvent
(
this
,
"WidthPercent"
,
...
...
@@ -180,7 +180,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
* @param height in pixels
*/
@Override
@SimpleProperty
@SimpleProperty
(
description
=
"Specifies the component's vertical height, measured in pixels."
)
public
void
Height
(
int
height
)
{
container
.
setChildHeight
(
this
,
height
);
lastSetHeight
=
height
;
...
...
@@ -196,7 +196,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
*/
@Override
@SimpleProperty
@SimpleProperty
(
description
=
"Specifies the component's vertical height as a percentage of the height of its parent Component."
)
public
void
HeightPercent
(
int
pCent
)
{
if
(
pCent
<
0
||
pCent
>
100
)
{
container
.
$form
().
dispatchErrorOccurredEvent
(
this
,
"HeightPercent"
,
...
...
appinventor/docs/reference/components/layout.html
View file @
7c0d6677
...
...
@@ -528,17 +528,17 @@
<dt><code>
BackgroundColor
</code></dt>
<dd>
Returns the component's background color
</dd>
<dt><code>
Height
</code></dt>
<dd></dd>
<dd>
Specifies the component's vertical height, measured in pixels.
</dd>
<dt><code>
HeightPercent
</code></dt>
<dd></dd>
<dd>
Specifies the component's vertical height as a percentage of the height of its parent Component.
</dd>
<dt><code>
Image
</code></dt>
<dd>
Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.
</dd>
<dt><code>
Visible
</code></dt>
<dd>
Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.
</dd>
<dt><code>
Width
</code></dt>
<dd></dd>
<dd>
Specifies the component's horizontal width, measured in pixels.
</dd>
<dt><code>
WidthPercent
</code></dt>
<dd></dd>
<dd>
Specifies the component's horizontal width as a percentage of the Width of its parent Component.
</dd>
</dl>
<h2
id=
"TableArrangement"
>
TableArrangement
</h2>
...
...
@@ -642,17 +642,17 @@
<dt><code>
BackgroundColor
</code></dt>
<dd>
Returns the component's background color
</dd>
<dt><code>
Height
</code></dt>
<dd></dd>
<dd>
Specifies the component's vertical height, measured in pixels.
</dd>
<dt><code>
HeightPercent
</code></dt>
<dd></dd>
<dd>
Specifies the component's vertical height as a percentage of the height of its parent Component.
</dd>
<dt><code>
Image
</code></dt>
<dd>
Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.
</dd>
<dt><code>
Visible
</code></dt>
<dd>
Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.
</dd>
<dt><code>
Width
</code></dt>
<dd></dd>
<dd>
Specifies the component's horizontal width, measured in pixels.
</dd>
<dt><code>
WidthPercent
</code></dt>
<dd></dd>
<dd>
Specifies the component's horizontal width as a percentage of the Width of its parent Component.
</dd>
</dl>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment