WO2014187248A1 - Terminal user interface display method and terminal - Google Patents

Terminal user interface display method and terminal Download PDF

Info

Publication number
WO2014187248A1
WO2014187248A1 PCT/CN2014/077286 CN2014077286W WO2014187248A1 WO 2014187248 A1 WO2014187248 A1 WO 2014187248A1 CN 2014077286 W CN2014077286 W CN 2014077286W WO 2014187248 A1 WO2014187248 A1 WO 2014187248A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
composite
composite control
interface
information
Prior art date
Application number
PCT/CN2014/077286
Other languages
French (fr)
Chinese (zh)
Inventor
陈少华
张更
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014187248A1 publication Critical patent/WO2014187248A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Definitions

  • Each of the controls is separately bound to a monitor when the interface layout file including the composite control is acquired, and the listener is configured to monitor the second user operation.
  • Step 201 Launch the application and enter the application interface.
  • Step 214 Press the Back key to exit the interface adjustment mode.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed in the present invention are a terminal user interface display method and a terminal, said method applying to the terminal and comprising: triggering a first user operation, used to initiate redrawing of the user interface; in response to said first user operation, entering interface adjustment mode and obtaining an interface layout file comprising a composite control; triggering a second user operation, used to initiate touch control of a first control in the redrawn user interface, thus placing said first control in an operable state; in response to said second user operation, and on the basis of said interface layout file comprising said composite control, determining whether said first control is a composite control; if the first control is not a composite control, then executing control stacking with respect to said first control so as to generate a new composite control, or performing a location update with respect to existing composite controls.

Description

