App Inventor/Use Interface

Материал из Поле цифровой дидактики
Источники
http://ai2.appinventor.mit.edu/reference/components/userinterface.html
http://www.appinventor.org/apps2/IHaveADream/IHaveADream.pdf


Кнопки

Компоненты, с которыми пользователь совершает действия.

Buttons detect when users tap them. Many aspects of a button's appearance can be changed. You can use the Enabled property to choose whether a button can be tapped.

Свойства кнопок

BackgroundColor

Color for button background.

Enabled

If set, user can tap button to cause action.

FontBold

If set, button text is displayed in bold.

FontItalic

If set, button text is displayed in italics.

FontSize

Point size for button text.

FontTypeface

Font family for button text.

Height

Button height (y-size).

Width

Button width (x-size).

Image

Image to display on button.

Text

Text to display on button.

TextAlignment

Left, center, or right.

TextColor

Color for button text.

События для кнопок

Click()

User tapped and released the button.

GotFocus()

Button became the focused component.

LostFocus()

Button stopped being the focused component.




App Inventor