The invention relates to a system and a method for automatically adapting a screen to a mobile application UI. The system includes: a mapping module, which maps the original coordinate values and UI-related size and location values to a set of self-defined virtual mapping values, and the mapping values correspond to the original values one to one; a relationship module, which defines a limited set of relationships and describes and divides the relationship between UI controls. Analysis; application module; Used to receive the relationship module after the analysis is completed, a set of available relationships, one by one reflect projection, applied to the original value of the system, the relationship correctly acts on each described control. The invention only needs to describe the relationship between different users, and other work will be completed automatically and easy to use; only focusing on the relationship description and adaptation between UI controls will not have any impact on the business functions of App, and it also improves the development speed of mobile App developers, reduces the repetitive work of adapting screens, and improves the work efficiency.
【技术实现步骤摘要】
一种移动应用UI自动适配屏幕的系统及方法
本专利技术涉及移动app开发领域,更具体地说是指一种移动应用UI自动适配屏幕的系统及方法。
技术介绍
随着移动互联网的蓬勃发展,如今,移动互联网的承载者—移动设备,正在从简单的通话工具逐渐变为一个综合信息处理平台,改变着人们的生产和生活方式。用户在畅享网络时使用着各种形形色色、大小不一的移动设备。据不完全统计,目前移动设备的尺寸已经超过五十种。不同尺寸的设备满足了不同人群需求的同时,也给移动应用开发者增加了不少负担。为满足移动应用在不同尺寸的设备上正常运行的需求,屏幕适配在移动应用开发过程中需要占据大量的工作量,导致开发工作效率低下。
技术实现思路
本专利技术的目的在于克服现有技术的缺陷,提供一种移动应用UI自动适配屏幕的系统及方法。为实现上述目的,本专利技术采用以下技术方案:一种移动应用UI自动适配屏幕的系统,包括:映射模块,用于将原生的坐标值以及UI相关的尺寸、位置值映射到一组自定义的虚拟映射值,映射值与原始值一一对应;与所述映射模块连接的关系模块,所述关系模块用于定义一组有限的关系集合,对UI控件关系进行描述及分析;与所 ...
【技术保护点】
1.一种移动应用UI自动适配屏幕的系统,其特征在于,包括:映射模块,用于将原生的坐标值以及UI相关的尺寸、位置值映射到一组自定义的虚拟映射值,映射值与原始值一一对应;与所述映射模块连接的关系模块,所述关系模块用于定义一组有限的关系集合,对UI控件关系进行描述及分析;与所述关系模块连接的应用模块;所述应用模块用于接收所述关系模块分析完成后的,可用的一组关系,一一进行反映射,应用于系统原始值,关系正确地作用在每一个被描述的控件之上。
【技术特征摘要】
1.一种移动应用UI自动适配屏幕的系统,其特征在于,包括:映射模块,用于将原生的坐标值以及UI相关的尺寸、位置值映射到一组自定义的虚拟映射值,映射值与原始值一一对应;与所述映射模块连接的关系模块,所述关系模块用于定义一组有限的关系集合,对UI控件关系进行描述及分析;与所述关系模块连接的应用模块;所述应用模块用于接收所述关系模块分析完成后的,可用的一组关系,一一进行反映射,应用于系统原始值,关系正确地作用在每一个被描述的控件之上。2.根据权利要求1所述的一种移动应用UI自动适配屏幕的系统,其特征在于,所述关系模块包括关系定义单元、关系描述单元和关系分析单元;所述关系定义单元,用于定义一组有限的关系集合,描述两个UI控件之间的关系;所述关系描述单元,用于定义一组关系描述接口,提供给用户使用;所述关系分析单元,用于对所述关系描述单元描述的关系进行分析。3.根据权利要求2所述的一种移动应用UI自动适配屏幕的系统,其特征在于,所述关系定义单元用于描述两个UI控件之间的上、下、左、右基本关系以及间隔、偏移量的增量关系。4.根据权利要求2所述的一种移动应用UI自动适配屏幕的系统,其特征在于,用户使用所述关系描述单元提供的描述接口,运用所述关系定义单元给定的关系对UI控件进行关系描述。5.根据权利要求4所述的一种移动应用UI自动适配屏幕的系统,其特征在于,所述...
【专利技术属性】
技术研发人员:赵善浮,田欢,温斯嘉,张洪荣,刘智滨,
申请(专利权)人:广东亿迅科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。