WO2022252865A1 - 微件的显示方法、装置、终端及计算机可读存储介质 - Google Patents

微件的显示方法、装置、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2022252865A1
WO2022252865A1 PCT/CN2022/088303 CN2022088303W WO2022252865A1 WO 2022252865 A1 WO2022252865 A1 WO 2022252865A1 CN 2022088303 W CN2022088303 W CN 2022088303W WO 2022252865 A1 WO2022252865 A1 WO 2022252865A1
Authority
WO
WIPO (PCT)
Prior art keywords
container
widget
side length
widgets
desktop
Prior art date
Application number
PCT/CN2022/088303
Other languages
English (en)
French (fr)
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 WO2022252865A1 publication Critical patent/WO2022252865A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present application relate to the field of information processing, and in particular to a widget display method, device, terminal, and computer-readable storage medium.
  • the screen of the mobile terminal is relatively small, but the browser occupies limited screen resources, resulting in a poor user experience when surfing the Internet on the mobile terminal.
  • the widget (Widget) application framework is very suitable for the mobile terminal. Widgets can not only run independently of the browser, effectively use the mobile terminal screen, but also provide faster, more direct and convenient access to the mobile Internet, bringing good presentation methods and Internet experience to end users. Widgets have the characteristics of small size, light weight, low development cost, based on standard Web technology, low development threshold, many potential developers, low coupling with the operating system, and complete functions. Among them, it is easy to develop, display, personalize, interact, and consume Features such as less traffic make it very suitable for the mobile Internet.
  • the user can long press on the terminal desktop, pop up the setting page, select the widget, add the application program containing the widget, etc., and the widget can be displayed.
  • the location and form of the pieces are limited.
  • Embodiments of the present application provide a widget display method, device, terminal, and computer-readable storage medium.
  • An embodiment of the present application provides a method for displaying widgets, including: detecting widgets contained in applications on the desktop of a terminal; loading the detected widgets into a first container; The second side length of the desktop is the same; load the first container to the non-desktop interface; adjust the first side length of the first container after the widget is loaded according to the third side length of the non-desktop interface; wherein, the adjusted first The length of the first side of the container is the same as the length of the third side of the non-desktop interface; and the widget is displayed on the non-desktop interface.
  • the embodiment of the present application also provides a display device for widgets, including: a detection module configured to detect widgets contained in applications on the terminal desktop; a loading module configured to load the detected widgets to the first In the container; the first side length of the first container is the same as the second side length of the terminal desktop; the placement module is set to load the first container to the non-desktop interface; the adjustment module is set to be based on the third side length of the non-desktop interface Side length, adjust the first side length of the first container after the widget is loaded; wherein, the adjusted first side length of the first container is the same as the third side length of the non-desktop interface; the display module is set to be in the non-desktop interface The widget is displayed on the desktop interface.
  • a detection module configured to detect widgets contained in applications on the terminal desktop
  • a loading module configured to load the detected widgets to the first In the container
  • the first side length of the first container is the same as the second side length of the terminal desktop
  • the placement module is set to load
  • An embodiment of the present application also provides a terminal, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions that can be executed by the at least one processor , the instructions are executed by the at least one processor, so that the at least one processor can execute the above widget display method.
  • the embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned widget display method is realized.
  • FIG. 1 is a flow chart of a widget display method provided according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a widget display method provided according to an embodiment of the present application after implementation
  • Fig. 3 is a flow chart of a widget display method provided according to another embodiment of the present application.
  • Fig. 4a is a schematic diagram of a display interface according to an embodiment of the present application.
  • Fig. 4b is a schematic diagram of another display interface according to an embodiment of the present application.
  • FIG. 5 is a display device for widgets provided according to an embodiment of the present application.
  • Fig. 6 is a terminal provided according to an embodiment of the present application.
  • first and second in the embodiments of the present application are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • the terms “including” and “having” and any variations thereof are intended to cover non-exclusive inclusion. For example, a system, product or equipment comprising a series of components or units is not limited to the listed components or units, but optionally also includes components or units not listed, or optionally also includes Other parts or units inherent in equipment.
  • “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
  • An embodiment of the present application relates to a widget display method, which is applied to a mobile terminal. The specific process is shown in Figure 1.
  • Step 101 detecting widgets contained in applications on the terminal desktop
  • Step 102 loading the detected widget into the first container; the first side length of the first container is the same as the second side length of the terminal desktop;
  • Step 103 loading the first container to the non-desktop interface
  • Step 104 according to the third side length of the non-desktop interface, adjust the first side length of the first container after the widget is loaded; wherein, the adjusted first side length of the first container and the third side length of the non-desktop interface same;
  • Step 105 displaying the widget on a non-desktop interface.
  • the desktop is the interface used to display the third-party applications installed on the current terminal, which is displayed directly after the terminal is unlocked, or the terminal is finally displayed after multiple return operations; non-desktop interfaces include negative one screen, lock screen and / or other application program interfaces, etc., the non-desktop interface is an interface that is inconsistent with the display format of the desktop, and the display format inconsistency includes but is not limited to different interface sizes and different sizes of programs that can be displayed on the interface; the first container is a virtual container for displaying widgets
  • the resource space is a container whose at least first side length is adjustable, and the initial size of the first side length is the same as at least one side length of the desktop.
  • the first container can be changed or adapted for the size of the content to be placed, the size of the placed to the target location, or the user to adjust the size.
  • the display size of the widgets is also adjusted accordingly.
  • the first side length refers to the horizontal side length, which is the same as the horizontal side length of the desktop in its initial state;
  • the widget is a JavaScript-based 2D widget in one embodiment, and can also be a 3D widget in other embodiments Widget.
  • a method for displaying a widget is provided, which is used to load and display the widget on a non-desktop interface. Detecting widgets contained in applications on the desktop of the terminal, loading them into the non-desktop interface, and providing a first container in the non-desktop interface to accommodate and adaptively adjust the widgets. Compared with some situations, the location and form of widget display are expanded, and at the same time, the functional content of the non-desktop interface is enriched and the user experience is improved.
  • step 101 widgets contained in applications on a desktop of a terminal are detected.
  • the terminal has a detection function, which can scan the application information corresponding to the application of the terminal, detect whether there is a widget identifier in the application information, and if there is a widget identifier, obtain the widget data corresponding to the widget identifier; wherein, Applications on the terminal include applications that are being installed and applications that have already been installed. That is, information corresponding to the desktop program and the program being installed is traversed to detect whether there is widget data. In one example, whenever a new application is installed on the terminal, widget detection is performed on the application.
  • whether the detection process is started or not is controlled through an interface switch, that is, the user can control whether to perform widget detection on the desktop application according to requirements.
  • step 102 the widget detected in step 101 is loaded into a first container; the first side length of the first container is the same as the second side length of the terminal desktop.
  • a first container is provided.
  • the first container is located on the non-desktop interface of the mobile terminal and is used to carry widgets that need to be loaded to the non-desktop interface. Since widgets are designed to adapt to terminal desktops, the first container is used to carry widgets, so the length of the first side of the first container is the same as that of the terminal desktop, so that widgets can be completely imported initially.
  • the first side length of the first container may be a horizontal side length or a vertical side length
  • the second side length of the terminal desktop may be a horizontal side length or a vertical side length.
  • first side length as the horizontal side length and the second side length as the horizontal side length as an example, choose the horizontal side length and the horizontal side length for size correspondence, so that the size result is more in line with the original purpose of the widget for desktop, and has a better Show effect well.
  • the aforementioned consistent size can also be achieved in some cases
  • the purpose of being able to accommodate widgets, in other cases, can also be achieved by rotating the position of the first container so that the first side length and the second side length are axially consistent, analogous to the aforementioned case of the same horizontal side length The purpose of loading the widget into the first container.
  • the detected widgets are imported into the first container, which expands the display position of the widgets, and also adds functions of non-desktop interfaces to improve user experience.
  • loading the detected widgets into the first container includes: importing widget data of the widgets included in the application into the first container;
  • the corresponding application establishes a content association relationship. After detecting the widget corresponding to the desktop application and importing the widget data into the first container, all the initial settings of the widget are displayed in the first container. Then the widgets imported into the first container cannot detect their update information, and therefore cannot perform corresponding upgrades. Therefore, after the widget data import action is completed, it is necessary to establish a content association between the widget and its corresponding desktop application.
  • step 103 to step 105 the first container is loaded to the non-desktop interface, and the first side length of the first container after the widget is loaded is adjusted according to the third side length of the non-desktop interface; wherein, the adjusted first The length of the first side of the container is the same as the length of the third side of the non-desktop interface, that is, adjust the length of the first side of the first container according to the length of the third side of the non-desktop interface where the widget needs to be placed, and display it on the non-desktop interface The widget.
  • the first side length can be the horizontal side length or the vertical side length
  • the third side length can also be the horizontal side length or the vertical side length; since the current widgets on the mobile terminal are all designed for the fixed-size interface of the desktop Yes, the display effect of the widget is better when the widget can fill the screen.
  • the first side length, the second side length and the third side length as the horizontal side length as an example.
  • the third side length of the non-desktop interface is generally smaller than the second side length of the screen.
  • the non-desktop interface needs to use a first container whose first side length is consistent with the second side length of the desktop to load widgets, and then Adjusting the length of the first side of the first container enables the widget to obtain a display effect consistent with that of the desktop on the non-desktop interface.
  • the widget establish a content association relationship between the widget and its corresponding desktop application, and after adjusting the length of the first side of the first container, detect whether there is an update for the application corresponding to the imported widget;
  • the widget after the content association is updated. For example: firstly, according to the package name and class name of the widget, call the system interface to generate the identification ID of the widget, and then bind the identification ID to the desktop application corresponding to the widget.
  • system permissions are required: android.permission.BIND_APPWIDGET. Then monitor whether there is a change event in the desktop application corresponding to the ID, and if so, update the widget corresponding to the ID according to the change event.
  • the first side length of the first container after the widget is loaded further includes: adjusting the fourth side length of the first container; the adjusted first side length of the first container and the adjusted first side length
  • the ratio value of the length of the four sides is the same as the ratio value of the length of the first side before adjustment and the length of the fourth side before adjustment of the first container.
  • the axial direction of the fourth side length is inconsistent with the first side length, that is, the size ratio of the first container is fixed; the first container is adjusted according to the third side length of the non-desktop interface.
  • the length of the first side of the first container is consistent with the length of the third side of the non-desktop interface.
  • the widget will not be excessively deformed due to proportional scaling.
  • the aspect ratio is fixed
  • the relative ratio of length, width and height is fixed, that is, it is not limited to only fixed horizontal side length and vertical
  • the ratio of the side lengths may also consider the ratio of the side lengths that form the three-dimensional coordinates with the horizontal side length and the vertical side length, that is, the ratio values of the three side lengths are fixed.
  • the first container is adaptively adjusted according to the non-desktop interface, so that the widgets in the first container can be displayed normally in the non-desktop interface, ensuring the display effect of widgets displayed in the non-desktop interface, and improving user experience.
  • the arrangement of the first container can be adjusted according to preset conditions or real-time requirements. It can be understood that one first container is used to place one widget, and there may be multiple first containers in the non-desktop interface.
  • the arrangement of the first containers for example: the first containers are arranged in front of the system's built-in display window, and the first container and the system's own display window are arranged alternately (as shown in Figure 2), according to the frequency of use from high to low Arranging the first container and the self-contained display window of the system, or arranging at a preset location, a preset time and/or a preset scene according to user settings; wherein the arrangement is based on a preset location, for example, it is detected that it is in an office area
  • the rear office widgets are arranged in the first order according to the preset time, for example, the widgets for ordering or paying during the meal time are arranged in the front according to the preset scene, for example, in the third-party program after setting the leisure mode Widgets for video and shopping functions are located in front of the system's built-in display window.
  • the system's own display window includes self-developed cards, search boxes, etc. This step can personalize and adjust the display
  • a method for displaying a widget is provided, which is used to load and display the widget on a non-desktop interface. Detect the widgets contained in the application on the desktop of the terminal, load them into the non-desktop interface, and provide a first container in the non-desktop interface to accommodate and adaptively adjust the widgets. Initially, the first container adopts the second container of the desktop. The first side with the same side length is used to accommodate the widget, and then the size of the first container is adjusted according to the size of the non-desktop interface, so that the widget can be completely displayed in the non-desktop interface. Compared with some situations, the location and form of widget display are expanded, and at the same time, the functional content of the non-desktop interface is enriched and the user experience is improved.
  • FIG. 3 Another embodiment of the present application relates to a method for displaying widgets. As shown in Figure 3, including:
  • Step 201 Detect widgets included in terminal applications according to a preset time period and/or functional requirements
  • Step 202 loading the detected widget into the first container; the first side length of the first container is the same as the second side length of the terminal desktop;
  • Step 203 loading the first container to the non-desktop interface
  • Step 204 according to the third side length of the non-desktop interface, adjust the first side length of the first container after the widget is loaded; wherein, the adjusted first side length of the first container and the third side length of the non-desktop interface same;
  • Step 205 adjusting the length of the fourth side of the first container after the widget is loaded
  • Step 206 displaying the widget on the non-desktop interface.
  • Steps 202 to 204 are substantially the same as those in the above-mentioned embodiments, and will not be repeated to avoid repetition.
  • the main difference lies in step 201 and step 205, which will be described in detail below.
  • step 201 widgets contained in applications of a terminal are detected according to a preset time period and/or functional requirements.
  • a preset condition for triggering or regulating the action of the detection widget such as a preset time period or a preset function requirement. If there is a preset time period, the non-desktop interface will enable the detection function during the preset time period, and will not enable the detection function during the non-preset time period. Since the detection function has a time period for opening and does not run all the time, it can On the premise of realizing the function of detecting widgets, reduce the computing load of the device; if there are preset functional requirements, such as image processing, social communication, shopping, search, etc.
  • the detection function only detect the application widgets related to the image processing function, which can meet the user's personalized use needs to the greatest extent, and reduce the amount of calculation of the device; if there are preset time periods and functional requirements, such as a certain time If there is a demand for online shopping during a certain period of time, the detection function is enabled during this time period and only the application corresponding to the shopping function is detected.
  • the detection scope includes applications that are being installed and applications that have been installed.
  • This step is relatively completely in accordance with the user-operated interface switch or the default way of always performing this action, which can not only save computing resources of the device and improve device performance; it can also provide personalized customization recommendations for the widget content in the user's non-desktop interface, so that The interface of the non-desktop interface is more intelligent and convenient for users to use.
  • step 205 after the adjustment of the first side length of the first container, the fourth side length of the first container loaded with widgets is adjusted.
  • adjusting the length of the fourth side of the first container is, for example, adjusting the length of the fourth side of the first container according to the length of the fifth side of the widget.
  • the first side length of the first container is only adjusted according to the third side length of the non-desktop interface, but the adaptation of other side lengths of the first container is not considered.
  • the length of the first side is the length of the horizontal side
  • the length of the fourth side can be the length of the longitudinal side; Adjustment, close to the user's daily use habits; it can also be different side lengths in the axial direction, in some cases the axial direction is different but the size can still achieve the purpose of reducing the corresponding blank, or the two side length axes can be made by rotating correspondingly The direction is consistent, and the corresponding processing adjustment is carried out in the case of the same axis as described above.
  • the side length of the actual display screen of the widget loaded in the first container is measured, and the side length of the first container is updated according to the side length of the actual display screen. For example, blanks are left inside the widget to meet the format requirements. At this time, in addition to the effective display screen inside the widget, there is also internal blank data for supplementing the format. Users can intuitively feel that the widget is effective. There are still blank spaces around the picture, as shown in Figure 4b. However, since the background outside the widget is not left blank at this time, the size of the first container cannot be directly adjusted according to the size of the widget. At this time, it is necessary to measure the side length of the actual display screen of the widget, and based on the side length of the actual display screen, Adjust and update the side length of the first container.
  • the widgets on the desktop have the concept of rows and columns, for example, the size of a widget is 4 columns and 2 rows, but many widgets are only displayed in the center of this area, and there are many blank spaces at the top and bottom. Such an effect is not suitable for non-desktop interfaces. Therefore, it is necessary to dynamically adapt the side lengths of these widgets. There is no source code of the widget in the non-desktop interface, so the only way to re-measure the side length of the actual display screen of the widget at the onViewAdded event of the first container is to adjust and update the side length of the first container according to the actual side length of the display screen. To reduce the internal white space of the widget and ensure the visual effect.
  • the display position of the first container may also be adjusted according to the display content of the non-desktop interface, so that the first container adapts to the display content of the non-desktop interface. For example, adjust the display position so that the position of the first container is left-aligned, right-aligned, centered, etc., so that the arrangement of the first container is more in line with the user's individual needs; or adjust the density of the arrangement of the first container, for example: after reducing the arrangement
  • the blank part makes the arrangement more compact, reducing the amount of redundant data in the non-desktop interface, or standardizes the blank part after arrangement, making the arrangement more standardized and beautiful.
  • the first container is adjusted according to the display content of the non-desktop interface, so that the display of the first container on the non-desktop interface is more beautiful.
  • the first container is adjusted to avoid the background blank outside the widget due to the mismatch between the first container and the widget, and improve user experience. use experience.
  • the internal space of the widget due to format requirements is also considered, and the space of the widget and the length of the fourth side of the first container are further adjusted.
  • the process of adjusting the blank space also deletes some unnecessary data.
  • the internal space of the widget can be directly adjusted to reduce the time for the device to perform the steps of the method .
  • the arrangement of the first containers can also be adjusted according to preset conditions or real-time needs.
  • the action of scanning the widgets contained in the desktop application can also be enabled according to preset conditions, reducing the calculation process of the device; and the first container can be adjusted , optimize the visual effect of the first container containing widgets in the non-desktop interface, reduce the amount of data in the non-desktop interface, and improve the running speed of the non-desktop interface.
  • step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
  • An embodiment of the present application relates to a widget display device, as shown in FIG. 5 , including:
  • the detection module 301 is configured to detect widgets contained in applications on the terminal desktop;
  • the loading module 302 is configured to load the detected widget into the first container; the first side length of the first container is the same as the second side length of the terminal desktop;
  • the placement module 303 is configured to load the first container to the non-desktop interface
  • the adjustment module 304 is configured to adjust the first side length of the first container after the widget is loaded according to the third side length of the non-desktop interface; the third side has the same length;
  • the display module 305 is configured to display widgets on the non-desktop interface.
  • the detection module 301 scan the application information corresponding to the application of the terminal, and the application of the terminal includes the application being installed and the application that has been installed; detect whether there is a widget identifier in the application information; if there is a widget identifier, obtain the widget Widget data corresponding to the widget ID.
  • the widgets contained in the application of the terminal are detected according to the preset time period and/or function requirements.
  • the loading module 302 import the widget data of the widget contained in the application into the first container; establish a content association relationship between the imported widget and the application corresponding to the imported widget;
  • the adjustment module 304 After adjusting the first side length of the first container after the widget is loaded according to the third side length of the non-desktop interface in the adjustment module 304, it also includes: detecting whether there is an update for the application corresponding to the imported widget; , the imported widget is updated according to the content association relationship.
  • the adjustment module 304 after adjusting the first side length of the first container after the widget is loaded, it also includes: adjusting the fourth side length of the first container;
  • the ratio value of the length of the fourth side is the same as the ratio value of the length of the first side before adjustment and the length of the fourth side before adjustment of the first container.
  • adjusting the first side length of the first container after the widget is loaded further includes: adjusting the fourth side length of the first container after the widget is loaded according to the fifth side length of the widget.
  • the widget after adjusting the length of the first side of the first container after the widget is loaded, it also includes: adjusting the arrangement of the first container on the non-desktop interface; the arrangement includes: the first containers are arranged before the system's own display window , arrange the first container and the system's built-in display window according to the frequency of use from high to low, or arrange according to user settings at a preset location, preset time and/or preset scene.
  • a method for displaying widgets is provided, which is used to load and display widgets on non-desktop interfaces. Detect the widget contained in the terminal desktop application, load it into the non-desktop interface, and provide a first container in the non-desktop interface to accommodate and adaptively adjust the widget. Initially, the first container uses the same The first side is long to accommodate the widget, and then the size of the first container is adjusted according to the size of the non-desktop interface, so that the widget can be completely displayed in the non-desktop interface.
  • the display position and form of the widget are expanded, and the functional content of the non-desktop interface is enriched at the same time, and the user experience is improved.
  • this embodiment is a system embodiment corresponding to the above embodiment, and this embodiment can be implemented in cooperation with the above embodiment.
  • the relevant technical details mentioned in the foregoing implementation manners are still valid in this implementation manner, and will not be repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this implementation manner may also be applied in the foregoing implementation manners.
  • modules involved in this embodiment are logical modules.
  • a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units.
  • units that are not closely related to solving the technical problems proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • An embodiment of the present application relates to a terminal, as shown in FIG. 6 , including at least one processor 401; and a memory 402 communicatively connected to the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above widget display method.
  • the memory and the processor are connected by a bus
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted over the wireless medium through the antenna, which also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
  • One embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • An embodiment of the present application provides a widget display method, which is used to load and display the widget on a non-desktop interface. Detecting widgets contained in applications on the desktop of the terminal, loading them into the non-desktop interface, and providing a first container in the non-desktop interface to accommodate and adaptively adjust the widgets. Compared with some situations, the location and form of widget display are expanded, and at the same time, the functional content of the non-desktop interface is enriched and the user experience is improved.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Abstract

