检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王超 沈立炜[1,2,3] 赵文耘 Wang Chao;Shen Liwei;Zhao Wenyun(Software School,Fudan University,Shanghai 201203,China;School of Computer Science,Fudan University,Shanghai 201203,China;Shanghai Key Laboratory of Data Science,Shanghai 201203,China)
机构地区:[1]复旦大学软件学院,上海201203 [2]复旦大学计算机科学技术学院,上海201203 [3]上海市数据科学重点实验室,上海201203
出 处:《计算机应用与软件》2020年第11期1-10,27,共11页Computer Applications and Software
基 金:国家重点研发计划项目(2018YFB1004800)。
摘 要:屏幕触摸是移动设备上最主要的交互方式,为了实现该方式,开发者需要基于基本的onTouchEvent等事件机制编写响应逻辑。安卓官方支持库提供了对触摸事件进行封装的控件。对于不熟悉支持库特性的开发者,将已有代码替换为支持库控件的实现需要一定的学习代价。针对以上需求,提出一种面向触控类支持库的应用代码替换技术。对可替换的目标代码,分别从功能实现、监听器绑定和资源文件这三个方面生成替换建议。实验结果表明,该技术能针对与支持库控件相应的,用基本触控逻辑实现的事件回调方法及其资源布局给出替换建议。Screen touch is the most important interaction mode on mobile devices.In order to implement this method,developers need to write response logic based on basic event mechanism such as onTouchEvent.Android official support libraries provide controls to encapsulate touch events.However,for Android junior developers who are not familiar with the various support libraries,replacing existing code with a support library requires a certain learning cost.In response to the above requirements,this paper proposes a code replacement technique for Android touch-class support library.For replaceable object code,replacement suggestions are generated from three aspects:function implementation,listener binding and resource file.The experimental results show that the proposed technique can give replacement suggestions for the event callback method and resource layout corresponding to the support library widgets.
关 键 词:元模型 安卓静态分析 代码相似分析 代码替换技术
分 类 号:TP3[自动化与计算机技术—计算机科学与技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.21.126.184