Advanced Interdisciplinary Projects Lab(AIPLab) 討論區

程式語言摘要 => App Inventor 2 => 主題作者是: admin 於 八月 11, 2017, 01:14:02 am



主題: User Interface Components
作者: admin八月 11, 2017, 01:14:02 am
http://ai2.appinventor.mit.edu/reference/components/userinterface.html (http://ai2.appinventor.mit.edu/reference/components/userinterface.html)
Button
CheckBox
DatePicker
Image
Label
ListPicker
ListView
Notifier
PasswordTextBox
Screen
Slider
Spinner
TextBox
TimePicker
WebViewer


主題: 回覆: User Interface Components
作者: admin八月 11, 2017, 01:14:18 am
Notifier

The Notifier component displays alert dialogs, messages, and temporary alerts, and creates Android log entries through the following methods:

ShowMessageDialog: displays a message which the user must dismiss by pressing a button.
ShowChooseDialog: displays a message two buttons to let the user choose one of two responses, for example, yes or no, after which the AfterChoosing event is raised.
ShowTextDialog: lets the user enter text in response to the message, after which the AfterTextInput event is raised.
ShowAlert: displays a temporary alert that goes away by itself after a short time.
ShowProgressDialog: displays an alert with a loading spinner that cannot be dismissed by the user. It can only be dismissed by using the DismissProgressDialog block.
DismissProgressDialog: Dismisses the progress dialog displayed by ShowProgressDialog.
LogError: logs an error message to the Android log.
LogInfo: logs an info message to the Android log.
LogWarning: logs a warning message to the Android log.
The messages in the dialogs (but not the alert) can be formatted using the following HTML tags:<b>, <big>, <blockquote>, <br>, <cite>, <dfn>, <div>, <em>, <small>, <strong>, <sub>, <sup>, <tt>. <u>
You can also use the font tag to specify color, for example, <font color="blue">. Some of the available color names are aqua, black, blue, fuchsia, green, grey, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow


主題: 回覆: User Interface Components
作者: admin八月 11, 2017, 01:54:48 am
http://appinventor.pevest.com/?p=914 (http://appinventor.pevest.com/?p=914)
How to use the “2 Button” Notifier dialog box