大约有 68 项符合查询结果(耗时:0.0091秒) [XML]
App Inventor 2 字典代码块 · App Inventor 2 中文网
...
结果是:{“key1”:”val1”,”key2”:”val2”}
前提是“Screen1”的“以JSON格式显示列表”属性已经勾选(默认是勾选的)。
案例:JSON转字典
转换步骤:Web客户端 -> 列表 -> 字典,参考代码如下:
...
ImageView 扩展:图片查看器扩展,支持缩放、双击缩放和动画缩放 · App In...
...图片浏览器
创建支持缩放的图片浏览器:
当 Screen1.初始化
调用 ImageView1.SetView 组件为 Image1
调用 ImageView1.SetImage 图片路径为 "file:///sdcard/photo.jpg"
调用 ImageView1.SetScaleType 缩放类型为 3 // FIT_CENTER
2. 产...
滚动布局管理器拓展 - ScrollArrangementHandler · App Inventor 2 中文网
...ScrollArrangement组件到屏幕上
绑定滚动布局
when Screen1.Initialize
do
// 绑定水平滚动布局
call HorizontalScrollHandler1.RegisterScrollView HorizontalArrangement1
// 绑定垂直滚动布局
call VerticalScrollHandler1.RegisterScrollView VerticalArra...
水果vs蔬菜智能分类器 - EdgeML图像识别项目 · App Inventor 2 中文网
...扩展已加载
3. 界面设计
组件布局:
Screen1 (主屏幕)
├── HorizontalArrangement1 (顶部按钮区)
│ ├── Button_SelectImage (选择图片)
│ └── Button_Camera (拍照)
├── Image1 (图像显示区域)
├── Label_Status (状...
Resize image in the wiki of GitHub using Markdown
...jpg" width="324" height="324">
<p align="center">
<img src="screen1.png" width="256" height="455">
<img src="screen2.png" width="256" height="455">
<img src="screen3.png" width="256" height="455">
</p>
On above example I have used paragraph to align images s...
SVG图像加载扩展 - 第三方扩展集合 · App Inventor 2 中文网
...例
基础SVG加载 (SVGImages)
when Screen1.Initialize
do
// 从文件加载SVG
call SVGImages1.LoadFromFile "/storage/emulated/0/Documents/icon.svg"
when SVGImages1.ErrorOccurred error
do
show notification "SVG加载失败: " & error
...
FloatingActionButton 扩展:悬浮操作按钮扩展,可自定义颜色、大小、位置...
...
实现标准的 Material Design 悬浮操作按钮:
当 Screen1.初始化
调用 FloatingActionButton1.SetFabSize 按钮大小为56
调用 FloatingActionButton1.SetFabColor 按钮颜色为蓝色
调用 FloatingActionButton1.SetFabIconColor 图标颜色为白色
调...
使用App Inventor扩展实现多点触控:Rotation Detector · App Inventor 2 中文网
...re shown below.
Here’s how to implement the rotationSprite app:
On Screen1, there is a Canvas, Canvas1, which contains an ImageSprite (ArrowSprite) that we want to rotate. Label1 will show the Arrow’s heading in text format. Heading 0 points to right. We also add a RotationDetector (MyRo...
使用App Inventor扩展实现多点触控:Rotation Detector · App Inventor 2 中文网
...re shown below.
Here’s how to implement the rotationSprite app:
On Screen1, there is a Canvas, Canvas1, which contains an ImageSprite (ArrowSprite) that we want to rotate. Label1 will show the Arrow’s heading in text format. Heading 0 points to right. We also add a RotationDetector (MyRo...
使用App Inventor扩展实现多点触控:Rotation Detector · App Inventor 2 中文网
...re shown below.
Here’s how to implement the rotationSprite app:
On Screen1, there is a Canvas, Canvas1, which contains an ImageSprite (ArrowSprite) that we want to rotate. Label1 will show the Arrow’s heading in text format. Heading 0 points to right. We also add a RotationDetector (MyRo...
