MLN Lua UI Preview
Real-time UI preview for MLN (Mobile Lua Native) projects inside IntelliJ IDEA and Android Studio.
Not scanned yet
Editor extension
14 installs
Install in
Real-time UI preview for MLN (Mobile Lua Native) projects inside IntelliJ IDEA and Android Studio.
Write MLN Lua layout code and instantly see how it looks — no device deployment needed.
Features
- Live Preview — Auto-refresh on save, preview entire pages or individual functions
- Device Simulation — iPhone / Android / custom sizes with status bar
- Inspector — Click any view to inspect layout properties, colors, fonts
- Wireframe Mode — Toggle bounding boxes to debug layout
- Ruler & Spacing — Measure distances between views
- Mock Data — Auto-detect HTTP APIs, generate and edit mock JSON in-place
- Interactive Mode — Execute onClick callbacks and see UI state changes
- Code ↔ Preview — Click a view to jump to its source line, and vice versa
- Color Gutter — Inline color swatches for RGB/HEX calls in editor
Supported MLN Components
View, Label, ImageView, LinearLayout, ScrollView, CollectionView, TableView, EditTextView, Switch, SVGAView, and more.
Getting Started
- Open any
.luafile in an MLN project - The "MLN Preview" tool window on the right shows the rendered UI
- Edit code → preview updates automatically
Written by Joobi from the project's own listing. See the source page
1 Dec 2026
Version 1.1.3 released. Not scanned yet.
1.1.3
- 渐变色 Gutter 预览 — 识别 setGradientColor / setGradientColorWithDirection 调用,点击色块查看渐变预览条和方向
- URL 前缀拼接解析 — 自动扫描 Lua 全局 URL 常量(如 RESURL),解析变量拼接的图片/SVGA 地址并显示 Gutter 预览
- Settings 增强 — 新增"URL 前缀"配置 tab,支持手动配置覆盖自动扫描结果
- 弹窗体验优化 — URL 可选中复制、长 URL 自动换行、弹窗位置自动避免超出屏幕
1.1.0
- 多媒体 Gutter 预览 — 图片(含 GIF 动画/WebP)、SVGA 动画、视频 URL 在行左侧显示图标,点击即时预览或跳转浏览器
- 移除 IDEA 版本上限 — 兼容所有 233+ 版本的 IntelliJ IDEA(包括未来版本)
- Lua 运行时修复 — Point/Inset 构造器字段改为 getter 函数、ScrollView contentOffset 返回 Point(0,0)、数值属性 getter 返回 0 而非 NIL
- CollectionView 修复 — applyCellSize 兼容 getter 函数格式的尺寸值
1.0.0
- Initial release
- Real-time JCEF-based UI preview
- Inspector, wireframe, ruler tools
- Mock data auto-detection and editing
- Interactive onClick callback execution
- Code ↔ preview bidirectional navigation
- Color gutter annotations
1 Dec 2026Listed on Joobi from JetBrains Marketplace.
Follow this listing's changes (Atom feed)