一种微件的显示方法、装置、终端及计算机可读存储介质,其中,微件的显示方法,包括:检测终端桌面的应用中包含的微件(101);将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同(102);将第一容器加载至非桌面界面(103);根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同(104);在非桌面界面上显示微件(105)。

Description

微件的显示方法、装置、终端及计算机可读存储介质
相关申请的交叉引用
本申请基于申请号为202110610987.9、申请日为2021年06月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请实施例涉及信息处理领域,特别涉及一种微件的显示方法、装置、终端及计算机可读存储介质。
背景技术
移动终端屏幕相对较小,浏览器却占用了有限的屏幕资源,导致移动终端上网用户体验较差,微件(Widget)的应用框架非常适合移动终端。微件不仅可以独立于浏览器运行,有效地利用移动终端屏幕,而且可以更加快速直接方便地访问移动互联网,给终端用户带来良好的呈现方式和互联网体验。微件具有小巧轻便、开发成本低、基于标准Web技术,开发门槛低,潜在开发者众多、与操作系统耦合度低和功能完整的特点,其中易开发、易显示、个性化、交互式、消耗流量少等特性使它非常适合移动互联网。
然而,一些情形中仅支持将微件应用于移动终端的终端桌面,例如用户可以在终端桌面长按,通过弹出设置页面,选择窗口小工具,添加包含有小部件的应用程序等,能够显示微件的位置和形式有限。
发明内容
本申请实施例提出一种微件的显示方法、装置、终端及计算机可读存储介质。
本申请实施例提供了一种微件的显示方法,包括:检测终端桌面的应用中包含的微件;将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同;将第一容器加载至非桌面界面;根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同;在所述非桌面界面上显示所述微件。
本申请实施例还提供了一种微件的显示装置,包括:检测模块,被设置为检测终端桌面的应用中包含的微件;加载模块,被设置为将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同;放置模块,被设置为将第一容器加载至非桌面界面;调整模块,被设置为根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同;显示模块,被设置为在非桌面界面上显示所述微件。
本申请实施例还提供了一种终端,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的微件的显示方法。
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序 被处理器执行时实现上述的微件的显示方法。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是根据本申请的一个实施方式提供的一种微件的显示方法的流程图;
图2是根据本申请的一个实施方式提供的一种微件的显示方法实现后的一个示意图;
图3是根据本申请的另一个实施方式提供的一种微件的显示方法的流程图;
图4a是根据本申请的一个实施方式中一个显示界面的示意图;
图4b是根据本申请的一个实施方式中另一个显示界面的示意图;
图5是根据本申请的一个实施方式提供的一种微件的显示装置;
图6是根据本申请的一个实施方式提供的一种终端。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本申请实施例中的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。本申请的描述中,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列部件或单元的系统、产品或设备没有限定于已列出的部件或单元,而是可选地还包括没有列出的部件或单元,或可选地还包括对于这些产品或设备固有的其它部件或单元。本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
本申请的一个实施方式涉及一种微件的显示方法,应用于移动终端。具体流程如图1所示。
步骤101,检测终端桌面的应用中包含的微件;
步骤102,将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同;
步骤103,将第一容器加载至非桌面界面;
步骤104,根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同;
步骤105,在非桌面界面上显示所述微件。
其中,桌面为用于显示当前终端所安装的第三方应用的界面,对终端进行解锁后直接显示,或终端经过多次返回操作后的最终显示;非桌面界面包括负一屏、锁屏和/或其他应用程 序界面等,非桌面界面为与桌面的显示格式不一致的界面,显示格式不一致包括但不限于界面尺寸不同以及界面可显示程序的尺寸不同;第一容器为用于显示微件的虚拟资源空间,是至少第一边长可调整的容器,第一边长其初始尺寸与桌面的至少一个边长相同。第一容器可针对放入内容的尺寸、放置到目标位置的尺寸或者用户调整尺寸进行变化或适应性调整。所述第一容器被加载微件后,根据第一容器的尺寸调整,微件的显示尺寸也跟随调整。在一个例子中,第一边长是指横向边长,其初始状态下与桌面的横向边长相同;微件在一个实施例中是基于JavaScript的2D widget,在其他实施例中还可以是3D Widget。
本实施例中,提供一种微件的显示方法,用于实现将微件加载并显示在非桌面界面中。检测终端桌面的应用中包含的微件,将其加载至非桌面界面,并在非桌面界面中提供第一容器以容纳并自适应调整所述微件。相较于一些情形,拓展了微件显示的位置和形式,同时使得非桌面界面的功能内容更加丰富,提升用户体验。
下面对本实施方式的微件的显示方法的实现细节进行说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
在步骤101中,检测终端桌面的应用中包含的微件。
在一个实施例中,终端具有检测功能,能够扫描终端的应用对应的应用信息,检测应用信息中是否存在微件标识,若存在微件标识,则获取微件标识对应的微件数据;其中,终端的应用包括正在进行安装和已安装完成的应用。即,遍历桌面程序和正在安装的程序对应的信息,检测是否存在微件数据。在一个例子中,每当终端安装了新应用程序时,均对该应用程序进行微件检测。
在另一个实施例中,通过界面开关控制检测过程启动与否,即,用户能够根据需求自行控制是否对桌面应用进行微件检测。
在步骤102中,将步骤101检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同。
本步骤中提供第一容器,第一容器位于移动终端的非桌面界面,用于承载需要加载至非桌面界面的微件。由于微件的设计初衷均为适应终端桌面,第一容器是用于承载微件,所以第一容器的第一边长与终端桌面相同,使得微件最初能够进行完整导入。其中,第一容器的第一边长可以为横向边长或纵向边长,终端桌面的第二边长可以为横向边长或者纵向边长。以第一边长为横向边长第二边长为横向边长为例进行叙述,选择横向边长与横向边长进行尺寸对应,使得尺寸结果更符合微件原应用于桌面的目的,具有更好地显示效果。另外,当第一边长取横向边长,第二边长取纵向边长时,即两个边长实际的轴向位置不一致可能存在垂直情况时,在一些情况下也能实现前述的尺寸一致能够容纳微件的目的,在另一些情况下,还能够通过旋转第一容器的位置使得的第一边长和第二边长的轴向一致,类比前述同为横向边长的情况,以实现将微件加载至第一容器的目的。
在本步骤中,将检测到的微件导入第一容器,扩展了微件的显示位置,同时也增加了非桌面界面的功能,提升用户体验。
在一个例子中,将检测到的微件加载至第一容器中,包括:将应用中包含的微件的微件数据导入至第一容器;对导入后的微件和与导入后的微件对应的应用建立内容关联关系。由于在进行检测桌面应用对应的微件,以及向第一容器中导入微件数据后,在第一容器中显示的均为微件的初始设置,若微件对应的桌面应用产生升级等动作,则导入至第一容器的微件 无法检测到其更新信息,也就无法进行对应升级。因此,在完成微件数据导入动作后,需要给微件和其对应的桌面应用建立内容关联关系。
在步骤103至步骤105中,将第一容器加载至非桌面界面,根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同,也就是说根据需要放置微件的非桌面界面的第三边长调整第一容器的第一边长,在非桌面界面上显示所述微件。
其中,第一边长可以为横向边长或纵向边长,第三边长也可以为横向边长或纵向边长;由于目前移动终端上的微件都是给桌面这一固定大小的界面设计的,微件的显示效果在微件能铺满屏幕的尺寸为更好。要实现将这些微件放到非桌面界面上来使用,以第一边长、第二边长和第三边长均为横向边长为例,非桌面界面的第三边长一般小于屏幕第二边长,直接显示这些微件的话会出现界面截断或者显示不全等问题,故需要非桌面界面先用一个第一边长与桌面的第二边长一致的第一容器去加载微件,然后再调整第一容器的第一边长使得微件在非桌面界面上能够得到和桌面一致的显示效果。
另外,给微件和其对应的桌面应用建立内容关联关系,并且在对第一容器的第一边长进行调整之后,检测与导入后的微件对应的应用是否存在更新;若存在,则根据内容关联关系更新导入后的微件。例如:首先根据微件的包名类名,调用系统接口生成微件的标识ID,然后将该标识ID绑定至微件对应的桌面应用。在进行绑定动作时,需要系统权限:android.permission.BIND_APPWIDGET。之后监控该标识ID对应的桌面应用是否存在变更事件,若存在,则根据所述变更事件更新所述标识ID对应的微件。
在一个例子中,调整加载微件后的第一容器的第一边长之后,还包括:调整第一容器的第四边长;第一容器的调整后的第一边长与调整后的第四边长的比例值,与第一容器的调整前第一边长与调整前的第四边长的比例值相同。其中,第四边长与第一边长的轴向方向不一致,也就是固定第一容器的尺寸比例;根据非桌面界面的第三边长调整第一容器。使得第一容器的第一边长与非桌面界面的第三边长一致,同时由于固定了尺寸比例,是等比缩放,微件不会出现过度形变。另外,若第一容器需要容纳二维微件,则固定长宽比,若第一容器需要容纳三维微件,则固定长宽高的相关比例,即并不限制一定仅固定横向边长与纵向边长的比例,还可考虑与横向边长和纵向边长组成三维坐标的边长的比例,即,固定三个边长的比例值。
在本步骤中,根据非桌面界面对于第一容器进行适应性调整,使得位于第一容器中的微件能够在非桌面界面中正常显示,保证微件显示在非桌面界面中的显示效果,提升用户体验。
另外,在调整了第一容器的第一边长之后,可以根据预设条件或实时需求调整第一容器的排列方式。可以理解的是,一个第一容器用于放置一个微件,非桌面界面中可以存在多个第一容器。其中,第一容器的排列方式,例如:第一容器均排列在系统自带展示窗口之前,第一容器与系统自带展示窗口交替排列(如图2所示),根据使用频率从高到低对第一容器和所述系统自带展示窗口进行排列,或根据用户设置在在预设地点、预设时间和/或预设场景进行排列;其中根据预设地点排列,例如检测到在办公区域后办公用微件的排列顺序靠前,根据预设时间排列,例如在用餐时间进行点餐或者付款的微件的排列顺序靠前,根据预设场景排列,例如设置休闲模式后第三方程序中影视以及购物功能的微件均位于系统自带展示窗口之前等。其中,系统自带展示窗口包括自研卡片,搜索框等,本步骤能够个性化调整非桌 面界面的显示界面,满足移动终端用户多方需求。
本实施例中,提供一种微件的显示方法,用于实现将微件加载并显示在非桌面界面中。检测终端桌面的应用中包含的微件,将其加载至非桌面界面,并在非桌面界面中提供第一容器以容纳并自适应调整所述微件,最初第一容器采用与桌面的第二边长相同的第一边长以容纳微件,之后根据非桌面界面的尺寸调整第一容器的尺寸,以使得微件能够完整的显示在非桌面界面中。相较于一些情形,拓展了微件显示的位置和形式,同时使得非桌面界面的功能内容更加丰富,提升用户体验。
本申请的另一个实施方式涉及一种微件的显示方法。如图3所示,包括:
步骤201,根据预设时间段和/或功能需求,检测终端的应用中包含的微件;
步骤202,将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同;
步骤203,将第一容器加载至非桌面界面;
步骤204,根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同;
步骤205,调整加载微件后的第一容器的第四边长;
步骤206,在非桌面界面上显示所述微件。
步骤202至步骤204与上述实施方式大致相同,为避免重复,不再赘述。主要区别之处在于步骤201,步骤205,以下进行具体描述。
在步骤201中,根据预设时间段和/或功能需求,检测终端的应用中包含的微件。
在一个例子中,存在预置的条件用于触发或规范检测微件的动作,预置条件例如预设时间段或预设的功能需求。若存在预设时间段,则非桌面界面在预设时间段中开启检测功能,在非预设时间段中不开启该检测功能,由于检测功能的开启具有时间段,非一直运行,则能在实现检测微件这一功能的前提下,减少设备的运算量;若存在预设功能需求,例如图片处理、社交通信、购物、搜索等,以图片处理为例,则在执行检测微件这一功能时,仅检测与图片处理这一功能相关的应用的微件,能够最大程度的满足用户的个性化使用需求,同时减少设备运算量;若同时存在预设时间段和功能需求,例如某时间段固定存在网购需求,则在该时间段开启检测功能且仅检测购物这一功能对应的应用。另外,检测范围包括正在安装以及已经完成安装的应用。
本步骤相对完全按照用户操作的界面开关或默认一直执行该动作的方式,不仅能够节省设备的运算资源,提高设备性能;还能够对于用户的非桌面界面中微件内容进行个性化定制推荐,使得非桌面界面的界面更智能化,方便用户使用。
在步骤205中,在上述对第一容器的第一边长进行调整之后,调整加载微件后的第一容器的第四边长。
在一个例子中,调整第一容器第四边长例如根据微件的第五边长调整第一容器的第四边长。上述将微件导入第一容器之后,仅根据非桌面界面的第三边长调整了第一容器的第一边长,但并没有特别考虑第一容器的其他边长适配问题,若在微件最初导入第一容器时,第一容器的其他边长,例如第四边长大于微件,则会在第一容器中的微件产生外部产生背景留白,同时上述调整第一边长的过程也并未处理这个问题,如图4a所示,不仅占用非桌面界面的显示空间,也不便于用户对于非桌面界面进行滑动查看等动作。其中,若第一边长取横向边长, 则第四边长可取纵向边长;第四边长与第五边长可以为轴向相同的边长,例如同为纵向边长,便于进行对应调整,接近用户的日常使用习惯;也可以为轴向不同的边长,在一些情况下轴向不同但尺寸仍可以实现减少对应空白的目的,或可以通过旋转对应等方式使得两个边长轴向一致,同前述轴向一致的情况进行对应的处理调整。
在另一个例子中,在处理过微件外部的背景留白后,测量加载于第一容器的微件的实际显示画面边长,根据实际显示画面的边长,更新第一容器的边长。例如,微件内部会为了满足格式需求而进行留白,此时,微件内部除了有效的显示画面外,还存在用于进行格式补充的内部留白数据,用户能够直观感受到微件中有效画面的周围仍存在空白,如图4b所示。但由于此时并非微件外部的背景留白,无法直接根据微件的尺寸调节第一容器的尺寸,此时需要测量微件的实际显示画面边长,并根据该实际显示画面的边长,调节更新第一容器的边长。
由于桌面上微件有行列的概念,如一个微件的尺寸为4列2行,但很多微件只是在这个区域内居中显示,上下有很多空白,这样的效果放在非桌面界面不合适,故需要给这些微件的边长做动态适配。在非桌面界面中没有微件的源码,故只能在第一容器的onViewAdded事件处,重新测量微件实际显示画面边长,并根据该实际显示画面边长调节更新第一容器的边长,以减少微件的内部留白,保证视觉效果。
另外,还可以根据非桌面界面的显示内容,调整第一容器的显示位置,使得第一容器与该非桌面界面的显示内容适配。例如,调整显示位置使得第一容器的位置为左对齐、右对齐、居中等,使得第一容器的排列方式更符合用户的个性化需求;或调整第一容器排列的密度,例如:减少排列后的空白部分,使得排列更紧凑,减少该非桌面界面的冗余数据量,或规范排列后的空白部分,使得排列更规范和美观。
本步骤根据非桌面界面的显示内容,调整了第一容器,使得第一容器在该非桌面界面的显示更美观。并针对第一容器的第四边长与微件不适配的情况,对第一容器进行了调整,避免由于第一容器和微件的不匹配产生的微件外部的背景留白,提升用户的使用体验。还考虑了微件内部由于格式需求产生的内部留白,进一步调整了微件的留白和第一容器的第四边长。调节留白的过程也删除了部分不必要数据,在非桌面界面提高用户使用观感的同时,减少了非桌面界面中的相关数据,提高非桌面界面的运行速度。可以知道的是,调整微件外部留白和根据微件实际显示画面调整微件内部留白,在一些实施例中,可以直接调整微件的内部留白,以减少设备执行该方法的步骤时间。
另外,还可以根据预设条件或实时需求调整第一容器的排列方式。
本实施方式中,在非桌面界面上实现显示微件之外,还能够根据预设条件开启对桌面应用包含的微件进行扫描的动作,减少设备的运算过程;以及能够对第一容器进行调整,优化包含微件的第一容器在非桌面界面中的视觉效果,减少非桌面界面中的数据量,提高非桌面界面的运行速度。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本申请的一个实施方式涉及一种微件的显示装置,如图5所示,包括:
检测模块301,被设置为检测终端桌面的应用中包含的微件;
加载模块302,被设置为将检测到的微件加载至第一容器中;第一容器的第一边长与终端桌面的第二边长相同;
放置模块303,被设置为将第一容器加载至非桌面界面;
调整模块304,被设置为根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的第一容器的第一边长与非桌面界面的第三边长相同;
显示模块305,被设置为在非桌面界面上显示微件。
在检测模块301中,扫描终端的应用对应的应用信息,所述终端的应用包括正在进行安装和已安装完成的应用;检测应用信息中是否存在微件标识;若存在微件标识,则获取微件标识对应的微件数据。
另外,根据预设时间段和/或功能需求,检测终端的应用中包含的微件。
在加载模块302中,将应用中包含的微件的微件数据导入至第一容器;对导入后的微件和与导入后的微件对应的应用建立内容关联关系;
在调整模块304中根据非桌面界面的第三边长,调整加载微件后的第一容器的第一边长之后,还包括:检测与导入后的微件对应的应用是否存在更新;若存在,则根据内容关联关系更新导入后的微件。
在调整模块304中,在调整加载微件后的第一容器的第一边长之后,还包括:调整第一容器的第四边长;第一容器的调整后的第一边长与调整后的第四边长的比例值,与第一容器的调整前第一边长与调整前的第四边长的比例值相同。
在一个例子中,整加载微件后的第一容器的第一边长之后,还包括:根据微件的第五边长,调整加载微件后的第一容器的第四边长。
另外,调整加载微件后的第一容器的第一边长之后,还包括:调整第一容器在非桌面界面上的排列方式;排列方式包括:第一容器均排列在系统自带展示窗口之前,根据使用频率从高到低对第一容器和系统自带展示窗口进行排列,或根据用户设置在在预设地点、预设时间和/或预设场景进行排列。
本实施方式中,提供一种微件的显示方法,用于实现将微件加载并显示在非桌面界面中。检测终端桌面的应用中包含的微件,将其加载至非桌面界面,并在非桌面界面中提供第一容器以容纳并自适应调整所述微件,最初第一容器采用与微件相同的第一边长以容纳微件,之后根据非桌面界面的尺寸调整第一容器的尺寸,以使得微件能够完整的显示在非桌面界面中。相较于相关技术,拓展了微件显示的位置和形式,同时使得非桌面界面的功能内容更加丰富,提升用户体验。
不难发现,本实施方式为与上述实施方式相对应的系统实施例,本实施方式可与上述实施方式互相配合实施。上述实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在上述实施方式中。
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
本申请的一个实施方式涉及一种终端,如图6所示,包括至少一个处理器401;以及, 与所述至少一个处理器通信连接的存储器402;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的微件的显示方法。
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,天线还接收数据并将数据传送给处理器。
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。
本申请的一个实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
本申请实施例提供一种微件的显示方法,用于实现将微件加载并显示在非桌面界面中。检测终端桌面的应用中包含的微件,将其加载至非桌面界面,并在非桌面界面中提供第一容器以容纳并自适应调整所述微件。相较于一些情形,拓展了微件显示的位置和形式,同时使得非桌面界面的功能内容更加丰富,提升用户体验。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施方式是实现本申请的实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。

