Animation2API: API Recommendation for the Implementation of Android UI Animations
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 num...
Gespeichert in:
Veröffentlicht in: | IEEE transactions on software engineering 2023-09, Vol.49 (9), p.1-18 |
---|---|
Hauptverfasser: | , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | 18 |
---|---|
container_issue | 9 |
container_start_page | 1 |
container_title | IEEE transactions on software engineering |
container_volume | 49 |
creator | Wang, Yihui Liu, Huaxiao Gao, Shanquan Tang, Xiao |
description | 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. |
doi_str_mv | 10.1109/TSE.2023.3294971 |
format | Article |
fullrecord | <record><control><sourceid>proquest_RIE</sourceid><recordid>TN_cdi_crossref_primary_10_1109_TSE_2023_3294971</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><ieee_id>10215056</ieee_id><sourcerecordid>2866481308</sourcerecordid><originalsourceid>FETCH-LOGICAL-c292t-f61cc0bae9fd2c78170417815a7b69ef649c699edc16c550c28a8909cb46df203</originalsourceid><addsrcrecordid>eNpNkEtPwzAQhC0EEqVw58DBEueUtRM7Xm5RxSNSJV7t2UodW6Rq4uKkB_49LqkQlx1pNLO7-gi5ZjBjDPBu-fEw48DTWcoxw5ydkAnDFJNUcDglEwBUiRAKz8lF328AQOS5mJC3omvaamh8x4vX8p7GQd-t8W1ru_rXp84HOnxaWra7rY32MNre0aKrg29quirp35r-kpy5atvbq6NOyerxYTl_ThYvT-W8WCSGIx8SJ5kxsK4supqbXLEcMhZFVPlaonUyQyMRbW2YNEKA4apSCGjWmawdh3RKbse9u-C_9rYf9MbvQxdPaq6kzBRLQcUUjCkTfN8H6_QuxE_Dt2agD-B0BKcP4PQRXKzcjJXGWvsvzpkAIdMfQVJohQ</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2866481308</pqid></control><display><type>article</type><title>Animation2API: API Recommendation for the Implementation of Android UI Animations</title><source>IEL</source><creator>Wang, Yihui ; Liu, Huaxiao ; Gao, Shanquan ; Tang, Xiao</creator><creatorcontrib>Wang, Yihui ; Liu, Huaxiao ; Gao, Shanquan ; Tang, Xiao</creatorcontrib><description>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.</description><identifier>ISSN: 0098-5589</identifier><identifier>EISSN: 1939-3520</identifier><identifier>DOI: 10.1109/TSE.2023.3294971</identifier><identifier>CODEN: IESEDJ</identifier><language>eng</language><publisher>New York: IEEE</publisher><subject>Animation ; API recommendation ; Applications programs ; Codes ; Empirical analysis ; Feature extraction ; Mobile computing ; Operating systems ; UI animation ; User experience ; User Interface ; Visualization ; Web search</subject><ispartof>IEEE transactions on software engineering, 2023-09, Vol.49 (9), p.1-18</ispartof><rights>Copyright IEEE Computer Society 2023</rights><lds50>peer_reviewed</lds50><woscitedreferencessubscribed>false</woscitedreferencessubscribed><citedby>FETCH-LOGICAL-c292t-f61cc0bae9fd2c78170417815a7b69ef649c699edc16c550c28a8909cb46df203</citedby><cites>FETCH-LOGICAL-c292t-f61cc0bae9fd2c78170417815a7b69ef649c699edc16c550c28a8909cb46df203</cites><orcidid>0009-0006-5805-8573 ; 0000-0003-2739-1403 ; 0000-0001-7522-9852 ; 0000-0002-8151-1413</orcidid></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://ieeexplore.ieee.org/document/10215056$$EHTML$$P50$$Gieee$$H</linktohtml><link.rule.ids>314,776,780,792,27901,27902,54733</link.rule.ids><linktorsrc>$$Uhttps://ieeexplore.ieee.org/document/10215056$$EView_record_in_IEEE$$FView_record_in_$$GIEEE</linktorsrc></links><search><creatorcontrib>Wang, Yihui</creatorcontrib><creatorcontrib>Liu, Huaxiao</creatorcontrib><creatorcontrib>Gao, Shanquan</creatorcontrib><creatorcontrib>Tang, Xiao</creatorcontrib><title>Animation2API: API Recommendation for the Implementation of Android UI Animations</title><title>IEEE transactions on software engineering</title><addtitle>TSE</addtitle><description>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.</description><subject>Animation</subject><subject>API recommendation</subject><subject>Applications programs</subject><subject>Codes</subject><subject>Empirical analysis</subject><subject>Feature extraction</subject><subject>Mobile computing</subject><subject>Operating systems</subject><subject>UI animation</subject><subject>User experience</subject><subject>User Interface</subject><subject>Visualization</subject><subject>Web search</subject><issn>0098-5589</issn><issn>1939-3520</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>RIE</sourceid><recordid>eNpNkEtPwzAQhC0EEqVw58DBEueUtRM7Xm5RxSNSJV7t2UodW6Rq4uKkB_49LqkQlx1pNLO7-gi5ZjBjDPBu-fEw48DTWcoxw5ydkAnDFJNUcDglEwBUiRAKz8lF328AQOS5mJC3omvaamh8x4vX8p7GQd-t8W1ru_rXp84HOnxaWra7rY32MNre0aKrg29quirp35r-kpy5atvbq6NOyerxYTl_ThYvT-W8WCSGIx8SJ5kxsK4supqbXLEcMhZFVPlaonUyQyMRbW2YNEKA4apSCGjWmawdh3RKbse9u-C_9rYf9MbvQxdPaq6kzBRLQcUUjCkTfN8H6_QuxE_Dt2agD-B0BKcP4PQRXKzcjJXGWvsvzpkAIdMfQVJohQ</recordid><startdate>20230901</startdate><enddate>20230901</enddate><creator>Wang, Yihui</creator><creator>Liu, Huaxiao</creator><creator>Gao, Shanquan</creator><creator>Tang, Xiao</creator><general>IEEE</general><general>IEEE Computer Society</general><scope>97E</scope><scope>RIA</scope><scope>RIE</scope><scope>AAYXX</scope><scope>CITATION</scope><scope>JQ2</scope><scope>K9.</scope><orcidid>https://orcid.org/0009-0006-5805-8573</orcidid><orcidid>https://orcid.org/0000-0003-2739-1403</orcidid><orcidid>https://orcid.org/0000-0001-7522-9852</orcidid><orcidid>https://orcid.org/0000-0002-8151-1413</orcidid></search><sort><creationdate>20230901</creationdate><title>Animation2API: API Recommendation for the Implementation of Android UI Animations</title><author>Wang, Yihui ; Liu, Huaxiao ; Gao, Shanquan ; Tang, Xiao</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c292t-f61cc0bae9fd2c78170417815a7b69ef649c699edc16c550c28a8909cb46df203</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Animation</topic><topic>API recommendation</topic><topic>Applications programs</topic><topic>Codes</topic><topic>Empirical analysis</topic><topic>Feature extraction</topic><topic>Mobile computing</topic><topic>Operating systems</topic><topic>UI animation</topic><topic>User experience</topic><topic>User Interface</topic><topic>Visualization</topic><topic>Web search</topic><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Wang, Yihui</creatorcontrib><creatorcontrib>Liu, Huaxiao</creatorcontrib><creatorcontrib>Gao, Shanquan</creatorcontrib><creatorcontrib>Tang, Xiao</creatorcontrib><collection>IEEE All-Society Periodicals Package (ASPP) 2005–Present</collection><collection>IEEE All-Society Periodicals Package (ASPP) 1998–Present</collection><collection>IEL</collection><collection>CrossRef</collection><collection>ProQuest Computer Science Collection</collection><collection>ProQuest Health & Medical Complete (Alumni)</collection><jtitle>IEEE transactions on software engineering</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Wang, Yihui</au><au>Liu, Huaxiao</au><au>Gao, Shanquan</au><au>Tang, Xiao</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Animation2API: API Recommendation for the Implementation of Android UI Animations</atitle><jtitle>IEEE transactions on software engineering</jtitle><stitle>TSE</stitle><date>2023-09-01</date><risdate>2023</risdate><volume>49</volume><issue>9</issue><spage>1</spage><epage>18</epage><pages>1-18</pages><issn>0098-5589</issn><eissn>1939-3520</eissn><coden>IESEDJ</coden><abstract>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.</abstract><cop>New York</cop><pub>IEEE</pub><doi>10.1109/TSE.2023.3294971</doi><tpages>18</tpages><orcidid>https://orcid.org/0009-0006-5805-8573</orcidid><orcidid>https://orcid.org/0000-0003-2739-1403</orcidid><orcidid>https://orcid.org/0000-0001-7522-9852</orcidid><orcidid>https://orcid.org/0000-0002-8151-1413</orcidid></addata></record> |
fulltext | fulltext_linktorsrc |
identifier | ISSN: 0098-5589 |
ispartof | IEEE transactions on software engineering, 2023-09, Vol.49 (9), p.1-18 |
issn | 0098-5589 1939-3520 |
language | eng |
recordid | cdi_crossref_primary_10_1109_TSE_2023_3294971 |
source | IEL |
subjects | Animation API recommendation Applications programs Codes Empirical analysis Feature extraction Mobile computing Operating systems UI animation User experience User Interface Visualization Web search |
title | Animation2API: API Recommendation for the Implementation of Android UI Animations |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-02-12T04%3A53%3A26IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_RIE&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Animation2API:%20API%20Recommendation%20for%20the%20Implementation%20of%20Android%20UI%20Animations&rft.jtitle=IEEE%20transactions%20on%20software%20engineering&rft.au=Wang,%20Yihui&rft.date=2023-09-01&rft.volume=49&rft.issue=9&rft.spage=1&rft.epage=18&rft.pages=1-18&rft.issn=0098-5589&rft.eissn=1939-3520&rft.coden=IESEDJ&rft_id=info:doi/10.1109/TSE.2023.3294971&rft_dat=%3Cproquest_RIE%3E2866481308%3C/proquest_RIE%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2866481308&rft_id=info:pmid/&rft_ieee_id=10215056&rfr_iscdi=true |