大约有 4,000 项符合查询结果(耗时:0.0113秒) [XML]
构建具有多个屏幕的应用程序 · App Inventor 2 中文网
...
在向应用程序添加其他屏幕之前,可以考虑使用通过在 Screen1 上使用垂直或水平排列创建的“虚拟”屏幕,并以与“切换屏幕”大致相同的方式管理其可见性。
“虚拟”屏幕
你可以使用单个屏幕,并在屏幕图像更改时显示和...
App Inventor 2 息屏与后台运行问题解决方案 · App Inventor 2 中文网
...保持屏幕常亮
最简单但最耗电的方式:
when Screen1.Initialize() {
Screen1.Persist = true // 阻止息屏
}
或在Designer中设置 Screen 属性 Screen1 → KeepScreenOn → true。
优点:简单可靠
缺点:耗电严重,不适合长时间运行
...
MLKitHandwriting 拓展:手写识别(写字变文字) · App Inventor 2 中文网
...
把 候选数量 设成 5,从 candidatesJson 里取候选。
when Screen1.Initialize() {
Handwriting1.MaxResultCount = 5
}
when Handwriting1.GotText(text, candidatesJson) {
标签1.Text = text
标签_原始结果.Text = candidatesJson
}
candidatesJson 的形状是(用「JSON 文...
设置页使用指导 · App Inventor 2 中文网
...允许消息提醒;标签不会自动代表系统通知权限。
when Screen1.Initialize() {
if 设置页1.GetValue("notify", false) {
标签1.Text = "允许消息提醒"
} else {
标签1.Text = "消息提醒已关闭"
}
}
when 设置页1.SettingChanged(键, 旧值, 新值) {
if ...
FloatActionBtn 扩展:悬浮操作按钮扩展,可自定义颜色、大小、图标和位置 ...
...建按钮
创建快速新建项目的悬浮按钮:
when Screen1.Initialize() {
FloatActionBtn1.SetPosition("BottomRight")
FloatActionBtn1.SetSize(56)
FloatActionBtn1.SetBackgroundColor("#2196F3")
FloatActionBtn1.CreateFAB()
}
when FloatActionBtn1.Touch() {
Label1.Text = "...
App Inventor 2 AnimatedGif扩展教程 - 显示GIF动画 · App Inventor 2 中文网
...32B_extensiones_animatedgif.htm
基本用法
when Screen1.Initialize() {
AnimatedGif1.Picture = "animation.gif"
AnimatedGif1.Play = true
}
when 按钮_暂停.Click() {
AnimatedGif1.Play = false
}
when 按钮_继续.Click() {
AnimatedGif1.Play = true
}
控...
分布式数据(DistributedData)使用指导 · App Inventor 2 中文网
...幕时,将同名事件的处理合并到一个事件积木中。
when Screen1.Initialize() {
DistributedData1.Initialize("demo_store")
}
when DistributedData1.StoreOpened() {
DistributedData1.Put("message", "你好")
标签1.Text = DistributedData1.Get("message")
}
when DistributedData1.Err...
下拉刷新使用指导 · App Inventor 2 中文网
...件积木中。
global 数据 = ["第1条", "第2条", "第3条"]
when Screen1.Initialize() {
下拉刷新1.Register(列表显示框1)
列表显示框1.Elements = 数据
}
when 下拉刷新1.Refresh() {
after(1000) {
listInsert(数据, 1, "刚刚刷新")
列表显示框1.Elements = ...
FloatingActionButton 扩展:悬浮操作按钮扩展,可自定义颜色、大小、位置...
...
实现标准的 Material Design 悬浮操作按钮:
when Screen1.Initialize() {
JoeDevFloatingActionButton1.CreateFloatingActionButton(VerticalArrangement1, "#2196F3", 56, 16, 16, 16, 16, 28, "")
JoeDevFloatingActionButton1.SetFabIconFromAssets("add")
}
when JoeDevFloatingActi...
LEGO EV3 机器人按键控制 · App Inventor 2 中文网
... [Right]
[ ] [Backward][ ]
组件层级结构
Screen1 (主屏幕)
├── ListPicker1 (连接选择器)
├── Label1 (功率调节提示)
├── Slider1 (功率滑块)
├── TableArrangement1 (按键布局容器)
│ ├── Button_Forward (前进)
│ ...