Claims (10)

  1. 一种微件的显示方法,包括:
    检测终端桌面的应用中包含的微件;
    将检测到的微件加载至第一容器中;所述第一容器的第一边长与所述终端桌面的第二边长相同;
    将所述第一容器加载至非桌面界面;
    根据所述非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的所述第一容器的第一边长与所述非桌面界面的第三边长相同;以及
    在所述非桌面界面上显示所述微件。
  2. 根据权利要求1所述的微件的显示方法,其中,所述调整加载微件后的第一容器的第一边长之后,还包括:
    调整所述第一容器的第四边长;
    所述第一容器的调整后的第一边长与调整后的第四边长的比例值,与所述第一容器的调整前第一边长与调整前的第四边长的比例值相同。
  3. 根据权利要求1所述的微件的显示方法,其中,所述调整加载微件后的第一容器的第一边长之后,还包括:
    根据所述微件的第五边长,调整所述加载微件后的第一容器的第四边长。
  4. 根据权利要求1所述的微件的显示方法,其中,所述检测终端桌面的应用中包含的微件,包括:
    扫描终端的应用对应的应用信息,所述终端的应用包括正在进行安装和已安装完成的应用;
    检测所述应用信息中是否存在微件标识;以及
    若存在微件标识,则获取所述微件标识对应的微件数据。
  5. 根据权利要求1所述的微件的显示方法,其中,所述检测终端桌面的应用中包含的微件,还包括:
    根据预设时间段和/或功能需求,检测终端的应用中包含的微件。
  6. 根据权利要求1所述的微件的显示方法,其中,所述将检测到的微件加载至第一容器中,包括:
    将所述应用中包含的微件的微件数据导入至第一容器;
    对导入后的微件和与所述导入后的微件对应的应用建立内容关联关系;
    所述根据所述非桌面界面的第三边长,调整加载微件后的第一容器的第一边长之后,还包括:
    检测与所述导入后的微件对应的应用是否存在更新;
    若存在,则根据所述内容关联关系更新所述导入后的微件。
  7. 根据权利要求1所述的微件的显示方法,其中,所述调整加载微件后的第一容器的第一边长之后,还包括:
    调整所述第一容器在所述非桌面界面上的排列方式;
    所述排列方式包括:所述第一容器均排列在系统自带展示窗口之前,根据使用频率从高到低对所述第一容器和所述系统自带展示窗口进行排列,或根据用户设置在在预设地点、预 设时间和/或预设场景进行排列。
  8. 一种微件的显示装置,包括:
    检测模块,被设置为检测终端桌面的应用中包含的微件;
    加载模块,被设置为将检测到的微件加载至第一容器中;所述第一容器的第一边长与所述终端桌面的第二边长相同;
    放置模块,被设置为将所述第一容器加载至非桌面界面;
    调整模块,被设置为根据所述非桌面界面的第三边长,调整加载微件后的第一容器的第一边长;其中,调整后的所述第一容器的第一边长与所述非桌面界面的第三边长相同;以及
    显示模块,被设置为在所述非桌面界面上显示所述微件。
  9. 一种终端,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任一所述的微件的显示方法。
  10. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的微件的显示方法。
