Display device and picture display method
By drawing a demonstration view of the target size and a background view of the remaining sizes in the display device, the problem of inaccurate display of user interfaces and contrast effects in the prior art is solved, and the effect of efficiently displaying the user interfaces corresponding to multiple screen sizes in a single device is achieved.
Patent Information
- Application Number
- CN202411730885.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-11-28
AI Technical Summary
When existing display devices demonstrate the user interface corresponding to multiple screen sizes, there are limitations. They cannot customize the user interface under the specific screen size you need to display, and the comparison effect is not clear enough.
It provides a display device and screen display method. By using a display and a controller in a single device, drawing a demonstration view according to the target size, and drawing a background view of the remaining selected dimensions in the cache canvas, combining displaying the demonstration view corresponding to the size that the user currently wants to view, synchronously displaying the views of the remaining selected dimensions.
It realizes the display effect of the user interface under multiple screen sizes directly in a single device, enhances the contrast effect of each size and improves the user experience.
Smart Images

Figure CN119835379A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a screen display method. Background Art
[0002] Display devices are intelligent devices that can present user interfaces and support user interaction. Taking smart TV as an example, smart TV is based on Internet application technology, has an open operating system and chip, has an open application platform, can realize two-way human-computer interaction, and integrates multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users.
[0003] In order to meet the screen size preferences of different users, display devices can provide a variety of screen size options based on user needs. In full-screen display state, display devices of each screen size will correspondingly present a user interface that matches its size, thereby achieving different display effects. However, when evaluating the display effects of display devices at different screen sizes (for example, when users are purchasing display devices), it is necessary to go to the vicinity of display devices of each screen size one by one for on-site inspection to evaluate the display effects of the user interface at each screen size. This process is quite cumbersome and time-consuming.
[0004] To this end, a single display device can be configured with a demonstration video including corresponding screens of the user interface at different screen sizes. When observing the display effects of different screen sizes, the display device can automatically play the demonstration video, so that the display effects of the user interface at multiple screen sizes can be directly observed on a single device. However, there are certain limitations in the way of playing demonstration videos. The user interface at the specific screen size currently required to be displayed cannot be customized, and the contrast effect of the user interface at each screen size is not clear enough. Summary of the invention
[0005] The present application provides a display device and a screen display method to solve the problem that the display device has high limitations when demonstrating user interfaces corresponding to multiple screen sizes.
[0006] In a first aspect, some embodiments of the present application provide a display device, including a display and a controller. The display is coupled to the controller, the display is configured to display a user interface, and the controller is configured to execute the following program steps:
[0007] Draw a presentation view on a first canvas according to a first target size, and read a reference size in a presentation size list; the presentation size list has at least two reference sizes, and the reference sizes include the first target size;
[0008] Drawing the background view on the cache canvas according to a reference size in the presentation size list that is larger than the first target size;
[0009] Drawing the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than the display level of the first canvas;
[0010] The display is controlled to display the display images of the first canvas and the second canvas, so that the user interface presents the image contents of the presentation view and the background view.
[0011] The above technical solution has the following advantages or beneficial effects: the display device supports a multi-size screen demonstration function of a single device; when the display device receives a display instruction for a screen corresponding to a target size, it can draw the corresponding demonstration view according to the target size, and at the same time draw background views of other selected sizes in the background of the demonstration view, so that the display device can simultaneously display views of other selected sizes while displaying the demonstration view corresponding to the size that the user currently wants to watch, which can enhance the contrast effect of each size and improve the user experience.
[0012] In some embodiments of the present application, before the controller executes the step of drawing a demonstration view on the first canvas according to the first target size, the controller is also configured to: detect the data storage status of the demonstration size list; if the demonstration size list stores the reference size, generate a size selection interface according to the demonstration size list, and control the display to display the size selection interface, wherein the size selection interface includes options corresponding to the reference size, and the reference size is less than or equal to the base size of the user interface in the full-screen display state; if the demonstration size list does not store the reference size, obtain a default size set according to the device information of the display device, generate the reference size according to the default size set, and add the reference size to the demonstration size list.
[0013] The above technical solution has the following advantages or beneficial effects: the size that can be displayed by the display device can be customized or automatically generated according to the device information such as the model of the display device, which can improve the automation and intelligence of the size demonstration. To ensure the accuracy of the size demonstration, the size that can be demonstrated cannot be larger than the screen size of the current display device (i.e., the display size), and the display device can memorize the customized size to facilitate the demonstration operation.
[0014] In some embodiments of the present application, the controller generates the reference size based on the default size set, and is specifically configured to: read the reference size of the user interface in full-screen display state based on the device information; traverse the default sizes in the default size set; delete the default sizes larger than the reference size, and retain the default sizes smaller than or equal to the reference size, so as to obtain the reference size.
[0015] The above technical solution has the following advantages or beneficial effects: when the display device generates a demonstrable reference size according to default information, the default size larger than the local screen size needs to be deleted to ensure the correctness of the demonstrable size of the current display device.
[0016] In some embodiments of the present application, the controller executes drawing of a background view on a cached canvas, and is specifically configured to: add the reference size of the demonstration size list to the background drawing list; extract a first reference size from the background drawing list according to a target order, wherein the target order is the order of the reference sizes from large to small; calculate a scaling ratio between the first reference size and a reference size, wherein the reference size is the size of the user interface in a full-screen display state; draw the background view in the cached canvas according to the scaling ratio, wherein the background view includes at least a border content equal to the first reference size.
[0017] The above technical solution has the following advantages or beneficial effects: the display device can determine the background view that needs to be drawn according to the reference size in the demonstration size list, and then determine the scaling ratio used for each background view according to the ratio of the determined size and the current display device, thereby ensuring that the background view can be correctly drawn in the cache canvas, that is, the cache canvas.
[0018] In some embodiments of the present application, before the controller executes the step of drawing the background view in the cache canvas according to the scaling ratio, the controller is also configured to: read the prompt text information associated with the first reference size, the prompt text information being used to display the prompt text of the reference size; calculate the text area of the prompt text according to the prompt text information, and read the second reference size in the demonstration size list, the second reference size being a reference size larger than the first reference size; calculate the difference area between the background view corresponding to the second reference size and the background view corresponding to the first reference size, the difference area being the area remaining after removing the background view corresponding to the first reference size from the background view corresponding to the second reference size; if the height of the difference area is greater than or equal to the height of the text area, execute the step of drawing the background view in the cache canvas according to the scaling ratio; if the height of the difference area is less than the height of the text area, delete the first reference size from the background drawing list.
[0019] The above technical solution has the following advantages or beneficial effects: when drawing the background view, the display device needs to determine whether the prompt text corresponding to the size information can be displayed between the views. If the prompt text corresponding to the size information can be displayed between the two views, the background view corresponding to the size information is drawn into the cache canvas; otherwise, the size information is deleted from the background drawing list, and the background view corresponding to the size information is not drawn in the cache canvas.
[0020] In some embodiments of the present application, the controller executes drawing the background view of the cached canvas to the second canvas, and is specifically configured as follows: if the background drawing list includes a background view corresponding to an undrawn reference size, continue to execute the step of extracting the first reference size in the background drawing list according to the target order; if the background drawing list does not include a background view corresponding to an undrawn reference size, read the bitmap data of the background view in the cached canvas, and copy the bitmap data to the second canvas.
[0021] The above technical solution has the following advantages or beneficial effects: the display device can monitor whether the background views corresponding to each reference size in the background drawing list are all drawn into the cache canvas. If the drawing is not completed, the background views are continued to be drawn in order from large to small size; if all the background views are drawn, the bitmap of the background view in the cache canvas is copied to the real canvas corresponding to the view used to display the background view (i.e., the second canvas), so that the background views can be presented in the user interface displayed by the display device.
[0022] In some embodiments of the present application, the controller executes adding the reference sizes in the demonstration size list to the background drawing list, and is specifically configured to: filter the reference sizes in the demonstration size list that are smaller than the first target size; and add the reference sizes in the demonstration size list that are smaller than the first target size to the background drawing list.
[0023] The above technical solution has the following advantages or beneficial effects: when the display device draws the background view, since the background view corresponding to the reference size smaller than the target size will be obscured by the presentation view corresponding to the target size, the display device can only draw the background view larger than the presentation view to save system resources consumed by drawing the view and improve the response speed.
[0024] In some embodiments of the present application, after the controller executes the step of controlling the display to display the display images of the first canvas and the second canvas, the controller is further configured to: receive a size switching instruction based on the input of the demonstration size list; in response to the size switching instruction, parse a switching direction indicated by the size switching instruction, the switching direction including a first direction and a second direction, the first direction being used to switch to a demonstration view having a size larger than the first target size, and the second direction being used to switch to a demonstration view having a size smaller than the first target size; read the second target size in the demonstration size list according to the switching direction; draw the demonstration view on the first canvas according to the second target size, and control the display to display the display images of the first canvas and the second canvas.
[0025] The above technical solution has the following advantages or beneficial effects: when displaying a demonstration view, the display device can switch views corresponding to each size in the demonstration size list according to different trends, such as the trend from large to small or from small to large. After receiving the size switching instruction, the display device can switch to display the demonstration view corresponding to the next size according to the trend indicated in the size switching instruction.
[0026] In some embodiments of the present application, the controller executes reading the second target size in the demonstration size list according to the switching direction, and is also configured to: read the first target size; if the switching direction is the first direction, and the first target size is the reference size with the largest size in the demonstration size list, then mark the reference size with the smallest size in the demonstration size list as the second target size; if the switching direction is the second direction, and the first target size is the reference size with the smallest size in the demonstration size list, then mark the reference size with the largest size in the demonstration size list as the second target size.
[0027] The above technical solution has the following advantages or beneficial effects: when the display device switches the presentation views of various sizes according to the trend from small to large, if the presentation view drawn last time is already the view of the largest size, then in response to the current size switching instruction, the view of the smallest size is displayed, so as to re-switch the presentation views corresponding to various sizes according to the trend from small to large; when the display device switches the presentation views of various sizes according to the trend from large to small, if the presentation view drawn last time is already the view of the smallest size, then in response to the current switching instruction, the view of the largest size is displayed, so as to re-switch the presentation views corresponding to various sizes according to the trend from large to small.
[0028] In a second aspect, some embodiments of the present application further provide a screen display method, which can be applied to the display device provided in the first aspect, and the method comprises the following steps:
[0029] Draw a presentation view on a first canvas according to a first target size, and read a reference size in a presentation size list; the presentation size list has at least two reference sizes, and the reference sizes include the first target size;
[0030] Drawing the background view on the cache canvas according to a reference size in the presentation size list that is larger than the first target size;
[0031] Drawing the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than the display level of the first canvas;
[0032] The display is controlled to display the display images of the first canvas and the second canvas to present the image contents of the presentation view and the background view.
[0033] It can be seen from the above technical solutions that some embodiments of the present application provide a display device and a screen display method, and the method can draw a demonstration view on the first canvas according to the target size, and read the reference size of the demonstration size list. Among them, the demonstration size list includes at least two reference sizes, and the reference size includes the target size. Then draw the background view on the cache canvas according to the reference size larger than the first target size, draw the background view of the cache canvas to the second canvas, and control the display to display the display screen of the first canvas and the second canvas, so that the user interface presents the screen content of the demonstration view and the background view. Among them, the display level of the second canvas is lower than the display level of the first canvas. The method can display demonstration views corresponding to multiple sizes in a single device, and synchronously display views corresponding to other sizes while displaying the demonstration view, which can enhance the contrast effect between views of different sizes and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;
[0036] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;
[0037] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;
[0038] Figure 4 A schematic diagram showing the effect of dimensions before improvement provided in some embodiments of the present application;
[0039] Figure 5 A schematic diagram of a flow chart of a screen display method provided in some embodiments of the present application;
[0040] Figure 6 A schematic diagram of a process for obtaining dimension data provided in some embodiments of the present application;
[0041] Figure 7 A schematic diagram of the effect of the size selection interface provided in some embodiments of the present application;
[0042] Figure 8 An interactive diagram for obtaining presentation size list data provided in some embodiments of the present application;
[0043] Fig. 9 A schematic diagram of a process of drawing a background view provided in some embodiments of the present application;
[0044] Fig.10 A schematic diagram of a process of copying background view data provided in some embodiments of the present application;
[0045] Fig.11 A schematic diagram of a process of switching presentation views provided in some embodiments of the present application;
[0046] Fig.12 A schematic diagram of a process of zooming in / out demonstration provided for some embodiments of the present application;
[0047] Fig.13 A schematic diagram of a size demonstration effect provided by some embodiments of the present application;
[0048] Fig.14 A schematic diagram of another size effect demonstration provided for some embodiments of the present application;
[0049] Fig.15 A schematic diagram of another size effect demonstration provided for some embodiments of the present application;
[0050] Fig.16 A schematic diagram of another size effect demonstration provided for some embodiments of the present application;
[0051] Fig.17 A schematic diagram of another size effect demonstration provided for some embodiments of the present application;
[0052] Fig.18 An interactive diagram of a screen display method provided in some embodiments of the present application. DETAILED DESCRIPTION
[0053] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0054] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0055] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0056] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0057] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0058] In the embodiment of the present application, the display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.
[0059] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that can be recognized and responded to by the display device 200. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0060] The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.
[0061] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .
[0062] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0063] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.
[0064] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0065] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0066] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0067] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.
[0068] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.
[0069] The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.
[0070] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0071] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0072] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).
[0073] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.
[0074] In some embodiments, the user input interface 280 may be used to receive instructions from a user.
[0075] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.
[0076] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.
[0077] The operating system can be divided into different modules or layers according to the functions implemented, such as Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.
[0078] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0079] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0080] like Figure 3 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0081] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes, for example, reducing the display window, shaking the display, distorting the display, etc.
[0082] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.
[0083] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 3As shown, the kernel layer may be configured with hardware drivers, and the drivers included in the kernel layer may be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0084] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.
[0085] based on Figure 3 In the view system shown, in some embodiments, the display device 200 can control the display 260 to display the corresponding user interface, and the user interface can include one or more Views. Among them, View is the basic unit for building a user interface, and the display process of View mainly includes three steps: measurement, layout, and drawing.
[0086] For the measurement phase, in some embodiments, the display device 200 may need to determine the size of the View, including the width and height, and the controller 250 of the display device 200 may call the measure method of the View to determine the size of the View. For example, in the measure method, the view system will pass two parameters: widthMeasureSpec (width measurement specification) and heightMeasureSpec (height measurement specification), which may include measurement mode and size information. The View then calculates the corresponding size based on these parameters and sets its own width and height by calling the setMeasuredDimension method.
[0087] For the measurement mode of the measurement segment, in some embodiments, the measurement mode can be an exact value (EXACTLY), a maximum value (AT_MOST) or unspecified (UNSPECIFIED), and the View needs to adapt to different layout requirements according to the corresponding measurement mode.
[0088] For the layout stage, in some embodiments, the controller 250 of the display device 200 needs to determine the position of the View in the parent container. The controller 250 of the display device 200 can determine the position of the View in the parent container by calling the layout method of the View. For example, in the layout method, the view system will pass four parameters: left, top, right, and bottom, which are used to define the boundaries of the View in the parent container. The View then calculates its own position in the parent container based on these parameters and sets the position by calling the layout method.
[0089] In some embodiments, when the controller 250 of the display device 200 sets the position of the View, that is, the View calls the layout method to set its own position in the parent container, which can be relative to the vertex position of the parent container, such as the upper left corner of the parent container.
[0090] For the drawing stage, in some embodiments, the display device 200 needs to draw the screen content of the View onto the screen, that is, present it in the user interface displayed by the display 260. The controller 250 of the display device 200 can draw the screen content of the View into the user interface for display by calling the draw method of the View. For example, in the draw method, the view system will pass a Canvas object. The View can use various drawing methods (such as drawRect, drawCircle, drawText, etc.) provided by the Canvas in the draw method to draw the screen content. Among them, the drawn screen content may include color, shape, picture or text, etc.
[0091] In some embodiments, the Canvas provided by the operating system of the display device 200 is a canvas for drawing. The Canvas can provide multiple drawing methods and allow the display device 200 to draw various graphics and texts on the View, such as drawing rectangles, circles, texts, etc.
[0092] In some embodiments, for different graphics and texts, the Canvas provided by the operating system of the display device 200 may use different drawing methods. The drawing methods may include methods for drawing images and methods for drawing texts, etc. Each method may pass a corresponding object to define the screen content of the graphics or texts to be drawn through the passed object.
[0093] For example, for drawing graphics, Canvas can use the drawRect method to draw a rectangle. The drawRect method needs to pass a RectF object (defining the boundaries of the rectangle) and a Paint object (defining the style of the rectangle, such as color, fill or stroke, etc.); Canvas can also use the drawCircle method to draw a circle. The drawCircle method needs to pass the x and y coordinates of the center of the circle, the radius, and a Paint object. For drawing text, Canvas can also use the drawText method to draw text. The drawText method needs to pass the text string to be drawn, the starting x and y coordinates of the text, and a Paint object (defining the style of the text, such as color, size, and alignment, etc.). During the drawing process, the display device 200 can control the style and appearance of the graphics by setting the properties of the Paint object, such as setting the color, fill or stroke style, line width, text size, and alignment, etc.
[0094] Based on the above view system and drawing method, in some embodiments, the display device 200 can implement View display logic and rich display content by rewriting the onMeasure, onLayout and onDraw methods of View and combining the drawing methods provided by Canvas.
[0095] In order to meet different display requirements, in some embodiments, different display devices 200 may be configured with displays 260 of different sizes, so that the display device 200 can control the display 260 to present user interfaces of different sizes in full-screen state. For example, the same model of display device 200 may be respectively provided with displays 260 of screen sizes of 55 inches, 60 inches, 75 inches, 85 inches, etc., and correspondingly, the display devices 200 of different screen sizes will also present user interfaces of different sizes in full-screen display state.
[0096] When evaluating the user interface display effects of display devices 200 with different screen sizes, such as a scenario in which a user purchases a display device, the user is required to go to the vicinity of the display device 200 with the corresponding screen size in turn to view it, which is a cumbersome and time-consuming process.
[0097] Therefore, in some embodiments, when the display device 200 detects a demonstration instruction, a preset demonstration video can be obtained through the controller 250. The demonstration video can be a video stored in the display device 200, a video provided by a signal source device external to the display device 200, or a video sent by the server 400 to the display device 200, and the demonstration video can include screen contents corresponding to multiple screen sizes. After the controller 250 obtains the demonstration video, it can play the demonstration video in response to the demonstration instruction to present the screen effects corresponding to different screen sizes.
[0098] Alternatively, in some embodiments, when the controller 250 of the display device 200 detects a demonstration instruction, it can also generate a demonstration screen corresponding to the screen size indicated in the demonstration instruction through the view system, and then control the display 260 to display the demonstration screen.
[0099] However, the above method of playing demonstration videos has high limitations. The screen content corresponding to the screen size that can be displayed in the demonstration video is fixed and cannot be adjusted and set according to user needs. For example, when a display device 200 of a certain screen size in a store is sold out, the display device 200 will still display according to the preset content. The demonstration screen is generated by the screen size indicated in the demonstration instruction, and the user interface displayed by the display 260 can only present a single screen size screen, which cannot reflect the contrast effect of the screen effects under different screen sizes (for example, Figure 4 The demonstration effect shown) affects the user experience.
[0100] To this end, some embodiments of the present application provide a display device 200, which can display the display effects of multiple user interfaces corresponding to different screen sizes through a single device. When receiving a demonstration instruction, the display device 200 can draw a demonstration view (View) according to the screen size indicated in the demonstration instruction, and also draw a background view (View) of other displayable screen sizes in the background of the demonstration view. The contrast effect between each screen size can be enhanced on the premise of correctly displaying the content of the corresponding screen size, thereby improving the user experience.
[0101] In some embodiments, the display device 200 may include a display 260 and a controller 250. The display 260 is coupled to the controller 250, and the display 260 is configured to display a user interface, such as Figure 5 As shown, the controller 250 is configured to perform the following program steps:
[0102] S501: Draw a presentation view on a first canvas according to a first target size, and read a reference size from a presentation size list.
[0103] For ease of description, in the embodiment of the present application, the screen size currently to be demonstrated by the demonstration instruction is represented as the first target size, and the View corresponding to the first target size is represented as the demonstration view.
[0104] In some embodiments, the display device 200 may receive demonstration instructions input based on different methods, and the demonstration instructions are used to instruct the display device 200 to display the corresponding display content under a screen size. The demonstration instructions may be demonstration instructions input based on the size selection interface, or they may be demonstration instructions automatically generated by the display device 200 based on log events, such as demonstration instructions automatically generated when the display device 200 supports the automatic demonstration function.
[0105] like Figure 6 As shown, in some embodiments, the controller 250 of the display device 200 further detects the data storage state of the demonstration size list to determine whether the demonstration size list includes memorized data (S601), such as the reference size, demonstration size, and the activation state of the automatic demonstration switch selected by manual selection. The demonstration size list includes at least two reference sizes, and the reference size includes a first target size; the reference size can also be called a local size, which is the display size corresponding to the current display device 200; the demonstration size is the selectable screen size of the current display device 200.
[0106] After the display device 200 detects the data storage status of the demonstration size list, if the demonstration size list stores a reference size, it means that the manually selected demonstration size is currently stored in the display device 200, and a size selection interface can be generated according to the demonstration size list (S602), and the display 260 can be controlled to display the size selection interface (S603). At this time, the content displayed in the size selection interface is the size selection interface displayed according to the user's historical operations memorized by the display device 200, which can improve the intelligent performance of the display device 200.
[0107] For example, the display device 200 may control the display 260 to display the size selection interface in response to the display instruction. Figure 7 The size selection interface shown in the figure includes the demonstration size that can be selected or deselected, the automatic demonstration switch status, and the operation prompt information. The selected demonstration size will be added to the demonstration size list and displayed as a reference size; the automatic demonstration switch status is used to indicate whether to turn on / off the automatic demonstration function; the operation prompt information is used to prompt the user how to operate.
[0108] In some embodiments, the size selection interface displayed by the display device 200 can also be used to set the reference size of the display device 200. That is, when the display device 200 detects a setting instruction for the reference size input based on the size selection interface, the reference size is set to the demonstration size indicated by the setting instruction. Figure 7 As shown in the operation prompt information, when the controller 250 of the display device 200 detects a control instruction containing a right key value input based on the size selection interface, the demonstration size is set to the demonstration size selected by the current cursor position.
[0109] In some embodiments, after the display device 200 detects the data storage status of the demonstration size list, if the demonstration size list does not store the reference size, it means that the current display device 200 does not store the manually selected demonstration size, and the controller 250 of the display device 200 can obtain the default size set according to the device information of the display device 200 (S604), generate the reference size according to the default size set (S605), and add the reference size to the demonstration size list (S606). At this time, the reference size in the demonstration size list is intelligently selected by the display device 200 according to the default information, which can improve the automation performance of the display device 200.
[0110] That is, when the display device 200 does not store the memorized data, the display device 200 can obtain the corresponding default data according to the device information of the display device 200, and determine the reference size that can be displayed in the demonstration size list according to the default data. The default data may include the above-mentioned default size set, reference size, and demonstration switch state.
[0111] Similarly, in the case where the display device 200 does not store any memorized data, in some embodiments, the display device 200 can generate a size selection interface based on default data and control the display 260 to display the size selection interface, so that the user can select a displayable reference size through the size selection interface generated based on the default data.
[0112] For example, Figure 8 As shown, the application layer of the display device 200 can be configured with a size data management module, which is used to store memorized data and default data. After the display device 200 is turned on, the controller 250 can automatically obtain the reference size, demonstration size, and the activation state of the automatic demonstration switch from the size data management module. The size data management module reads whether there is memorized data stored, and if so, the memorized data is fed back to the controller 250; otherwise, the default data is fed back to the controller 250.
[0113] At this time, the user calls up the size selection interface (i.e., the size selection dialog) through the menu key of the control device 100, so that the display 260 of the display device 200 displays the reference size, selectable demonstration size, and the enabled state of the automatic demonstration switch through the size selection interface. During the display process, if the user selects or cancels the selection or other operations on the size selection interface, the controller 250 of the display device 200 will update the display content of the size selection interface in real time according to the user operation (i.e., the dialog display data changes). When the user inputs a closing instruction to the display device 200 to the size selection interface, the display device 200 will respond to the closing instruction, dismiss (close) the size selection interface, and store the data of the size selection interface changes to the size data management module as memory data.
[0114] In some embodiments, the display device 200 can configure the selectable presentation size, and the configured selectable presentation size cannot be larger than the reference size (i.e., the native size) in principle. For example, if the native size of the current display device 200 is 75 inches, the selectable presentation size can be 85 inches but not 55 inches.
[0115] It should be noted that the size relationship between the various dimensions described in the embodiments of the present application can be compared by at least one of the width, height and diagonal length, and the present application does not impose any limitation on this.
[0116] In some embodiments, when the display device 200 displays a size selection interface, if the size selection interface includes a demonstration size larger than the reference size, the tab corresponding to the demonstration size (such as a specific option View or other control) is set to an uncontrollable state so that the user cannot select it. Correspondingly, the display device 200 can also set the tab of the demonstration size larger than the reference size to a display effect corresponding to the uncontrollable state, such as graying out.
[0117] In some embodiments, when the controller 250 of the display device 200 executes step S605, the reference size of the user interface in the full-screen display state can be read according to the device information, and the default sizes in the default size set can be traversed. The default sizes larger than the reference size can be deleted, and the default sizes smaller than or equal to the reference size can be retained to obtain the reference size. That is, the controller 250 of the display device 200 can delete the default sizes larger than the reference size in the default size set, and retain the remaining default sizes as reference sizes to ensure the display effect of each demonstration view.
[0118] The display device 200 sets the reference size in the demonstration size list in the above-mentioned manual or automatic manner. In some embodiments, the display device 200 may receive a demonstration instruction of a first target size based on the demonstration size list, that is, the first target size indicated by the demonstration instruction is one of the reference sizes included in the demonstration size list. The demonstration instruction of the first target size may be an instruction of the first target size input in response to a user operation, or may be an instruction of the first target size automatically generated by the display device 200 in the order of automatic demonstration when the automatic demonstration function is turned on.
[0119] In some embodiments, when the controller 250 of the display device 200 draws the presentation view according to the first canvas, it can calculate the scaling ratio of the first target size and the reference size, and then draw the presentation view in the first canvas according to the scaling ratio to present a View of the corresponding size in the user interface.
[0120] For example, the first target size is represented as newSize (diagonal length), and the reference size is represented as tvSize. Then, the presentation view width newWidth corresponding to the first target size is calculated as:
[0121]
[0122] Calculate the presentation view height corresponding to the first target size as:
[0123]
[0124] After the controller 250 of the display device 200 calculates the width and height corresponding to the above-mentioned presentation view, the onLayout and onDraw methods can be called by the view system to draw the presentation view. When the first target size and the reference size are not equal, the presentation view is scaled with the lower left corner as the origin, and the rectangle drawing method is passed with left=0, top=tvHeight-newHeight, right=newWidth, bottom=tvHeight. So
[0125] In some embodiments, the size transmitted in the view system of the display device 200 may be the length of the diagonal corresponding to the current size, such as the length of the diagonal corresponding to the rectangular object of the presentation view.
[0126] For example,
[0127]
[0128] S502: Draw a background view on a cache canvas according to a reference size in the presentation size list that is larger than the first target size.
[0129] The display device 200 draws a demonstration view corresponding to the first target size on the first canvas, and can also synchronously draw a background view corresponding to the reference size on the cache canvas according to a reference size larger than the first target size. The cache canvas can be a canvas used to cache the bitmap data corresponding to the View, and the cache canvas is not used for display. That is, the bitmap data in the cache canvas is not displayed in the foreground, but is only used for caching data.
[0130] like Fig. 9 As shown, in some embodiments, when drawing the background view, the controller 250 of the display device 200 can add the reference size of the demonstration size list to the background drawing list (S901), such as adding all the reference sizes that can be displayed in the demonstration size list to the background drawing list. The background drawing list is used to store the sizes corresponding to the background view, and the view system of the display device 200 can draw the background view according to the reference sizes stored in the background drawing list.
[0131] After the controller 250 of the display device 200 adds the reference size to the background drawing list, the first reference size can be extracted from the background drawing list according to the target order (S902). The target order is the order of the reference sizes from large to small. That is, the display device 200 can extract the reference sizes in the background drawing list one by one according to the order of the sizes from large to small, and the first reference size refers to the reference size currently extracted from the background drawing list.
[0132] For example, the reference sizes included in the demonstration size list are 85 inches, 75 inches, 65 inches, 60 inches and 55 inches, and the first target size indicated by the demonstration instruction is 55 inches. When the view system of the display device 200 draws the View corresponding to 55 inches, it also synchronously adds 85 inches, 75 inches, 65 inches, 60 inches and 55 inches to the background drawing list, and extracts the corresponding sizes (i.e., the first reference size) one by one in the order of 85 inches -> 75 inches -> 65 inches -> 60 inches -> 55 inches.
[0133] Since the background view is displayed behind the presentation view for contrast, the size smaller than the presentation view will be blocked by the presentation view. Therefore, in some embodiments, before adding the reference size to the background drawing list, the display device 200 may filter the reference sizes in the presentation size list that are smaller than the first target size, and add the reference sizes in the presentation size list that are smaller than the first target size to the background drawing list, which can reduce unnecessary drawing and data reading operations to save system resource consumption.
[0134] like Fig. 9As shown, in some embodiments, after the controller 250 of the display device 200 extracts the first reference size, it calculates the scaling ratio of the first reference size and the base size (S903), and then draws the background view in the cache canvas according to the scaling ratio (S904). The background view at least includes a frame content equal to the first reference size, so that the display effect corresponding to the size can be presented in the user interface.
[0135] It should be noted that the specific drawing logic of the background view is the same as the drawing logic of the demonstration view drawn by the above view system in the canvas. This application will not go into details here. However, it is worth noting that the data drawn in the cache canvas in this application is only used for caching and not foreground display.
[0136] In some embodiments, the display content in the background view can be a picture pre-cached in the display device 200, or a frame captured in the video, or a rectangular object containing only a border. The display content in the background view can be consistent with the demonstration view, or it can be inconsistent picture content, which is not limited by this application. The demonstration view can be used to play the responsive video data, such as the video data pre-cached in the display device 200, to improve the display effect and authenticity of the demonstration view. The picture content displayed by the demonstration view can be customized by the user, or it can be randomly set by the operating system in the controller 250.
[0137] For ease of observation, in some embodiments, when displaying the demonstration view and the background view, the display device 200 will also display prompt text corresponding to each size at a specific location, such as the size information corresponding to the current view (such as 85 inches, 75 inches, 65 inches, 60 inches and 55 inches).
[0138] Accordingly, in order to ensure the display effect of the prompt text, in some embodiments, the controller 250 of the display device 200 can also read the prompt text information associated with the first reference size during the process of drawing the background view on the cache canvas, calculate the text area of the prompt text according to the prompt text information, and read the second reference size in the demonstration size list. The prompt text information is used to display the prompt text of the reference size, and the second reference size is a reference size greater than the first reference size.
[0139] Then, the controller 250 of the display device 200 calculates the difference area between the background view corresponding to the second reference size and the background view corresponding to the first reference size. The difference area is the area remaining after removing the background view corresponding to the first reference size from the background view corresponding to the second reference size. If the height of the difference area is greater than or equal to the height of the text area, the step of drawing the background view in the cache canvas according to the scaling ratio is executed; if the height of the difference area is less than the height of the text area, the first reference size is deleted from the background drawing list.
[0140] That is to say, if there is not enough space to display the prompt text between the background view currently to be drawn and the background view previously drawn, the current background view will be deleted from the background drawing list, and the background view of this size will not be drawn; if there is enough space to display the prompt text between the background view currently to be drawn and the background view previously drawn, the current background view can be drawn.
[0141] S503: Draw the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than the display level of the first canvas.
[0142] After the display device 200 draws the background view in the cache canvas, it can draw the background view drawn in the second drawing to the second canvas, wherein the display level of the background view needs to be lower than the display level of the presentation view, so that the first canvas and the second canvas can synchronously present the presentation view and the background view, and the presentation view is located on the upper layer of the background view for display.
[0143] In some embodiments, when the controller 250 of the display device 200 draws the background view to the second canvas, the drawing progress of each reference size in the background drawing list can be detected. If the background drawing list includes a background view corresponding to an undrawn reference size, the controller 250 of the display device 200 continues to perform the step of extracting the first reference size in the background drawing list according to the target order (i.e., step S902).
[0144] If the background drawing list does not include the background view corresponding to the undrawn reference size, the controller 250 of the display device 200 reads the bitmap data of the background view in the cache canvas and copies the bitmap data to the second canvas. Since the display level of the second canvas is lower than the display level of the first canvas, at this time, the bitmap of the background view of the cache canvas (i.e., cache) is copied to the second canvas, so that the background view does not affect the display effect of the presentation view in the user interface.
[0145] For example, Fig.10As shown, the controller 250 of the display device 200 can draw the background view through the view system. The controller 250 can obtain the background drawing list that needs to be drawn from the size data management module, and then extract the background view corresponding to the reference size in the background drawing list in order of size from large to small. Among them, the earlier the background view is drawn, the lower the corresponding display level. If there is an undrawn reference size, the background view corresponding to the currently extracted reference size is drawn to the canvas of the drawingBitmap (i.e., the cached canvas) according to the ratio of the currently extracted reference size and the base size; if there is no undrawn reference size, the drawingBitmap is drawn to the real canvas used to display the background view (i.e., the second canvas).
[0146] S504: Control the display to display the display images of the first canvas and the second canvas, so that the user interface presents the image contents of the presentation view and the background view.
[0147] The controller 250 of the display device 200 draws the drawn background view to the second canvas, and can control the display 260 to display the display screens of the first canvas and the second canvas, so that the screen contents of the demonstration view and the background view can be presented in the user interface displayed by the display 260, so that while displaying the demonstration view of the size indicated by the demonstration instruction, the display effects of the remaining displayable sizes are presented synchronously, thereby improving the user's viewing experience.
[0148] After the display device 200 displays a demonstration view corresponding to a certain size, the user can also switch to demonstration views of other sizes through a specific interaction method.
[0149] That is, Fig.11 As shown, in some embodiments, after the display device 200 displays the display screens of the first canvas and the cached canvas, the controller 250 may also receive a size switching instruction (S1101) input based on the presentation size list, and parse the switching direction indicated by the size switching instruction in response to the size switching instruction (S1102). The switching direction refers to the size change trend indicated by the currently input switching instruction, and the switching direction may include a first direction and a second direction, the first direction is used to switch to a presentation view with a size larger than the first target size, and the second direction is used to switch to a presentation view with a size smaller than the first target size. That is, the first direction is used to switch to a presentation view of a larger size, and the second direction is used to switch to a presentation view of a smaller size.
[0150] After parsing the switching direction indicated by the size switching instruction, the controller 250 of the display device 200 can read the second target size in the demonstration size list according to the switching direction (S1103), draw the demonstration view on the first canvas according to the second target size (S1104), and control the display 260 to display the display screens of the first canvas and the second canvas (S1105), so that the display screens of the new demonstration view and the background view can be presented in the user interface displayed by the display 260.
[0151] It is understandable that the drawing logic of the presentation view can refer to the logic of drawing the view of the above-mentioned view system, which will not be described in detail in this application.
[0152] like Fig.12 As shown, for the critical size in the size demonstration list, in some embodiments, when the display device 200 reads the second target size in the demonstration size list according to the switching direction, the first target size can also be read (S11031). If the switching direction is the first direction, and the first target size is the largest reference size in the demonstration size list, the smallest reference size in the demonstration size list is marked as the second target size (S11032); if the switching direction is the second direction, and the first target size is the smallest reference size in the demonstration size list, the largest reference size in the demonstration size list is marked as the second target size (S11033).
[0153] In some embodiments, when the display device 200 receives the size switching instruction and draws the presentation view corresponding to the new second target size, it can also determine whether the background view needs to be updated according to the size switching instruction. If necessary, Fig. 9 The background view is drawn as shown; otherwise, no additional processing is performed on it.
[0154] In some embodiments, the judgment condition that the controller 250 of the display device 200 needs to perform an update on the background view can be at least one of the following situations: there is an undrawn reference size in the background drawing list that is larger than the second target size; or there is an update to the preset bitmap cache such as the picture used by the background view.
[0155] Based on the above embodiment, for example, after the display device 200 controls the display 260 to display the first canvas and the cached canvas, the display 260 of the display device 200 may present the following Fig.13 The display effect shown. Fig.13In the example, the demonstration view 1301 is the view corresponding to 60 inches, and the background view 1302 is the display effect corresponding to 80 inches, 88 inches, 100 inches and 110 inches respectively. This can be used to compare the difference between other sizes and clearly derive the display effect of the current display size. At this time, if the user switches the demonstration view in the first direction (i.e. the direction of enlargement), the following images will be displayed in sequence: Fig.14 —> Fig.15 —> Fig.16 —> Fig.17 display effect.
[0156] To implement the above steps S501-S504, in some embodiments, the application layer of the display device 200 can be configured with a specific application or service for executing the above steps S501-S504. For example, the application can be configured with a size data management module and a size adjustment module, and the display device 200 can display the display screen corresponding to the above-mentioned first canvas and cache canvas based on the application.
[0157] For example, the application used to implement the above steps S501-S504 is represented as a size display application, such as Fig.18 As shown, the user can start the size display application, which can provide an interactive interface for selecting specific files to demonstrate the interface effects at different sizes. Among them, the selectable files can be videos or pictures. After the user performs the selection operation on the specific file based on the interactive interface, the size adjustment module of the size display application automatically performs initialization in response to the operation, and then obtains the reference size, demonstration size and the enabled state of the automatic demonstration switch from the size data management module. If there is memorized data in the size data management module, the memorized data is returned to the size adjustment module so that the size adjustment module draws and displays the demonstration view and background view according to the size data management module. In the process of displaying the demonstration view and the background view, if the user inputs a size switching instruction to the display device 200 again, the size adjustment module obtains the parameters corresponding to the size supported by the current size switching instruction, and calculates and adjusts the demonstration view according to the parameters to switch the displayed demonstration view.
[0158] Based on the above display device 200, some embodiments of the present application also provide a screen display method, which can be applied to the display device 200 provided in the above embodiment. Figure 5 As shown, the screen display method may include the following steps:
[0159] S501: Draw a presentation view on a first canvas according to a first target size, and read a reference size in a presentation size list; the presentation size list has at least two reference sizes, and the reference sizes include the first target size;
[0160] S502: Drawing a background view on a cache canvas according to a reference size in the demonstration size list that is larger than the first target size;
[0161] S503: drawing the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than that of the first canvas;
[0162] S504: Control the display to display the display images of the first canvas and the second canvas to present the image contents of the presentation view and the background view.
[0163] It can be seen from the above technical solutions that the display device and screen display method provided by some embodiments of the present application can respond to the demonstration instruction of the target size, draw the demonstration view on the first canvas according to the target size, and read the reference size of the demonstration size list. Among them, the demonstration size list includes at least two reference sizes, and the reference size includes the target size. Then draw the background view on the cache canvas according to the reference size, draw the background view of the cache canvas to the second canvas, and control the display 260 to display the display screen of the first canvas, so that the user interface presents the screen content of the demonstration view and the background view. Among them, the display level of the second canvas is lower than the display level of the first canvas. The method can display demonstration views corresponding to multiple sizes in a single display device 200, and simultaneously display the views corresponding to the remaining sizes while displaying the demonstration view, which can enhance the contrast effect between views of each size and improve the user experience.
[0164] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0165] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0167] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: a display configured to display a user interface; A controller is coupled to the display and is configured to: Draw a presentation view on a first canvas according to a first target size, and read a reference size in a presentation size list; the presentation size list has at least two reference sizes, and the reference sizes include the first target size; Drawing the background view on the cache canvas according to a reference size in the presentation size list that is larger than the first target size; Drawing the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than that of the first canvas; The display is controlled to display the display images of the first canvas and the second canvas, so that the user interface presents the image contents of the presentation view and the background view.
2. The display device according to claim 1, characterized in that Before the controller executes the step of drawing the presentation view on the first canvas according to the first target size, the controller is further configured to: Detecting the data storage status of the demonstration size list; If the demonstration size list stores the reference size, generating a size selection interface according to the demonstration size list, and controlling the display to display the size selection interface, wherein the size selection interface includes options corresponding to the reference size, and the reference size is less than or equal to a reference size of the user interface in a full-screen display state; If the demonstration size list does not store the reference size, a default size set is acquired according to the device information of the display device, the reference size is generated according to the default size set, and the reference size is added to the demonstration size list.
3. The display device according to claim 2, characterized in that The controller generates the reference size according to the default size set, and is specifically configured to: Reading a reference size of the user interface in a full-screen display state according to the device information; Traversing the default sizes in the default size set; The default sizes larger than the reference size are deleted, and the default sizes smaller than or equal to the reference size are retained to obtain the reference size.
4. The display device according to claim 1, characterized in that The controller executes drawing of the background view on the cache canvas and is specifically configured as follows: Adding the reference size of the presentation size list to the background drawing list; Extracting a first reference size from the background drawing list according to a target order, wherein the target order is an order of the reference sizes from large to small; Calculating a scaling ratio between the first reference size and a reference size, wherein the reference size is a size of the user interface in a full-screen display state; The background view is drawn in the cache canvas according to the scaling ratio, wherein the background view at least includes a border content equal to the first reference size.
5. The display device according to claim 4, characterized in that Before the controller executes the step of drawing the background view in the cache canvas according to the scaling ratio, the controller is further configured to: Reading prompt text information associated with the first reference dimension, wherein the prompt text information is used to display a prompt text of the reference dimension; Calculating a text area of the prompt text according to the prompt text information, and reading a second reference size in the size demonstration list, where the second reference size is a reference size greater than the first reference size; Calculating a difference area between the second reference size corresponding background view and the first reference size corresponding background view, wherein the difference area is a remaining area after removing the first reference size corresponding background view from the second reference size corresponding background view; If the height of the difference area is greater than or equal to the height of the text area, executing the step of drawing the background view in the cache canvas according to the scaling ratio; If the height of the difference area is smaller than the height of the text area, the first reference size is deleted from the background drawing list.
6. The display device according to claim 4, characterized in that The controller executes drawing the background view of the cache canvas to the second canvas, and is specifically configured as follows: If the background drawing list includes background views corresponding to undrawn reference sizes, continue to perform the step of extracting the first reference size in the background drawing list according to the target order; If the background drawing list does not include the background view corresponding to the undrawn reference size, the bitmap data of the background view in the cache canvas is read, and the bitmap data is copied to the second canvas.
7. The display device according to claim 4, characterized in that The controller executes adding the reference size of the presentation size list to the background drawing list, and is specifically configured as follows: Filter the reference sizes in the demonstration size list that are smaller than the first target size; Reference sizes in the presentation size list that are smaller than the first target size are added to the background drawing list.
8. The display device according to claim 1, characterized in that After the controller executes the step of controlling the display to display the display images of the first canvas and the second canvas, the controller is further configured to: receiving a size switching instruction input based on the demonstration size list; In response to the size switching instruction, parsing a switching direction indicated by the size switching instruction, the switching direction comprising a first direction and a second direction, the first direction being used to switch to a presentation view having a size larger than the first target size, and the second direction being used to switch to a presentation view having a size smaller than the first target size; Reading a second target size in the demonstration size list according to the switching direction; A presentation view is drawn on the first canvas according to the second target size, and a display is controlled to display the display images of the first canvas and the second canvas.
9. The display device according to claim 8, characterized in that The controller reads the second target size in the demonstration size list according to the switching direction, and is further configured to: Reading the first target size; If the switching direction is the first direction, and the first target size is the largest reference size in the demonstration size list, marking the smallest reference size in the demonstration size list as the second target size; If the switching direction is the second direction, and the first target size is the smallest reference size in the demonstration size list, the largest reference size in the demonstration size list is marked as the second target size.
10. A screen display method, characterized in that: include: Draw the presentation view on the first canvas according to the first target size, and read the reference size of the presentation size list; The demonstration size list has at least two reference sizes, and the reference sizes include the first target size; Drawing the background view on the cache canvas according to a reference size in the presentation size list that is larger than the first target size; Drawing the background view of the cache canvas to a second canvas, where the display level of the second canvas is lower than the display level of the first canvas; The display is controlled to display the display images of the first canvas and the second canvas to present the image contents of the presentation view and the background view.
Citation Information
Patent Citations
System to highlight differences in thumbnail images, mobile phone including system, and method
CN102473441A
Stereoscopic image reproduction device and method, stereoscopic image capturing device, stereoscopic display device
CN102893613A
Display terminal image quality adjusting method and device and display terminal
CN106851434A
Display device and interface display method
CN114995932A
Display device and picture-in-picture window display method
CN117806748A