UITrans: Seamless UI Translation from Android to HarmonyOS

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gong, Lina, Wang, Chen, Huang, Yujun, Cui, Di, Wei, Mingqiang
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910814620876800
author Gong, Lina
Wang, Chen
Huang, Yujun
Cui, Di
Wei, Mingqiang
author_facet Gong, Lina
Wang, Chen
Huang, Yujun
Cui, Di
Wei, Mingqiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_13693
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle UITrans: Seamless UI Translation from Android to HarmonyOS
Gong, Lina
Wang, Chen
Huang, Yujun
Cui, Di
Wei, Mingqiang
Software Engineering
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.
title UITrans: Seamless UI Translation from Android to HarmonyOS
topic Software Engineering
url https://arxiv.org/abs/2412.13693