一种终端用户界面的显示方法及终端 技术领域  Display method and terminal of terminal user interface
本发明涉及显示技术, 尤其涉及一种终端用户界面的显示方法及终端。 背景技术  The present invention relates to display technologies, and in particular, to a terminal user interface display method and terminal. Background technique
本申请发明人在实现本申请实施例技术方案的过程中, 至少发现现有 技术中存在如下技术问题:  In the process of implementing the technical solutions of the embodiments of the present application, at least the following technical problems exist in the prior art:
近些年来智能手机以及 pad类终端产品的迅速发展, 越来越多的应用程 序, 给我们的日常生活和休闲消遣带来了极大的方便。 如上网, 微博, 地 图等。 而且现在应用程序还在急剧的增加, 应用程序界面显示的内容也越 来越丰富多彩, 应用程序提供给用户的使用选项也越来越多, 这些都使得 手机更加智能化、 更好的服务于人们的日常生活。 控件是应用程序中直接 和用户进行交互的各种各样的按钮、 菜单、 选项框等, 随着应用程序的丰 富, 更多的应用程序带来更多的控件势必过多占用终端用户界面的屏幕显 示资源, 不利于用户操作, 针对这个问题, 相关技术中尚未存在有效的解 决方案。 发明内容  In recent years, the rapid development of smart phones and pad terminal products, more and more applications, has brought great convenience to our daily life and leisure. Such as the net, microblogging, maps and so on. And now the application is still increasing dramatically, the content displayed by the application interface is more and more colorful, and the application options provided by the application are more and more, which makes the mobile phone more intelligent and better served. People's daily lives. Controls are a variety of buttons, menus, tabs, etc. that interact directly with the user in the application. As the application is rich, more applications bring more controls that are bound to take up too much of the end user interface. The screen displays resources, which is not conducive to user operations. For this problem, there is no effective solution in the related technology. Summary of the invention
有鉴于此, 本发明实施例希望提供一种终端用户界面的显示方法及终 端, 能解决占用终端用户界面的屏幕显示资源过多的问题。  In view of this, the embodiment of the present invention is to provide a display method and a terminal of the terminal user interface, which can solve the problem of excessive screen display resources occupying the terminal user interface.
为了解决上述问题, 本发明实施例的技术方案是这样实现的: 一种终端用户界面的显示方法, 应用于终端, 所述终端包括触控显示 单元, 所述触控显示单元包括一显示区域, 所述显示区域用于显示用户界 面, 所述方法包括: 触发第一用户操作, 所述第一用户操作用于启动重绘用户界面; 响应所述第一用户操作, 进入界面调整模式, 获取包括复合控件的界 面布局文件; In order to solve the above problem, the technical solution of the embodiment of the present invention is implemented as follows: A display method of the terminal user interface is applied to the terminal, the terminal includes a touch display unit, and the touch display unit includes a display area. The display area is used to display a user interface, and the method includes: Triggering a first user operation, the first user operation is used to start a redrawing user interface; in response to the first user operation, entering an interface adjustment mode, acquiring an interface layout file including a composite control;
触发第二用户操作, 所述第二用户操作用于在重绘的用户界面中对第 一控件进行触控, 使第一控件处于可操控状态;  Triggering a second user operation, the second user operation is for touching the first control in the redrawed user interface, so that the first control is in a steerable state;
响应所述第二用户操作, 根据所述包括复合控件的界面布局文件判断 所述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述 第一控件执行控件叠加来生成新的复合控件, 或者对所述第一控件执行控 件叠加对已有的复合控件进行位置更新。  Responding to the second user operation, determining, according to the interface layout file that includes the composite control, whether the first control is a composite control, and if the first control is not a composite control, performing a control overlay on the first control To generate a new composite control, or perform a control overlay on the first control to update the existing composite control.
优选地, 所述方法还包括:  Preferably, the method further includes:
在所述获取包括复合控件的界面布局文件时为每一个控件分别绑定监 听器, 所述监听器用于监听所述第二用户操作。  Each of the controls is separately bound to a monitor when the interface layout file including the composite control is acquired, and the listener is configured to monitor the second user operation.
优选地, 所述方法还包括: 触发第二用户操作后, 所述监听器监听到 所述第二用户操作, 从所述包括复合控件的界面布局文件中获取所述第一 控件对应的控件 ID。  Preferably, the method further includes: after triggering the second user operation, the listener monitors the second user operation, and acquires a control ID corresponding to the first control from the interface layout file including the composite control .
优选地, 在所述包括复合控件的界面布局文件中, 复合控件由复合控 件 ID、 复合控件信息、 一组由普通控件构成的独立控件信息组成。  Preferably, in the interface layout file including the composite control, the composite control is composed of a composite control ID, composite control information, and a set of independent control information composed of common controls.
优选地, 所述复合控件 ID包括复合控件标志位 flag、 普通控件 ID、 复 合控件中由普通控件构成的独立控件的数目 N;  Preferably, the composite control ID includes a composite control flag flag, a normal control ID, and a number N of independent controls formed by common controls in the composite control;
所述复合控件信息包括复合控件的尺寸、 位置;  The composite control information includes a size and a position of the composite control;
所述独立控件信息包括: 头部信息、 普通控件信息、 尾部信息组成。 优选地, 所述根据所述包括复合控件的界面布局文件判断所述第一控 件是否为复合控件, 包括:  The independent control information includes: header information, common control information, and tail information. Preferably, the determining, according to the interface layout file that includes the composite control, whether the first control component is a composite control, includes:
查询所述包括复合控件的界面布局文件, 判断所述第一控件对应的控 件 ID是否有所述复合控件 flag, 如果有, 则所述第一控件为复合控件; 否 则, 所述第一控件为普通控件。 Querying the interface layout file including the composite control, determining whether the control ID corresponding to the first control has the composite control flag, and if so, the first control is a composite control; Then, the first control is a normal control.
优选地, 所述对所述第一控件执行控件叠加来生成新的复合控件, 包 括:  Preferably, the performing a control overlay on the first control to generate a new composite control includes:
对所述第一控件进行触控操作, 将处于可操控状态的所述第一控件拖 拽到同样作为普通控件显示在所述用户界面的第二控件上进行控件叠加, 对所述第一控件进行释放触控操作;  Performing a touch operation on the first control, dragging the first control in a steerable state to a second control that is also displayed as a normal control on the user interface, and superimposing the control on the first control Release the touch operation;
在所述第二控件对应的控件 ID前加上复合控件 flag, 在所述第二控件 对应的控件 ID后加上已有的独立控件的数目来生成新的复合控件 ID;将所 述第二控件的信息作为新的复合控件信息; 为新的复合控件中的独立控件 生成一组独立控件信息。  Adding a composite control flag to the control ID corresponding to the second control, adding a number of existing independent controls to the control ID corresponding to the second control to generate a new composite control ID; The information of the control is used as the new composite control information; a set of independent control information is generated for the individual controls in the new composite control.
优选地, 所述对所述第一控件执行控件叠加对已有的复合控件进行位 置更新, 包括:  Preferably, the performing the control overlay on the first control to perform location update on the existing composite control comprises:
对所述第一控件进行触控操作, 将处于可操控状态的所述第一控件拖 拽到显示在所述用户界面已有的复合控件上进行控件叠加, 对所述第一控 件进行释放触控操作;  Performing a touch operation on the first control, dragging the first control in a steerable state to a composite control displayed on the existing interface of the user interface for superimposing the control, and releasing the touch on the first control Control operation
将进行释放触控操作时所述第一控件所处的坐标更新进所述已有的复 合控件的控件信息中, 完成对所述已有的复合控件的位置调整。  The coordinates of the first control when the touch operation is released are updated into the control information of the existing composite control, and the position adjustment of the existing composite control is completed.
一种终端, 所述终端包括触控显示单元, 所述触控显示单元包括一显 示区域, 所述显示区域用于显示用户界面, 所述终端还包括:  A terminal, the terminal includes a touch display unit, the touch display unit includes a display area, the display area is used to display a user interface, and the terminal further includes:
第一触发单元, 配置为触发第一用户操作, 所述第一用户操作用于启 动重绘用户界面;  a first triggering unit configured to trigger a first user operation, where the first user operation is used to initiate a redrawing user interface;
第一响应单元, 配置为响应所述第一用户操作, 进入界面调整模式, 获取包括复合控件的界面布局文件;  The first response unit is configured to, in response to the first user operation, enter an interface adjustment mode, and obtain an interface layout file including a composite control;
第二触发单元, 配置为触发第二用户操作, 所述第二用户操作用于在 重绘的用户界面中对第一控件进行触控, 使第一控件处于可操控状态; 第二响应单元, 配置为响应所述第二用户操作, 根据所述包括复合控 件的界面布局文件判断所述第一控件是否为复合控件, 若所述第一控件不 为复合控件, 则对所述第一控件执行控件叠加来生成新的复合控件, 或者 对所述第一控件执行控件叠加对已有的复合控件进行位置更新。 The second triggering unit is configured to trigger a second user operation, where the second user operation is used to touch the first control in the redrawed user interface, so that the first control is in a steerable state; The second response unit is configured to determine, according to the second user operation, whether the first control is a composite control according to the interface layout file including the composite control, and if the first control is not a composite control, The first control executes the control overlay to generate a new composite control, or performs a control overlay on the first control to update the existing composite control.
优选地, 所述终端还包括:  Preferably, the terminal further includes:
监听绑定单元, 配置为在所述获取包括复合控件的界面布局文件时为 每一个控件分别绑定监听器, 所述监听器用于监听所述第二用户操作。  The listener binding unit is configured to respectively bind a listener for each control when the interface layout file including the composite control is acquired, and the listener is configured to monitor the second user operation.
优选地, 所述终端还包括:  Preferably, the terminal further includes:
获取单元, 配置为触发第二用户操作后, 所述监听器监听到所述第二 用户操作, 从所述包括复合控件的界面布局文件中获取所述第一控件对应 的控件 ID。  And the acquiring unit, configured to trigger the second user operation, the listener listens to the second user operation, and obtains the control ID corresponding to the first control from the interface layout file that includes the composite control.
优选地, 在所述包括复合控件的界面布局文件中, 复合控件由复合控 件 ID、 复合控件信息、 一组由普通控件构成的独立控件信息组成; 其中, 所述复合控件 ID包括复合控件标志位 flag、普通控件 ID、 复合控件中 由普通控件构成的独立控件的数目 N;  Preferably, in the interface layout file including the composite control, the composite control is composed of a composite control ID, composite control information, and a set of independent control information composed of common controls; wherein the composite control ID includes a composite control flag bit. Flag, normal control ID, the number of independent controls composed of common controls in the composite control N;
所述复合控件信息包括复合控件的尺寸、 位置;  The composite control information includes a size and a position of the composite control;
所述独立控件信息包括: 头部信息、 普通控件信息、 尾部信息组成。 优选地, 所述第二响应单元, 还包括:  The independent control information includes: header information, common control information, and tail information. Preferably, the second response unit further includes:
判断子单元, 配置为查询所述包括复合控件的界面布局文件, 判断所 述第一控件对应的控件 ID是否有所述复合控件 flag, 如果有, 则所述第一 控件为复合控件; 否则, 所述第一控件为普通控件。  The determining subunit is configured to query the interface layout file including the composite control, and determine whether the control ID corresponding to the first control has the composite control flag, and if yes, the first control is a composite control; otherwise, The first control is a normal control.
优选地, 所述第二响应单元, 还包括:  Preferably, the second response unit further includes:
第一处理子单元, 配置为对所述第一控件进行触控操作, 将处于可操 控状态的所述第一控件拖拽到同样作为普通控件显示在所述用户界面的第 二控件上进行控件叠加, 对所述第一控件进行释放触控操作; 在所述第二 控件对应的控件 ID前加上复合控件 flag, 在所述第二控件对应的控件 ID 后加上已有的独立控件的数目来生成新的复合控件 ID; 将所述第二控件的 信息作为新的复合控件信息; 为新的复合控件中的独立控件生成一组独立 控件信息。 a first processing sub-unit configured to perform a touch operation on the first control, dragging the first control in a steerable state to a second control that is also displayed as a normal control on the user interface Superimposing, releasing a touch operation on the first control; The control ID corresponding to the control is preceded by a composite control flag, and the number of existing independent controls is added after the control ID corresponding to the second control to generate a new composite control ID; the information of the second control is taken as new Composite control information; generates a set of independent control information for individual controls in a new composite control.
优选地, 所述第二响应单元, 还包括:  Preferably, the second response unit further includes:
第二处理子单元, 配置为对所述第一控件进行触控操作, 将处于可操 控状态的所述第一控件拖拽到显示在所述用户界面已有的复合控件上进行 控件叠加, 对所述第一控件进行释放触控操作; 将进行释放触控操作时所 述第一控件所处的坐标更新进所述已有的复合控件的控件信息中, 完成对 所述已有的复合控件的位置调整。  a second processing sub-unit, configured to perform a touch operation on the first control, dragging the first control in a steerable state to a composite control displayed on the user interface, and superimposing the control, The first control performs a release touch operation; when the touch operation is released, the coordinates of the first control are updated into the control information of the existing composite control, and the existing composite control is completed. Position adjustment.
所述第一触发单元、 所述第一响应单元、 所述第二触发单元、 所述第 二响应单元、 所述监听绑定单元、 所述获取单元、 所述判断子单元、 所述 第一处理子单元、 所述第二处理子单元在执行处理时, 可以釆用中央处理 H ( CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Singnal Processor )或可编程逻辑阵列 ( FPGA, Field - Programmable Gate Array ) 实现。  The first triggering unit, the first response unit, the second triggering unit, the second response unit, the interception binding unit, the obtaining unit, the determining subunit, and the first The processing sub-unit and the second processing sub-unit may perform central processing H (CPU, Central Processing Unit), digital signal processor (DSP, Digital Singnal Processor) or programmable logic array (FPGA, Field) when performing processing. - Programmable Gate Array) implementation.
本发明实施例的方法应用于终端, 所述终端包括触控显示单元, 所述 触控显示单元包括一显示区域, 所述显示区域用于显示用户界面, 所述方 法包括: 触发第一用户操作, 所述第一用户操作用于启动重绘用户界面; 响应所述第一用户操作, 进入界面调整模式, 获取包括复合控件的界面布 局文件; 触发第二用户操作, 所述第二用户操作用于在重绘的用户界面中 对第一控件进行触控, 使第一控件处于可操控状态; 响应所述第二用户操 作, 根据所述包括复合控件的界面布局文件判断所述第一控件是否为复合 控件, 若所述第一控件不为复合控件, 则对所述第一控件执行控件叠加来 生成新的复合控件, 或者对所述第一控件执行控件叠加对已有的复合控件 进行位置更新。 The method of the embodiment of the present invention is applied to a terminal, the terminal includes a touch display unit, the touch display unit includes a display area, and the display area is used to display a user interface, and the method includes: triggering a first user operation The first user operation is used to start redrawing the user interface; in response to the first user operation, entering an interface adjustment mode, acquiring an interface layout file including a composite control; triggering a second user operation, the second user operation Touching the first control in the redrawing user interface to make the first control in a steerable state; and responding to the second user operation, determining, according to the interface layout file including the composite control, whether the first control is a composite control, if the first control is not a composite control, performing a control overlay on the first control to generate a new composite control, or performing a control overlay on the first control on an existing composite control Make a location update.
釆用本发明实施例是启动重绘用户界面, 进入界面调整模式, 在重绘 的用户界面中对第一控件进行触控, 使第一控件处于可操控状态, 判断所 述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述第 一控件执行控件叠加来生成新的复合控件或者对已有的复合控件进行位置 更新, 由于将控件进行叠加, 以复合控件的形式显示在用户界面, 因此, 减少了用户界面上显示的控件的个数, 能提高更多的屏幕显示资源, 从而 能解决占用终端用户界面的屏幕显示资源过多的问题。 附图说明  In the embodiment of the present invention, the redrawing user interface is started, and the interface adjustment mode is entered. The first control is touched in the redrawed user interface, so that the first control is in a steerable state, and it is determined whether the first control is a composite control, if the first control is not a composite control, performing a control overlay on the first control to generate a new composite control or performing a position update on an existing composite control, because the control is superimposed to a composite control The form is displayed in the user interface. Therefore, the number of controls displayed on the user interface is reduced, and more screen display resources can be improved, thereby solving the problem of excessive screen display resources occupying the terminal user interface. DRAWINGS
图 1为本发明实施例的方法实现流程示意图;  1 is a schematic flowchart of a method for implementing a method according to an embodiment of the present invention;
图 2为本发明实施例的模块组成结构示意图;  2 is a schematic structural diagram of a module according to an embodiment of the present invention;
图 3为本发明实施例用户界面调整前至重绘调整后的对比示意图; 图 4为本发明实施例复合控件中独立控件一布局示意图;  3 is a schematic diagram of comparison of user interface adjustment to redraw adjustment according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a layout of an independent control in a composite control according to an embodiment of the present invention;
图 5为本发明实施例控件叠加显示调整的流程图。 具体实施方式  FIG. 5 is a flowchart of superimposed display adjustment of a control according to an embodiment of the present invention. detailed description
下面结合附图对技术方案的实施作进一步的详细描述。  The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
针对终端用户界面的显示方案而言, 随着应用程序越来越多, 界面显 示的内容也越来越丰富多彩, 应用程序提供给用户的使用选项也越来越多, 控件作为应用程序中直接和用户进行交互的各种各样的按钮、 菜单、 选项 框等也越来越多。 而功能强大的应用程序需要更多的控件。 这样一来带来 的问题是: 终端用户界面的屏幕显示区域上的控件就会占用大量屏幕显示 资源, 导致在终端用户界面上除了布局应用程序界面及其控件, 终端用户 界面上可用的屏幕显示区域越来越少, 则通过屏幕显示区域实际显示的有 用信息的空间越来越少, 控件多了反而降低用户体验, 不利于用户操作。 为了解决这个问题, 可以釆用的方式主要是: 1 )釆用大屏幕的手机, 但是手机屏幕尺寸总是有限的, 不可能无限的扩展; 2 )应用程序控件的布 局进行比较合理的设计, 但是由于控件布局的位置分布在各个地方, 会存 在单手操作不便的情况。 For the display scheme of the terminal user interface, as more and more applications are applied, the content displayed by the interface is more and more colorful, and the application options provided by the application are more and more, and the control is directly used in the application. There are more and more buttons, menus, and option boxes that interact with users. And powerful applications require more controls. The problem with this is that: The controls on the screen display area of the terminal user interface will occupy a large amount of screen display resources, resulting in the screen display available on the terminal user interface in addition to the layout application interface and its controls. With fewer and fewer areas, there is less and less space for actually displaying useful information through the screen display area, and more controls reduce the user experience, which is not conducive to user operations. In order to solve this problem, the main methods that can be used are: 1) Using a large-screen mobile phone, but the screen size of the mobile phone is always limited, and it is impossible to expand indefinitely; 2) The layout of the application control is relatively reasonable. However, since the position of the control layout is distributed in various places, there is a case where one-handed operation is inconvenient.
这样就需要寻求一种方式, 使得用户可以将控件进行叠加显示, 并且 移动到自己单手操作习惯区域, 这样将很容易的解决以上问题, 大大的方 便用户的使用, 提高用户体验满意度。 同时用户也可以按照自己的使用习 惯, 将常用的按钮叠加放置在方便触摸的位置, 还可以按照自己的审美观, 定制个性化的应用程序界面。 本发明实施例就是这样一种方式, 本发明实 施例的终端用户界面的显示方法, 其中一种应用场景为: 智能手机类终端 应用程序的控件以控件叠加显示的用户界面显示方案, 是一种新型的终端 应用程序控件的 UI效果, 无需要扩展手机屏幕, 将控件布局的位置以控件 叠加的方式, 也称为复合控件的形式进行显示, 只要将复合控件放置于一 个便于用户操作的位置, 用户就能很容易地进行单手操作, 并且在一定程 度上解决控件越来越多和终端用户界面屏幕显示资源有限的矛盾。  In this way, it is necessary to find a way for the user to superimpose and display the control and move to the one-handed operation habit area, which will easily solve the above problems, greatly facilitating the user's use and improving the user experience satisfaction. At the same time, the user can also place the commonly used buttons in a convenient touch position according to their own usage habits, and also customize the personalized application interface according to their own aesthetics. An embodiment of the present invention is a method for displaying a terminal user interface according to an embodiment of the present invention. One application scenario is: a user interface display solution in which a control of a smart phone type terminal application is superimposed and displayed by a control, which is a The UI effect of the new terminal application control, there is no need to extend the screen of the mobile phone, and the position of the control layout is displayed in the form of a superposition of the control, also called a composite control, as long as the composite control is placed in a position convenient for the user to operate, Users can easily perform one-handed operations, and to some extent resolve the contradiction between more and more controls and limited display resources on the end user interface screen.
本发明实施例的终端用户界面的显示方法, 在所述终端中, 应用程序 以布局 (layout )文件作为显示的依据, 其中布局文件定义了应用程序界面 显示的内容及相对位置信息。 本发明实施例釆用复合控件的形式实现控件 的叠加显示, 复合控件是将原始的控件叠加之后生成的一种新控件。 为了 概念上的区分, 本文把应用程序中原始的控件称为普通控件, 把生成的复 合控件中的每一个控件称为独立控件。  In the terminal of the embodiment of the present invention, the application program uses a layout file as a display basis, wherein the layout file defines the content and relative position information displayed by the application interface. In the embodiment of the invention, the superimposed display of the control is implemented in the form of a composite control, and the composite control is a new control generated by superimposing the original control. For conceptual differentiation, this article refers to the original control in the application as a normal control, and each control in the generated composite control is called a separate control.
本发明实施例的终端用户界面的显示方法, 如图 1 所示, 包括以下步 骤:  The display method of the terminal user interface in the embodiment of the present invention, as shown in FIG. 1, includes the following steps:
步骤 101、触发第一用户操作, 所述第一用户操作用于启动重绘用户界 面。 步骤 102、 响应所述第一用户操作, 进入界面调整模式, 获取包括复合 控件的界面布局文件。 Step 101: Trigger a first user operation, where the first user operation is used to start a redraw user interface. Step 102: In response to the first user operation, enter an interface adjustment mode, and obtain an interface layout file including a composite control.
步骤 103、触发第二用户操作, 所述第二用户操作用于在重绘的用户界 面中对第一控件进行触控, 使第一控件处于可操控状态。  Step 103: Trigger a second user operation, where the second user operation is used to touch the first control in the redrawed user interface, so that the first control is in a steerable state.
步骤 104、 响应所述第二用户操作,根据所述包括复合控件的界面布局 文件判断所述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述第一控件执行控件叠加来生成新的复合控件, 或者对所述第一控 件执行控件叠加对已有的复合控件进行位置更新。  Step 104: In response to the second user operation, determining, according to the interface layout file that includes the composite control, whether the first control is a composite control, and if the first control is not a composite control, then the first control Performing a control overlay to generate a new composite control, or performing a control overlay on the first control to update the existing composite control.
这里, 所述第一用户操作具体为双击事件, 所述第二操作具体为长按 事件, 所述可操控状态具体为悬浮或可移动状态, 则在本发明一优选实施 方式中, 包括以下内容:  Here, the first user operation is specifically a double-click event, and the second operation is specifically a long-press event, and the steerable state is specifically a floating or movable state. In a preferred embodiment of the present invention, the following content is included. :
一、 双击用户界面的当前应用程序界面中空白位置区域, 询问用户是 否要进入界面调整模式;  1. Double-click the blank location area in the current application interface of the user interface to ask the user whether to enter the interface adjustment mode.
二、 进入界面调整模式后, 获取当前界面的布局文件, 并为每一个控 件绑定监听器;  2. After entering the interface adjustment mode, obtain the layout file of the current interface, and bind the listener for each control;
三、 长按重绘界面中的控件, 若该控件已是复合控件, 则只能移动该 复合控件; 若不是复合控件, 可以移动此控件到其他控件上面, 重新生成 复合控件。  3. Press and hold the control in the redraw interface. If the control is already a composite control, you can only move the composite control. If it is not a composite control, you can move the control to other controls to regenerate the composite control.
四、 释放控件后, 重新生成新的复合控件 ID, 重新计算复合控件中的 控件的排列位置, 并为复合控件注册监听器。  4. After releasing the control, regenerate the new composite control ID, recalculate the arrangement position of the controls in the composite control, and register the listener for the composite control.
五、 完成所有调整后, 保存最新的布局文件, 退出界面调整模式。 这里需要指出的是: 所述界面调整模式, 是一种是利用当前界面的布 局文件来进行手动调整后, 生成用户个性化布局的一种模式。 这种模式下 将获得带有复合控件的布局文件,这种新的布局文件可以识别复合控件 ID、 并为该复合控件 ID绑定监听器。 同时为了可以恢复应用程序的原始界面, 在第一次进入界面调整模式时还可以自动生成一个新的布局文件, 与原始 布局文件内容保持一致。 5. After all adjustments have been made, save the latest layout file and exit the interface adjustment mode. It should be pointed out here that: the interface adjustment mode is a mode in which a user's personalized layout is generated by manually adjusting the layout file of the current interface. This mode will get a layout file with a composite control that recognizes the composite control ID and binds the listener to the composite control ID. At the same time, in order to restore the original interface of the application, When you enter the interface adjustment mode for the first time, you can also automatically generate a new layout file that is consistent with the original layout file content.
所述复合控件有别于普通控件, 由控件复合 ID、 复合控件信息、 一组 独立控件信息组成。 控件的复合 ID是由复合控件标志位(flag )、 普通控件 的 ID、 复合控件中独立控件的数目 N组成, 在系统提取控件 ID的时候通 过该 flag来判断是否是复合控件。 复合控件信息存储着复合控件的尺寸、 位置等信息。 独立控件信息由头部信息、 普通控件信息、 尾部信息组成。 独立控件头部信息存储着该独立控件使用的频率, 独立控件的尾部信息存 储着该独立控件在散列显示时候的坐标位置。 每当点击一次复合控件中的 独立控件, 独立控件的头部、 尾部信息都要动态的更新, 即独立控件对应 的信息头部频率增加一次, 然后根据独立控件的最新的使用频率决定是否 更新独立控件的尾部信息。  The composite control is different from the ordinary control, and is composed of a control composite ID, a composite control information, and a set of independent control information. The composite ID of the control is composed of the composite control flag (flag), the ID of the normal control, and the number N of independent controls in the composite control. When the system extracts the control ID, the flag is used to determine whether it is a composite control. The composite control information stores information such as the size and position of the composite control. The independent control information is composed of header information, common control information, and tail information. The independent control header information stores the frequency used by the independent control, and the tail information of the independent control stores the coordinate position of the independent control when the hash is displayed. Whenever you click on a separate control in a composite control, the head and tail information of the independent control must be dynamically updated, that is, the frequency of the information header corresponding to the independent control is increased once, and then whether the update is independent according to the latest usage frequency of the independent control. The tail information of the control.
所述独立控件的头部信息需要统计用户使用独立控件的次数。 第一次 把普通控件叠加到复合控件的时候,把控件信息的使用次数记录为 0,后续 每当系统监听到独立控件的点击 (click ) 事件, 就取得当前独立控件的使 用次数 P, 执行 P=P+ 1的操作。  The header information of the independent control needs to count the number of times the user uses the independent control. When the normal control is superimposed on the composite control for the first time, the number of times the control information is used is recorded as 0. Whenever the system listens to the click event of the independent control, the number of times of the current independent control is obtained, and the execution P is executed. =P+ 1 operation.
所述独立控件的尾部信息需要计算独立控件的坐标位置。 首先获取复 合控件信息中的原始坐标值 (Xo, Yo), 由复合控件 ID获取独立控件的数目 N, 由独立控件尺寸中的最大尺寸作为半径 R。 那么使用频率排名为 n的独 立控件的排列位置 (Xn, Yn), 可以通过以下计算公式得出。  The tail information of the independent control needs to calculate the coordinate position of the independent control. First, the original coordinate value (Xo, Yo) in the composite control information is obtained, and the number N of independent controls is obtained by the composite control ID, and the maximum size in the independent control size is taken as the radius R. Then, the arrangement position (Xn, Yn) of the independent control whose frequency is ranked as n can be obtained by the following calculation formula.
Xn = ( Xo - R*cos ( 360*n/N ) )  Xn = ( Xo - R*cos ( 360*n/N ) )
Yn = ( Yo + R*sin ( 360*n/N ) )  Yn = ( Yo + R*sin ( 360*n/N ) )
本发明实施例的终端, 如图 2所示, 所述终端包括触控显示单元 11, 触控显示单元包括一显示区域, 所述显示区域用于显示用户界面, 所述终 端还包括: 第一触发单元 12, 配置为触发第一用户操作, 所述第一用户操作用于 启动重绘用户界面; 第一响应单元 13, 配置为响应所述第一用户操作, 进 入界面调整模式, 获取包括复合控件的界面布局文件; 第二触发单元 14, 配置为触发第二用户操作, 所述第二用户操作用于在重绘的用户界面中对 第一控件进行触控, 使第一控件处于可操控状态; 第二响应单元 15, 配置 为响应所述第二用户操作, 根据所述包括复合控件的界面布局文件判断所 述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述第 一控件执行控件叠加来生成新的复合控件, 或者对所述第一控件执行控件 叠加对已有的复合控件进行位置更新。 The terminal of the embodiment of the present invention, as shown in FIG. 2, the terminal includes a touch display unit 11 , the touch display unit includes a display area, the display area is used to display a user interface, and the terminal further includes: The first triggering unit 12 is configured to trigger a first user operation, and the first user operation is used to start a redrawing user interface. The first response unit 13 is configured to enter the interface adjustment mode and obtain the response according to the first user operation. The second trigger unit 14 is configured to trigger a second user operation, and the second user operation is used to touch the first control in the redrawed user interface, so that the first control is in the The second response unit 15 is configured to, according to the second user operation, determine whether the first control is a composite control according to the interface layout file including the composite control, if the first control is not a composite The control performs a control overlay on the first control to generate a new composite control, or performs a control overlay on the first control to update the existing composite control.
釆用本发明实施例的有益效果为:  The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例在控件叠加显示应用场景下, 釆用监听控件的长按事件, 当长按某个控件时, 即可提取并拖动控件实现移动; 当移动到另一控件时, 两个控件可以进行叠加为一个复合控件的方式, 能够达到的 UI效果是用户 可以根据自己的使用习惯, 将屏幕多个控件叠加到适合自己操作习惯的位 置上, 即可以节省屏幕空间, 也方便实际使用。  In the embodiment of the present invention, in the application environment of the superimposed display of the control, the long press event of the monitoring control is used, and when a certain control is long pressed, the control can be extracted and dragged to realize the movement; when moving to another control, the two controls are It can be superimposed as a composite control. The UI effect that can be achieved is that the user can superimpose multiple controls on the screen to a position suitable for his own operation habit according to his own usage habits, which can save screen space and facilitate practical use.
下面结合附图对技术方案的实施作进一步的详细描述: 以下以一 应用场景对本发明实施例进行具体阐述。  The implementation of the technical solution is further described in detail below with reference to the accompanying drawings. The embodiments of the present invention are specifically described below in an application scenario.
本实例中, 图 3 为本发明实施例用户界面调整前至重绘调整后的对比 示意图, 图 3中 3a为控件合并前的效果, 图 3中的 3b为控件合并后的效 果, 其中, A、 B、 C、 D、 E、 F、 G为应用程序中的 7个控件, 由于用户 界面调整前 B、 C、 D三个控件的存在导致应用程序实际的显示区域变小, 那么通过将 B、 C、 D这 3个控件与控件 A合并生成一个复合控件后, 则用 户界面调整后应用程序的实际显示区域将会变大。 当点击复合控件的时候, 复合控件中独立控件的排列的效果如图 4所示, 独立控件以复合控件为中 心散列分布, 本应用场景下散列分布呈圓形, 也可以是其他布局形状, 这 种散列分布呈圓形, 既美观又方便用户操作。 In the present example, FIG. 3 is a schematic diagram of comparison between user interface adjustment and redraw adjustment according to an embodiment of the present invention. In FIG. 3, 3a is an effect before the control is merged, and 3b in FIG. 3 is a combined effect of the control, where A , B, C, D, E, F, G are the seven controls in the application. Because the user interface adjusts the existence of the three controls B, C, and D, the actual display area of the application becomes smaller, then B After the three controls, C, and D are combined with the control A to generate a composite control, the actual display area of the application will become larger after the user interface is adjusted. When the composite control is clicked, the effect of the arrangement of the independent controls in the composite control is as shown in FIG. 4, and the independent control is hashed around the composite control. In this application scenario, the hash distribution is circular, and other layout shapes may be used. , This The hash distribution is circular, which is both beautiful and user-friendly.
本应用场景下通过控件叠加的用户界面调整流程如图 5 中所示, 包括 以下步骤:  The user interface adjustment process superimposed by the control in this application scenario is shown in Figure 5, including the following steps:
步骤 201 : 启动应用程序, 进入应用程序界面。  Step 201: Launch the application and enter the application interface.
这里, 在手机屏幕上看可以看到由布局文件定义的各个控件。  Here, you can see the various controls defined by the layout file on the phone screen.
步骤 202: 双击界面空白处, 进入界面调整模式。  Step 202: Double-click the blank space of the interface to enter the interface adjustment mode.
这里, 双击界面的空白处, 系统检测到双击事件后弹出询问用户是否 要执行个性化设置界面的提示框, 用户确定后, 进入界面调整模式。 若用 户选择取消的话, 则返回到界面进行应用程序的正常操作。  Here, double-click the blank space of the interface. After the system detects the double-click event, the system pops up a prompt box asking the user whether to perform the personalized setting interface. After the user determines, enter the interface adjustment mode. If the user chooses to cancel, return to the interface to perform normal operation of the application.
步骤 203: 获取当前界面的布局文件。  Step 203: Obtain a layout file of the current interface.
这里, 通过 android系统提供的 activity Service菝取当前界面的布局文 件。 该布局文件是保存在应用程序的资源文件里面。 获取布局文件后进入 步骤 204。  Here, the activity file provided by the android system captures the layout file of the current interface. The layout file is saved in the application's resource file. After obtaining the layout file, proceed to step 204.
步骤 204: 检查当前界面是否有备份布局文件。  Step 204: Check if the current interface has a backup layout file.
这里, 备份当前布局文件主要是为了后续可以恢复到应用程序原始的 界面, 检查时候直接到应用程序资源下面备份布局文件的文件夹下面搜索 该界面的布局文件的 ID。 如果不存在则执行步骤 205, 存在则转入执行步 骤 206。  Here, the backup of the current layout file is mainly for subsequent recovery to the original interface of the application. When checking, directly search the ID of the layout file of the interface under the folder of the backup layout file under the application resource. If not, step 205 is performed, and if yes, the process proceeds to step 206.
S004: 备份当前界面的布局文件  S004: Back up the layout file of the current interface
在应用程序的资源里面创建一个专门存储备份文件的文件夹, 该文件 夹命名为 layout— backup, 然后把要备份的布局文件复制进来。 操作完成后 进入步骤 206。  Create a folder dedicated to the backup file in the application's resources. The folder is named layout_ backup, and then the layout file to be backed up is copied in. After the operation is completed, the process proceeds to step 206.
步骤 206: 使用当前布局文件重绘调整界面。  Step 206: Redraw the adjustment interface using the current layout file.
这里, 以当前界面的布局文件做为布局文件重绘一个虚拟界面 (即进 入个性化设置界面), 提供给用户一个菜单按钮调整的界面。 界面重绘过程 与应用程序界面显示过程相同。 完成界面重绘后进入步骤 207。 Here, the virtual interface of the current interface is redrawed as a layout file (ie, enters the personalized setting interface), and the user is provided with a menu button adjustment interface. Interface redraw process Same as the application interface display process. After the interface is redrawn, the process proceeds to step 207.
步骤 207: 获取调整界面的控件信息, 并为控件绑定监听器。  Step 207: Obtain control information of the adjustment interface, and bind the listener to the control.
这里, 提取出调整界面所有的控件信息, 并为每个控件绑定一个长按 事件的监听器, 该监听器用于处理用户对该控件的调整操作, 之后等待步 骤 208的长按控件事件产生后进入步骤 209。  Here, all the control information of the adjustment interface is extracted, and a long-press event listener is bound to each control, and the listener is used to process the adjustment operation of the control by the user, and then wait for the long-press control event of step 208 to be generated. Go to step 209.
步骤 208: 长按控件。  Step 208: Press and hold the control.
这里, 当需要调整某个控件的位置时, 长按该控件, 系统监听到用户 的长按操作, 并获取该控件的信息后, 使控件进入步骤 209的状态。  Here, when it is necessary to adjust the position of a certain control, long press the control, the system listens to the user's long press operation, and obtains the information of the control, and then the control enters the state of step 209.
步骤 209: 控件进入悬浮、 可移动状态。  Step 209: The control enters a floating, movable state.
这里, 该控件在界面上处于悬浮状态, 在悬浮状态下可以一直拖动控 件。 随后进入步骤 210。  Here, the control is in a floating state on the interface, and the control can be dragged all the time in the floating state. Then proceed to step 210.
步骤 210: 判断控件是否是复合控件。  Step 210: Determine if the control is a composite control.
这里, 通过控件 ID 中是否有复合控件标志位(flag ) 来判断是否是复 合控件。 若是复合控件, 则此时只能执行移动动作, 不能再进行叠加, 等 待步骤 211执行完毕后进入步骤 212。 若是普通控件, 则可以执行移动、 叠 加动作, 等待用户叠加之后执行步骤 211的释放控件事件后进入步骤 213。  Here, whether there is a composite control flag (flag) in the control ID to determine whether it is a composite control. If it is a composite control, only the movement action can be performed at this time, and the superposition cannot be performed again. After the execution of the step 211 is completed, the process proceeds to step 212. If it is a normal control, the movement and the superimposing action can be performed, and after the user superimposes, the release control event of step 211 is executed, and then the process proceeds to step 213.
步骤 211 : 释放控件。  Step 211: Release the control.
这里,拖动复合控件至理想位置后即可释放控件,进入步骤 212,或者, 也可以拖动普通控件到要叠加的控件上叠加后释放控件, 进入步骤 213。  Here, after dragging the composite control to the ideal position, the control can be released, and the process proceeds to step 212. Alternatively, the normal control can be dragged onto the control to be superimposed to release the control, and the process proceeds to step 213.
步骤 212: 计算复合控件新的位置。  Step 212: Calculate the new location of the composite control.
这里, 将释放控件时的坐标(Xend、 Yend ) 更新进复合控件的控件信 息中去, 完成对该控件的位置调整。 如果需要继续调控控件位置, 则重新 进入步骤 208, 也可等待执行步骤 214后退出界面调整, 返回步骤 201。  Here, the coordinates (Xend, Yend) when the control is released are updated into the control information of the composite control to complete the position adjustment of the control. If it is necessary to continue to control the position of the control, step 208 is re-entered, and the step 214 may be awaited to exit the interface adjustment, and the process returns to step 201.
步骤 213: 生成复合控件并为其注册监听器。  Step 213: Generate a composite control and register a listener for it.
这里, 在被叠加控件的 ID前方加上复合控件的标志(flag )、 后方加上 现有的独立控件的数目生成复合控件的 ID; 将被叠加控件的信息作为复合 控件信息; 为复合控件中的独立控件生成一组独立控件信息。 完成后为生 成的复合控件注册监听器, 响应用户后续的正常操作。 Here, the flag of the composite control (flag) is added in front of the ID of the superimposed control, plus The number of existing independent controls generates the ID of the composite control; the information of the superimposed control is used as the composite control information; and a set of independent control information is generated for the independent control in the composite control. After completion, register the listener for the generated composite control, in response to the user's subsequent normal operation.
步骤 214: 按返回键, 退出界面调整模式。  Step 214: Press the Back key to exit the interface adjustment mode.
这里, 完成对所有控件的位置调整后按手机返回键退出界面调整模式, 并将新的布局文件保存下来作为后面点击应用程序的界面。 返回至步骤 201。  Here, after adjusting the position of all the controls, press the phone back button to exit the interface adjustment mode, and save the new layout file as the interface for clicking the application later. Return to step 201.
这里, 复合控件中各个独立控件的排列的效果示意图如图 4所示。 图 4中 A、 B、 C、 D是 4个独立控件, 图 4展示的是将 A、 B、 C、 D叠加成 一个复合控件之后, 在正常运行应用的界面再点击复合控件时所展开的效 果图。 这些独立控件散列分布在以复合控件为中心、 以控件尺寸中最大尺 寸为半径的圓上。 由于大部分用户触摸到 A所在位置更加的方便, 所以我 们默认的将 A所处的位置设为第一优先位置, 即将统计到使用频率最高的 控件放置在这个位置。 其余控件则按照统计频率依次顺时针排列。 本实例 中复合控件的独立控件的个数不宜过多, 且排列方式不局限与圓形, 也可 以是矩形等其他的排列方式。  Here, the effect of the arrangement of the individual controls in the composite control is shown in Figure 4. In Figure 4, A, B, C, and D are four independent controls. Figure 4 shows the expansion of A, B, C, and D into a composite control. Effect chart. These independent control hashes are distributed on a circle centered on the composite control and radiused by the largest dimension in the control's dimensions. Since most users touch A's location more conveniently, we default to the location where A is the first priority, and the most frequently used controls are placed in this location. The remaining controls are arranged clockwise in order of statistical frequency. In this example, the number of independent controls of the composite control should not be too much, and the arrangement is not limited to a circle, and may be other arrangements such as a rectangle.
本发明实施例所述集成的模块如果以软件功能模块的形式实现并作为 独立的产品销售或使用时, 也可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施例的技术方案本质上或者说对现有技术做出 贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一 个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算 机、 服务器、 或者网络设备等)执行本发明各个实施例所述方法的全部或 部分。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory ), 随机存取存 4诸器 ( RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。 这样, 本发明实施例不限 制于任何特定的硬件和软件结合。 The integrated modules described in the embodiments of the present invention may also be stored in a computer readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is implemented to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like. The medium of the code. Thus, the embodiment of the present invention is not limited Made from any specific combination of hardware and software.
相应的, 本发明实施例还提供一种计算机存储介质, 其中存储有计算 机程序, 该计算机程序用于执行本发明实施例的终端用户界面的显示方法。  Correspondingly, the embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the display method of the terminal user interface in the embodiment of the present invention.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Industrial applicability
釆用本发明实施例是启动重绘用户界面, 进入界面调整模式, 在重绘 的用户界面中对第一控件进行触控, 使第一控件处于可操控状态, 判断所 述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述第 一控件执行控件叠加来生成新的复合控件或者对已有的复合控件进行位置 更新, 由于将控件进行叠加, 以复合控件的形式显示在用户界面, 因此, 减少了用户界面上显示的控件的个数, 能提高更多的屏幕显示资源, 从而 能解决占用终端用户界面的屏幕显示资源过多的问题。  In the embodiment of the present invention, the redrawing user interface is started, and the interface adjustment mode is entered. The first control is touched in the redrawed user interface, so that the first control is in a steerable state, and it is determined whether the first control is a composite control, if the first control is not a composite control, performing a control overlay on the first control to generate a new composite control or performing a position update on an existing composite control, because the control is superimposed to a composite control The form is displayed in the user interface. Therefore, the number of controls displayed on the user interface is reduced, and more screen display resources can be improved, thereby solving the problem of excessive screen display resources occupying the terminal user interface.

Claims

权利要求书 claims
1、 一种终端用户界面的显示方法, 应用于终端, 所述终端包括触控显 示单元, 所述触控显示单元包括一显示区域, 所述显示区域用于显示用户 界面, 所述方法包括: 1. A terminal user interface display method, applied to a terminal, the terminal includes a touch display unit, the touch display unit includes a display area, the display area is used to display the user interface, the method includes:
触发第一用户操作, 所述第一用户操作用于启动重绘用户界面; 响应所述第一用户操作, 进入界面调整模式, 获取包括复合控件的界 面布局文件; Trigger a first user operation, the first user operation is used to start redrawing the user interface; In response to the first user operation, enter the interface adjustment mode, and obtain the interface layout file including the composite control;
触发第二用户操作, 所述第二用户操作用于在重绘的用户界面中对第 一控件进行触控, 使第一控件处于可操控状态; Triggering a second user operation, the second user operation is used to touch the first control in the redrawn user interface, so that the first control is in a controllable state;
响应所述第二用户操作, 根据所述包括复合控件的界面布局文件判断 所述第一控件是否为复合控件, 若所述第一控件不为复合控件, 则对所述 第一控件执行控件叠加来生成新的复合控件, 或者对所述第一控件执行控 件叠加对已有的复合控件进行位置更新。 In response to the second user operation, determine whether the first control is a composite control according to the interface layout file including a composite control, and if the first control is not a composite control, perform control overlay on the first control To generate a new composite control, or perform control overlay on the first control to update the position of the existing composite control.
2、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 2. The method according to claim 1, wherein the method further includes:
在所述获取包括复合控件的界面布局文件时为每一个控件分别绑定监 听器, 所述监听器用于监听所述第二用户操作。 When obtaining the interface layout file including the composite control, a listener is bound to each control respectively, and the listener is used to monitor the second user operation.
3、 根据权利要求 2所述的方法, 其中, 所述方法还包括: 触发第二用 户操作后, 所述监听器监听到所述第二用户操作, 从所述包括复合控件的 界面布局文件中获取所述第一控件对应的控件 ID。 3. The method according to claim 2, wherein the method further includes: after triggering the second user operation, the listener listens to the second user operation, and obtains the information from the interface layout file including the composite control. Obtain the control ID corresponding to the first control.
4、 根据权利要求 3所述的方法, 其中, 在所述包括复合控件的界面布 局文件中, 复合控件由复合控件 ID、 复合控件信息、 一组由普通控件构成 的独立控件信息组成。 4. The method according to claim 3, wherein in the interface layout file including a composite control, the composite control consists of a composite control ID, composite control information, and a group of independent control information composed of ordinary controls.
5、 根据权利要求 4所述的方法, 其中, 所述复合控件 ID包括复合控 件标志位 flag、 普通控件 ID、 复合控件中由普通控件构成的独立控件的数 目 N; 所述复合控件信息包括复合控件的尺寸、 位置; 5. The method according to claim 4, wherein the composite control ID includes a composite control flag, a common control ID, and the number N of independent controls composed of common controls in the composite control; The composite control information includes the size and position of the composite control;
所述独立控件信息包括: 头部信息、 普通控件信息、 尾部信息组成。 The independent control information includes: header information, common control information, and tail information.
6、 根据权利要求 5所述的方法, 其中, 所述根据所述包括复合控件的 界面布局文件判断所述第一控件是否为复合控件, 包括: 6. The method according to claim 5, wherein the determining whether the first control is a composite control based on the interface layout file including a composite control includes:
查询所述包括复合控件的界面布局文件, 判断所述第一控件对应的控 件 ID是否有所述复合控件 flag, 如果有, 则所述第一控件为复合控件; 否 则, 所述第一控件为普通控件。 Query the interface layout file including the composite control, and determine whether the control ID corresponding to the first control has the composite control flag. If so, the first control is a composite control; otherwise, the first control is Ordinary controls.
7、 根据权利要求 5所述的方法, 其中, 所述对所述第一控件执行控件 叠加来生成新的复合控件, 包括: 7. The method according to claim 5, wherein performing control superposition on the first control to generate a new composite control includes:
对所述第一控件进行触控操作, 将处于可操控状态的所述第一控件拖 拽到同样作为普通控件显示在所述用户界面的第二控件上进行控件叠加, 对所述第一控件进行释放触控操作; Perform a touch operation on the first control, drag the first control in a controllable state to a second control that is also displayed as an ordinary control on the user interface, and perform control overlay on the first control. Perform a release touch operation;
在所述第二控件对应的控件 ID前加上复合控件 flag, 在所述第二控件 对应的控件 ID后加上已有的独立控件的数目来生成新的复合控件 ID;将所 述第二控件的信息作为新的复合控件信息; 为新的复合控件中的独立控件 生成一组独立控件信息。 Add the composite control flag before the control ID corresponding to the second control, and add the number of existing independent controls after the control ID corresponding to the second control to generate a new composite control ID; The information of the control is used as the new composite control information; a set of independent control information is generated for the independent controls in the new composite control.
8、 根据权利要求 5所述的方法, 其中, 所述对所述第一控件执行控件 叠加对已有的复合控件进行位置更新, 包括: 8. The method according to claim 5, wherein: performing control superposition on the first control to update the position of an existing composite control includes:
对所述第一控件进行触控操作, 将处于可操控状态的所述第一控件拖 拽到显示在所述用户界面已有的复合控件上进行控件叠加, 对所述第一控 件进行释放触控操作; Perform a touch operation on the first control, drag the first control in a controllable state to an existing composite control displayed on the user interface for control overlay, and perform a release touch operation on the first control. control operation;
将进行释放触控操作时所述第一控件所处的坐标更新进所述已有的复 合控件的控件信息中, 完成对所述已有的复合控件的位置调整。 The coordinates of the first control when the touch release operation is performed are updated into the control information of the existing composite control, thereby completing the position adjustment of the existing composite control.
9、 一种终端, 所述终端包括触控显示单元, 所述触控显示单元包括一 显示区域, 所述显示区域用于显示用户界面, 所述终端还包括: 第一触发单元, 配置为触发第一用户操作, 所述第一用户操作用于启 动重绘用户界面; 9. A terminal, the terminal includes a touch display unit, the touch display unit includes a display area, the display area is used to display a user interface, the terminal also includes: The first triggering unit is configured to trigger a first user operation, the first user operation being used to start redrawing the user interface;
第一响应单元, 配置为响应所述第一用户操作, 进入界面调整模式, 获取包括复合控件的界面布局文件; The first response unit is configured to respond to the first user operation, enter the interface adjustment mode, and obtain the interface layout file including the composite control;
第二触发单元, 配置为触发第二用户操作, 所述第二用户操作用于在 重绘的用户界面中对第一控件进行触控, 使第一控件处于可操控状态; 第二响应单元, 配置为响应所述第二用户操作, 根据所述包括复合控 件的界面布局文件判断所述第一控件是否为复合控件, 若所述第一控件不 为复合控件, 则对所述第一控件执行控件叠加来生成新的复合控件, 或者 对所述第一控件执行控件叠加对已有的复合控件进行位置更新。 The second trigger unit is configured to trigger a second user operation, the second user operation is used to touch the first control in the redrawn user interface, so that the first control is in a controllable state; the second response unit, Configured to respond to the second user operation, determine whether the first control is a composite control according to the interface layout file including a composite control, and if the first control is not a composite control, perform execution on the first control Control overlay is used to generate a new composite control, or control overlay is performed on the first control to update the position of an existing composite control.
10、 根据权利要求 9所述的终端, 其中, 所述终端还包括: 10. The terminal according to claim 9, wherein the terminal further includes:
监听绑定单元, 配置为在所述获取包括复合控件的界面布局文件时为 每一个控件分别绑定监听器, 所述监听器用于监听所述第二用户操作。 The listening binding unit is configured to bind a listener to each control when the interface layout file including the composite control is obtained, and the listener is used to monitor the second user operation.
11、 根据权利要求 10所述的终端, 其中, 所述终端还包括: 11. The terminal according to claim 10, wherein the terminal further includes:
获取单元, 配置为触发第二用户操作后, 所述监听器监听到所述第二 用户操作, 从所述包括复合控件的界面布局文件中获取所述第一控件对应 的控件 ID。 The acquisition unit is configured to, after triggering the second user operation, the listener listens to the second user operation and obtains the control ID corresponding to the first control from the interface layout file including the composite control.
12、 根据权利要求 11所述的终端, 其中, 在所述包括复合控件的界面 布局文件中, 复合控件由复合控件 ID、 复合控件信息、 一组由普通控件构 成的独立控件信息组成; 其中, 12. The terminal according to claim 11, wherein in the interface layout file including a composite control, the composite control consists of a composite control ID, composite control information, and a group of independent control information composed of ordinary controls; wherein,
所述复合控件 ID包括复合控件标志位 flag、普通控件 ID、 复合控件中 由普通控件构成的独立控件的数目 N; The composite control ID includes the composite control flag flag, the common control ID, and the number N of independent controls composed of common controls in the composite control;
所述复合控件信息包括复合控件的尺寸、 位置; The composite control information includes the size and position of the composite control;
所述独立控件信息包括: 头部信息、 普通控件信息、 尾部信息组成。 The independent control information includes: header information, common control information, and tail information.
13、根据权利要求 12所述的终端, 其中, 所述第二响应单元, 还包括: 判断子单元, 配置为查询所述包括复合控件的界面布局文件, 判断所 述第一控件对应的控件 ID是否有所述复合控件 flag, 如果有, 则所述第一 控件为复合控件; 否则, 所述第一控件为普通控件。 13. The terminal according to claim 12, wherein the second response unit further includes: The judgment subunit is configured to query the interface layout file including the composite control, and judge whether the control ID corresponding to the first control has the composite control flag. If so, the first control is a composite control; otherwise, The first control is an ordinary control.
14、根据权利要求 12所述的终端, 其中, 所述第二响应单元, 还包括: 第一处理子单元, 配置为对所述第一控件进行触控操作, 将处于可操 控状态的所述第一控件拖拽到同样作为普通控件显示在所述用户界面的第 二控件上进行控件叠加, 对所述第一控件进行释放触控操作; 在所述第二 控件对应的控件 ID前加上复合控件 flag, 在所述第二控件对应的控件 ID 后加上已有的独立控件的数目来生成新的复合控件 ID; 将所述第二控件的 信息作为新的复合控件信息; 为新的复合控件中的独立控件生成一组独立 控件信息。 14. The terminal according to claim 12, wherein the second response unit further includes: a first processing subunit configured to perform a touch operation on the first control, and change the controllable state to the first control unit. Drag the first control to the second control that is also displayed as a normal control on the user interface for control overlay, and perform a release touch operation on the first control; add before the control ID corresponding to the second control Composite control flag, add the number of existing independent controls to the control ID corresponding to the second control to generate a new composite control ID; use the information of the second control as the new composite control information; for the new Independent controls within a composite control generate a set of independent control information.
15、根据权利要求 12所述的终端, 其中, 所述第二响应单元, 还包括: 第二处理子单元, 配置为对所述第一控件进行触控操作, 将处于可操 控状态的所述第一控件拖拽到显示在所述用户界面已有的复合控件上进行 控件叠加, 对所述第一控件进行释放触控操作; 将进行释放触控操作时所 述第一控件所处的坐标更新进所述已有的复合控件的控件信息中, 完成对 所述已有的复合控件的位置调整。 15. The terminal according to claim 12, wherein the second response unit further includes: a second processing subunit configured to perform a touch operation on the first control, and change the controllable state to Drag the first control to the existing composite control displayed on the user interface for control overlay, perform a release touch operation on the first control; and set the coordinates of the first control when the release touch operation is performed. Update the control information of the existing composite control to complete the position adjustment of the existing composite control.
PCT/CN2014/077286 2013-12-13 2014-05-12 Terminal user interface display method and terminal WO2014187248A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310689086.9 2013-12-13
CN201310689086.9A CN104717349A (en) 2013-12-13 2013-12-13 Display method of terminal user interface and terminal

Publications (1)

Publication Number Publication Date
WO2014187248A1 true WO2014187248A1 (en) 2014-11-27

Family

ID=51932826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077286 WO2014187248A1 (en) 2013-12-13 2014-05-12 Terminal user interface display method and terminal

Country Status (2)

Country Link
CN (1) CN104717349A (en)
WO (1) WO2014187248A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299960A (en) * 2017-07-24 2019-02-01 Tcl集团股份有限公司 Monitor the method, apparatus and computer readable storage medium, terminal device of advertisement

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2017022031A1 (en) * 2015-07-31 2018-02-22 マクセル株式会社 Information terminal equipment
CN106383642A (en) * 2016-09-09 2017-02-08 北京金山安全软件有限公司 Display method and related device for control of media playing interface
CN108228207B (en) * 2016-12-22 2021-06-04 珠海金山办公软件有限公司 Control state updating method and device
CN107665072A (en) * 2017-09-14 2018-02-06 珠海市魅族科技有限公司 A kind of display methods, the control method and device of operable object
CN112313623A (en) 2018-06-25 2021-02-02 华为技术有限公司 User interface display method of terminal and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667098A (en) * 2005-12-30 2010-03-10 苹果公司 Portable electronic device with interface reconfiguration mode
CN102387246A (en) * 2010-09-01 2012-03-21 Lg电子株式会社 Mobile terminal and method of managing display of an icon in a mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1483655A1 (en) * 2002-03-08 2004-12-08 Nokia Corporation Method and deice for providing a representation of applications for display on an electronic device
CN103164204B (en) * 2011-12-15 2016-02-17 北京新媒传信科技有限公司 Based on the generation method and system of the user interface of Symbian system
CN103164115A (en) * 2013-03-29 2013-06-19 惠州Tcl移动通信有限公司 Method and terminal for moving application icon to document folder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667098A (en) * 2005-12-30 2010-03-10 苹果公司 Portable electronic device with interface reconfiguration mode
CN102387246A (en) * 2010-09-01 2012-03-21 Lg电子株式会社 Mobile terminal and method of managing display of an icon in a mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299960A (en) * 2017-07-24 2019-02-01 Tcl集团股份有限公司 Monitor the method, apparatus and computer readable storage medium, terminal device of advertisement
CN109299960B (en) * 2017-07-24 2024-02-02 Tcl科技集团股份有限公司 Method and device for monitoring advertisement, computer readable storage medium and terminal equipment

Also Published As

Publication number Publication date
CN104717349A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
WO2014187248A1 (en) Terminal user interface display method and terminal
JP6328947B2 (en) Screen display method for multitasking operation and terminal device supporting the same
WO2014032431A1 (en) Terminal device and method for quickly starting program
TWI573074B (en) Method and apparatus for providing access to functions from a locked screen, and related computer program product
KR102269481B1 (en) Method for screen sharing with devices and device thereof
US10013098B2 (en) Operating method of portable terminal based on touch and movement inputs and portable terminal supporting the same
US9213467B2 (en) Interaction method and interaction device
WO2017088131A1 (en) Method and apparatus for rapidly dividing screen, electronic device, display interface and storage medium
KR102429740B1 (en) Method and apparatus for precessing touch event
WO2013185703A1 (en) Method, device, and terminal for adjusting position of interface control
US20130009915A1 (en) Controlling responsiveness to user inputs on a touch-sensitive display
EP3008559B1 (en) Method and apparatus for providing graphic user interface
CN105378597B (en) Method and its electronic device for display
WO2013095679A1 (en) Computing system utilizing coordinated two-hand command gestures
WO2013189396A2 (en) Method and system for moving application icon on touchscreen
WO2015106510A1 (en) Screen splitting method and device for applications, intelligent terminal and storage medium
KR20130005733A (en) Method for operating touch navigation and mobile terminal supporting the same
WO2014121622A1 (en) Method for mobile terminal returning to main screen, mobile terminal and storage medium thereof
US20140013257A1 (en) Method and Terminal Device for File Processing Based on User Interface
WO2014019207A1 (en) Widget processing method, device and mobile terminal
CN105892896A (en) Desktop switching method and terminal
US9958967B2 (en) Method and electronic device for operating electronic pen
WO2016173307A1 (en) Message copying method and device, and smart terminal
US20160192117A1 (en) Data transmission method and first electronic device
US20170351374A1 (en) Input device control using distance

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14801456

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14801456

Country of ref document: EP

Kind code of ref document: A1