Display method and electronic device
The display method on electronic devices allows users to seamlessly switch between image types by receiving user inputs, addressing the inflexibility of existing methods and enhancing the viewing experience through continuous display of preferred orientations.
Patent Information
- Application Number
- JP2022537042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-27
- Filing Date
- 2020-12-24
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-12-24
AI Technical Summary
Existing image display methods on electronic devices are not flexible, requiring users to switch orientations and adjust display sizes manually when transitioning between portrait and landscape modes, leading to an undesirable viewing experience.
Implementing a display method that allows users to input commands to switch seamlessly between different types of images, such as landscape and portrait, by receiving user inputs to display adjacent images of the desired orientation, enabling continuous viewing of preferred image types.
Enhances user flexibility in image viewing by allowing quick transitions between landscape and portrait modes, improving the overall image viewing experience by enabling continuous display of preferred image orientations.
Smart Images

Figure 0007605843000001 
Figure 0007605843000002 
Figure 0007605843000003
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to Chinese Patent Application No. 201911374453.X, filed in China on December 27, 2019, the entire contents of which are incorporated herein by reference. [Technical field]
[0002] FIELD OF THE DISCLOSURE The embodiments of the present invention relate to the field of communication technology, and in particular to a display method and an electronic device. [Background technology]
[0003] 2. Description of the Related Art With the development of communication technology, users are increasingly using electronic devices. For example, it is common for users to use electronic devices to view images.
[0004] Typically, electronic devices display images one after the other in sequence, allowing a user to browse through the images in sequence, one after the previous or next image to the currently displayed image.
[0005] However, according to the above image display method, there is a problem that the image viewing method is not flexible enough. For example, when the image displayed by the electronic device in portrait mode is an image with a desired landscape display effect, the user needs to control the electronic device to switch to landscape mode when auto-rotation is turned on in order to view the image with a desired landscape display effect, and if the image next to the landscape image is a portrait image, the electronic device will generally reduce and rotate the display size of the portrait image to fit the display width, and the user needs to switch the electronic device from landscape mode to portrait mode again when the user needs to view the image with a desired portrait display effect. Summary of the Invention [Problem to be solved by the invention]
[0006] SUMMARY OF THE DISCLOSURE The embodiments of the present invention provide a display method and an electronic device to solve the problem of undesirable image display effects of electronic devices. [Means for solving the problem]
[0007] In order to solve the above technical problems, an embodiment of the present invention is implemented as follows.
[0008] In a first aspect, an embodiment of the present invention provides a display method including the steps of: accepting a first input from a user when displaying a first image from a first type of images; displaying a second image from a second type of images different in type from the first type of images in response to the first input; accepting a second input from the user; and displaying a third image, which is an image adjacent to the second image from the second type of images, in response to the second input.
[0009] In a second aspect, an embodiment of the present invention further provides an electronic device comprising a receiving module and a display module, wherein the receiving module is configured to receive a first input from a user when displaying a first image from a first type of images, and the display module is configured to display a second image from a second type of images different in type from the first type of images in response to the first input received by the receiving module, and the receiving module is further configured to receive a second input from the user, and the display module is further configured to display a third image, which is an image adjacent to the second image from the second type of images, in response to the second input received by the receiving module.
[0010] In a third aspect, an embodiment of the present invention provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the electronic device realizing the steps of the display method described in the first aspect when the computer program is executed by the processor.
[0011] In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program being configured to implement the steps of the display method according to the first aspect when executed by a processor. Effect of the Invention
[0012] In an embodiment of the present invention, first, when a first image of the first type of images is displayed, the electronic device receives a first input from the user, and the electronic device can display a second image of the second type of images in response to the first input. Then, the electronic device receives a second input from the user, and the electronic device can display a third image in response to the second input. The first type of images and the second type of images are different in type, and the third image is an image adjacent to the second image of the second type of images, that is, the first input can trigger the electronic device to display the second type of images, so that when browsing images, when the second type of images need to be viewed independently, the first input can trigger the electronic device to display the second type of images. For example, when a user views images, if the user only wants to view landscape images when viewing images, but portrait images are currently being displayed, the electronic device can be triggered to continuously display landscape images; if the user only wants to view portrait images when viewing images, but landscape images are currently being displayed, the electronic device can be triggered to continuously display portrait images, thereby allowing the user to quickly view landscape photos when the electronic device is in a landscape state (auto-rotation on) and quickly view portrait photos when the electronic device is in a portrait state, making the display method relatively flexible and improving the user's image viewing experience. [Brief description of the drawings]
[0013] [Figure 1] FIG. 2 is a schematic diagram of a possible Android operating system architecture according to an embodiment of the present invention. [Diagram 2] 4 is a flowchart of a display method according to an embodiment of the present invention. [Diagram 3] 1 is a schematic diagram showing a possible configuration of an electronic device according to an embodiment of the present invention; [Figure 4] FIG. 2 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the drawings in the embodiments of the present invention, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and are not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without any creative efforts shall fall within the protection scope of the present invention.
[0015] It should be explained that " / " in this specification means "or", for example, A / B may represent A or B, and "and / or" in this specification is merely for describing the related relationship of related objects, and indicates that three relationships can exist, for example, A and / or B may indicate three cases: only A exists, A and B exist simultaneously, and only B exists. "Multiple" refers to two or more than two cases.
[0016] In the present specification and claims, technical terms such as "first", "second", etc. are used to distinguish between different objects, rather than to describe a particular order of the objects. For example, a first image, a second image, etc. are used to distinguish between different images, rather than to describe a particular order of the images.
[0017] It should be explained that in the embodiments of the present invention, the terms "exemplary" or "for example" are intended to provide an example, illustration, or explanation. Any embodiment or design solution described in the embodiments of the present invention with the terms "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or design solutions. Strictly speaking, the terms "exemplary" or "for example" are used for the purpose of presenting the relevant concept in a concrete form.
[0018] The electronic device in the embodiment of the present invention may be an electronic device having an operating system, which may be an Android operating system, an ios operating system, or other possible operating systems, and is not specifically limited in the embodiment of the present invention.
[0019] In the following, the Android operating system is taken as an example to describe the software environment to which the display method provided by the embodiment of the present invention is applied.
[0020] 1 is a schematic diagram of a possible Android operating system architecture according to an embodiment of the present invention. In FIG. 1, the Android operating system architecture includes four layers, which are an application layer, an application framework layer, a system execution library layer, and a kernel layer (which may be a Linux kernel layer in detail).
[0021] The application layer includes each application in the Android operating system, including system applications and third-party applications.
[0022] The application framework layer is a framework of an application, and a developer can develop some applications based on the application framework layer in accordance with the development principles of the application framework.
[0023] The system execution library layer includes libraries (also called system libraries) and the Android operating system execution environment. The libraries are mainly responsible for providing various resources required by the Android operating system. The Android operating system execution environment is responsible for providing a software environment for the Android operating system.
[0024] The kernel layer is the operating system layer of the Android operating system and is the lowest layer of the software hierarchy of the Android operating system. The kernel layer is based on the Linux kernel and provides core system services and hardware-related driver programs to the Android operating system.
[0025] Taking the Android operating system as an example, in an embodiment of the present invention, a developer can develop a software program for implementing the display method provided by the embodiment of the present invention based on the system architecture of the Android operating system shown in Fig. 1 described above, so that the display method can be executed under the Android operating system as shown in Fig. 1. That is, a processor or electronic device can implement the display method provided by the embodiment of the present invention by executing the software program in the Android operating system.
[0026] Hereinafter, the display method according to the embodiment of the present invention will be described with reference to Fig. 2. Fig. 2 is a flow chart of the display method according to the embodiment of the present invention. As shown in Fig. 2, the display method includes S201 to S204.
[0027] In S201, when a first image of a first type of image is being displayed, the electronic device accepts a first input from the user.
[0028] Wherein, the first input is an input corresponding to a second type of image, and the first input is used to trigger the electronic device to display the second type of image.
[0029] Exemplarily, the first input may be a swipe input or a tap input. For example, if the first input is a swipe-type input, the first input may be an input where a user swipes the display from top to bottom with one finger, an input where a user swipes the display from bottom to top with one finger, an input where a user swipes the display from left to right with two fingers, or an input where a user swipes the display from right to left. If the first input is a tap input, the first input may be an input where a user double-tap the top region of the display, an input where a user double-tap the bottom region of the display, an input in the left region of the display by the user, or an input in the right region of the display by the user.
[0030] In an embodiment of the present invention, the first type of image may be a landscape image or a portrait image. Or, the first type of image may be a favorite image, a non-favorite image, or all images. Or, the first type of image may be a dynamic image, a static image, or a video image. The embodiment of the present invention is not specifically limited thereto.
[0031] Among them, in an embodiment of the present invention, a landscape image may be an image whose width is greater than its height (e.g., the image aspect ratio is greater than 1), and a portrait image may be an image whose width is less than its height (e.g., the image aspect ratio is less than 1).
[0032] For ease of understanding, an image captured by the camera when the electronic device is in a landscape orientation may be referred to as a landscape image, and an image captured by the camera when the electronic device is in a portrait orientation may be referred to as a portrait image.
[0033] It is necessary to explain that when the first type of image is a landscape image or a portrait image, and when the first type of image is a favorited image or a non-favorite image, the first image may specifically be a dynamic image, a static image or a video image.
[0034] In S202, the electronic device displays a second image of the second type of images in response to the first input.
[0035] Among them, the types of the first type images and the second type images are different.
[0036] By way of example, the first and second types may be different types in a pair such as landscape and portrait, or two different types in a cluster such as static, dynamic (image) and video, and favorited, unfavorite and all.
[0037] When the first type of image is a landscape image, the second type of image may be a portrait image.
[0038] If the first type of image is a portrait image, the second type of image may be a landscape image.
[0039] When the first type of images are images that have been added to favorites, the second type of images may be images that have not been added to favorites or all images.
[0040] When the first type of images are images that are not added to favorites, the second type of images may be images that are added to favorites or all images.
[0041] When the first type of images are all images, the second type of images may be images that have not been added to favorites or images that have been added to favorites.
[0042] When the first type of image is a static image, the second type of image may be a video image or a dynamic image.
[0043] When the first type of image is a dynamic image, the second type of image may be a video image or a static image.
[0044] When the first type of image is a video image, the second type of image may be a dynamic image or a static image.
[0045] Optionally, in embodiments of the present invention, both the first type of images and the second type of images may belong to a target image set.
[0046] Exemplarily, the target image set may be an album, which may be an album in a gallery of an electronic device, an album in a web page, or an album in an application. The target image set may be images in a social situation, for example, the images in the target image set include images in a user's posts.
[0047] In an embodiment of the present invention, it is assumed that the first and second images are both images in the same album in the gallery, and the order of the images in the album may be arranged in chronological order in which they were taken, or may be arranged by image size, or may be arranged by image name, and it should be noted that the embodiment of the present invention is not specifically limited in this regard.
[0048] It can be understood that the above-mentioned second image may be a second type of image that is closest to the first image in the sorting order in an album, and may be a second type of image that is closest to the first image in the display order in an album.
[0049] Optionally, the second image may be an image of the second type of image that is displayed before the first image, or may be an image of the second type of image that is displayed after the first image, and the embodiment of the present invention is not specifically limited in this regard.
[0050] Specifically, assuming that a user is viewing photos in an album in an electronic device gallery and the electronic device is in a portrait orientation, when a landscape photo is viewed on the electronic device, if the user finds the display effect of the landscape photo undesirable and wishes to view only portrait images in portrait mode, a first input can be made to the display of the electronic device to trigger the electronic device to display portrait images in the album.
[0051] As an example, assume that image a is a landscape image, image b is a landscape image, image c is a portrait image, image d is a portrait image, and image e is a landscape image. When the electronic device receives a first input while displaying image a, it can display image c (the portrait image that is closest in display order to image a). When the electronic device receives a first input while displaying image c, it can display image b (the landscape image that is closest in display order to image b, which is before image c) or display image e (the landscape image that is closest in display order to image b, which is after image c).
[0052] In S203, the electronic device accepts a second input from the user.
[0053] Among them, the second input is an input by the user to trigger the electronic device to display a next second type of image.
[0054] In S204, the electronic device displays a third image in response to the second input.
[0055] Among them, the third image is an image of the second type that is adjacent to the second image.
[0056] For example, the third image is a second type of image that is adjacent to the second image in the target image set.
[0057] Optionally, the third image may be the image before the second image or the image after the second image.
[0058] It can be understood that when the third image is the image before the second image, if the user performs the second input n (n≧2) times, the electronic device can display the n-1th type of second image before the third image, and when the third image is the image after the second image, if the user performs the second input n times, the electronic device can display the n-1th type of second image after the third image.
[0059] Since the electronic device displays an image adjacent to the second image in response to the user's second input, it can be determined that the first input is an input by the user that triggers the electronic device to display only the second type of image, i.e., it can be understood that when the first type of image is being displayed, the user can control the electronic device to display only the second type of image by using the first input.
[0060] For illustrative purposes, to facilitate understanding of the display method of the embodiment of the present invention, when a landscape image is currently being viewed on the electronic device, a user can control the electronic device to display a portrait image by a first input, and continue to view other portrait images by a second input. When a portrait image is currently being viewed on the electronic device, a user can control the electronic device to display a landscape image by a first input, and continue to view other landscape images by a second input.
[0061] In the display method according to the embodiment of the present invention, first, when a first image of the first type of images is displayed, the electronic device receives a first input from the user, and the electronic device can display a second image of the second type of images in response to the first input. Then, the electronic device receives a second input from the user, and the electronic device can display a third image in response to the second input. The first type of images and the second type of images are different in type, and the third image is an image adjacent to the second image of the second type of images, that is, the first input can trigger the electronic device to display the second type of images, so that when browsing images, when it is necessary to view the second type of images alone, the first input can trigger the electronic device to display the second type of images. For example, when a user views images, if the user only wants to view landscape images when viewing images, but portrait images are currently being displayed, the electronic device can be triggered to continuously display landscape images; if the user only wants to view portrait images when viewing images, but landscape images are currently being displayed, the electronic device can be triggered to continuously display portrait images, thereby allowing the user to quickly view landscape photos when the electronic device is in a landscape state (auto-rotation on) and quickly view portrait photos when the electronic device is in a portrait state, making the display method relatively flexible and improving the user's image viewing experience.
[0062] Optionally, in an embodiment of the present invention, both the first type of image and the second type of image belong to a target image set, and the second image may be a single second type of image that is closest in order to the first image in the target image set.
[0063] According to this technical means, the electronic device can display, in response to a first input from the user, one second type image whose ordering in the target image set is closest to the first image. For example, when the images are arranged in chronological order, the user can conveniently and quickly find one second type image whose shooting time is closest to the shooting time of the first image. There is no need to start from viewing the first image of the second type images. This makes it convenient for the user to search for second type images related to the first image, and makes it more convenient for the user to view images.
[0064] Optionally, in an embodiment of the present invention, the electronic device can determine whether the third image is an image of the second type of image that precedes or follows the second image according to a relationship between a first input attribute of the second input and the first input, in which the first input attribute can be a type of input, a direction of input, a position of input, or a number of times of input.
[0065] Exemplarily, the first input may be a swipe type input or a tap type input. For example, the first input may be a swipe in a first direction and the second input may be a swipe in a second direction, the first input may be a tap on the display multiple times and the second input may be a single tap on the display, the first input may be a tap on a first position on the display multiple times and the second input may be a tap on a second position on the display multiple times, the first input may be a double tap on the first position and the second input may be a double tap on the second position.
[0066] Specifically, if the first position may be a position in the top region of the display, the second position may be a position in the top region of the display or a position in the bottom region of the display, and if the first position may be a position in the left region of the display, the second position may be a position in the left region of the display or a position in the right region of the display.
[0067] Optionally, in an embodiment of the present invention, the first input and the second input may both be swiping inputs on the display, and the second input may be an input parallel to the input direction of the first input.
[0068] Exemplarily, if the first input is an input of a user swiping up along the display of the electronic device, the second input may be an input of a user swiping up along the display of the electronic device, or an input of a user swiping down along the display of the electronic device. If the first input is an input of a user swiping left along the display of the electronic device, the second input may be an input of a user swiping left along the display of the electronic device, or an input of a user swiping right along the display of the electronic device. If the first input is an input of a user swiping left on the display with two fingers, the second input may be an input of a user swiping left on the display with two fingers, or an input of a user swiping right on the display with two fingers.
[0069] It should be noted that in an embodiment of the present invention, the first input is used to trigger the electronic device to display a second type of image that is closest in order to the first image in the target image set, and the second image may be an image displayed before the first image or an image displayed after the first image, and the user can control whether the second image displayed by the electronic device is the image before or after the first image depending on the input direction of the first input.
[0070] Illustratively, a user can trigger the electronic device to display the first second type of image before a currently displayed first type of image by swiping the display from top to bottom, and a user can trigger the electronic device to display the first second type of image after a currently displayed first type of image by swiping the display from bottom to top.
[0071] The above has been described as an example of a first input of swiping from top to bottom triggering an electronic device to display a second image before a first image. However, in actual applications, a user may adjust the first input of swiping from top to bottom according to his or her own habits to trigger an electronic device to display a second image after a first image, and it should be noted that the embodiments of the present invention are not specifically limited in this regard.
[0072] In an embodiment of the present invention, the order relationship between the third image and the second image can be determined based on whether the attributes of the second input and the first input are the same, and specifically, the following two types of implementation can be included. (First possible implementation)
[0073] The second image is an image arranged before the first image, and if the first input attributes of the second input and the first input are the same, the third image is an image of the second type of image arranged before the second image, and if the first input attributes of the second input and the first input are different, the third image is an image of the second type of image arranged after the second image.
[0074] For example, when the first input attribute is input direction, if the input directions of the second input and the first input are the same, the third image is an image arranged before the second image among the second type of images, and if the input directions of the second input and the first input are opposite, the third image is an image arranged after the second image among the second type of images. When the first input attribute is input position, if the input positions of the second input and the first input are the same, the third image is an image arranged before the second image among the second type of images, and if the input positions of the second input and the first input are different, the third image is an image arranged after the second image among the second type of images.
[0075] Example 1-1: When an electronic device is displaying image 1-1 (landscape image), assuming that the electronic device is in a portrait state and the first input is an input of swiping the display from top to bottom, image 2-1 (portrait image) displayed by the electronic device may be the closest portrait image arranged before image 1-1 among the portrait images in the gallery. When image 2-1 is displayed and the second input is an input of swiping the display from top to bottom (i.e., the direction of the second input is the same as the input direction of the first input), image 3-1 displayed by the electronic device is the closest portrait image arranged before image 2-1 among the portrait images in the gallery. When image 2-1 is displayed and the second input is an input of swiping the display from bottom to top (i.e., the direction of the second input is opposite to the input direction of the first input), image 4-1 displayed by the electronic device is the closest portrait image arranged after image 2-1 among the portrait images in the gallery.
[0076] Example 1-2: When an electronic device is displaying image 1-2 (portrait image), if the electronic device is in landscape orientation and the first input is an input of swiping the display from top to bottom, image 2-2 (landscape image) displayed by the electronic device is the closest landscape image arranged before image 1-2 among the landscape images in the gallery. When image 2-2 is displayed and the second input is an input of swiping the display from top to bottom (i.e., the direction of the second input is the same as the input direction of the first input), image 3-2 displayed by the electronic device is the closest landscape image arranged before image 2-2 among the landscape images in the gallery. When image 2-2 is displayed and the second input is an input of swiping the display from bottom to top (i.e., the direction of the second input is opposite to the input direction of the first input), image 4-2 displayed by the electronic device is the closest landscape image arranged after image 2-2 among the landscape images in the gallery.
[0077] Example 1-3: When the electronic device is displaying image 1-3 (an image not added to favorites), if the first input is an input of swiping the display from top to bottom, image 2-3 (an image added to favorites) displayed by the electronic device is the closest image added to favorites that is arranged before image 1-3 among the images added to favorites in the gallery. When the electronic device is displaying image 2-3, and if the second input is an input of swiping the display from top to bottom (i.e., the direction of the second input is the same as the input direction of the first input), image 3-3 displayed by the electronic device is the closest image added to favorites that is arranged before image 2-3 among the images added to favorites in the gallery. When the electronic device is displaying image 2-3, and if the second input is an input of swiping the display from bottom to top (i.e., the direction of the second input is opposite to the input direction of the first input), image 4-3 displayed by the electronic device is the closest image added to favorites that is arranged after image 2-3 among the images added to favorites in the gallery.
[0078] Although the above description has been given using an example in which the first input is a swipe input, it should be noted that the operation method when the first input is a tap input is similar and detailed description thereof will be omitted here.
[0079] According to this technical solution, the electronic device can trigger the arrangement of the second image displayed by the electronic device through the first input of the user, and can determine whether the third image viewed by the user through the second input is an image arranged before the second image or an image arranged after the second image based on the first input attributes of the second input and the first input, such as the input direction, the input position, etc., making the display method relatively flexible. (Second possible implementation)
[0080] The second image is an image arranged after the first image, and if the first input attributes of the second input and the first input are the same, the third image is an image of the second type of image arranged after the second image, and if the first input attributes of the second input and the first input are different, the third image is an image of the second type of image arranged before the second image.
[0081] For example, when the first input attribute is input direction, if the input directions of the second input and the first input are the same, the third image is an image arranged after the second image among the second type of images, and if the input directions of the second input and the first input are opposite, the third image is an image arranged before the second image among the second type of images. When the first input attribute is input position, if the input positions of the second input and the first input are the same, the third image is an image arranged after the second image among the second type of images, and if the input positions of the second input and the first input are different, the third image is an image arranged before the second image among the second type of images.
[0082] Example 2-1: If an electronic device is displaying image 1-4 (landscape image), and the electronic device is in a portrait state and the first input is a swipe from top to bottom on the display, image 2-4 (portrait image) displayed by the electronic device is the closest portrait image in the gallery that is aligned after image 1-4. If an electronic device is displaying image 2-4 and the second input is a swipe from top to bottom on the display (i.e., the direction of the second input is the same as the direction of the first input), image 3-4 displayed by the electronic device is the closest portrait image in the gallery that is aligned after image 2-4. If a user is displaying image 2-4 and the second input is a swipe from bottom to top on the display (i.e., the direction of the second input is opposite to the direction of the first input), image 4-4 displayed by the electronic device is the closest portrait image in the gallery that is aligned before image 2-4.
[0083] Example 2-2: When an electronic device is displaying images 1-5 (portrait images), assuming that the electronic device is in a landscape state and the first input is a swipe from top to bottom on the display, image 2-5 (landscape image) displayed by the electronic device may be the closest landscape image in the gallery that is aligned after image 1-5. When a user is displaying images 2-5 and the second input is a swipe from top to bottom on the display (i.e., the direction of the second input is the same as the input direction of the first input), image 3-5 displayed by the electronic device is the closest landscape image in the gallery that is aligned after image 2-5. When a user is displaying images 2-5 and the second input is a swipe from bottom to top on the display (i.e., the direction of the second input is opposite to the input direction of the first input), image 4-5 displayed by the electronic device is the closest landscape image in the gallery that is aligned before image 2-5.
[0084] Example 2-3: When the electronic device is displaying image 1-6 (an image not added to favorites), the first input may be an input of swiping the display from top to bottom, and image 2-6 (an image added to favorites) displayed by the electronic device is the closest image added to favorites after image 1-6. When the user is displaying image 2-6, and the second input is an input of swiping the display from top to bottom (i.e., the direction of the second input is the same as the input direction of the first input), image 3-6 displayed by the electronic device is the closest image added to favorites that is arranged after image 2-6 among the images added to favorites in the gallery. When the user is displaying image 2-6, and the second input is an input of swiping the display from bottom to top (i.e., the direction of the second input is opposite to the input direction of the first input), image 4-6 displayed by the electronic device is the closest image added to favorites that is arranged before image 2-6 among the images added to favorites in the gallery.
[0085] According to this technical solution, the electronic device can trigger the arrangement of the second image displayed by the electronic device through the user's first input, and can determine whether the third image viewed by the user through the second input is an image arranged before the second image or an image arranged after the second image based on the input direction of the second input and the first input, making the display method relatively flexible.
[0086] Optionally, the display method according to the embodiment of the present invention may further include the following steps S205 and S206 after the above step S204.
[0087] In S205, when a fourth image of the second type of images is being displayed, the electronic device accepts a third input from the user.
[0088] Among them, the third input is an input corresponding to the first type of image, i.e., the third input is an input that triggers the electronic device to display the first type of image.
[0089] For example, if the first input is a bottom-up swipe input, the third input may be a top-down swipe input, and if the first input is a two-finger swipe input, the third input may be a one-finger swipe input.
[0090] In S206, the electronic device displays a fifth image of the first type of images in response to the third input.
[0091] Among them, the fifth image is a first type image that is closest in order to the fourth image in the target image set.
[0092] Specifically, the sequence relationship between the fifth image and the fourth image may be related to the direction of the third input and the first input; specifically, the explanation of the relationship between the third image and the second image in the above embodiment may be referred to, and a detailed explanation will be omitted here.
[0093] For example, assuming that the first type of image is an image that has not been added to favorites, the user can trigger the electronic device to display the image that has been added to favorites by a first input, and then the user can view other images that have been added to favorites as needed, for example, after viewing image 1 that has been added to favorites, when the user needs to view other images that are close in time to the image that has been added to favorites and continue to add it to favorites, the electronic device can trigger the display of images that have not been added to favorites, and at this time, the image that has not been added to favorites that is closest in order to image 1 that has been added to favorites is displayed. The user can continue to view other images near image 1 that has been added to favorites.
[0094] According to the technical solution, a user can trigger the electronic device to display a second type of image through a first input, and when the user needs to view a first type of image adjacent to a second type of image that is sorted one way in the target image set, a third input can trigger the electronic device to display a first type of image that is sorted closest to a fourth image in the target image set, thereby making it convenient for the user to search and increasing the user's image checking speed.
[0095] Optionally, the display method according to the embodiment of the present invention may further include the following steps S207 and S208 after S204.
[0096] In S207, when a sixth image of the second type of images is being displayed, the electronic device accepts a fourth input from the user.
[0097] Therein, the fourth input may be an input corresponding to the first type of image, that is, the fourth input is an input that triggers the electronic device to display the first type of image.
[0098] In S208, the electronic device displays a seventh image of the first type of images in response to the fourth input.
[0099] Among them, the seventh image is the first image or an image adjacent to the first image.
[0100] As an example, taking images that have been added to favorites and images that have not been added to favorites as examples, and assuming that image a (i.e., the first image) is an image that has not been added to favorites, the user can trigger the electronic device to display the image that has been added to favorites by a first input, and then the user can view other images that have been added to favorites as needed. For example, after viewing image b (the sixth image), if the user needs to view images that have not been added to favorites, the user can trigger the electronic device to display the image that has not been added to favorites, and at this time, image a that has not been added to favorites is displayed, or an image that has not been added to favorites adjacent to image a that has not been added to favorites is displayed.
[0101] According to this technical solution, a user can trigger the electronic device to display a second type of image through a first input, and when the user finds the second type of image first from the second type of image, and the user needs to view the first type of image again, a third input can trigger the electronic device to display the first image or an image adjacent to the first image in the target image set, so that the user can search conveniently, the checking method is more flexible, and the user's image checking speed is increased.
[0102] Optionally, the display method according to the embodiment of the present invention may further include the following steps after S204.
[0103] When a user triggers the electronic device to display a next image and the currently displayed image is the last image of the second type of images, the electronic device may inform the user that the currently displayed image is the last image of the second type of images and that continued manipulation will have no effect, or the electronic device may inform the user that the currently displayed image is the last image of the second type of images and that continued manipulation will cause the next type of image (e.g., a first type of image) to be displayed, or the electronic device may inform the user that the currently displayed image is the last image of the second type of images and that continued manipulation will cause the first image of the second type of images to be displayed (i.e., displayed in a circular manner).
[0104] When a user triggers the electronic device to display a previous image and the currently displayed image is the first image of the second type of images, the electronic device may inform the user that the currently displayed image is the first image of the second type of images and continued manipulation will have no effect, or the electronic device may inform the user that the currently displayed image is the first image of the second type of images and continued manipulation will display the previous type of image (e.g., the first type of image), or the electronic device may inform the user that the currently displayed image is the first image of the second type of images and continued manipulation will display the last image of the second type of images (i.e., the displayed images will be cycled).
[0105] It should be noted that the above is merely an illustrative description, and the user can set the operation after viewing the first image or the second image of an image as required in actual application, and the embodiment of the present invention is not specifically limited in this regard.
[0106] This technical solution allows users to adopt different display methods during the image browsing process, making the display more flexible and improving the user experience.
[0107] FIG. 3 is a schematic diagram of a possible configuration of an electronic device according to an embodiment of the present invention. As shown in FIG. 3, the electronic device 300 includes a receiving module 301 and a display module 302. The receiving module 301 is configured to receive a first input from a user when a first image of a first type of images is displayed. The display module 302 is configured to display a second image of a second type of images different from the first type of images in response to the first input received by the receiving module 301. The receiving module 301 is further configured to receive a second input from a user. The display module 302 is further configured to display a third image, which is an image adjacent to the second image of the second type of images, in response to the second input received by the receiving module 301.
[0108] Optionally, both the first type of image and the second type of image belong to a target image set, and the second type of image is an image of the second type that is closest in order to the first image in the target image set.
[0109] Optionally, the second input is an input parallel to the input direction of the first input.
[0110] Selectively, the second image is an image arranged before the first image in the target image set and, if the first input attributes of the second input and the first input are the same, the third image is an image arranged before the second image of the second type of images and, if the first input attributes of the second input and the first input are different, the third image is an image arranged after the second image of the second type of images; or, the second image is an image arranged after the first image in the target image set and, if the first input attributes of the second input and the first input are the same, the third image is an image arranged before the second image of the second type of images and, if the first input attributes of the second input and the first input are different, the third image is an image arranged before the second image of the second type of images.
[0111] Selectably, the receiving module 301 is further configured to receive a third input from the user when the display module 302 displays a fourth image of the second type of images after displaying the third image, and the display module 302 is further configured to display a fifth image of the first type of images, which is one of the first type of images closest in order to the fourth image in the target image set, in response to the third input received by the receiving module 301.
[0112] Optionally, the receiving module 301 is further configured to receive a fourth input from the user when the display module 302 displays a sixth image of the second type of images after displaying the third image, and the display module 302 is further configured to display a seventh image of the first type of images, which is the first image or an image adjacent to the first image.
[0113] Optionally, the first type of images are all images in the target image set and the second type of images are favorited images in the target image set, or the first type of images are favorited images in the target image set and the second type of images are all images in the target image set.
[0114] The electronic device 300 according to the embodiment of the present invention can implement each of the steps implemented by the electronic device in the above method embodiments, and detailed descriptions thereof will be omitted here to avoid repetition.
[0115] An embodiment of the present invention provides an electronic device, in which first, when a first image of a first type of image is displayed, the electronic device receives a first input from a user, and the electronic device can display a second image of a second type of image in response to the first input. Then, the electronic device receives a second input from a user, and the electronic device can display a third image in response to the second input. The first type of image and the second type of image are different in type, and the third image is an image adjacent to the second image of the second type of image, that is, the first input can trigger the electronic device to display the second type of image, so that when browsing images, when the second type of image needs to be viewed independently, the first input can trigger the electronic device to display the second type of image. For example, when a user views images, if the user only wants to view landscape images when viewing images, but portrait images are currently being displayed, the electronic device can be triggered to continuously display landscape images; if the user only wants to view portrait images when viewing images, but landscape images are currently being displayed, the electronic device can be triggered to continuously display portrait images, thereby allowing the user to quickly view landscape photos when the electronic device is in a landscape state (auto-rotation on) and quickly view portrait photos when the electronic device is in a portrait state, making the display method relatively flexible and improving the user's image viewing experience.
[0116] FIG. 4 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention, in which the electronic device 100 includes, but is not limited to, components such as a high-frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 106, a memory 109, a processor 110, and a power supply 111. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4 does not limit the electronic device, and the electronic device may include more or fewer components than those shown, or a combination of some components, or a different component arrangement. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, an in-vehicle electronic device, a wearable device, and a pedometer.
[0117] In the above, the user input unit 107 is configured to accept a first user input when displaying a first image of a first type of images, the display unit 106 is configured to display a second image of a second type of images different from the first type of images in response to the first input, the user input unit 107 is configured to accept a second user input, and the display unit 106 is configured to display a third image, which is a second type of image adjacent to the second image in the target image set, in response to the second input.
[0118] In the electronic device according to the embodiment of the present invention, first, when a first image of the first type of images is displayed, the electronic device receives a first input from the user, and the electronic device can display a second image of the second type of images in response to the first input. Then, the electronic device receives a second input from the user, and the electronic device can display a third image in response to the second input. The first type of images and the second type of images are different in type, and the third image is an image adjacent to the second image of the second type of images, that is, the first input can trigger the electronic device to display the second type of images, so that when viewing images, when it is necessary to view the second type of images alone, the first input can trigger the electronic device to display the second type of images. For example, when a user views images, if the user only wants to view landscape images when viewing images, but portrait images are currently being displayed, the electronic device can be triggered to continuously display landscape images; if the user only wants to view portrait images when viewing images, but landscape images are currently being displayed, the electronic device can be triggered to continuously display portrait images, thereby allowing the user to quickly view landscape photos when the electronic device is in a landscape state (auto-rotation on) and quickly view portrait photos when the electronic device is in a portrait state, making the display method relatively flexible and improving the user's image viewing experience.
[0119] It should be understood that in the embodiment of the present invention, the high frequency unit 101 can be used for receiving and transmitting information or receiving and transmitting signals in a call process, specifically, receiving downlink data from a base station, processing the data in the processor 110, and transmitting uplink data to the base station. Typically, the high frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a receiver-transmitter, a coupler, a low-noise amplifier, a duplexer, etc. The high frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
[0120] Through the network module 102, the electronic device provides users with wireless broadband Internet access to facilitate, for example, sending and receiving e-mail, browsing web pages, and accessing streaming media.
[0121] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as a voice. The audio output unit 103 can also provide audio output (e.g., a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the electronic device 100. The audio output unit 103 includes a speaker, a buzzer, a handset, etc.
[0122] The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 for processing image data of still or video captured by an image capture device (e.g., a camera) in a video capture mode or an image capture mode, and a microphone 1042. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted by the radio frequency unit 101 or the network module 102. The microphone 1042 can receive voice and process such voice as audio data. The processed audio data can be converted into a format that can be transmitted by the radio frequency unit 101 to a mobile communication base station and output in a telephone call mode.
[0123] The electronic device 100 further includes at least one sensor 105 such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and a proximity sensor that can turn off the display panel 1061 and / or the backlight when the electronic device 100 is moved to the ear. As one of the motion sensors, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes) and can detect the magnitude and direction of gravity when stationary, and can be used for recognizing the posture of the electronic device (e.g., switching between horizontal and vertical screens, related games, magnetometer posture calibration), vibration recognition related functions (e.g., pedometer, tap), etc. The sensor 105 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and the description thereof will be omitted here.
[0124] The display unit 106 is used to display information input by a user or information provided to a user. The display unit 106 may include a display panel 1061, which may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
[0125] The user input unit 107 can be used to receive input numeric or character information and generate key signal input for user settings and function control in the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can detect a user's touch operation on or near the touch panel 1071 (e.g., an operation performed on or near the touch panel 1071 by a user using any suitable object or accessory, such as a finger, a stylus, etc.), and may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects a signal due to the touch operation, and transmits it to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch point coordinates and transmits them to the processor 110, and receives and executes instructions transmitted from the processor 110. The touch panel 1071 can be realized in various forms, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, a physical keyboard, function buttons (e.g., a volume control button, a switch button, etc.), a trackball, a mouse, and an operation lever, and the description thereof will be omitted here.
[0126] Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to identify the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. In FIG. 4 , the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of an electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to realize the input and output functions of an electronic device, and this is not specifically limited herein.
[0127] The interface unit 108 is an interface that connects an external device to the electronic device 100. For example, the external device may include a wired or wireless headphone port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with a recognition module, an audio input / output (I / O) port, a video I / O port, an earphone port, etc. The interface unit 108 can be used to receive input (e.g., data information, power, etc.) from the external device and transmit the received input to one or more components within the electronic device 100 or transmit data between the electronic device 100 and the external device.
[0128] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area capable of storing an operating system, an application required for at least one function (e.g., an audio playback function, an image playback function, etc.), and a data storage area capable of storing data created in accordance with the use of the mobile phone (e.g., audio data, a phone book, etc.). The memory 109 may also include a high-speed random access memory, and may further include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage device.
[0129] The processor 110 is the control center of the electronic device, and connects each part of the entire electronic device through various interfaces and lines, and executes or operates software programs and / or modules stored in the memory 109 and calls up data stored in the memory 109 to perform various functions and data processing of the electronic device, thereby monitoring the electronic device as a whole. The processor 110 may include one or more processing units, and preferably, an application processor that mainly processes an operating system, a user interface, and applications, etc., and a modem processor that mainly processes wireless communication can be integrated into the processor 110. It can be understood that the modem processor does not have to be integrated into the processor 110.
[0130] The electronic device 100 may further include a power source 111 (e.g., a battery) for powering each component, and preferably, the power source 111 is logically connected to the processor 110 via a power management system, which can further realize functions such as charge / discharge management and power consumption management.
[0131] It should be noted that the electronic device 100 includes some functional modules that are not shown, and detailed descriptions thereof will be omitted here.
[0132] Optionally, an embodiment of the present invention further provides an electronic device comprising a processor 110, a memory 109, and a computer program stored in the memory 109 and executable on the processor 110, which, when the computer program is executed by the processor 110, can realize each step of the above-mentioned display method embodiment and achieve similar technical effects, as shown in FIG. 4 , and detailed description thereof will be omitted here to avoid repetition.
[0133] The embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can realize each step of the above display method embodiment and achieve the same technical effect, and detailed description will be omitted here to avoid repetition, where the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, etc.
[0134] It should be explained that, as used herein, the terms "comprising," "consisting of," or any other variation thereof, are intended to include a non-exclusive inclusion, whereby a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also other elements not expressly stated or inherent to such process, method, article, or apparatus. Unless otherwise specified, an element qualified by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
[0135] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be realized in the form of a combination of software and a necessary common hardware platform, and of course, they can be realized by hardware, but in many cases the former is a more preferred embodiment. Based on this view, the technical solution of the present invention can be substantially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions that cause an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0136] Although the embodiments of the present invention have been described above with reference to the drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative and not limiting. Based on the teachings of the present invention, many forms that a person skilled in the art can make without departing from the spirit of the present invention and the scope of protection of the claims are all within the scope of protection of the present invention.
Claims
1. In a display method used in an electronic device, receiving a first input from a user when a first image of the first type of images is being displayed; displaying a second image of a second type of image different from the first type of image in response to the first input; accepting a second input from a user; and displaying a third image, which is an image adjacent to the second image among the second type of images, in response to the second input; both the first type of image and the second type of image belong to a target image set; the first type of images are all images in the target image set, and the second type of images are favorited images in the target image set; or the first type of images are images that have been added to favorites in the target image set, and the second type of images are all images in the target image set; the second image is one of the second types of images that is closest in order to the first image in the target image set; the second image is an image arranged before the first image in the target image set, and when a first input attribute of the second input and the first input are the same, the third image is an image arranged before the second image among the second type of images, and when a first input attribute of the second input and the first input are different, the third image is an image arranged after the second image among the second type of images, Alternatively, the second image is an image arranged after the first image in the target image set, and when the first input attributes of the second input and the first input are the same, the third image is an image of the second type of images arranged after the second image, and when the first input attributes of the second input and the first input are different, the third image is an image of the second type of images arranged before the second image.
2. After the step of displaying the third image, receiving a third input from a user when a fourth image of the second type of images is being displayed; and displaying a fifth image of the first type of images in response to the third input, the fifth image being the first type of image that is closest in order to the fourth image in the target image set.
3. After the step of displaying the third image, receiving a fourth input from a user when a sixth image of the second type of images is being displayed; 2. The method of claim 1, further comprising the step of: displaying a seventh image of the first type of images in response to the fourth input, the seventh image being the first image or an image adjacent to the first image.
4. In an electronic device having a reception module and a display module, the reception module is configured to receive a first input from a user when a first image of a first type of image is displayed; the display module is configured to display a second image among a second type of image different from the first type of image in response to the first input received by the receiving module; The receiving module is further configured to receive a second input from a user; the display module is further configured to display a third image, which is an image adjacent to the second image among the second type of images, in response to the second input received by the receiving module; both the first type of image and the second type of image belong to a target image set; the first type of images are all images in the target image set, and the second type of images are favorited images in the target image set; or the first type of images are images that have been added to favorites in the target image set, and the second type of images are all images in the target image set; the second image is one of the second types of images that is closest in order to the first image in the target image set; the second image is an image arranged before the first image in the target image set, and when a first input attribute of the second input and the first input are the same, the third image is an image arranged before the second image among the second type of images, and when a first input attribute of the second input and the first input are different, the third image is an image arranged after the second image among the second type of images, or an electronic device, wherein the second image is an image arranged after the first image in the target image set, and when a first input attribute of the second input and the first input are the same, the third image is an image of the second type of image arranged after the second image, and when the first input attributes of the second input and the first input are different, the third image is an image of the second type of image arranged before the second image.
5. the reception module is further configured to receive a third input from a user when the display module displays a fourth image among the second type of images after displaying a third image; The electronic device of claim 4, wherein the display module is further configured to display a fifth image of the first type of images, which is one of the first type of images that is closest in order to the fourth image in the target image set, in response to the third input received by the reception module.
6. the reception module is further configured to receive a fourth input from a user when the display module displays a sixth image among the second type of images after displaying a third image; 5. The electronic device of claim 4, wherein the display module is further configured to display a seventh image of the first type of images, the seventh image being the first image or an image adjacent to the first image, in response to the fourth input received by the receiving module.
7. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the electronic device realizing the steps of the display method according to any one of claims 1 to 3 when the computer program is executed by the processor.
8. A computer-readable storage medium storing a computer program, the computer program implementing the steps of the display method according to any one of claims 1 to 3 when executed by a processor.
Citation Information
Patent Citations
Image processor
JP2004153426A
Display apparatus
JP2010218544A
Display control device, control method and program thereof, image pickup device, and recording medium
JP2014140112A
Microscopic image display control method, microscopic image display control program, and microscopic image display device
JP2015095760A
