4.6 Article

Animation2API: API Recommendation for the Implementation of Android UI Animations

Journal

IEEE TRANSACTIONS ON SOFTWARE ENGINEERING
Volume 49, Issue 9, Pages 4411-4428

Publisher

IEEE COMPUTER SOC
DOI: 10.1109/TSE.2023.3294971

Keywords

User interface; UI animation; API recommendation

Ask authors/readers for more resources

This paper proposes a method called Animation2API that mines API knowledge from existing apps and recommends APIs for UI animations. By utilizing a database of mappings and temporal-spatial feature vectors, Animation2API identifies similar animations and provides developers with a list of recommended APIs. The empirical evaluation shows significant improvements in success rate and precision, while user study demonstrates the practicality and effectiveness of Animation2API.
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.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available