arrow
返回

Animation2API: API Recommendation for the Implementation of Android UI Animations

delete2023-09-01
delete3
PRE
AI
Y
Yihui Wang
刘华虓 封面图
刘华虓 (Huaxiao Liu) *
S
Shanquan Gao
X
Xiao Tang
DOI:10.1109/TSE.2023.3294971delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
UI animations, such as card movement and menu slide in/out, provide appealing user experience and enhance the usability of mobile applications. In the process of UI animation implementation, it is difficult for developers to identify suitable APIs for the animation to be implemented from a large number of APIs. Fortunately, the huge app market contains millions of apps, and they can provide valuable data resources for solving this problem. By summarizing the API usage for the same or similar animations in apps, reusable knowledge can be mined for the API recommendation. In this paper, we propose a novel method Animation2API, which mines the knowledge about APIs from existing apps and recommends APIs for UI animations. Different from existing text-based API recommendation approaches, Animation2API takes the UI animation in GIF/video format as query input. Firstly, we construct a database containing mappings between UI animations and APIs by analyzing a broad set of apps. Then, we build a UI animation feature extractor, which can be used to gain temporal-spatial feature vectors of UI animations. By comparing the temporal-spatial feature vectors between UI animations, we identify animations that are similar to the query animation from the database. Finally, we summarize the APIs used for implementing these animations and recommend a list of APIs for developers. The empirical evaluation results show that our method can achieve 82.66% Success rate and outperform the baseline Guru by 230.77% and 184.95% in terms of Precision and Recall when considering twenty APIs. In the user study, we take the scenarios of using web search and ChatGPT to implement animations as baselines, and the results show that participants can complete animations faster (14.54%) after using Animation2API. Furthermore, participants' positive feedbacks on the questionnaire indicate the usefulness of Animation2API.
Keyword:
User interface
UI animation
API recommendation

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

Y
Yanshan University
学者数:
1.7W
论文数: 1.1W
被引数: 1.3W
J
Jilin University
学者数:
8.7W
论文数: 5.6W
被引数: 8.9K
引用论文

引用论文

Surgery of the Horseshoe Kidney
err1952-05-01
err0
PREAI
errOswald S. Lowsley
err分享
err收藏
Phytochemical Profiles, Antioxidant and Antibacterial Activities of 11 Phellinus Mushrooms Collected in Thailand
err2019-03-18
err0
PREAI
errPunjaporn Sunthudlakhar; Pongtip Sithisarn; Bhusita Wannissorn; Siripen Jarikasem; Piyanuch Rojsanga
err分享
err收藏
How Should I Improve the UI of My App?: A Study of User Reviews of Popular Apps in the Google Play
err2021-04-23
err11
PREAI
errChen, Qiuyuan; Chen, Chunyang; Hassan, Safwat; Xing, Zhengchang; Xia, Xin; Hassan, Ahmed E.
err分享
err收藏
Augmenting and structuring user queries to support efficient free-form code search
err2018-01-26
err36
PREAI
errSirres, Raphael; Bissyand, Tegawende F.; Kim, Dongsun; Lo, David; Klein, Jacques; Kim, Kisub; Le Traon, Yves
err分享
err收藏
学者 查看更多内容