arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.13693cs.SE
收藏

UITrans:从 Android 到 HarmonyOS 的无缝 UI 翻译

UITrans: Seamless UI Translation from Android to HarmonyOS

Lina Gong, Chen Wang, Yujun Huang, Di Cui, Mingqiang Wei

AI总结:

UITrans 是首个 Android 到 HarmonyOS 的自动化 UI 翻译工具,通过 LLM 驱动的多智能体反思协作框架将 Android XML 布局转换为 ArkUI 布局,并在组件、页面和项目级均取得超过 89% 的翻译成功率。

摘要:

无缝用户界面(UI)翻译已成为现代移动开发者的关键技术,用于应对由于布局结构和开发范式存在根本差异而需要为 Android 和 HarmonyOS 平台分别开发 UI 应用的挑战。本文提出 UITrans,这是首个面向 Android 到 HarmonyOS 的自动化 UI 翻译工具。UITrans 利用 LLM 驱动的多智能体反思协作框架,将 Android XML 布局转换为 HarmonyOS ArkUI 布局。它不仅将组件级和页面级元素映射到 ArkUI 等价实现,还处理项目级挑战,包括复杂布局和交互逻辑。我们对六个 Android 应用的评估表明,UITrans 在组件级、页面级和项目级的翻译成功率分别超过 90.1%、89.3% 和 89.2%。UITrans 可在 https://github.com/OpenSELab/UITrans 获取,演示视频可在 https://www.youtube.com/watch?v=iqKOSmCnJG0 观看。

英文摘要:

Seamless user interface (i.e., UI) translation has emerged as a pivotal technique for modern mobile developers, addressing the challenge of developing separate UI applications for Android and HarmonyOS platforms due to fundamental differences in layout structures and development paradigms. In this paper, we present UITrans, the first automated UI translation tool designed for Android to HarmonyOS. UITrans leverages an LLM-driven multi-agent reflective collaboration framework to convert Android XML layouts into HarmonyOS ArkUI layouts. It not only maps component-level and page-level elements to ArkUI equivalents but also handles project-level challenges, including complex layouts and interaction logic. Our evaluation of six Android applications demonstrates that our UITrans achieves translation success rates of over 90.1%, 89.3%, and 89.2% at the component, page, and project levels, respectively. UITrans is available at https://github.com/OpenSELab/UITrans and the demo video can be viewed at https://www.youtube.com/watch?v=iqKOSmCnJG0.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