PCT/CN2022/088303 2021-06-01 2022-04-21 微件的显示方法、装置、终端及计算机可读存储介质 WO2022252865A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110610987.9 2021-06-01
CN202110610987.9A CN113268305A (zh) 2021-06-01 2021-06-01 微件的显示方法、装置、终端及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2022252865A1 true WO2022252865A1 (zh) 2022-12-08

Family

ID=77234005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088303 WO2022252865A1 (zh) 2021-06-01 2022-04-21 微件的显示方法、装置、终端及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN113268305A (zh)
WO (1) WO2022252865A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268305A (zh) * 2021-06-01 2021-08-17 中兴通讯股份有限公司 微件的显示方法、装置、终端及计算机可读存储介质
CN114721759B (zh) * 2022-03-31 2023-11-24 珠海豹趣科技有限公司 Android桌面视图展示方法、装置及电子设备
CN115309470B (zh) * 2022-07-13 2023-07-28 百度在线网络技术(北京)有限公司 微件的加载方法、装置、设备以及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339282A (zh) * 2010-07-16 2012-02-01 阿里巴巴集团控股有限公司 一种微件显示的控制方法和装置
US20140181725A1 (en) * 2012-12-20 2014-06-26 Pantech Co., Ltd. Apparatus and method for executing application
CN106778176A (zh) * 2016-12-26 2017-05-31 努比亚技术有限公司 一种信息处理方法及移动终端
CN106873979A (zh) * 2017-01-06 2017-06-20 努比亚技术有限公司 一种信息处理方法及移动终端
CN111240789A (zh) * 2020-01-17 2020-06-05 华为技术有限公司 一种微件处理方法以及相关装置
CN113268305A (zh) * 2021-06-01 2021-08-17 中兴通讯股份有限公司 微件的显示方法、装置、终端及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339282A (zh) * 2010-07-16 2012-02-01 阿里巴巴集团控股有限公司 一种微件显示的控制方法和装置
US20140181725A1 (en) * 2012-12-20 2014-06-26 Pantech Co., Ltd. Apparatus and method for executing application
CN106778176A (zh) * 2016-12-26 2017-05-31 努比亚技术有限公司 一种信息处理方法及移动终端
CN106873979A (zh) * 2017-01-06 2017-06-20 努比亚技术有限公司 一种信息处理方法及移动终端
CN111240789A (zh) * 2020-01-17 2020-06-05 华为技术有限公司 一种微件处理方法以及相关装置
CN113268305A (zh) * 2021-06-01 2021-08-17 中兴通讯股份有限公司 微件的显示方法、装置、终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN113268305A (zh) 2021-08-17

