By clicking the Alert button in the example application, you can see this bubble message in action. Here's the code that implements it.
单击示例应用程序的Alert按钮,就可以看到实际运用中的泡泡消息。
The action will display a simple alert message when the user clicks the button.
当用户单击按钮时,该活动将显示一个简单的警报消息。
Consider the confusion for a user if the Back button suddenly triggered mysterious alert prompts or sent him to a new Web site.
设想一下,如果后退按钮突然弹出一个神秘的警告提示或者用户被打发到一个新的网站上去,用户该是多么困惑。
If the person did not get up in a short period or press an onscreen button, the program automatically texted or called the person designated to receive the alert.
如果用户没能在短时间内站起来或者点击屏幕任意按钮,程序就会自动发消息或给设定的号码拨打电话。
When user clicks the add button, the data is sent through to the Alert config component and added to the configuration.
当用户单击add按钮时,会通过AlertConfig组件发送数据并添加到配置中。
If you specify one button, the alert displays an OK button.
如果你指定一个按钮,提醒只显示一个确定按钮。
The Close button and the OK button both dismiss the alert without opening your application.
关闭按钮和确定按钮的作用都是关闭提醒,并且不打开应用程序。
You can specify the text, the number of buttons, and the button contents in an alert, but you can't customize the background appearance of the alert itself.
你可以在一个警告窗口中指定文本,按键的数量以及按键的内容,但你不能自定义警告窗口本身背景的显示。
In an alert with two buttons, the button on the left is always dark-colored and the button on the right is never dark-colored.
在一个拥有两个按键的警告窗口中,左边的按键通常是深色的,而右边的不应该是深色的。
If they don't press the button within 15 seconds, the companion is sent an alert.
如果用户15秒内没有按下按钮,指定的“同伴”就会收到提醒。
You'll usually go on the scanner seat first, the radiographer give you a button on the end of a wire, so if you have any concerns you can immediately alert the staff.
通常情况下,你可能首先要坐上扫描检查床,放射科医生会给你一个安装在线缆一端的按钮,所以如果你有任何忧虑你可以及时地向工作人员发出警报。
In a two-button alert that proposes a benign action, the button that cancels the action should be on the left (and therefore dark-colored).
在开始一个操作的警告窗口中,取消按键应该放在左边(因此需要使用深色)。
The learn more button resets the application's internal state, removes the alert, and leads to your company's website where the user can learn more about the update and select a purchasing option.
更多“按钮将重置内部状态,关闭通知窗口,并且指向您公司的网站,在那用户可以得知更多的关于更新的信息以及购买的选项。”
The Ask Again Later button leaves the internal update state unchanged and removes the alert.
稍后询问按钮将保持内部更新状态并关闭通知窗口。
In an alert with a single button, the button is light-colored.
在只有一个按键的警告窗口中,按键应该是浅色的。
In a two-button alert that proposes a potentially risky action, the button that cancels the action should be on the right and light-colored.
在一个会导致潜在危险操作的两个按键的警告窗口中,取消按键应该使用浅色放置在右边。
Click OK to close the alert box, change the date Hired value to a date in the past, and then click the close button to close the Employees table.
单击“确定”关闭警告框,将“上一次会议日期”值更改为过去的日期,然后单击“关闭”按钮关闭“雇员”表。
With the push of a button, a person is able to alert the medical staff of an emergency situation.
在紧急情况下,他们只需要按下按钮,就能及时通知医护人员。
Specifically, because the alert proposes a benign action, the button that cancels the action (that is, Don't Allow) is on the left, and therefore dark-colored.
具体来说这是一个开始某个操作的警告窗口,取消此次操作的按键(就是那个“不允许”的按键)放在左边,并使用深色。
An alert that contains three or more buttons is significantly more complex than a two-button alert, and should be avoided if possible.
一个警告窗口包含三个或者更多的按键要比只包含两个按键复杂的多,如果可能话应该尽量避免。
When Seat Me fails to find a seat at the selected table (if it had filled), there will now be a "Find Seat" button in the pop-up alert.
当我没法找到坐位正在选定的坐位表(若是它补偿了),现在将有一个“找坐位”按钮,正在弹出警报。
Note that we put an error message dialog in the Default frame of the case Structure. This will alert us if we should ever add another button, but forget to add a case to handle it.
注意我们在分支结构的默认框架中放置了一个错误标志信息的对话框。如果我们增加了一个按钮,但是忘记了添加相关的处理分支的话,这个错误标志信息就可以给我们警示。
Note that we put an error message dialog in the Default frame of the case Structure. This will alert us if we should ever add another button, but forget to add a case to handle it.
注意我们在分支结构的默认框架中放置了一个错误标志信息的对话框。如果我们增加了一个按钮,但是忘记了添加相关的处理分支的话,这个错误标志信息就可以给我们警示。
应用推荐