4.5 Article

Icon2Code: Recommending code implementations for Android GUI components

期刊

INFORMATION AND SOFTWARE TECHNOLOGY
卷 138, 期 -, 页码 -

出版社

ELSEVIER
DOI: 10.1016/j.infsof.2021.106619

关键词

Android; App development; Collaborative filtering; Icon implementation; API recommendation

资金

  1. Australian Research Council (ARC) [FL190100035, DE200100016, DP200100020]
  2. Australian Research Council [DE200100016, DP200100020] Funding Source: Australian Research Council

向作者/读者索取更多资源

Event-driven programming is crucial in GUI-based software systems like Android apps, but it is challenging to design and implement correctly. This study introduces Icon2Code, an approach that uses a large-scale app database to recommend relevant APIs for implementing Android GUI components based on icons or UI widgets. The results show a high success rate in recommending APIs, indicating the effectiveness and feasibility of Icon2Code in assisting developers.
Context: Event-driven programming plays a crucial role in implementing GUI-based software systems such as Android apps. However, such event-driven code is inherently challenging to design and implement correctly. Despite a significant amount of research to help developers efficiently implement such software, improved approaches are still needed to assist developers in better handling events and associated callback methods. Objective: This work aims at inventing an intelligent recommendation system for helping app developers efficiently and effectively implement Android GUI components. Methods: To achieve the aforementioned objective, we introduce in this work a novel approach called Icon2Code. Given an icon or UI widget provided by designers as input, Icon2Code first searches from a largescale app database to locate similar icons used in existing popular apps. It then learns from the implementation of these similar apps and leverages a collaborative filtering model to select and recommend the most relevant APIs. Results: Our approach can achieve an 81% success rate when only five recommended APIs are considered, and a 94% success rate if twenty results are considered, based on ten-fold cross-validation with a large-scale dataset containing over 45,000 icons and their code implementations. Conclusion: It is feasible to automatically recommend code implementations for Android GUI components and Icon2Code is useful and effective in helping achieve such an objective.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.5
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据