Similar Documents

Publication Publication Date Title
WO2022252865A1 (zh) 微件的显示方法、装置、终端及计算机可读存储介质
CN106933587B (zh) 一种图层绘制控制方法、装置及移动终端
AU2013205178B2 (en) System and method for display mirroring
WO2020151547A1 (zh) 展示页面的交互控制方法及装置
US9158750B2 (en) Method and system to process an electronic form
US20130111330A1 (en) Accelerated compositing of fixed position elements on an electronic device
US10089957B2 (en) Page display method and terminal
CN110609965B (zh) 一种页面显示方法、装置和存储介质
WO2019144672A1 (zh) 终端显示方法、装置、终端及计算机可读存储介质
US20190333475A1 (en) Display method and electronic device
WO2023165197A1 (zh) 一种调整界面布局的方法、装置、设备及存储介质
CN114564263A (zh) 页面布局调整方法、装置
US11151314B2 (en) Extensible grid layout
CN110825294A (zh) 显示方法、电子设备及计算机可读存储介质
US20140258816A1 (en) Methodology to dynamically rearrange web content for consumer devices
WO2024061088A1 (zh) 显示方法、装置、电子设备以及存储介质
CN109284154A (zh) 桌面启动器模板更新方法及装置、服务器及存储介质
CN111352665A (zh) 页面加载方法、装置、设备及其存储介质
WO2022100326A1 (zh) 电子设备及其设备间屏幕协同方法和介质
CN109597595A (zh) 液晶显示屏的控制方法、装置、计算机设备和存储介质
CN116302230A (zh) 一种页面展示方法、装置及设备
CN114268826B (zh) 应用显示方法和装置
US11656739B2 (en) Method for controlling display position of list items within a viewport, electronic device, and storage medium
CN112286475B (zh) 文本显示方法及显示设备
WO2022179431A1 (zh) 显示模式切换方法、装置、电子设备和介质

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: 22814912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE