CN115640414A - Image display method and electronic equipment - Google Patents
Image display method and electronic equipment Download PDFInfo
- Publication number
- CN115640414A CN115640414A CN202210956467.8A CN202210956467A CN115640414A CN 115640414 A CN115640414 A CN 115640414A CN 202210956467 A CN202210956467 A CN 202210956467A CN 115640414 A CN115640414 A CN 115640414A
- Authority
- CN
- China
- Prior art keywords
- image
- interface
- label
- electronic device
- displayed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 230000004044 response Effects 0.000 claims description 52
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 34
- 230000006854 communication Effects 0.000 description 34
- 230000006870 function Effects 0.000 description 31
- 230000008569 process Effects 0.000 description 25
- 238000007726 management method Methods 0.000 description 15
- 230000005236 sound signal Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 12
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000008859 change Effects 0.000 description 6
- 101150006306 Rhoq gene Proteins 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 206010047571 Visual impairment Diseases 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 239000010985 leather Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000011269 treatment regimen Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及图像的显示方法及电子设备。The present application relates to the technical field of terminals, and in particular to an image display method and electronic equipment.
背景技术Background technique
现如今,用户经常会需要浏览、发送、或者上传电子设备中存储的图像。但是,当电子设备中存储的图像的数量太多时,用户往往需要花费大量的时间来从这些图像中找出自己需要使用的图像。这无疑浪费了用户的时间,降低了用户体验。Nowadays, users often need to browse, send, or upload images stored in electronic devices. However, when the number of images stored in the electronic device is too large, the user often needs to spend a lot of time to find the image he needs to use from these images. This undoubtedly wastes the user's time and reduces the user experience.
因此,需要探索更为高效的方法以供用户快速在图库中定位到自己需要的图像。Therefore, it is necessary to explore a more efficient method for the user to quickly locate the image he needs in the gallery.
发明内容Contents of the invention
本申请的目的在于提供一种图像的显示方法及电子设备。电子设备可以将目标图像在图库中置顶显示,方便用户快速对定位到目标图像。The purpose of the present application is to provide an image display method and electronic equipment. The electronic device can display the target image on top of the gallery, so that the user can quickly locate the target image.
上述目标和其他目标将通过独立权利要求中的特征来达成。进一步的实现方式在从属权利要求、说明书和附图中体现。The above and other objects are achieved by the features in the independent claims. Further implementations are presented in the dependent claims, the description and the drawings.
第一方面,提供一种图像的显示方法,包括:显示第一界面,所述第一界面包括第一区域和第二区域,所述第一界面中的所述第一区域位于所述第二区域之前,所述第一界面中的所述第一区域包括至少一张图像,所述第一界面中的所述第二区域包括第一图像;响应于对所述第一图像的第一操作,显示第二界面,所述第二界面包括所述第一区域和所述第二区域,所述第二界面中所述第一图像显示于所述第一区域中。In a first aspect, an image display method is provided, including: displaying a first interface, the first interface includes a first area and a second area, the first area in the first interface is located in the second Before the area, the first area in the first interface includes at least one image, and the second area in the first interface includes a first image; in response to a first operation on the first image , displaying a second interface, where the second interface includes the first area and the second area, and in the second interface, the first image is displayed in the first area.
在本方法中,所述第一界面和所述第二界面可以为电子设备中应用“图库”的应用界面。在图库中,图像通常以缩略图的形式显示在图像列表中。一般而言,当图库中的图像达到一定数量时,图像会以多行多列的形式排列。根据大多数用户的浏览习惯,对于位于不同行的图像而言,位于上行的图像可以被认为排列在位于下行的图像之前;对于位于同一行的图像而言,位于左方的图像可以被认为排列在位于右方的图像之前。即在本申请中,显示于图像列表中不在同一行的两个图像,位于上行的图像是排在位于下行的图像之前的;显示在同一行中的两个图像,位于左方的图像是排在位于右方的图像之前的。具体可以参考后续实施例的相关说明,此处先不赘述。In this method, the first interface and the second interface may be application interfaces of the application "Gallery" in the electronic device. In a gallery, images are usually displayed as thumbnails in an image list. Generally speaking, when the number of images in the gallery reaches a certain amount, the images will be arranged in the form of multiple rows and multiple columns. According to the browsing habits of most users, for images located in different rows, the images located in the upper row can be considered to be arranged before the images located in the lower row; for images located in the same row, the images located on the left can be considered to be arranged before the image on the right. That is, in this application, for two images displayed in the image list that are not on the same row, the image on the upper row is arranged before the image on the lower row; for two images displayed on the same row, the image on the left is arranged in front of the image on the right. For details, reference may be made to relevant descriptions of subsequent embodiments, and details are not repeated here.
可以理解的,当图库中的图像达到一定数量时,图像会以多行多列的形式排列并显示在电子设备的屏幕中。但由于电子设备的显示屏幕的面积限制,这些图像并不能同时一起显示在电子设备的屏幕中,但是,用户可以通过用户操作,例如上滑操作,来对电子设备屏幕中显示的图像进行更新,这样就可以对当前未能显示在电子设备屏幕中的图像进行浏览。因此,在本方法中,所述第一区域可以是在电子设备的图库应用中,处在最上行的图像(这些图像一般为电子设备最新存储的图像)显示在电子设备的屏幕中时,电子设备所显示的画面所对应的区域;而所述第二区域则可以是在电子设备的图库应用中,通过用户操作,例如上滑操作,将当前未能显示在电子设备的屏幕中的图像显示在屏幕中之后,电子设备所显示的画面所对应的区域。或者,所述第一区域可以是在电子设备的图库应用中,处在最上行的图像(这些图像一般为电子设备最新存储的图像)显示在电子设备的屏幕中时,电子设备所显示的画面所对应的区域中的处于较上方的一部分区域,所述第二区域为则为处于较下方的另一部分区域。Understandably, when the number of images in the gallery reaches a certain amount, the images will be arranged in multiple rows and columns and displayed on the screen of the electronic device. However, due to the limitation of the display screen area of the electronic device, these images cannot be displayed on the screen of the electronic device at the same time. However, the user can update the image displayed on the screen of the electronic device through user operations, such as sliding up. In this way, images that cannot currently be displayed on the screen of the electronic device can be browsed. Therefore, in this method, the first area may be in the gallery application of the electronic device, when the uppermost images (these images are generally the latest images stored by the electronic device) are displayed on the screen of the electronic device, the electronic The area corresponding to the picture displayed by the device; and the second area may be an image that is not currently displayed on the screen of the electronic device through a user operation, such as an up-swipe operation, in the gallery application of the electronic device After the screen, the area corresponding to the picture displayed by the electronic device. Alternatively, the first area may be the picture displayed by the electronic device when the uppermost images (these images are generally the latest images stored by the electronic device) are displayed on the screen of the electronic device in the gallery application of the electronic device In the corresponding area, the upper part of the area, the second area is another part of the lower area.
可以理解的,当用户打开图库应用,或者通过电子设备中的其他应用(例如或)打开图库应用时,电子设备所显示的界面会默认将在最新存储的图像显示在电子设备的屏幕中,再根据每张图像的存储时间将图像依次排列显示,形成图像列表显示在屏幕中。可以理解的,存储时间越早的图像将处于所述图像列表的越下方。因此,当用户需要使用某张图像时,该图像可能由于存储时间较早而处于图像列表中较为下方的位置。因此,用户可能需要耗费大量的精力将该图像找出。且之后每次使用的时候均需要对该图像进行查找,无法直接从图库中大量的图像中直接对该图像进行定位。It is understandable that when the user opens the gallery application, or through other applications in the electronic device (such as or ) When opening the gallery application, the interface displayed by the electronic device will display the latest stored image on the screen of the electronic device by default, and then arrange and display the images in order according to the storage time of each image, forming an image list and displaying it on the screen. It can be understood that an image with an earlier storage time will be placed lower in the image list. Therefore, when a user needs to use a certain image, the image may be at a lower position in the image list due to its earlier storage time. Therefore, the user may need to expend a lot of effort to find the image. And after that, the image needs to be searched every time it is used, and it is impossible to directly locate the image from a large number of images in the gallery.
但是在本方法中,所述第一操作可以为用于将所述第一图像进行置顶的操作。也就是说,在对所述图像进行所述第一操作之后,所述第一图像将被置顶显示在图像列表的顶部。该顶部可以是图像列表的最顶部,也可以是图像列表在所述第一区域中的任意位置。例如,在图像列表中的图像有100行,且每行3列(即图像列表中每一行可以容纳三张图像),而电子设备的屏幕中只能同时显示5行图像(即最多只能同时显示15张图像,这15张图像即为所述至少一张图像)的情况下,当用户打开图库应用时,电子设备会默认显示该图像列表的第1-5行。但是,如果用户需要使用的图像(即所述第一图像)居于该图像列表的较下方,例如第50行时,那么用户可能需要不断的下滑来并且不断的浏览来找到所述第一图像。但是,当对所述第一图像进行所述第一操作后,所述第一图像将被置顶显示在该图像列表的顶部,这个顶部可以为图像列表第1行的第1列,也可以是该图像列表的前5行的任意位置。这样,当用户打开图库应用时,电子设备同样会默认显示该图像列表的第1-5行,但此时所述第一图像已经存在该图像列表的第1-5行中了,即所述第一图像可以在直接显示在电子设备的屏幕上,用户就能快速找到该图像并使用该图像。However, in this method, the first operation may be an operation for putting the first image on top. That is to say, after the first operation is performed on the image, the first image will be displayed on top of the image list. The top may be the top of the image list, or any position of the image list in the first area. For example, there are 100 rows of images in the image list, and each row has 3 columns (that is, each row in the image list can accommodate three images), and the screen of the electronic device can only display 5 rows of images at the same time (that is, only at most In the case of displaying 15 images, these 15 images are the at least one image), when the user opens the gallery application, the electronic device will display rows 1-5 of the image list by default. However, if the image that the user needs to use (that is, the first image) resides at the lower part of the image list, such as row 50, the user may need to continuously slide down and browse continuously to find the first image. However, after the first operation is performed on the first image, the first image will be displayed at the top of the image list. This top can be the first column of the first row of the image list, or it can be Anywhere in the first 5 lines of this image list. In this way, when the user opens the gallery application, the electronic device will also display rows 1-5 of the image list by default, but at this time the first image already exists in rows 1-5 of the image list, that is, the The first image can be directly displayed on the screen of the electronic device, and the user can quickly find and use the image.
具体的,所述第一图像置顶显示在该图像列表的顶部,其可以是将所述第一图像插入到该图像列表的顶部某个位置,并且将该位置之后的图像以此顺延。同样以上述100行,且每行3列的图像列表为例进行说明,如果所述第一图像被置顶显示在图像列表第1行的第1列,那么原本显示在第1行的第1列的图像将被显示在第1行的第2列,原本显示在第1行的第2列的图像将被显示在第1行的第3列,原本显示在第1行的第,3列的图像将被显示在第2行的第1列……以此类推。Specifically, the first image is displayed on top of the image list, which may be to insert the first image into a certain position at the top of the image list, and to extend the images after this position. Also take the above image list with 100 rows and 3 columns per row as an example. If the first image is displayed on top of the first row and
可选的,所述第一图像置顶显示在该图像列表的顶部,其可以是将所述第一图像与该图像列表的顶部某个位置的图像进行调换。例如,如果原本显示在图像列表的第50行第2列的所述第一图像被置顶显示在图像列表第1行的第1列,那么原本显示在第1行的第1列的图像将被显示在的第50行第2列,而图像列表中的其他图像可以不改变显示位置。Optionally, the first image is displayed on top of the image list, which may be to exchange the first image with an image at a certain position at the top of the image list. For example, if the first image originally displayed in row 50, column 2 of the image list is displayed on top of
结合第一方面,在一个可选的实施方式中,在所述第二界面中,所述第一图像显示在所述至少一张图像之前。With reference to the first aspect, in an optional implementation manner, in the second interface, the first image is displayed before the at least one image.
在本实施方式中,将所述第一图像将被置顶显示在该图像列表的最顶部,即图像列表第1行的第1列。这样,当用户打开图库应用时,电子设备同样会默认显示该图像列表的第1行,用户能更加快速找到该图像并使用该图像。In this embodiment, the first image will be displayed at the top of the image list, that is, the first column of the first row of the image list. In this way, when the user opens the gallery application, the electronic device will also display the first row of the image list by default, so that the user can find and use the image more quickly.
结合第一方面,在一个可选的实施方式中,所述第一界面包括第一控件,所述显示第二界面包括:响应于对所述第一控件的第二操作,显示第三界面,所述第三界面包括输入框和第二控件;在用户将关键字输入所述输入框之后,响应于对所述第二控件的第三操作,显示第四界面,所述第四界面包括所述第一图像,所述关键字用于对所述第一图像进行搜索;响应于对所述第四界面中的所述第一图像的第四操作,显示所述第二界面,所述第一操作包括所述第二操作、所述第三操作和所述第四操作。With reference to the first aspect, in an optional implementation manner, the first interface includes a first control, and the displaying the second interface includes: displaying a third interface in response to a second operation on the first control, The third interface includes an input box and a second control; after the user inputs a keyword into the input box, in response to a third operation on the second control, a fourth interface is displayed, and the fourth interface includes the the first image, the keyword is used to search the first image; in response to a fourth operation on the first image in the fourth interface, display the second interface, the second An operation includes the second operation, the third operation and the fourth operation.
可以理解的,现如今大部分的电子设备的图库应用均支持利用关键字对图像进行搜索。因此,在本实施方式中,所述第一控件即为搜索控件,所述输入框用于接收用户输入的关键字,电子设备可以直接将结合用户输入的关键字,先从图库存储的全部图像中找出与所述关键字相符的图像。例如,假设图像列表中总共有100张图像,其中10张图像中包含花朵元素。如果所述第一图像即为这10张图像中的某一张包含花朵元素的图像,则用户可以在所述输入框中输入关键字“花朵”,并点击所述第一控件。则电子设备会显示将这10张图像显示在所述第三界面中,用户则无需从上述100张图像中对所述第一图像进行定位,只需要从所述第三界面中的10张图像中定位所述第一图像即可,进一步提高了对图像的定位效率。It is understandable that most of the gallery applications of electronic devices support searching images by using keywords. Therefore, in this embodiment, the first control is a search control, and the input box is used to receive the keywords input by the user, and the electronic device can directly combine the keywords input by the user, first from all the images stored in the gallery find images that match the keyword. For example, suppose there are a total of 100 images in the image list, and 10 of them contain flower elements. If the first image is one of the 10 images containing flower elements, the user may input the keyword "flower" in the input box and click the first control. Then the electronic device will display these 10 images in the third interface, and the user does not need to locate the first image from the above 100 images, but only needs to locate the 10 images in the third interface. It only needs to locate the first image, which further improves the efficiency of image positioning.
进一步的,用户还可以通过关键字对图像进行搜索,将搜索到的图像进行批量定位。例如,用户可以在所述输入框中输入关键字“花朵”,并点击所述第一控件;在电子设备将显上述这10张包含花朵元素的图像显示在所述第三界面中之后,用户可以通过用户操作将这10张图像全部勾选后,一起同时置顶显示在图像列表的顶部。Furthermore, the user can also search for images through keywords, and locate the searched images in batches. For example, the user may input the keyword "flower" in the input box, and click the first control; after the electronic device displays the above 10 images containing flower elements in the third interface, the user After all the 10 images can be selected through user operation, they will be displayed on the top of the image list at the same time.
结合第一方面,在一个可选的实施方式中,所述第一界面中的所述第二区域还包括第二图像,所述方法还包括:显示第五界面,所述第五界面包括第三控件;响应于对所述第三控件的第五操作,显示所述第一界面;响应于对所述第一界面中第二图像的第六操作,发送所述第二图像,并显示第六界面,所述第六界面包括所述第一区域和所述第二区域,所述第六界面中所述第二图像显示于所述第一区域中。With reference to the first aspect, in an optional implementation manner, the second area in the first interface further includes a second image, and the method further includes: displaying a fifth interface, the fifth interface including the first Three controls; in response to the fifth operation on the third control, display the first interface; in response to the sixth operation on the second image in the first interface, send the second image, and display the first interface Six interfaces, the sixth interface includes the first area and the second area, and the second image in the sixth interface is displayed in the first area.
在本实施方式中,所述第五界面可以为电子设备中的支持图像分享或者上传的应用(例如或)的应用界面,所述第六操作即为用户分享或者上传所述第二图像的操作。在本实施方式中,当用户通过某个应用分享或者上传某张图像(例如所述第二图像)后,电子设备可以默认将前期分享过的图像(例如所述第二图像)置顶展示,方便用户二次分享或者上传。In this embodiment, the fifth interface may be an application in the electronic device that supports image sharing or uploading (such as or ), the sixth operation is an operation for the user to share or upload the second image. In this embodiment, when a user shares or uploads a certain image (such as the second image) through an application, the electronic device can display the previously shared image (such as the second image) on top by default, which is convenient Secondary sharing or uploading by users.
结合第一方面,在一个可选的实施方式中,所述第六界面的所述第一区域中还包括所述第一图像,所述六界面中所述第二图像显示于所述第一图像之前。With reference to the first aspect, in an optional implementation manner, the first area of the sixth interface further includes the first image, and the second image in the six interfaces is displayed on the first before the image.
可以理解的,用户对所述第二图像的置顶操作发生在对所述第一图像的置顶操作之后,因此,可以认为在当前阶段,相比于所述第一图像,所述第二图像更有可能使用户后续需要使用的图像。因此,在本实施方式中,将所述第二图像显示在所述第一图像之前,可以让所述第二图像更容易被用户找到,方便用户二次分享或者上传。It can be understood that the pinning operation of the second image by the user occurs after the pinning operation of the first image. Therefore, it can be considered that at the current stage, the second image is more important than the first image. It is possible for the user to subsequently need to use the image. Therefore, in this implementation manner, displaying the second image before the first image can make the second image easier to be found by the user, which is convenient for the user to share or upload again.
结合第一方面,在一个可选的实施方式中,所述发送所述第二图像,并显示第六界面,包括:发送所述第二图像,并显示第七界面,所述第七界面包括提示框,所述提示框包括提示信息和第四控件,所述提示信息用于提示用户是否将所述第二图像置顶显示;响应于对所述第四控件的第七操作,显示所述第六界面。With reference to the first aspect, in an optional implementation manner, the sending the second image and displaying a sixth interface includes: sending the second image and displaying a seventh interface, and the seventh interface includes A prompt box, the prompt box includes prompt information and a fourth control, the prompt information is used to prompt the user whether to display the second image on top; in response to the seventh operation on the fourth control, display the second image Six interfaces.
在本实施方式中,所述当用户通过某个应用分享或者上传某张图像(例如所述第二图像)后,在电子设备可以将前期分享过的图像(例如所述第二图像)置顶展示之前,电子设备可以弹出所述提示框提示用户是否需要将所述第二图像上传,在用户确认之后,再将所述第二图像上传,可以避免在用户无需再次使用第二图像的情况下依旧将所述第二图像置顶显示,以减少不必要的操作。In this embodiment, after the user shares or uploads a certain image (such as the second image) through an application, the electronic device can display the previously shared image (such as the second image) on top Before, the electronic device can pop up the prompt box to prompt the user whether to upload the second image, and then upload the second image after the user confirms, which can avoid the situation where the user does not need to use the second image again. The second image is displayed on top to reduce unnecessary operations.
结合第一方面,在一个可选的实施方式中,所述第六界面中所述第二图像显示于所述第一区域中的时长为第一时长,所述显示第六界面之后,所述方法还包括:经所述第一时长,显示第八界面,所述第八界面包括所述第一区域和所述第二区域,所述第一图像显示在所述第八界面的所述第二区域,且所述第一图像显示在所述第八界面的所述第一区域。With reference to the first aspect, in an optional implementation manner, the duration of the second image displayed in the first area in the sixth interface is the first duration, and after the sixth interface is displayed, the The method further includes: displaying an eighth interface after the first duration, the eighth interface includes the first area and the second area, and the first image is displayed on the eighth interface of the eighth interface. two areas, and the first image is displayed in the first area of the eighth interface.
在本实施方式中,所述第二图像可以为被临时置顶显示在所述第六界面中的。在经历所述第一时长之后,电子设备可以自动将所述第二图像取消置顶显示,以避免用户在无需再次使用所述第二图像的情况下,电子设备依旧将所述第二图像一直置顶显示,能进一步提高用户对目标图像的定位效率。In this implementation manner, the second image may be temporarily displayed on top of the sixth interface. After the first duration, the electronic device may automatically cancel the display of the second image on top, so as to prevent the user from keeping the second image on top when the user does not need to use the second image again. display, which can further improve the user's positioning efficiency of the target image.
结合第一方面,在一个可选的实施方式中,所述显示第二界面之后,所述方法还包括:将第三图像进行存储,所述第三图像为在存储所述第一图像之后存储的图像;显示第九界面,所述第九界面包括所述第一区域和所述第二区域,所述第九界面中,所述第一图像和所述第三图像显示在所述第九界面的所述第一区域,且所述第一图像显示在所述第三图像之前,所述第三图像显示在所述至少一张图像之前。With reference to the first aspect, in an optional implementation manner, after the second interface is displayed, the method further includes: storing a third image, where the third image is stored after storing the first image image; display a ninth interface, the ninth interface includes the first area and the second area, in the ninth interface, the first image and the third image are displayed on the ninth The first area of the interface, and the first image is displayed before the third image, and the third image is displayed before the at least one image.
在本实施方式中,所述第三图像为电子设备新存储的图像,而所述第一图像为用户置顶显示的图像。可以理解的,在传统的电子设备中,最新存储的图像一般会置顶显示。但是,在本实施方式中,为了能使得所述第一图像一直置顶显示在图像列表中,电子设备可以将新存储的图像(即所述第三图像)显示在所述第一图像之后,且将所述第三图像显示在所述至少一张图像之前。这样,用户依旧可以在需要使用所述第一图像时快速从图像列表中对所述第一图像进行定位,方便用户分享或者上传所述第一图像。In this implementation manner, the third image is an image newly stored by the electronic device, and the first image is an image displayed on top by the user. Understandably, in traditional electronic devices, the latest stored image is generally displayed on top. However, in this implementation manner, in order to keep the first image displayed on top of the image list, the electronic device may display the newly stored image (that is, the third image) after the first image, and The third image is displayed before the at least one image. In this way, the user can still quickly locate the first image from the image list when the user needs to use the first image, which is convenient for the user to share or upload the first image.
结合第一方面,在一个可选的实施方式中,所述第一图像与所述至少一张图像均包含对应的第一标签,所述第一标签表征图像的最后更新时间,所述响应于对所述第一图像的第一操作,所述显示第二界面,包括:响应于对所述第一图像的第一操作,将所述第一图像对应的第一标签更新为第一时间,所述第一时间为所述第一操作的发生时间;根据所述至少一张图像中各图像对应的第一标签和所述第一图像的第一标签,显示所述第二界面;所述第二界面中的各图像的显示位置与各图像对应的第一标签表征的最后更新时间相对应。With reference to the first aspect, in an optional implementation manner, both the first image and the at least one image include a corresponding first tag, the first tag represents the last update time of the image, and the response to The first operation on the first image, the displaying the second interface includes: updating the first label corresponding to the first image to the first time in response to the first operation on the first image, The first time is the occurrence time of the first operation; the second interface is displayed according to the first label corresponding to each image in the at least one image and the first label of the first image; the The display position of each image in the second interface corresponds to the last update time of the first label representation corresponding to each image.
在本实施方式中,电子设备中的图像均有一个对应的标签,即所述第一标签,所述第一标签记载了图像的最后更新时间。这里所说的“更新”可以是对图像进行存储或者对图像进行置顶操作。可以理解的当图像刚被存储到电子设备中时,图像的第一标签应该默认为是该图像的存储时间;但是,当电子设备响应于用户操作,将该图像永久置顶显示之后,该图像的第一标签可以更新为最后更新时间,该最后更新时间可以为上述用户操作发生的时间,也就是用户将该图像进行置顶的时间。例如当用户在2022年08月03号的10:00对所述第一图像进行所述第一操作,将所述第一图像置顶显示在图库的图像列表中,则所述第一图像对应的第一标签则可以更新为2022/08/03/10:00(或者2022年08月03号的10:00)。In this embodiment, each image in the electronic device has a corresponding tag, that is, the first tag, and the first tag records the last update time of the image. The "update" mentioned here may be to store the image or perform an operation on the top of the image. It can be understood that when the image is just stored in the electronic device, the first label of the image should be the storage time of the image by default; The first label may be updated with the last update time, and the last update time may be the time when the above user operation occurs, that is, the time when the user pins the image to the top. For example, when the user performs the first operation on the first image at 10:00 on August 3, 2022, and puts the first image on top and displays it in the image list of the gallery, the corresponding The first label can be updated to 2022/08/03/10:00 (or 10:00 on August 3, 2022).
所述第二界面中的各图像的显示位置与各图像对应的第一标签表征的最后更新时间相对应,最后更新时间越晚的图像显示的位置越更早。例如,2022年08月03号的10:00这个时间为在2022年08月04号的12:00之前的时间,则第一标签为2022/08/04/12:00的图像将被显示在第一标签为2022/08/03/10:00的图像之前。这样,可以将被永久置顶操作的图像(例如上述第一图像)置顶显示,且显示在图像列表的最顶部。The display position of each image in the second interface corresponds to the last update time of the first label representation corresponding to each image, and the display position of an image with a later last update time is earlier. For example, if the time of 10:00 on August 03, 2022 is before 12:00 on August 04, 2022, the image whose first label is 2022/08/04/12:00 will be displayed in The first tag is 2022/08/03/10:00 before the image. In this way, the image (for example, the above-mentioned first image) that is permanently pinned to the top can be displayed on top, and displayed at the top of the image list.
此外,可选的,当所述第一图像被永久置顶之后,若电子设备存储了另一张新的图像(假设为图像P,且“电子设备存储图像P”这一动作的发生时间为第一时间),如果此时图像片P1并未被取消置顶,则电子设备可以将图像P1对应的第一标签更新为最新时间,该最新时间可以为电子设备存储图像P2之后的某个时间,即第一时间之后的某个时间(以下称为第二时间)。第二时间与第以时间之间的时间间隔可以很短,例如1分钟,也可以为其他数值,本申请对此不作限定。这样可以在有新图像存入的情况下,保持所述第一图像置顶显示。In addition, optionally, after the first image is permanently pinned to the top, if the electronic device stores another new image (assumed to be image P, and the action of "the electronic device stores image P" occurs at the first time), if the image P1 is not unpinned at this time, the electronic device can update the first tag corresponding to the image P1 to the latest time, and the latest time can be a certain time after the electronic device stores the image P2, that is A certain time after the first time (hereinafter referred to as the second time). The time interval between the second time and the second time may be very short, such as 1 minute, or other values, which are not limited in this application. In this way, when a new image is stored, the first image can be kept displayed on top.
结合第一方面,在一个可选的实施方式中,所述第一图像与所述至少一张图像均包含对应的第二标签,所述第二标签表征图像是否为置顶时间为第一时长的临时置顶的图像,所述响应于对所述第一图像的第一操作,所述显示第二界面,包括:响应于对所述第一图像的第一操作,将所述第一图像对应的第二标签由第一数值更新为第二数值,所述第二数值表征所述第一图像为临时置顶的图像;根据所述至少一张图像中各图像对应的第二标签的数值和所述第一图像对应的第二标签的数值,显示所述第二界面;所述第二界面中,第二标签为所述第二数值的图像显示于第二标签为所述第一数值的图像之前;所述显示第二界面之后,所述方法还包括:经所述第一时长,显示第十界面,所述第九界面包括所述第一区域和所述第二区域,所述第一图像显示在所述第十界面的所述第二区域,且所述第一图像不显示在所述第十界面的所述第一区域。With reference to the first aspect, in an optional implementation manner, both the first image and the at least one image include a corresponding second tag, and the second tag indicates whether the image is on top for a first duration The temporary top image, the displaying the second interface in response to the first operation on the first image includes: in response to the first operation on the first image, displaying the corresponding The second label is updated from the first value to the second value, and the second value indicates that the first image is a temporary top image; according to the value of the second label corresponding to each image in the at least one image and the The value of the second label corresponding to the first image displays the second interface; in the second interface, the image whose second label is the second value is displayed before the image whose second label is the first value After the second interface is displayed, the method further includes: after the first duration, displaying the tenth interface, the ninth interface includes the first area and the second area, and the first image displayed on the second area of the tenth interface, and the first image is not displayed on the first area of the tenth interface.
在本实施方式中,电子设备中的图像均有一个对应的标签,即所述第二标签。所述第二标签表征了图像的是否为临时置顶的图像。具体的,当图像对应的第二标签的值为1时,则该图像为临时置顶的图像;当图像对应的第二标签的值为0时,则该图像为非临时置顶的图像。In this implementation manner, each image in the electronic device has a corresponding tag, that is, the second tag. The second label indicates whether the image is a temporary top image. Specifically, when the value of the second label corresponding to the image is 1, the image is a temporary top image; when the value of the second label corresponding to the image is 0, the image is a non-temporary top image.
可以理解的当图像刚被存储到电子设备中时,图像对应的第二标签的值可以默认被设置为0;但是,当电子设备响应于用户操作,将该图像临时置顶显示之后,该图像对应的第二标签的值可以更新为1。例如当用户对所述第一图像进行所述第一操作,将所述第一图像临时置顶显示在图库的图像列表中,则所述第一图像对应的第二标签的值可以由0更新为1。而在本实施方式中,第二标签为所述第二数值的图像显示于第二标签为所述第一数值的图像之前,最后更新时间越晚的图像显示的位置越更早。这样,可以将被临时置顶操作的图像(例如上述第一图像)置顶显示,且显示在图像列表的最顶部。It can be understood that when the image is just stored in the electronic device, the value of the second tag corresponding to the image can be set to 0 by default; The value of the second tag can be updated to 1. For example, when the user performs the first operation on the first image and temporarily puts the first image on top and displays it in the image list of the gallery, the value of the second tag corresponding to the first image can be updated from 0 to 1. In this embodiment, the image whose second label is the second value is displayed before the image whose second label is the first value, and the image whose last update time is later is displayed earlier. In this way, the image (for example, the above-mentioned first image) that is temporarily pushed to the top can be displayed on top, and displayed at the top of the image list.
此外,由于在本实施方式中所述第一个图像是被临时置顶显示在所述第二界面中的。在经历所述第一时长之后,电子设备可以自动将所述第二图像在所述第二界面中取消置顶显示,以避免用户在无需再次使用所述第二图像的情况下,电子设备依旧将所述第二图像一直置顶显示在图库中,能进一步提高用户对目标图像的定位效率。In addition, in this embodiment, the first image is temporarily displayed on top of the second interface. After the first duration, the electronic device may automatically cancel the display of the second image on top of the second interface, so as to prevent the electronic device from still displaying the second image when the user does not need to use the second image again. The second image is always displayed on top of the gallery, which can further improve the user's efficiency in locating the target image.
结合第一方面,在一个可选的实施方式中,所述第一图像与所述至少一张图像均包含对应的标签集,所述标签集包括与图像对应的第一标签和第二标签,所述第一标签表征图像的最后更新时间;所述第二标签表征图像是否为置顶时间为第一时长的临时置顶的图像,所述响应于对所述第一图像的第一操作,所述显示第二界面,包括:响应于对所述第一图像的第一操作,在所述第一操作为永久置顶操作的情况下,将所述第一图像对应的第一标签更新为第一时间,所述第一时间为所述第一操作的发生时间;在所述第一操作为临时置顶操作的情况下,将所述第一图像对应的第二标签由第一数值更新为第二数值,所述第二数值表征所述第一图像为临时置顶的图像;将所述第二界面中各图像对应的第二标签进行比对后,再将所述第二界面中各图像对应的第一标签进行比对,得到比对结果;根据所述比对结果,显示所述第二界面;所述第二界面中,第二标签为所述第二数值的图像显示于第二标签为所述第一数值的图像之前,且在第二标签相同的图像中,第一标签所表征的最后更新时间更晚的图像显示在第一标签所表征的最后更新时间更早的图像之前。With reference to the first aspect, in an optional implementation manner, the first image and the at least one image each include a corresponding label set, and the label set includes a first label and a second label corresponding to the image, The first tag represents the last update time of the image; the second tag represents whether the image is a temporary top image whose top time is the first duration, and in response to the first operation on the first image, the Displaying the second interface includes: in response to the first operation on the first image, updating the first label corresponding to the first image to the first time when the first operation is a permanent sticking operation , the first time is the occurrence time of the first operation; if the first operation is a temporary top operation, update the second label corresponding to the first image from the first value to the second value , the second numerical value indicates that the first image is a temporary top image; after comparing the second tags corresponding to each image in the second interface, the second tag corresponding to each image in the second interface A label is compared to obtain a comparison result; according to the comparison result, the second interface is displayed; in the second interface, the second label is the image of the second value displayed on the second label. Before the image with the above-mentioned first value, and in the image with the same second label, the image represented by the first label with a later update time is displayed before the image represented by the first label with an earlier last update time.
在本实施方式中,电子设备中的图像均可以有一个标签集,所述标签集包括所述第一标签和所述第二标签。In this implementation manner, each image in the electronic device may have a tag set, and the tag set includes the first tag and the second tag.
所述第二标签可供电子设备识别与图像是否需要临时置顶;当第二标签的值为1时,表示该第二标签对应的图像需要被临时置顶;当第二标签的值为0时,表示该第二标签对应的图像不需要被临时置顶。当电子设备将图像初始存储在图库应用中时,电子设备可以将图像的第二标签的值默认设置为0。当用户通过电子设备对某张图像进行临时置顶的操作后,电子设备可以响应于该操作,将该图像对应的第二标签的值更新为1;当该图像的临时置顶的时长结束,或者用户将该图像取消临置顶后,电子设备将自动将该图像的对应的第二标签的值更新为0。The second label can be used by the electronic device to identify whether the image needs to be temporarily placed on the top; when the value of the second label is 1, it means that the image corresponding to the second label needs to be temporarily placed on the top; when the value of the second label is 0, Indicates that the image corresponding to the second label does not need to be temporarily placed on top. When the electronic device initially stores the image in the gallery application, the electronic device may set the value of the second tag of the image to 0 by default. When the user performs an operation of temporarily pinning an image to the top through the electronic device, the electronic device may update the value of the second label corresponding to the image to 1 in response to the operation; when the duration of the temporary pinning of the image ends, or the user After the image is unpinned, the electronic device will automatically update the value of the corresponding second label of the image to 0.
所述第一标签记载了图像的最后更新时间。这里所说的“更新”可以是对图像进行存储或者对图像进行置顶操作。可以理解的当图像刚被存储到电子设备中时,图像的第一标签应该默认为是该图像的存储时间;但是,当电子设备响应于用户操作,将该图像永久置顶显示之后,该图像的第一标签可以更新为最后更新时间,该最后更新时间可以为上述用户操作发生的时间,也就是用户将该图像进行置顶的时间。The first tag records the last update time of the image. The "update" mentioned here may be to store the image or perform an operation on the top of the image. It can be understood that when the image is just stored in the electronic device, the first label of the image should be the storage time of the image by default; The first label may be updated with the last update time, and the last update time may be the time when the above user operation occurs, that is, the time when the user pins the image to the top.
在本实施方式中,所述第二界面中各图像的排列顺序可以通过对各图像的标签集的比对结果确定。对图像对应的标签集中的所述第一标签和所述第二标签的进行比较的优先级次序可以为:In this implementation manner, the arrangement order of the images in the second interface may be determined by comparing the label sets of the images. The order of priority for comparing the first label and the second label in the label set corresponding to the image may be:
1.先比较图像对应的第二标签的值,第二标签的值为1的图像显示在第二标签的值为0的图像之前。1. First compare the value of the second label corresponding to the image, and the image with the value of the second label of 1 is displayed before the image with the value of the second label of 0.
2.在图像对应的第二标签的值相同的情况下(例如第二标签的值同时为1或者同时为0),则进一步比较图像对应的第一标签,第一标签所对应的最后更新时间越晚的图像显示在第一标签所对应的最后更新时间越早的图像之前。2. When the value of the second label corresponding to the image is the same (for example, the value of the second label is 1 or 0 at the same time), then further compare the first label corresponding to the image and the last update time corresponding to the first label The later image is displayed before the image corresponding to the first label whose last update time is earlier.
具体可以参考后续实施例的相关说明,此处先不赘述。For details, reference may be made to relevant descriptions of subsequent embodiments, and details are not repeated here.
结合第一方面,在一个可选的实施方式中,所述第一图像与所述至少一张图像均包含对应的标签集,所述标签集包括第一标签、第二标签和第三标签,所述第一标签表征图像的最后更新时间;所述第二标签表征图像是否为置顶时间为第一时长的临时置顶的图像,所述第三标签表征图像的存储时间;所述第一图像包括第四图像和第五图像;所述响应于对所述第一图像的第一操作,所述显示第二界面,包括:响应于对所述第一图像的第一操作,在所述第一操作为永久置顶操作的情况下,将所述第四图像对应的第一标签和所述第五图像对应的第一标签更新为第一时间,所述第一时间为所述第一操作的发生时间;在所述第一操作为临时置顶操作的情况下,将将所述第四图像对应的第一标签和所述第五图像对应的第一标签更新为第一时间由第一数值更新为第二数值,所述第二数值表征所述第四图像和所述第五图像为临时置顶的图像;将所述第二界面中各图像的第二标签进行比对后,再将所述第二界面中各图像的第一标签进行比对,最后将所述第二界面中各图像对应的第三标签进行比对,得到比对结果;根据所述比对结果,显示所述第二界面;所述第二界面中,第二标签为所述第二数值的图像显示于第二标签为所述第一数值的图像之前;在第二标签相同的图像中,第一标签所表征的最后更新时间更晚的图像显示在第一标签所表征的最后更新时间更早的图像之前;在第二标签相同且第一标签相同的图像中,第三标签所表征的存储时间更晚的图像显示在第三标签所表征的存储时间更早的图像之前。With reference to the first aspect, in an optional implementation manner, the first image and the at least one image each include a corresponding label set, and the label set includes a first label, a second label, and a third label, The first label represents the last update time of the image; the second label represents whether the image is a temporarily topped image with a first duration, and the third label represents the storage time of the image; the first image includes The fourth image and the fifth image; the displaying the second interface in response to the first operation on the first image includes: in response to the first operation on the first image, in the first When the operation is a permanent top operation, update the first label corresponding to the fourth image and the first label corresponding to the fifth image to the first time, and the first time is when the first operation occurs Time; when the first operation is a temporary top operation, the first label corresponding to the fourth image and the first label corresponding to the fifth image will be updated to the first time from the first value to The second value, the second value indicates that the fourth image and the fifth image are temporary top images; after comparing the second tags of the images in the second interface, the first The first label of each image in the two interfaces is compared, and finally the third label corresponding to each image in the second interface is compared to obtain a comparison result; according to the comparison result, the second interface is displayed ; In the second interface, the image whose second label is the second value is displayed before the image whose second label is the first value; in the images with the same second label, the last image represented by the first label Images with a later update time are displayed before images with an earlier last update time represented by the first label; among images with the same second label and the same first label, images with a later storage time represented by the third label are displayed Before the older image represented by the third label.
在本实施方式中,电子设备中的图像均可以有一个标签集,所述标签集包括所述第一标签、所述第二标签和所述第三标签。In this implementation manner, each image in the electronic device may have a tag set, and the tag set includes the first tag, the second tag, and the third tag.
所述第二标签和所述第一标签的具体意义和作用可以参考前述说明,此处不再赘述。For the specific meanings and functions of the second label and the first label, reference may be made to the foregoing description, which will not be repeated here.
所述第三标签表征其对应图像的存储时间,可以理解的,在电子设备中,图像对应的第三标签一般是不会变化的。The third tag represents the storage time of the corresponding image. It can be understood that in electronic devices, the third tag corresponding to the image generally does not change.
在本实施方式中,所述第二界面中各图像的排列顺序可以通过对各图像的标签集的比对结果确定。对图像对应的标签集中的所述第一标签、所述第二标签以及所述第三标签的进行比较的优先级次序可以为:In this implementation manner, the arrangement order of the images in the second interface may be determined by comparing the label sets of the images. The order of priority for comparing the first label, the second label, and the third label in the label set corresponding to the image may be:
1.先比较图像对应的第二标签的值,第二标签的值为1的图像显示在第二标签的值为0的图像之前。1. First compare the value of the second label corresponding to the image, and the image with the value of the second label of 1 is displayed before the image with the value of the second label of 0.
2.在图像对应的第二标签的值相同的情况下(例如第二标签的值同时为1或者同时为0),则进一步比较图像对应的第一标签,第一标签所对应的最后更新时间越晚的图像显示在第一标签所对应的最后更新时间越早的图像之前。2. When the value of the second label corresponding to the image is the same (for example, the value of the second label is 1 or 0 at the same time), then further compare the first label corresponding to the image and the last update time corresponding to the first label The later image is displayed before the image corresponding to the first label whose last update time is earlier.
3.在图像对应的第二标签与第一标签均相同的情况(例如所述第四图像和所述第五图像)下,则进一步比较图像对应的第三标签;第三标签所对应的存储时间越晚的图像显示在第三标签所对应的存储时间越早的图像之前。3. Under the situation that the second tag corresponding to the image is the same as the first tag (such as the fourth image and the fifth image), then further compare the third tag corresponding to the image; the storage corresponding to the third tag The image with the later time is displayed before the image with the earlier storage time corresponding to the third label.
具体可以参考后续实施例的相关说明,此处先不赘述。For details, reference may be made to relevant descriptions of subsequent embodiments, and details are not repeated here.
第二方面,本申请实施例提供一种电子设备,所述电子设备包括:一个或多个处理器和存储器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行第一方面或第一方面的任一可能的实现方式中的方法。In a second aspect, the embodiment of the present application provides an electronic device, the electronic device includes: one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is used to store computer Program code, where the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to execute the method in the first aspect or any possible implementation manner of the first aspect.
第三方面,提供一种芯片系统,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行第一方面或第一方面的任一可能的实现方式中的方法。In a third aspect, a chip system is provided, the chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to invoke computer instructions so that the electronic device executes the first aspect or The method in any possible implementation manner of the first aspect.
第四方面,提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面或第一方面的任一可能的实现方式中的方法。In a fourth aspect, there is provided a computer-readable storage medium, including instructions. When the above-mentioned instructions are run on an electronic device, the above-mentioned electronic device is made to execute the method in the first aspect or any possible implementation manner of the first aspect.
附图说明Description of drawings
图1为本申请实施例提供的一种通过第三方应用发送图像的过程示意图;FIG. 1 is a schematic diagram of a process of sending an image through a third-party application provided in an embodiment of the present application;
图2为本申请实施例提供的一种电子设备的架构图;FIG. 2 is a structural diagram of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种将图像置顶后再取消置顶的过程示意图;FIG. 3 is a schematic diagram of a process of unpinning an image after pinning it to the top provided by the embodiment of the present application;
图4为本申请实施例提供的一种在发送图像之后将图像置顶的过程示意图;FIG. 4 is a schematic diagram of a process of putting an image on top after sending the image according to an embodiment of the present application;
图5为本申请实施例提供的一种将图像批量置顶的过程示意图;FIG. 5 is a schematic diagram of a process of batching images to the top provided by an embodiment of the present application;
图6为本申请实施例提供的一种图像对应的标签集的示意图;FIG. 6 is a schematic diagram of a tag set corresponding to an image provided in an embodiment of the present application;
图7为本申请实施例提供的电子设备100中多张图像对应的标签集的示意图;FIG. 7 is a schematic diagram of label sets corresponding to multiple images in the electronic device 100 provided in the embodiment of the present application;
图8-图14为本申请实施例提供的电子设备100更新图像对应的标签集的过程示意图;8-14 are schematic diagrams of the process of updating the label set corresponding to the image by the electronic device 100 according to the embodiment of the present application;
图15为本申请实施例提供的一种图像的显示方法的流程图。FIG. 15 is a flowchart of an image display method provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Plural expressions are included unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in this application refers to and includes any and all possible combinations of one or more of the listed items.
由于本申请实施例涉及图像的置顶方法和电子设备,为了便于理解,下面先对本申请实施例涉及的相关术语进行介绍。Since the embodiment of the present application involves a method for placing an image on top and an electronic device, for ease of understanding, relevant terms involved in the embodiment of the present application will first be introduced below.
(1)图像的先后顺序(1) The sequence of images
在图库中,图像通常以缩略图的形式显示在图像列表中。一般而言,当图库中的图像达到一定数量时,图像会以多行多列的形式排列。根据大多数用户的浏览习惯,对于位于不同行的图像而言,位于上行的图像可以被认为排列在位于下行的图像之前;对于位于同一行的图像而言,位于左方的图像可以被认为排列在位于右方的图像之前。即在本申请中,显示于图像列表中不在同一行的两个图像,位于上行的图像是排在位于下行的图像之前的;显示在同一行中的两个图像,位于左方的图像是排在位于右方的图像之前的。具体可以参考后续实施例的相关说明,此处先不赘述。In a gallery, images are usually displayed as thumbnails in an image list. Generally speaking, when the number of images in the gallery reaches a certain amount, the images will be arranged in the form of multiple rows and multiple columns. According to the browsing habits of most users, for images located in different rows, the images located in the upper row can be considered to be arranged before the images located in the lower row; for images located in the same row, the images located on the left can be considered to be arranged before the image on the right. That is, in this application, for two images displayed in the image list that are not on the same row, the image on the upper row is arranged before the image on the lower row; for two images displayed on the same row, the image on the left is arranged in front of the image on the right. For details, reference may be made to relevant descriptions of subsequent embodiments, and details are not repeated here.
(2)图像置顶(2) image on top
图像置顶即将电子设备中的图像显示在图像列表的顶部。例如,在本申请中,当电子设备的图库应用的图像列表中包含多张图像时,用户可以通过操作,将原本不处于列表顶部的图像显示在该列表的顶部;之后,若用户通过电子设备中的第三方应用访问图库中的图像时候,之前被用户置顶的图像也会显示在图像列表的顶部,以便于用户快速选择该图像,并进行分享或者上传。Image sticking means displaying the image in the electronic device at the top of the image list. For example, in this application, when the image list of the gallery application of the electronic device contains multiple images, the user can display the image that was not at the top of the list at the top of the list through operations; When a third-party application in accesses an image in the gallery, the image previously pinned by the user will also be displayed at the top of the image list, so that the user can quickly select the image and share or upload it.
在本申请中,当电子设备的图库应用中的图像均未置顶的情况下,若用户通过相关操作将图库中的某一张图像置顶,则该图像将被显示在图像列表的第一行的最左方。In this application, when none of the images in the gallery application of the electronic device are pinned to the top, if the user pins an image in the gallery to the top through related operations, the image will be displayed in the first row of the image list. far left.
(2)永久置顶(2)Permanent top
即将电子设备中的图像置顶显示并一直置顶显示。在本申请中,当用户将图库中的某张图像(以下称其为图像A)置顶显示之后,该图像将一直显示在图库中图像列表的顶部(一般是图像列表的最上面一行的最左方)。当用户后续将其他图像(以下称其为图像B,图像B并未被用户置顶)存入图库中时,图像A将依旧被置顶显示,即图像A将依旧被显示在图像列表的顶部,图像B将被显示在图像A的之后。That is, the image in the electronic device is displayed on top and always on top. In this application, when the user puts an image in the gallery (hereinafter referred to as image A) to the top and displays it, the image will always be displayed at the top of the image list in the gallery (usually the leftmost row of the top row of the image list). square). When the user subsequently saves other images (hereinafter referred to as image B, and image B has not been pinned by the user) to the gallery, image A will still be displayed on top, that is, image A will still be displayed at the top of the image list, and image B will be displayed after image A.
(3)临时置顶(3)Temporary top
即将电子设备中的图像置顶显示并在一段时长(以下称为置顶时长)内保持置顶显示;在该时长结束后该图像将不再置顶显示,并退回至列表中原来的位置。进一步的,在本申请中,当用户将图库中的某张图像(以下称其为图像C)临时置顶之后,当图像C的置顶时长结束之前,图像C将一直显示在图库中图像列表的顶部。在图像C的置顶时长结束之前,若用户后续将其他图像(以下称其为图像D,图像D并未被用户置顶)存入图库中时,图像C将依旧被置顶显示,即图像C将依旧被显示在图像列表的顶部,而图像D将被显示在图像C的之后。That is to display the image on the top of the electronic device and keep it on top for a period of time (hereinafter referred to as the top duration); after the time period ends, the image will no longer be displayed on the top and return to its original position in the list. Further, in this application, after the user puts an image in the gallery (hereinafter referred to as image C) to the top temporarily, until the duration of image C on top ends, image C will always be displayed at the top of the image list in the gallery . Before the topping time of image C ends, if the user subsequently saves other images (hereinafter referred to as image D, image D has not been pinned by the user) to the gallery, image C will still be displayed on top, that is, image C will remain is displayed at the top of the image list, and image D will be displayed after image C.
进一步的,本申请提供的电子设备可以在用户通过第三方应用对图像进行分享或上传之后,提示用户是否需要将图像临时置顶,以便于后续用户再次通过第三方应用分享或者上传该图像时,能快速在图像列表中找到该图像。具体可以参考后续实施例的相关说明,此处先不赘述。Furthermore, the electronic device provided by this application can prompt the user whether to temporarily pin the image to the top after the user shares or uploads the image through the third-party application, so that the subsequent user can share or upload the image through the third-party application again. Quickly find the image in the image list. For details, reference may be made to relevant descriptions of subsequent embodiments, and details are not repeated here.
(4)批量置顶(4) Batch Top
即将电子设备中多张图像一起置顶显示;在置顶之后,这些图像将一起显示于图像列表的顶部。此外,需要说明的是,在本申请实施例中,当将多张图像批量显示之后,这些被一起置顶的图像之间的先后顺序将按照原先的先后顺序显示于图像列表中。例如,当用户将图库中的两张图像(以下称其为图像E和图像F,在未置顶之前,图像E和图像F位于图像列表的同一行,且图像E位于图像F的左方)批量置顶之后,当图像E和图像F将一起显示在图库中图像列表的顶部,且在图像列表中,图像E依旧显示在图像F的左方,具体可以参考后续实施例的相关说明,此处先不赘述。That is to put multiple images on the top of the electronic device and display them together; after they are put on top, these images will be displayed together at the top of the image list. In addition, it should be noted that, in the embodiment of the present application, after multiple images are displayed in batches, the order of the top images will be displayed in the image list according to the original order. For example, when the user puts two images in the gallery (hereafter referred to as image E and image F, before they are pinned to the top, image E and image F are located in the same row of the image list, and image E is located on the left of image F) batch After being set to the top, when image E and image F will be displayed together at the top of the image list in the gallery, and in the image list, image E will still be displayed on the left of image F. For details, please refer to the relevant descriptions of subsequent embodiments. Here, first I won't go into details.
现如今,用户经常会通过某些第三方应用分享或者上传电子设备中存储的图像。但是,在现在的电子设备中,当用户通过第三方应用浏览电子设备中的图像时,无法对图像进行搜索。当电子设备中存储的图像的数量太多时,用户往往需要花费大量的时间来从这些图像中找出自己需要分享或者上传的图像。这无疑浪费了用户的时间,降低了用户体验。Nowadays, users often share or upload images stored in electronic devices through some third-party applications. However, in current electronic devices, when a user browses images in the electronic device through a third-party application, the images cannot be searched. When the number of images stored in the electronic device is too large, the user often needs to spend a lot of time to find the image that he needs to share or upload from these images. This undoubtedly wastes the user's time and reduces the user experience.
请参阅图1,图1为本申请实施例提供的一种通过第三方应用发送电子设备中图像的过程示意图。图1中的(A)所示的用户界面10为某个具备通信功能的第三方应用(例如 和)的应用界面。如用户界面10所示,用户界面10可包含照片选项101,其可以用于向用户(例如图1中的(A)中所示的用户Lisa)发送电子设备中的图像。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a process of sending an image in an electronic device through a third-party application according to an embodiment of the present application. The user interface 10 shown in (A) in FIG. 1 is a third-party application with a communication function (such as and ) application interface. As shown in the user interface 10, the user interface 10 may include a
具体的,照片选项101可以响应于用户操作,例如图1中的(A)所示出的点击操作,使电子设备显示如图1中的(B)所示用户界面11。用户界面11可以为电子设备中应用“图库”的应用界面。如用户界面11所示,用户界面11可以包括信息框111,图像列表112。其中:Specifically, the
信息框111可包含提示信息,其可以提示用户电子设备最近存储的图像的数量。例如用户界面11中所示的提示信息“最近照片(200)”,其表示电子设备最近将200张图像存储在图库中。The
图像列表112可以显示电子设备最近存储的图像,即前述说明中提及的“最近照片(200)”。这些图像可以显示在图像列表112中。可以理解的,由于电子设备显示屏的面积限制,电子设备并未将这200张图像完全显示在图像列表112中。但是,电子设备可以响应于用户操作,例如图1中的(B)所示的上滑操作,对图像列表112中的图像进行更新,以便用户可以对上述200张图像进行浏览,并从中找到自己需要分享或者上传的图像。The
如图1中的(C)所示,用户界面12为电子设备可以响应于图1中的(B)所示的上滑操作所显示的用户界面。在图像列表112所显示的图像中,图像121即用户希望发送的图像。此时,电子设备可以先响应于图1中的(C)所示的用户对图像121的点击操作,选中图像121;随后,电子设备可以再响应于图1中的(C)所示的用户对发送控件122的点击操作,将图像121对应的图像发送给其他用户(例如图1中的(A)中所示的用户Lisa),并显示如图1中的(D)所示的用户界面13。As shown in (C) in FIG. 1 , the
从图1所示出的过程示意图可以看出,在电子设备的图库中存储有大量图像的情况下,例如图库中存储的图像数量大于1000张时,当用户希望通过某个第三方应用发送或者上传图库中的图像时,用户就需要从大量的图像中找到自己需要的图片,这无疑需要耗费用户大量的时间和精力,严重影响了用户的使用体验。From the schematic diagram of the process shown in Figure 1, it can be seen that when a large number of images are stored in the gallery of the electronic device, for example, when the number of images stored in the gallery is greater than 1000, when the user wants to send or When uploading an image in the gallery, the user needs to find the image he needs from a large number of images, which undoubtedly consumes a lot of time and energy for the user, and seriously affects the user experience.
针对上述缺陷,本申请提供了一种图像置顶的方法和电子设备,该方法和该电子设备通过增加“置顶”功能,可以将图库中用户后续需要分享或者上传的目标图像置顶,即将该目标图像放置在图像列表的首位;当用户通过该电子设备中的第三方应用上传或者发送图库中的上述目标图像时,用户能快速找到被置顶在图像列表顶部的目标图像,提升用户的使用体验。In view of the above-mentioned defects, the present application provides a method and an electronic device for putting an image on top. By adding a "top" function, the method and the electronic device can put the target image that the user needs to share or upload in the gallery to the top, that is, the target image Placed at the top of the image list; when the user uploads or sends the above-mentioned target image in the gallery through the third-party application in the electronic device, the user can quickly find the target image that is placed at the top of the image list, improving the user experience.
进一步的,在本申请提供的图像置顶方法和电子设备中,用户对图像的置顶操作可以分为永久置顶和临时置顶。被临时置顶的图像只会在限定时长内(例如5分钟)在图像列表中置顶显示,方便用户二次分享或者上传该图像;当上述限定时长结束后,被临时置顶的图像将不再置顶显示,并回退到图像列表中的原位置显示。Further, in the image pinning method and electronic device provided in the present application, the user's pinning operation on an image can be divided into permanent pinning and temporary pinning. The temporarily pinned image will only be displayed on the top of the image list within a limited period of time (for example, 5 minutes), so that users can share or upload the image again; when the above-mentioned limited time is over, the temporarily pinned image will no longer be displayed on the top , and return to the original position display in the image list.
首先,介绍本申请实施例提供的电子设备。First, the electronic device provided by the embodiment of the present application is introduced.
该电子设备以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmentedreality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigitalassistant,PDA)或专门的照相机(例如单反相机、卡片式相机)等,本申请对该电子设备的具体类型不作任何限制。The electronic device is a mobile phone, a tablet computer, a wearable device, a car device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC) ), netbooks, personal digital assistants (personal digital assistants, PDAs) or specialized cameras (such as single-lens reflex cameras, card cameras), etc., this application does not impose any restrictions on the specific types of electronic devices.
图2示例性示出了该电子设备的结构。FIG. 2 exemplarily shows the structure of the electronic device.
如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 2 , the electronic device 100 may include a
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments,
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be the USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The
下面介绍本申请实施例提供的用户界面。The user interface provided by the embodiment of the present application is introduced below.
首先,介绍将图像置顶以及将图像取消置顶所涉及的用户界面。First, a description of the user interface involved in pinning and unpinning images.
请参阅图3。如图3所示,图3示例性示出了电子设备100中应用程序图库的多个相关用户界面,图库应用可用于显示电子设备100存储的图像。图3中的(A)所示的用户界面30可以为响应于作用在图库的图标的触摸操作,电子设备100显示的界面(在本申请实施例中,用户界面30可以被称为“第一界面”)。用户界面30可以包含图像列表304以及搜索控件305,其中:See Figure 3. As shown in FIG. 3 , FIG. 3 exemplarily shows multiple related user interfaces of the application program gallery in the electronic device 100 , and the gallery application can be used to display images stored in the electronic device 100 . The
图像列表304,可用于显示电子设备100中存储的图像,例如图像301以及图像302。需要理解的是。同理,由于电子设备100的显示屏的面积限制,图像列表304中并未完全显示在电子设备100存储的全部图像;也就是说,图像列表304包括用户界面30中未能显示的图像所在的区域,这部分区域可以通过用户对图像列表304的用户操作显示在电子设备100的屏幕中(具体可以参考前述对图1的相关说明)。在用户界面30所示的图像列表304中,对于位于在不同行中的图像,位在上行的图像可以被认为是排列在位于下行的图像之前,即上行的图像显示于下行的图像之前;对于位于同一行的图像而言,位于左方的图像可以被认为排列在位于右方的图像之前,即同行显示的图像中,左边的图像显示于右边的图像之前。例如,在图像列表304中,图像301可以被认为是显示在图像302之前的;而图像302可以被认为是显示在图像303(在本申请实施例中,图像303可以被称为“第一图像”)之前的。The
搜索控件305,可以用于搜索图像(在本申请实施例中,搜索控件305可以被称为“第一控件”)。可以理解的,电子设备100中的应用程序图库可以借助电子设备100提供的AI搜索功能,根据用户输入的关键字搜索对应类型的图片。具体的,搜索控件305可以响应于用户操作,例如图3中的(A)所示的点击操作,使电子设备100显示如图3中的(B)所示的用户界面31(在本申请实施例中,用户界面31可以被称为“第三界面”)。用户界面31可以包含输入框311、图像312以及图像313,其中:A
输入框311可以供用户输入关键字,并显示用户输入的关键字(在本申请实施例中,输入框311可以被称为“输入框”)。电子设备100即可以根据该关键字从图库中的图像列表中搜索与该关键字对应类型的图像,并将搜索到的图像单独展示给用户。The
例如,输入框311中的关键字311A所包含的信息为“花朵”(在本申请实施例中,“花朵”可以被称为“关键字”),则电子设备100可以在图库中的图像列表中搜索到所有包含“花朵”元素的图像,即用户界面31中所示的图像312以及图像313,并将其展示在用户界面31中。其中,图像312对应的图像即为是前述图像列表304中的图像303,而图像313则由于电子设备100的显示屏的面积限制并未显示在图像列表304中。需要说明的是,在本申请中,图库中的图像列表中的图像实际上均为缩略图,例如图像列表304中的图像303即为图像312的缩略图,由于通过电子设备100中的第三方应用分享或者上传电子设备100中存储的图像时,电子设备100也是直接以缩略图的形式,将多张图像以图像列表的形式展示给用户。因此,在本申请中,将图像置顶实际上就是将图像对应的缩略图置于图像列表的顶部。For example, the information contained in the
在本申请实施例中,图像列表304中前三行图像所在的区域可以被称为“第一区域”,图像列表304中除了前三行图像所在区域之外的区域(包括图像列表中未能显示的图像所在的区域)可以被称为“第二区域”。In the embodiment of the present application, the area where the first three rows of images in the
图像312(在本申请实施例中,图像312可以被称为“第一图像”)以及图像313,即为电子设备100根据用户输入的关键字从图像列表中搜索出的图像。其中,电子设备100可以响应于用户对任意一张图像的用户操作,将该图像在图库中的图像列表305中置顶显示。The image 312 (in the embodiment of the present application, the
例如,电子设备100可以响应于图3中的(B)所示的用户对图像312的长按操作,显示如图3中的(C)所示的用户界面32。用户界面32可以包含选项列表322,选项列表322可以包含“永久置顶”选项322A,“临时置顶”选项322B,“添加备注”选项322C,“重命名”选项322D以及“设置为”选项322E。其中:For example, the electronic device 100 may display the user interface 32 as shown in (C) in FIG. 3 in response to the user's long press operation on the
“永久置顶”选项322A,可以用于将图像312在图像列表304中永久置顶显示。The “Permanently on top” option 322A can be used to permanently put the
“临时置顶”选项322B,可以用于将图像312在图像列表304中临时置顶显示。The “Temporarily Put on Top”
“添加备注”选项322C,可以用于为图像312添加备注信息。The “add comment”
“重命名”选项322D,可以用于为图像312重新命名。A "rename"
“设置为”选项322E,可以用于将图像312设置为电子设备100主屏幕壁纸、电子设备100的屏锁壁纸以及联系人头像等。The "set as"
电子设备100可以响应于用户对任意一个选项的用户操作,执行与该选项对应的功能。The electronic device 100 may execute a function corresponding to any option in response to the user's user operation on any option.
例如,电子设备100可以响应于如图3中的(C)所示的用户对“永久置顶”选项322A的点击操作(在本申请实施例中,用户对“永久置顶”选项322A的点击操作可以被称为“第四操作”,前述“第一操作”可以包含前述“第二操作”、前述“第三操作”以及“第四操作”),将图像312在图像列表304中永久置顶显示。当电子设备100将图像312在图库中的图像列表304中置顶显示后,应用程序图库的相关用户界面可以参考如图3中的(D)所示的用户界面33(在本申请实施例中,用户界面33可以被称为“第二界面”)。结合前述说明可知,当某张图像被置顶显示之后,在没有其他图像被置顶的情况下,该图像将被显示在图像列表最上行的最左方。因此,原本在用户界面30所示的图像列表304中,图像312对应的图像303在图像列表304中第四行的第二列,当图像303被置顶后,在用户界面33所示出的图像列表304中,图像312对应的图像303将被显示在图像列表304最上行的最左方。进一步的,当图像312置顶显示之后,其对应的图像303的中,可以包含一个置顶标识303A,以提示用户该图像为置顶显示的图像。For example, the electronic device 100 may respond to the user's click operation on the "permanently on top" option 322A as shown in (C) in FIG. It is called the “fourth operation”, the aforementioned “first operation” may include the aforementioned “second operation”, the aforementioned “third operation” and the “fourth operation”), and the
此外,在本申请中,电子设备100中还支持用户将已经置顶显示的图像取消置顶。例如在图3中的(D)所示出的用户界面33中,图像303为置顶显示的图像。电子设备100可以响应于用户操作,例如图3中的(E)所示出的用户对图像303的长按操作,使电子设备100显示如图3中的(E)所示的用户界面34。用户界面32可以包含选项列表341,选项列表341可以包含“取消置顶”选项341B,该选项可以用于将图像303在图像列表304中永久置顶显示。In addition, in this application, the electronic device 100 also supports the user to unpin the image that has been displayed on top. For example, in the user interface 33 shown in (D) of FIG. 3 , the image 303 is an image displayed on top. The electronic device 100 may respond to a user operation, such as a user's long press operation on the image 303 shown in (E) in FIG. 3 , causing the electronic device 100 to display the
具体的,电子设备100可以响应于用户操作,例如图3中的(E)所示出的用户对“取消置顶”选项341B的点击操作,显示如图3中的(F)所示出的用户界面35。可以看出,在用户界面35所示出的图像列表304中,原本被置顶显示的图像303已经被取消置顶,并回退到其原来在图像列表304中的位置,即图像列表304中第四行的第二列。Specifically, the electronic device 100 may respond to user operations, such as the user's click operation on the "unstick to top" option 341B shown in (E) in FIG. interface35. It can be seen that in the
可以理解的是,图4中的仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。此外,在一些实施例中,当用户通过关键字在图库应用中搜索到希望置顶的图像后,用户还可以通过其他方式将该图像进行置顶或者为已经置顶的图像取消置顶,本申请对此不作限定。例如,当用户通过关键字在图库应用中搜索到希望置顶的图像后,用户可以对该图像进行双击操作,将该图像在图像列表中置顶显示;再比如,当图像被置顶后,用户可以通过点击被置顶图像中的置顶标识(例如上述置顶标识303A),以将该图像取消置顶。It can be understood that, the user interface on the electronic device 100 is only exemplarily shown in FIG. 4 , and should not be construed as limiting the embodiment of the present application. In addition, in some embodiments, after the user searches the gallery application for an image that he wants to pin to the top through keywords, the user can also pin the image to the top or unpin the image that has already been pinned to the top in other ways. limited. For example, when a user searches for an image that he wants to be the top in the gallery application through a keyword, the user can double-click the image to display the image as the top in the image list; Click on the sticky icon (for example, the above-mentioned sticky icon 303A) in the pinned image to cancel the pinning of the image.
接下来介绍将图像临时置顶以及将图像取消置顶所涉及的用户界面。Next, we describe the user interface involved in temporarily pinning and unpinning an image.
首先,用户可以在电子设备100的图库应用中将希望临时置顶的图像临时置顶。例如,在图3中的(C)所示出的用户界面32中,用户界面32可以包含的选项列表322中存在“临时置顶”选项322B;电子设备100可以响应于用户对“临时置顶”选项322B的点击操作,将图像312在图像列表304中临时置顶显示。First, the user may temporarily put an image that is desired to be temporarily put on top in the gallery application of the electronic device 100 . For example, in the user interface 32 shown in (C) in FIG. 3 , there is a "temporary top"
或者,当用户通过电子设备100中的某个应用分享或者上传某张图像后,电子设备100可以将该图像在图库应用中的图像列表中置顶显示,该图像将在一定时长(例如5分钟)内在图像列表中置顶展示。在这段时长内之后,若用户通过电子设备100中的某个应用再次享或者上传该图像,用户可以快速找到该图像二次分享或者上传。在这段时长结束之后,该图像不再置顶显示,并回退到其原先所在图像列表的位置。具体请参考图4。Or, after the user shares or uploads an image through an application in the electronic device 100, the electronic device 100 can display the image on top of the image list in the gallery application, and the image will be displayed within a certain period of time (for example, 5 minutes). Displayed at the top of the built-in image list. After this period of time, if the user shares or uploads the image again through an application in the electronic device 100, the user can quickly find the image to share or upload again. After this period of time has elapsed, the image will no longer be displayed on top, and will fall back to its original position in the image list. Please refer to Figure 4 for details.
图为本申请实施例提供的一种将图像临时置顶的过程示意图。如图4中的(A)所示,用户界面41为某个具备通信功能的第三方应用(例如和)的应用界面。如用户界面41所示,用户界面41可包含照片选项411,其可以用于向用户(例如图4中的(A)中所示的用户Lisa)发送电子设备100中的图像。The figure is a schematic diagram of a process of temporarily putting an image on top provided by the embodiment of the present application. As shown in (A) in Figure 4, the
具体的,照片选项411可以响应于用户操作,例如图4中的(A)所示出的点击操作,使电子设备100显示如图4中的(B)所示用户界面42(在本申请实施例中,用户界面41可以被称为“第五界面”)。用户界面42可以为电子设备100中应用“图库”的应用界面。如用户界面42所示,用户界面42可以包括图像列表421。图像列表421可以显示电子设备100最近存储的图像;其中,图像422为显示在图像列表371中最顶部的图像,但其并不是被用户置顶的图像;图像423(在本申请实施例中,图像423可以被称为“第二图像”)为用户希望发送给用户“Lisa”的图像,此时图像423居于图像列表371中第四行的第二列。Specifically, the
电子设备100可以先响应于图4中的(B)所示的用户对图像423的点击操作,选中图像373;随后,电子设备100可以再响应于图4中的(B)所示的用户对发送控件424(在本申请实施例中,发送控件424可以被称为“第三控件”)的点击操作(在本申请实施例中,对发送控件424的点击操作可以被称为“第五操作”),将图像423对应的图像发送给用户“Lisa”,并显示如图4中的(C)所示的用户界面43(在本申请实施例中,用户界面43可以被称为“第七界面”)。用户界面43中可以包含其可包含图像对话区域431、提示框432(在本申请实施例中,提示框432可以被称为“提示框”)。其中:The electronic device 100 may first respond to the user's click operation on the image 423 shown in (B) in FIG. 4 , and select the image 373; The click operation of the send control 424 (in the embodiment of the present application, the
对话区域381可以用于显示用户对话的历史消息的图像。如图4中的(C)所示,图像431A即为用户发送的图像,也就是前述图像列表421中的图像423。The conversation area 381 may be used to display images of history messages of user conversations. As shown in (C) in FIG. 4 , the
提示框432可包含提示信息432A和控件432B。其中:提示信息432A,可提示:“发送成功,是否在图库中将该图像临时置顶?”;控件432B(在本申请实施例中,控件432B可以被称为“第四控件”)可以响应于用户操作(在本申请实施例中,该用户操作可以被称为“第七操作”),以使电子设备100将图像431A在图库中对应的图像(即图像423)在图库的图像列表中置顶显示。The
当用户通过第三方应用分享图像423后,电子设备100中应用“图库”的应用界面可以为图4中的(D)所示的用户界面44(在本申请实施例中,用户界面44可以被称为“第六界面”)。在用户界面44所示出的图像列表441中,图像423已经被置顶显示。在用户界面42所示出的图像列表421中,图像423位于图像列表421第四行的第二列,而在在用户界面44所示出的图像列表441中,图像423已经被置顶显示,其位于图像列表441的第一行的第一列。进一步的,当图像423被置顶显示之后,图像423中也可以包含一个置顶标识423A,以提示用户该图像为置顶显示的图像;可选的,被临时置顶的图像中的置顶标识(例如上述置顶标识423A)的样式可以和被永久置顶的图像中的置顶标识(例如前述说明中的置顶标识303A)不同,以便用户能分辨出被置顶的图像是被永久置顶还是被临时置顶。After the user shares the image 423 through a third-party application, the application interface of the "gallery" application in the electronic device 100 may be the
可选的,用户可以在被临时置顶的图像所规定的置顶时长内,通过用户操作主动将被临时置顶的图像取消置顶,具体可以参考前述对图3中的(C)-(F)的相关说明,此处不再赘述。Optionally, the user can actively unpin the temporarily pinned image through user operations within the specified pin time period of the temporarily pinned image, for details, refer to the aforementioned related to (C)-(F) in Figure 3 description, which will not be repeated here.
可选的,电子设备也可以在用户通过某个应用分享或者上传某张图像后,将该图像在图库应用中的图像列表中永久置顶显示,具体可以参考前述说明,这里不再赘述。Optionally, after the user shares or uploads an image through an application, the electronic device may permanently display the image at the top of the image list in the gallery application. For details, please refer to the foregoing description, which will not be repeated here.
此外,电子设备100的图库应用中的图像还可以被批量置顶,具体可以参考图5。In addition, the images in the gallery application of the electronic device 100 can also be pushed to the top in batches, for details, refer to FIG. 5 .
如图5中的(A)所示,用户界面51可以为响应于作用在图库的图标的触摸操作,电子设备100显示的界面。用户界面51可以包含图像列表511。图像列表511,可用于显示电子设备100中存储的图像,例如图像512、图像513以及图像514。结合前述说明可知,在图像列表511中,图像512-图像514的排列顺序为:图像512排列在图像513之前,且图像513排列在图像514之前。As shown in (A) of FIG. 5 , the user interface 51 may be an interface displayed by the electronic device 100 in response to a touch operation acting on an icon of a gallery. The user interface 51 may contain a
电子设备100可以响应于用户对图像列表511中任意一张图像的操作,使得将该图像设置为选中状态,并在列表511中的其他图像上显示该每张图像的勾选框,以供用户对列表511中的图像进行批量勾选。例如,电子设备100可以响应于图5中的(A)所示出的用户对图像513的长按操作,将图像513设置为选中状态,并显示如图5中的(B)所示的用户界面52。用户界面52可以包括图像列表511和功能选项区域525,其中:The electronic device 100 may respond to the user's operation on any image in the
图像列表511即为如图5中的(A)所示的用户界面51中的图像列表511。可以可用于显示电子设备100中存储的图像,例如图像512、图像513以及图像514。但是,与用户界面51中的图像列表511不同的是,在用户界面52中的图像列表511中,每张图像中均存在勾选框。其中,图像513的勾选框513B为深色,表示图像513为选中状态。而图像列表511中的其他图像的勾选框均为空白框(例如图像512的勾选框512B以及图像514的勾选框514B),表示这些图像均为被选中。The
功能选项区域515可包含分享控件525A、全选控件525B、永久置顶控件525C、删除控件522D以及取消置顶控件525E。其中:分享控件525A,用于将图像列表511中被选中的图像分享到其他应用,例如分享到微信、QQ等。全选控件525B,用于将图像列表511中的全部图像一键设定为选中状态。永久置顶控件525C,用于将图像列表511中被选中的图像一起在图像列表511中永久置顶显示。删除控件525D,用于删除图像列表511中被选中的图像。取消置顶控件525E,用于将图像列表511中已经被置顶显示的图像一起在图像列表511中取消置顶显示。The
这里假设在图像列表511中,图像512、图像513以及图像514即为用户希望一起置顶显示的图像。则电子设备100可以响应于如图5中的(B)所示的用户对图像512以及图像514的点击操作,将图像512以及图像514选中,并显示如图5中的(C)所示的用户界面53。It is assumed here that in the
在用户界面53中,图像512的勾选框512B、图像513勾选框513B以及图像514勾选框514B为深色,表示图像513-图像514均为选中状态。之后,电子设备100可以响应于用户对永久置顶控件525C的操作,例如图5中的(C)所示的用户对永久置顶控件525C的操作的点击操作,将图像512、图像513以及图像514一起在图像列表511中置顶显示,并显示如图5中的(D)所示的用户界面54。In the
如图5中的(D)所示,在用户界面54中,图像512、图像513以及图像514在用户界面54中的图像列表511中置顶显示。可选的,被置顶显示后,用户界面54中的图像512、图像513以及图像514的图像中可以均包含各自的置顶标识,即置顶标识512A、置顶标识513A以及置顶标识514A,以提示用户图像513-图像514是被置顶显示的图像。As shown in (D) of FIG. 5 , in the
需要说明的是,在本申请中,当图像被批量置顶之后,这些被置顶的图像之间的排列顺序与被置顶之前是相同的。例如,结合前述说明可知,在用户界面51中的图像列表511中,图像512-图像514还未置顶显示,此时图像512-图像514的排列顺序为:图像512排列在图像513之前,且图像513排列在图像514之前。而在用户界面54中的图像列表511中,图像512-图像514均已经置顶显示,此时图像512-图像514的排列顺序依旧为:图像512排列在图像513之前,且图像513排列在图像514之前。It should be noted that, in this application, after images are pinned to the top in batches, the sequence of the pinned images is the same as before being pinned. For example, in conjunction with the foregoing description, it can be seen that in the
接下来结合图6介绍本申请提供的电子设备100中存储的图像的特性。Next, the characteristics of the images stored in the electronic device 100 provided by the present application will be introduced with reference to FIG. 6 .
图6为本申请提供的电子设备100中的图像以及图像对应信息的示意图。如图6所示,图像601为电子设备100中存储的图像,具体的,图像601可以为存在于电子设备100的图库应用中的图像。在本申请提供的电子设备100中,电子设备100中的图像均可以有一个标签集,例如图6中的标签集T601。在每张图像对应的标签集中,都存在三个带有相同下标的标签,即flag、Tc以及Tu。在本申请实施例以及后续实施例中,这三个标签的下标即表示该标签所属的图像,例如在标签集T601中,flag601即为图像601对应的flag标签,Tu601即为图像601对应的Tu标签,Tc601即为图像601对应的Tu标签。FIG. 6 is a schematic diagram of images and corresponding information of the images in the electronic device 100 provided by the present application. As shown in FIG. 6 , the
在本申请中,电子设备100可以对图像对应的flag标签、Tc标签以及Tu标签的值进行比较来确定图像在图像列表中的排列顺序。其中:In this application, the electronic device 100 may compare the values of the flag tag, the Tc tag, and the Tu tag corresponding to the images to determine the order in which the images are arranged in the image list. in:
flag标签(在本申请实施例中,flag标签可以被称为“第二标签”)可供电子设备100识别该图像是否需要临时置顶。当flag标签的值为1时,表示该flag标签对应的图像需要被临时置顶;当flag标签的值为0时,表示该flag标签对应的图像不需要被临时置顶。当电子设备100将图像初始存储在图库应用中时,电子设备100可以将图像对应的flag标签的值默认设置为0,例如图6中的flag601。当用户通过电子设备100对某张图像进行临时置顶的操作后,电子设备100可以响应于该操作,将该图像对应的flag标签的值更新为1;当该图像的临时置顶的时长结束,或者用户将该图像取消临置顶后,电子设备100将自动将该图像对应的flag标签的值更新为0。The flag tag (in this embodiment of the application, the flag tag may be referred to as a "second tag") can be used by the electronic device 100 to identify whether the image needs to be temporarily set on top. When the value of the flag tag is 1, it means that the image corresponding to the flag tag needs to be temporarily set to the top; when the value of the flag tag is 0, it means that the image corresponding to the flag tag does not need to be temporarily set to the top. When the electronic device 100 initially stores the image in the gallery application, the electronic device 100 may set the value of the flag tag corresponding to the image to 0 by default, such as flag 601 in FIG. 6 . After the user performs an operation of temporarily setting an image to the top through the electronic device 100, the electronic device 100 may update the value of the flag tag corresponding to the image to 1 in response to the operation; when the duration of the temporary setting of the image ends, or After the user cancels the pinning of the image, the electronic device 100 will automatically update the value of the flag tag corresponding to the image to 0.
例如,假设在2022年07月01号的10:00用户对图像601进行临时置顶操作,使图像601在图库应用的图像列表中临时置顶显示。则在上述临时置顶操作发生之后,电子设备100可以将图像601对应的flag标签,即flag601的值更新为1,且在图像601的置顶时效(假设该置顶时效为5分钟)内flag601的值均固定为1。在2022年07月01号的10:05时,图像601的置顶时效结束后,则电子设备100可以flag601的值更新为0,则图像601不再置顶显示。For example, suppose that at 10:00 on July 1, 2022, the user performs a temporary pinning operation on the
Tc标签(在本申请实施例中,Tc标签可以被称为“第三标签)”记载了图像的存储时间,也就是电子设备100首次获得该图像并将其存储在图库应用中的时间。例如,图5中所示的Tu601的值为当2022/07/01/08:00,则表示图像601是电子设备100在2022年07月01号的08:00获得并存储的图像,例如用户在2022年07月01号的08:00使用的相机拍摄得到的图像,或者使用户在2022年07月01号的08:00通过电子设备100中的第三方应用保存的图像。因此,图像601对应的Tc标签的值即为2022/07/01/08:00。可选的,图像601的Tc在电子设备100中可以表示为2022年07月01号的08:00,也可以表示为其他形式,本申请对此不作限制。不难理解的,在本申请中,电子设备100中存储的图像对应的Tc标签的值一般是固定不变的。The Tc tag (in the embodiment of the present application, the Tc tag may be referred to as "the third tag)" records the storage time of the image, that is, the time when the electronic device 100 obtains the image for the first time and stores it in the gallery application. For example, when the value of Tu 601 shown in FIG. 5 is 2022/07/01/08:00, it means that the
Tu标签(在本申请实施例中,Tu标签可以被称为“第一标签”)记载了图像的最后更新时间。可理解的,当图像刚被存储到电子设备100中时,该图像对应的Tu标签的值应该默认与该图像对应的Tc标签的值相同;例如图6中的Tc601和Tu601的值均为2022/07/01/08:00。但是,当电子设备100响应于用户操作,将某张图像永久置顶之后,该图像对应的Tu标签的值可以更新为最后更新时间,该最后更新时间可以为上述用户操作发生的时间,也就是用户将该图像进行置顶的时间。例如当用户在2022年08月03号的10:00对图像601进行操作,将该图像置顶显示在图库的图像列表中,则图像601的Tu601则更新为2022/08/03/10:00(或者2022年08月03号的10:00),而图像601的Tc依旧为2022/07/01/08:00(或者2022年07月01号的08:00)。The Tu tag (in this embodiment of the application, the Tu tag may be referred to as a "first tag") records the last update time of the image. Understandably, when an image is just stored in the electronic device 100, the value of the Tu tag corresponding to the image should be the same as the value of the Tc tag corresponding to the image by default; for example, the values of Tc 601 and Tu 601 in FIG. for 2022/07/01/08:00. However, when the electronic device 100 permanently pins an image to the top in response to a user operation, the value of the Tu tag corresponding to the image may be updated to the last update time, and the last update time may be the time when the above user operation occurred, that is, the user The time to pin the image to the top. For example, when the user operates on
此外,在本申请中,当某张图像(假设为图像P1)被永久置顶之后,若电子设备100存储了另一张新的图像(假设为图像P2,且电子设备100“存储图像P2”这一动作的发生时间为t1),如果此时图像片P1并未被取消置顶,则电子设备100可以将图像P1对应的Tu标签的值更新为最新时间,该最新时间可以为电子设备100存储图像P2之后的某个时间,即t1之后的某个时间t2。t2与t1的时间间隔可以很短,例如1分钟,也可以为其他数值,本申请对此不作限定。若后续电子设备100继续存储其他新的图像,则电子设备100可以依照上述方法更新P1图像的Tu。若后续图像P1被取消置顶,则电子设备100将图像P1对应的Tu标签的值更新为P1对应的Tc标签的值。In addition, in this application, after a certain image (assumed to be image P1) is permanently pinned to the top, if electronic device 100 stores another new image (assumed to be image P2, and electronic device 100 "stores image P2" The occurrence time of an action is t1), if the image P1 has not been unpinned at this time, the electronic device 100 can update the value of the Tu tag corresponding to the image P1 to the latest time, which can store the image for the electronic device 100 Some time after P2, that is, some time t2 after t1. The time interval between t2 and t1 may be very short, such as 1 minute, or other values, which are not limited in this application. If the subsequent electronic device 100 continues to store other new images, the electronic device 100 may update the Tu of the P1 image according to the above method. If the subsequent image P1 is unpinned, the electronic device 100 updates the value of the Tu tag corresponding to the image P1 to the value of the Tc tag corresponding to P1.
例如,如当用户在2022年08月03号的10:00对图像601进行操作,将该图像置顶显示在图库的图像列表中,则图像601的Tu601则更新为2022/08/03/10:00(或者2022年08月03号的10:00);之后,假设电子设备100在2022年08月04号的12:00新存储了另一张图像(以下称该图像为图像602),则电子设备100可以将图像601的Tu601更新为2022/08/04/12:01(或者2022年08月04号的12:01);若电子设备100在2022年08月04号的14:00新存储了另一张图像(以下称该图像为图像603),则电子设备100可以将图像601的Tu601更新为2022/08/04/14:01(或者2022年08月04号的14:01),以此类推。For example, if the user operates on
需要说明的是,图6中所示出的标签集T601仅为了方便读者理解,其并不代表标签集在实际应用场景中的样式。例如上述图像601对应的flag标签、Tc标签以及Tu标签可以不和图像601一起显示电子设备100的用户界面中,甚至可以不显示于电子设备100的用户界面中,仅以电子设备100可感知的形式(例如代码、识别码)存在于电子设备100中,本申请对此不作限定。It should be noted that the tag set T 601 shown in FIG. 6 is only for the convenience of readers to understand, and it does not represent the style of the tag set in an actual application scenario. For example, the flag tag, Tc tag, and Tu tag corresponding to the above-mentioned
在本申请中,当电子设备100中存储有多张图像之后,电子设备100可以比较每张图像的标签集中对应的flag标签、Tu标签以及Tc标签的值,来确定这多张图像之间的排列顺序。具体的,电子设备100将不同图像的标签集中对应的flag标签、Tu标签以及Tc标签的值分别进行比较,以决定电子设备100在显示上述多张图像时图像之间的排列顺序。需要提前说明的是,在本申请中,flag标签的值的比较规则为:标签值1>标签值0;Tu标签以及Tc标签的值的比较规则均为:更晚的时间>更早的时间。例如,2022年08月03号的10:00这个时间为在2022年08月04号的12:00之前的时间,则标签值2022/08/04/12:00>标签值2022/08/03/10:00。在本申请中,对三个标签的进行比较的优先级次序可以为:In this application, when multiple images are stored in the electronic device 100, the electronic device 100 can compare the values of the flag tag, Tu tag, and Tc tag corresponding to the tag set of each image to determine the difference between the multiple images. Order. Specifically, the electronic device 100 compares the values of the flag tags, Tu tags, and Tc tags corresponding to the tag sets of different images, so as to determine the arrangement order of the images when the electronic device 100 displays the above-mentioned multiple images. It should be noted in advance that in this application, the comparison rule for the value of the flag tag is:
1.先比较图像对应的flag标签的值,flag标签为1的图像显示在flag标签为0的图像之前。1. First compare the value of the flag tag corresponding to the image. The image with the flag tag of 1 is displayed before the image with the flag tag of 0.
2.在图像flag标签的值相同的情况下(例如flag标签的值同时为1或者同时为0),则进一步比较图像对应的Tu标签的值,Tu标签的值大的图像显示在Tu标签的值小的图像之前。2. When the values of the image flag tags are the same (for example, the values of the flag tags are both 1 or 0 at the same time), then further compare the value of the Tu tag corresponding to the image, and the image with a larger value of the Tu tag is displayed on the Tu tag before images with small values.
3.在图像对应的flag标签值且图像对应的Tu标签值均相同的情况下,则进一步比较图像对应的Tc标签的值,Tc标签的值大的图像显示在Tu标签的值小的图像之前。3. In the case that the flag tag value corresponding to the image and the Tu tag value corresponding to the image are the same, then further compare the value of the Tc tag corresponding to the image, and the image with a larger value of the Tc tag is displayed before the image with a smaller value of the Tu tag .
以电子设备100中的两张图像(以下称为图像P3和图像P4)为例进行说明。假设图像P3的标签集所包含的标签分别为flagP3、TuP3以及TcP3,图像P3的标签集所包含的标签分别为flagP4、TuP4以及TcP4。Two images (hereinafter referred to as image P3 and image P4 ) in the electronic device 100 are taken as an example for description. It is assumed that the labels contained in the label set of the image P3 are flag P3 , Tu P3 and Tc P3 respectively, and the labels contained in the label set of the image P3 are flag P4 , Tu P4 and Tc P4 respectively.
若flagP3的值为1,而flag P4的值为0,此时无论则TuP3和TuP4之间的大小关系如何,且无论TcP4与TcP3之间的大小关系如何,在图库应用的图像列表中,图像P3均显示在图像P4之前。If the value of flag P3 is 1 and the value of flag P4 is 0, no matter what the size relationship between Tu P3 and Tu P4 is, and no matter what the size relationship between Tc P4 and Tc P3 is, the In the image list, image P3 is displayed before image P4.
若flagP3和flagP4的值均为0,则电子设备100可以进一步比较TuP3和TuP4之间的大小关系。若TuP3>TuP4,则在图库应用的图像列表中,图像P3显示在图像P4之前;若TuP4>TuP3,则在图库应用的图像列表中,图像P3显示在图像P3之前。If the values of flag P3 and flag P4 are both 0, the electronic device 100 may further compare the magnitude relationship between Tu P3 and Tu P4 . If Tu P3 >Tu P4 , in the image list of the gallery application, the image P3 is displayed before the image P4; if Tu P4 >Tu P3 , then in the image list of the gallery application, the image P3 is displayed before the image P3.
若flagP3和flag P4的值均为0,且TuP3与TuP4的值也相同,则电子设备100可以进一步比较TcP3和TcP4之间的大小关系。若TcP3>TcP4,则在图库应用的图像列表中,图像P3显示在图像P4之前;若TcP4>TcP3,则在图库应用的图像列表中,图像P3显示在图像P3之前。If the values of flag P3 and flag P4 are both 0, and the values of Tu P3 and Tu P4 are also the same, the electronic device 100 can further compare the magnitude relationship between Tc P3 and Tc P4 . If Tc P3 >Tc P4 , in the image list of the gallery application, the image P3 is displayed before the image P4; if Tc P4 >Tc P3 , then in the image list of the gallery application, the image P3 is displayed before the image P3.
接下来结合上述说明以及图7-图13对电子设备100将图像置顶的逻辑顺序进行说明。Next, the logic sequence of placing the image on top by the electronic device 100 will be described with reference to the above description and FIGS. 7-13 .
图7中所包含的图像701-705均为电子设备100中存储的图像;具体的,图像701-705可以均为存在于电子设备100的图库应用中的图像。这里假定图7中的图像701-图像705均为还未被置顶显示的图像,其中图像701,图像702,图像703为电子设备100历史存储的图像,且电子设备100将图像701-图像703进行存储的时间的先后顺序为:图像704,图像701,图像702,图像703。图像704为电子设备100在存储了图像701-图像703之后,新存储的图像。则结合图7以及上述说明可知此时:The images 701-705 included in FIG. 7 are all images stored in the electronic device 100; specifically, the images 701-705 may all be images existing in the gallery application of the electronic device 100. It is assumed here that the image 701-
图像701对应的flag标签(flag701)、Tu标签(Tu701)以及Tc标签(Tc701)的值分别为:0,T1,T1。The values of the flag tag (flag 701 ), Tu tag (Tu 701 ) and Tc tag (Tc 701 ) corresponding to the
图像702对应的flag标签(flag702)、Tu标签(Tu702)以及Tc标签(Tc702)的值分别为:0,T2,T2。The values of the flag tag (flag 702 ), Tu tag (Tu 702 ) and Tc tag (Tc 702 ) corresponding to the
图像703对应的flag标签(flag703)、Tu标签(Tu703)以及Tc标签(Tc703)的值分别为:0,T3,T3。The values of the flag tag (flag 703 ), Tu tag (Tu 703 ) and Tc tag (Tc 703 ) corresponding to the
图像704对应的flag标签(flag704)、Tu标签(Tu704)以及Tc标签(Tc704)的值分别为:0,T4,T4。The values of the flag tag (flag 704 ), Tu tag (Tu 704 ) and Tc tag (Tc 704 ) corresponding to the
图像705对应的flag标签(flag705)、Tu标签(Tu705)以及Tc标签(Tc705)的值分别为:0,T5,T5。The values of the flag tag (flag 705 ), Tu tag (Tu 705 ) and Tc tag (Tc 705 ) corresponding to the
其中,T4>T1>T2>T3>T5,即Tc704>Tc701>Tc702>Tc703>Tc705。Wherein, T4>T1>T2>T3>T5, that is, Tc 704 >Tc 701 >Tc 702 >Tc 703 >Tc 705 .
基于图7所提供的图像701-图像705,图8-图14分别展示出了在不同情形下,图像的标签集中标签值的更新过程,以及电子设备100随着图像标签集的更新改变图像在图像列表中的排列顺序的过程。Based on the images 701-705 provided in FIG. 7, FIGS. 8-14 respectively show the update process of the tag values in the tag set of the image in different situations, and the electronic device 100 changes the value of the image in the tag set along with the update of the image tag set. The process of sorting the order in the image list.
①在电子设备100中无新存储的图片和置顶的图像的情况下,电子设备100永久置顶一张图像。① In the case that there is no newly stored picture or pinned image in the electronic device 100, the electronic device 100 permanently pins an image to the top.
图8示出了在电子设备100中无新存储的图片和置顶的图像的情况下,电子设备100永久置顶一张图像的具体过程。FIG. 8 shows a specific process of permanently pinning an image to the top of the electronic device 100 when there is no newly stored picture or pinned image in the electronic device 100 .
如图8中的(A)所示,用户界面71可以为电子设备100中应用“图库”的应用界面。用户界面71可以包括图像列表711。在用户界面71的图像列表711中,图像701、图像702以及图像703即为前述图7中的图像701、图像702以及图像703,此时,则三张图像均为未被置顶操作的图像。结合前述说明可知,这三张图像对应的flag标签的值均为0,且Tu701=Tc701>Tu702=Tc702>Tu703=Tc703,因此,在用户界面71的图像列表711中,电子设备100将图像701显示在图像702之前,将图像702显示在图像703之前。As shown in (A) of FIG. 8 , the
之后,电子设备100可以响应于用户对图像702的永久置顶操作(具体可以参考前述对图3的相关说明,此处以及后续实施例不再赘述),将图像702的标签集T702进行更新,以将图像702永久置顶显示。具体的,这里假设上述用户对图像702的置顶操作的发生时间为Tc1,则如图8所示,图像702对应的Tu标签Tu702的值将由图8中的(A)所示的T2更新为图8中的(B)所示的Tc1。则可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu702=Tc1>Tu701=Tc701>Tu703=Tc703。因此,电子设备100可以将图像702置顶显示。如图8的(B)中的用户界面72所示,图像702已经被置顶显示在图像列表711中;进一步的,被置顶显示的图像702上还可以包含置顶标识702A。Afterwards, the electronic device 100 may update the tag set T 702 of the
在将图像702永久置顶显示之后,电子设备100用户还可以响应于用户对图像702的取消置顶操作(具体可以参考前述对图3的相关说明,此处以及后续实施例不再赘述),将图像702的标签集T702再次进行更新,以将图像702取消置顶显示。如图8所示,图像702对应的Tu标签Tu702的值将由图8中的(B)所示的Tc1更新为图8中的(C)所示的T2。则可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu701=Tc701>Tu702=Tc702>Tu703=Tc703。因此,电子设备100可以将图像702取消置顶显示。如图8中的(C)的用户界面73所示,图像702已经在图像列表711中被取消置顶显示,并回退到其原来在图像列表711中的位置显示,而图像701则由于Tu标签的值最大而被重新显示在用户界面73中图像列表711的顶部。After the
②永久置顶1张图像后,电子设备100中新存储了1张图像(非置顶图像),又将永久置顶的图像取消置顶。② After one image is permanently pinned to the top, a new image (non-top image) is newly stored in the electronic device 100, and the permanently pinned image is unpinned.
图9示出了永久置顶1张图像后,电子设备100中新存储1张了图像(非置顶图像),又将永久置顶的图像取消置顶的具体过程。FIG. 9 shows a specific process of unpinning the permanently pinned image after a new image (non-pinned image) is newly stored in the electronic device 100 after one image is permanently pinned to the top.
如图9中的(A)所示,用户界面74(在本申请实施例中,用户界面74也可以被称为“第二界面”)可以为电子设备100中应用“图库”的应用界面。用户界面74可以包括图像列表741。在用户界面71的图像列表741中,图像701、图像702以及图像703即为前述图7中的图像701、图像702以及图像703。此时,图像701为被用户通过置顶操作而永久置顶显示的图像,图像701和图像703则均为未被置顶操作的图像。这里假设用户对图像702的置顶操作的发生时间为Tc2。则结合前述说明可知,此时这三张图像对应的flag标签的值均为0,且Tu702=Tc2>Tu701=Tc701>Tu703=Tc703。因此,在用户界面74的图像列表741中,电子设备100可以将图像702置顶显示,并将图像701显示在图像703之前。As shown in (A) of FIG. 9 , the user interface 74 (in the embodiment of the present application, the
之后,电子设备100在时间为T4的时候新存储了一张图像到图库应用中,该图像即为图7中的图像704(在本申请实施例中,图像704也可以被称为“第三图像”)。此时,电子设备100可以将图像702的标签集T702和图像703的标签集T703进行更新,以保持图像702和图像703在图像列表741中永久置顶显示。具体的,如图9所示,图像702对应的Tu标签Tu702的值将由图9中的(A)所示的Tc2更新为图9中的(A)所示的Tc3。其中,Tc3可以是T4之后的某个时间,且Tc3与T4之间间隔的时长可以非常短,例如一分钟。由前述说明可以得知,此时图像701、图像702、图像703以及图像704这四张图像对应的flag标签的值均为0,且此时Tu702=Tc3>Tu704=Tc704>Tu701=Tc701>Tu703=Tc703。因此,电子设备100可以保持图像702在图像列表741中置顶显示。如图9的(B)中的用户界面75(在本申请实施例中,用户界面75也可以被称为“第九界面”)所示,图像702依旧被置顶显示在图像列表741中。且图像704显示在图像701和图像703之前,图像701显示在图像703之前。Afterwards, the electronic device 100 newly stores an image in the gallery application at the time T4, and the image is the
最后,电子设备100用户还可以响应于用户对图像702的取消置顶操作,将图像702的标签集T702再次进行更新,以将图像702取消置顶显示。如图9所示,图像702对应的Tu标签Tu702的值将由图9中的(B)所示的Tc3更新为图9中的(C)所示的T2。则可以得知,此时图像701、图像702、图像703以及图像704这三张图像对应的flag标签的值均为0,且此时Tu704=Tc704>Tu701=Tc701>Tu702=Tc702>Tu703=Tc703。因此,电子设备100可以将图像702取消置顶显示。如图9中的(C)的用户界面76所示,图像702已经在图像列表741中被取消置顶显示,而图像701则由于Tu标签的值最大而被重新显示在用户界面73中图像列表711的顶部。Finally, the user of the electronic device 100 may also update the tag set T 702 of the
③在电子设备100中无新存储的图片和置顶的图像的情况下,电子设备100批量永久置顶多张图像后,再将批量置顶的图像取消置顶。③ In the case that there are no newly stored pictures or pinned images in the electronic device 100, the electronic device 100 permanently pins multiple images in batches, and then cancels the pinned images in batches.
图10示出了在电子设备100中无新存储的图片和置顶的图像的情况下,电子设备100批量永久置顶多张图像后,再将批量置顶的图像取消置顶的具体过程。FIG. 10 shows the specific process of unpinning the batched images after the electronic device 100 permanently pins multiple images in batches when there are no newly stored pictures or pinned images in the electronic device 100 .
如图10中的(A)所示,用户界面77可以为电子设备100中应用“图库”的应用界面。用户界面77可以包括图像列表771。在用户界面77的图像列表771中,图像701、图像702以及图像703即为前述图7中的图像701、图像702以及图像703,此时,则三张图像均为未被置顶操作的图像。结合前述说明可知,这三张图像对应的flag标签的值均为0,且Tu701=Tc701>Tu702=Tc702>Tu703=Tc703,因此,在用户界面77的图像列表771中,电子设备100将图像701显示在图像702之前,将图像702显示在图像703之前。As shown in (A) of FIG. 10 , the
之后,电子设备100可以响应于用户对用户界面77的操作(具体可以参考前述对图5的相关说明,此处以及后续实施例不再赘述),将图像列表771中图像702和图像703一起置顶显示。在这个过程中,电子设备100会将图像702的标签集T702以及图像703的标签集T703进行更新,以将图像702和图像703永久置顶显示。具体的,这里假设上述用户对用户界面77的操作的发生时间为Tc4,则如图10所示,图像702对应的Tu标签Tu702的值将由图10中的(A)所示的T2更新为图10中的(B)所示的Tc4;同理,图像703的标签集T703中对应的Tu标签Tu703的值将由图10中的(A)所示的T3更新为图10中的(B)所示的Tc4。可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu702=Tu703=Tc4>Tu701=T1,且Tc702>Tc703。因此,电子设备100可以将图像702和图像703一起置顶显示,并将图像702显示在图像703的之前,将图像701显示在图像702与图像703之后。如图10的(B)中的用户界面78所示,图像702以及图像703已经被置顶显示在图像列表771中;进一步的,被置顶显示的图像702中可以包含置顶标识702B,被置顶显示的图像703中可以包含置顶标识703B。Afterwards, the electronic device 100 may respond to the user's operation on the user interface 77 (for details, please refer to the above-mentioned relevant description of FIG. 5 , which will not be repeated here and in subsequent embodiments), and put the
在将图像702以及图像703批量永久置顶显示之后,电子设备100用户还可以响应于用户对图像702和图像703的取消置顶操作,将图像702的标签集T702以及图像703的标签集T703再次进行更新,以将图像702和图像703取消置顶显示。如图10所示,图像702对应的Tu标签Tu702的值将由图10中的(B)所示的Tc4更新为图10中的(C)所示的T2;图像703对应的Tu标签Tu703的值将由图10中的(B)所示的Tc4更新为图10中的(C)所示的T3。则可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu701=Tc701>Tu702=Tc702>Tu703=Tc703。因此,电子设备100可以将图像702以及图像703取消置顶显示。如图10的(C)中的用户界面79所示,此时图像702以及图像703已经在图像列表771中被取消置顶显示,并回退到其原来在图像列表771中的位置显示,而图像701则由于Tu标签的值最大而被重新显示在用户界面79中图像列表771的顶部。After permanently putting
④批量置顶多张图像后,电子设备100中新存储了1张图像(非置顶图像)。④ After the multiple images are pinned to the top in batches, a new image (non-top image) is stored in the electronic device 100 .
图11示出了批量置顶多张图像后,电子设备100中新存储1张了图像(非置顶图像)的具体过程。FIG. 11 shows a specific process of newly storing one image (non-top image) in the electronic device 100 after a plurality of images are pinned to the top in batches.
如图11中的(A)所示,用户界面81可以为电子设备100中应用“图库”的应用界面。用户界面81可以包括图像列表811。在用户界面81的图像列表811中,图像701、图像702以及图像703即为前述图7中的图像701、图像702以及图像703,此时,则三张图像均为未被置顶操作的图像。结合前述说明可知,这三张图像对应的flag标签的值均为0,且Tu701=Tc701>Tu702=Tc702>Tu703=Tc703,因此,在用户界面81的图像列表811中,电子设备100将图像701显示在图像702之前,将图像702显示在图像703之前。As shown in (A) of FIG. 11 , the
电子设备100可以响应于用户对用户界面81的操作,将图像列表811中图像702和图像703一起置顶显示。在这个过程中,电子设备100会将图像702的标签集T702以及图像703的标签集T703进行更新,以将图像702和图像703永久置顶显示。具体的,这里假设上述用户对用户界面77的操作的发生时间为Tc5,则如图10所示,图像702对应的Tu标签Tu702的值将由图11中的(A)所示的T2更新为图11中的(B)所示的Tc5;同理,图像703的标签集T703中对应的Tu标签Tu703的值将由图11中的(A)所示的T3更新为图11中的(B)所示的Tc5。可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu702=Tu703=Tc5>Tu701=T1,且Tc702>Tc703。因此,电子设备100可以将图像702和图像703一起置顶显示,并将图像702显示在图像703的之前,将图像701显示在图像702与图像703之后。如图11的(B)中的用户界面82所示,图像702以及图像703已经被置顶显示在图像列表811中;进一步的,被置顶显示的图像702中可以包含置顶标识702C,被置顶显示的图像703中可以包含置顶标识703C。The electronic device 100 may display the
之后,电子设备100在时间为T4的时候新存储了一张图像到图库应用中,该图像即为图7中的图像704。此时,电子设备100可以将图像702的标签集T702以及703的标签集T703进行更新,以保持图像702和图像703在图像列表811中永久置顶显示。具体的,如图11所示,图像702对应的Tu标签Tu702的值将由图11中的(B)所示的Tc5更新为图11中的(C)所示的Tc6。其中,Tc6可以是T4之后的某个时间,且Tc6与T4之间间隔的时长可以非常短,例如一分钟。由前述说明可以得知,此时图像701、图像702、图像703以及图像704这四张图像对应的flag标签的值均为0,且此时Tu702=Tu703=Tc6>Tu704>Tu701,且Tc702>Tc703。因此,电子设备100可以保持图像702和图像703在图像列表811中置顶显示。如图11的(C)中的用户界面83所示,图像702和图像703依旧被置顶显示在图像列表811中,且图像702显示在图像703之前,图像704显示在图像701之前。Afterwards, the electronic device 100 newly stores an image in the gallery application at time T4, and the image is the
⑤电子设备100临时置顶近期分享过的图像。⑤ The electronic device 100 temporarily puts the recently shared image on top.
图12示出了在电子设备100中无新存储的图片和置顶的图像的情况下,电子设备100永久置顶一张图像的具体过程。FIG. 12 shows a specific process of permanently pinning an image to the top of the electronic device 100 when there is no newly stored picture or pinned image in the electronic device 100 .
如图12中的(A)所示,用户界面84可以为电子设备100中应用“图库”的应用界面。用户界面71可以包括图像列表711。在用户界面71的图像列表711中,图像701以及图像705即为前述图7中的图像701、图像702以及图像705,此时,则三张图像均为未被置顶操作的图像。结合前述说明可知,这三张图像对应的flag标签的值均为0,且Tu701=Tc701>Tu702=Tc702>Tu705=Tc705,因此,在用户界面84的图像列表841中,电子设备100将图像701显示在图像702之前,将图像702显示在图像705之前。As shown in (A) of FIG. 12 , the
电子设备100可以响应于用户对图像702的永久置顶操作,将图像702的标签集T702进行更新,以将图像702永久置顶显示。具体的,这里假设上述用户对图像702的置顶操作的发生时间为Tc7,则如图12所示,图像702对应的Tu标签Tu702的值将由图12中的(A)所示的T2更新为图12中的(B)所示的Tc7。则可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,且此时Tu702=Tc7>Tu701=Tc701>Tu705=Tc705。因此,电子设备100可以将图像702永久置顶显示。如图12的(B)中的用户界面85所示,图像702已经被置顶显示在图像列表841中;进一步的,被置顶显示的图像702上还可以包含置顶标识702C。The electronic device 100 may update the tag set T 702 of the
之后,电子设备100可以在用户对图像702的进行分享或者上传之后,将图像705的标签集T705进行更新,以将图像702的进行临时置顶(具体可以参考前述对图4的相关说明,此处以及后续实施例不再赘述)。具体的,如图12所示,当用户通过电子设备100中的应用发送或者上传图像705之后,图像705对应的flag标签flag705的值将由图12中的(B)所示的0更新为图12中的(C)所示的1。则可以得知,此时图像701以及图像702对应的flag标签的值均为0,而图像705对应的flag标签的值为1;且此时Tu702=Tc7>Tu701=Tc701。因此,电子设备100可以将图像705临时置顶显示,并且将图像705显示在图像702之前。如图12的(C)中的用户界面86所示,图像705已经被临时置顶显示在图像列表841中。进一步的,被置顶显示的图像702上还可以包含置顶标识705C;可选的,置顶标识705C的样式可以和置顶标识702C不同,以便用户能分辨出被置顶的图像是被永久置顶还是被临时置顶。Afterwards, the electronic device 100 can update the tag set T 705 of the
⑥在存在临时置顶图像的情况下,电子设备100中新存储了1张图像(非置顶图像)后,临时置顶的图像由于置顶时效结束自动取消置顶。⑥In the case that there is a temporary top image, after a new image (non-top image) is newly stored in the electronic device 100, the temporary top image is automatically canceled due to the end of the top time limit.
图13示出了在存在临时置顶图像的情况下,电子设备100中新存储了1张图像(非置顶图像)后,临时置顶的图像由于置顶时效结束自动取消置顶的具体过程。FIG. 13 shows that in the case of a temporarily pinned image, after a new image (non-pinned image) is newly stored in the electronic device 100, the temporarily pinned image is automatically unpinned due to the expiration of the pinning time limit.
如图13中的(A)所示,用户界面87可以为电子设备100中应用“图库”的应用界面。用户界面87可以包括图像列表871。在用户界面87(在本申请实施例中,用户界面87也可以被称为“第六界面”)的图像列表871中,图像701以及图像705即为前述图7中的图像701、图像702以及图像705。此时,图像701为未被置顶操作的图像,图像702为被永久置顶的图像(用户对图像702进行置顶操作的时间设为Tc8,且Tc8>Tc1,在本申请实施例中,图像702也可以被称为“第一图像”),图像705为被临时置顶的图像。结合前述说明可知,这三张图像中,图像705(在本申请实施例中,图像705也可以被称为“第二图像”)对应的flag标签的值为1,而图像701和图像702对应的flag标签的值均为0,且Tu702=Tc8>Tu701=Tc701。因此,在用户界面87的图像列表871中,电子设备100将图像705显示在图像702之前,将图像702显示在图像701之前。As shown in (A) of FIG. 13 , the user interface 87 may be an application interface of the application “Gallery” in the electronic device 100 . User interface 87 may include
之后,电子设备100在时间为T4的时候新存储了一张图像到图库应用中,该图像即为图7中的图像704。此时,电子设备100可以将图像702的标签集T702进行更新,以保持图像702在图像列表871中永久置顶显示。此外,由于对于电子设备100而言,图像对应的flag标签对图像的排列顺序影响程度最高,且此时flag705的值为1,因此电子设备100可以不对图像705的标签集T702进行更新,也能在图像705的置顶时效结束之前,保持图像705在图像列表811中置顶显示。具体的,如图13所示,图像702对应的Tu标签Tu702的值将由图13中的(B)所示的Tc8更新为图13中的(C)所示的Tc9。其中,Tc9可以是T4之后的某个时间,且Tc6与T4之间间隔的时长可以非常短,例如一分钟。由前述说明可以得知,此时图像701、图像702以及图像703这三张图像对应的flag标签的值均为0,而图像705对应的flag标签的值为1;且此时Tu702=Tc9>Tu704>Tu701。因此,电子设备100可以保持图像705和图像702在图像列表811中置顶显示。如图11的(C)中的用户界面83所示,图像702和图像703依旧被置顶显示在图像列表871中,且图像705显示在图像702之前,图像704显示在图像701之前。Afterwards, the electronic device 100 newly stores an image in the gallery application at time T4, and the image is the
当被临时置顶的图像705的置顶时效结束后,电子设备100可以将图像705的标签集T705进行更新,以将图像705在图像列表811中取消置顶显示。具体的,如图13所示,当被临时置顶的图像705的置顶时效结束后,图像705对应的flag标签flag705的值将由图13中的(B)所示的1更新为图13中的(C)所示的0。则可以得知,此时图像701、图像702、图像704以及图像705对应的flag标签的值均为0,且此时Tu702=Tc9>Tu704>Tc701=T1>Tc705=T5。因此,电子设备100可以将图像705取消临时置顶显示。如图13的(C)中的用户界面89(在本申请实施例中,用户界面89也可以被称为“第八界面”)所示,图像705已经不再置顶显示在图像列表871中,且图像702依旧被永久置顶显示在图像列表871中。When the sticking time limit for the temporarily pinned
⑦在存在临时置顶图像和永久置顶图像的情况下,取消图像置顶。⑦In the case of temporary top images and permanent top images, cancel the image top.
图14示出了存在临时置顶图像和永久置顶图像的情况下,取消图像置顶的具体过程。FIG. 14 shows the specific process of canceling the top image when there are temporary top images and permanent top images.
如图14中的(A)所示,用户界面91可以为电子设备100中应用“图库”的应用界面。用户界面91可以包括图像列表911。在用户界面91的图像列表911中,图像701、图像702图像704以及图像705即为前述图7中的图像701、图像702图像704以及图像705。此时,图像701和图像704为未被置顶操作的图像,图像702为被永久置顶的图像(用户对图像702进行置顶操作的时间设为Tc10,且Tc10>T4),图像705为被临时置顶的图像。结合前述说明可知,这四张图像中,图像705对应的flag标签的值为1,而图像701、图像702和图像704对应的flag标签的值均为0,且Tu702=Tc10>Tu704>Tu701。因此,在用户界面91的图像列表911中,电子设备100将图像705显示在图像702置顶显示,且图像705显示在图像702之前,将图像704显示在图像701之前。As shown in (A) of FIG. 14 , the
1)在临时置顶图像705的置顶时效结束之前,用户将永久置顶图像702和临时置顶图像705一键取消置顶。1) Before the pinning time limit of the temporary pinned
用户可以通过用户操作将图像702和图像705一键取消置顶(具体可以参考前述对取消置顶控件525E的相关说明,此处不再赘述)。此时,电子设备100可以将图像702的标签集T702以及图像705的标签集T705进行更新,以将图像702和图像705在图像列表911中取消置顶显示。具体的,如图14所示,当永久置顶图像702和临时置顶图像705被一键取消置顶后,图像702对应的Tu标签Tu702的值将由图14中的(A)所示的Tc10更新为图14中的(B)所示的T2,而图像705对应的flag标签flag705的值将由图14中的(A)所示的1更新为图14中的(B)所示的0。则可以得知,此时图像701、图像702、图像704以及图像705对应的flag标签的值均为0,且此时Tu704=T4>Tu701=T1>Tu702=T2>Tc705=T5。因此,电子设备100可以将图像702和图像705取消临时置顶显示。如图14的(B)中的用户界面92所示,图像702和图像705已经不再置顶显示在图像列表871中,且图像704因为Tu标签的值最大被显示在图像列表911的顶部。The user can unstick the
2)在临时置顶图像705的置顶时效结束之前,用户将永久置顶图像702一键取消置顶。2) Before the pinning time limit of the temporary pinned
用户可以通过用户操作将图像702取消置顶(具体可以参考前述对图3的相关说明,此处不再赘述)。此时,电子设备100可以将图像702的标签集T702进行更新,以将图像702中取消置顶显示。具体的,如图14所示,当永久置顶图像702取消置顶后,图像702对应的Tu标签Tu702的值将由图14中的(A)所示的Tc10更新为图14中的(C)所示的T2,而图像705对应的flag标签flag705的值不变且保持为1。则可以得知,此时图像701、图像702以及图像704对应的flag标签的值均为0,而图像705对应的flag标签的值为1,且此时Tu704=T4>Tu701=T1>Tu702=T2。因此,电子设备100可以将图像702取消临时置顶显示,而保持图像705临时置顶显示。如图14的(C)中的用户界面93所示,图像702已经不再置顶显示在图像列表871中,且图像705因为flag标签的值为1依旧被显示在图像列表911的顶部。The user can unstick the
图15为本申请实施例提供的一种图像显示方法的流程图。该方法可以将目标图像在图库中置顶显示,方便用户快速对定位到目标图像。如图9所示,本申请实施例提供的方法可以包括:FIG. 15 is a flowchart of an image display method provided by an embodiment of the present application. This method can display the target image on top of the gallery, which is convenient for the user to locate the target image quickly. As shown in Figure 9, the method provided in the embodiment of this application may include:
S101、显示第一界面,上述第一界面包括第一区域和第二区域,上述第一界面中的上述第一区域位于上述第二区域之前,上述第一界面中的上述第一区域包括至少一张图像,上述第一界面中的上述第二区域包括第一图像。S101. Display a first interface, the first interface includes a first area and a second area, the first area in the first interface is located before the second area, and the first area in the first interface includes at least one images, the second area in the first interface includes the first image.
电子设备显示第一界面。该电子设备可以为手机(mobile phone)、车载设备(例如车载单元(On Board Unit,OBU))、平板电脑(pad)、带显示功能的电脑(如笔记本电脑、掌上电脑等)等。具体的,该电子设备可以是本申请实施例提供的电子设备100。可理解,对于上述电子设备的具体形态,本申请不作限定。The electronic device displays the first interface. The electronic device may be a mobile phone (mobile phone), a vehicle-mounted device (such as an on-board unit (On Board Unit, OBU)), a tablet computer (pad), a computer with a display function (such as a notebook computer, a palmtop computer, etc.) and the like. Specifically, the electronic device may be the electronic device 100 provided in the embodiment of this application. It can be understood that, the present application does not limit the specific forms of the above electronic devices.
在本方法中,上述第一界面可以为电子设备中应用“图库”的应用界面。在图库中,图像通常以缩略图的形式显示在图像列表中。一般而言,当图库中的图像达到一定数量时,图像会以多行多列的形式排列。根据大多数用户的浏览习惯,对于位于不同行的图像而言,位于上行的图像可以被认为排列在位于下行的图像之前;对于位于同一行的图像而言,位于左方的图像可以被认为排列在位于右方的图像之前。即在本申请中,显示于图像列表中不在同一行的两个图像,位于上行的图像是排在位于下行的图像之前的;显示在同一行中的两个图像,位于左方的图像是排在位于右方的图像之前的。具体可以参考前述实施例的相关说明,此处不再赘述。In this method, the above-mentioned first interface may be an application interface of an application "gallery" in the electronic device. In a gallery, images are usually displayed as thumbnails in an image list. Generally speaking, when the number of images in the gallery reaches a certain amount, the images will be arranged in the form of multiple rows and multiple columns. According to the browsing habits of most users, for images located in different rows, the images located in the upper row can be considered to be arranged before the images located in the lower row; for images located in the same row, the images located on the left can be considered to be arranged before the image on the right. That is, in this application, for two images displayed in the image list that are not on the same row, the image on the upper row is arranged before the image on the lower row; for two images displayed on the same row, the image on the left is arranged in front of the image on the right. For details, reference may be made to relevant descriptions of the foregoing embodiments, and details are not repeated here.
可以理解的,当图库中的图像达到一定数量时,图像会以多行多列的形式排列并显示在电子设备的屏幕中。但由于电子设备的显示屏幕的面积限制,这些图像并不能同时一起显示在电子设备的屏幕中,但是,用户可以通过用户操作,例如上滑操作,来对电子设备屏幕中显示的图像进行更新,这样就可以对当前未能显示在电子设备屏幕中的图像进行浏览。因此,在本方法中,上述第一区域可以是在电子设备的图库应用中,处在最上行的图像(这些图像一般为电子设备最新存储的图像)显示在电子设备的屏幕中时,电子设备所显示的画面所对应的区域;而上述第二区域则可以是在电子设备的图库应用中,通过用户操作,例如上滑操作,将当前未能显示在电子设备的屏幕中的图像显示在屏幕中之后,电子设备所显示的画面所对应的区域。或者,上述第一区域可以是在电子设备的图库应用中,处在最上行的图像(这些图像一般为电子设备最新存储的图像)显示在电子设备的屏幕中时,电子设备所显示的画面所对应的区域中的处于较上方的一部分区域,上述第二区域为则为处于较下方的另一部分区域。Understandably, when the number of images in the gallery reaches a certain amount, the images will be arranged in multiple rows and columns and displayed on the screen of the electronic device. However, due to the limitation of the display screen area of the electronic device, these images cannot be displayed on the screen of the electronic device at the same time. However, the user can update the image displayed on the screen of the electronic device through user operations, such as sliding up. In this way, images that cannot currently be displayed on the screen of the electronic device can be browsed. Therefore, in this method, the above-mentioned first area may be in the gallery application of the electronic device, when the images on the top row (these images are generally the latest images stored by the electronic device) are displayed on the screen of the electronic device, the electronic device The area corresponding to the displayed screen; and the above-mentioned second area can be in the gallery application of the electronic device, through the user operation, such as an upward sliding operation, the image that is not currently displayed on the screen of the electronic device is displayed on the screen After clicking, the area corresponding to the screen displayed by the electronic device. Alternatively, the above-mentioned first area may be in the image displayed on the electronic device when the uppermost image (these images are generally the latest images stored in the electronic device) is displayed on the screen of the electronic device in the gallery application of the electronic device. In the corresponding area, a part of the area is at the upper side, and the above-mentioned second area is another part of the area at the lower side.
可以理解的,当用户打开图库应用,或者通过电子设备中的其他应用(例如或)打开图库应用时,电子设备所显示的界面会默认将在最新存储的图像显示在电子设备的屏幕中,再根据每张图像的存储时间将图像依次排列显示,形成图像列表显示在屏幕中。可以理解的,存储时间越早的图像将处于上述图像列表的越下方。因此,当用户需要使用某张图像时,该图像可能由于存储时间较早而处于图像列表中较为下方的位置。因此,用户可能需要耗费大量的精力将该图像找出。且之后每次使用的时候均需要对该图像进行查找,无法直接从图库中大量的图像中直接对该图像进行定位。It is understandable that when the user opens the gallery application, or through other applications in the electronic device (such as or ) When opening the gallery application, the interface displayed by the electronic device will display the latest stored image on the screen of the electronic device by default, and then arrange and display the images in order according to the storage time of each image, forming an image list and displaying it on the screen. It can be understood that an image with an earlier storage time will be lower in the above image list. Therefore, when a user needs to use a certain image, the image may be at a lower position in the image list due to its earlier storage time. Therefore, the user may need to expend a lot of effort to find the image. And after that, the image needs to be searched every time it is used, and it is impossible to directly locate the image from a large number of images in the gallery.
也就是说,处于上述第一区域的图像是可以被用户较为轻松地找到的图像,但是处于上述第二区域中的所述第一图像可能由于其位置处于图像列表的较下方,无法被用户轻易定位并使用。That is to say, the images in the above-mentioned first area are images that can be easily found by the user, but the first image in the above-mentioned second area may not be easily found by the user because its position is lower in the image list. Locate and use.
S102、响应于对上述第一图像的第一操作,显示第二界面,上述第二界面包括上述第一区域和上述第二区域,上述第二界面中上述第一图像显示于上述第一区域中。S102. In response to the first operation on the first image, display a second interface, the second interface includes the first area and the second area, and the first image in the second interface is displayed in the first area .
在本方法中,上述第一操作可以为用于将上述第一图像进行置顶的操作。也就是说,在对上述图像进行上述第一操作之后,上述第一图像将被置顶显示在图像列表的顶部。该顶部可以是图像列表的最顶部,也可以是图像列表在上述第一区域中的任意位置。例如,在图像列表中的图像有100行,且每行3列(即图像列表中每一行可以容纳三张图像),而电子设备的屏幕中只能同时显示5行图像(即最多只能同时显示15张图像,这15张图像即为上述至少一张图像)的情况下,当用户打开图库应用时,电子设备会默认显示该图像列表的第1-5行。但是,如果用户需要使用的图像(即上述第一图像)居于该图像列表的较下方,例如第50行时,那么用户可能需要不断的下滑来并且不断的浏览来找到上述第一图像。但是,当对上述第一图像进行上述第一操作后,上述第一图像将被置顶显示在该图像列表的顶部,这个顶部可以为图像列表第1行的第1列,也可以是该图像列表的前5行的任意位置。这样,当用户打开图库应用时,电子设备同样会默认显示该图像列表的第1-5行,但此时上述第一图像已经存在该图像列表的第1-5行中了,即上述第一图像可以在直接显示在电子设备的屏幕上,用户就能快速找到该图像并使用该图像。In this method, the above-mentioned first operation may be an operation for putting the above-mentioned first image on top. That is to say, after the above-mentioned first operation is performed on the above-mentioned image, the above-mentioned first image will be displayed on top of the image list. The top may be the top of the image list, or any position of the image list in the above-mentioned first area. For example, there are 100 rows of images in the image list, and each row has 3 columns (that is, each row in the image list can accommodate three images), and the screen of the electronic device can only display 5 rows of images at the same time (that is, only at most In the case of displaying 15 images, these 15 images are at least one of the above images), when the user opens the gallery application, the electronic device will display rows 1-5 of the image list by default. However, if the image that the user needs to use (that is, the above-mentioned first image) resides at the lower part of the image list, such as row 50, the user may need to continuously slide down and browse continuously to find the above-mentioned first image. However, when the above-mentioned first operation is performed on the above-mentioned first image, the above-mentioned first image will be displayed at the top of the image list. This top can be the first column of the first row of the image list, or it can be the image list anywhere in the first 5 lines of the . In this way, when the user opens the gallery application, the electronic device will also display rows 1-5 of the image list by default, but at this time the above-mentioned first image already exists in rows 1-5 of the image list, that is, the above-mentioned first image The image can be directly displayed on the screen of the electronic device, and the user can quickly find and use the image.
具体的,上述第一图像置顶显示在该图像列表的顶部,其可以是将上述第一图像插入到该图像列表的顶部某个位置,并且将该位置之后的图像以此顺延。同样以上述100行,且每行3列的图像列表为例进行说明,如果上述第一图像被置顶显示在图像列表第1行的第1列,那么原本显示在第1行的第1列的图像将被显示在第1行的第2列,原本显示在第1行的第2列的图像将被显示在第1行的第3列,原本显示在第1行的第,3列的图像将被显示在第2行的第1列……以此类推。Specifically, the above-mentioned first image is displayed on top of the image list, which may be to insert the above-mentioned first image into a certain position at the top of the image list, and to extend the images after this position. Also take the above image list with 100 rows and 3 columns per row as an example. If the above first image is displayed on top of the first row and
可选的,上述第一图像置顶显示在该图像列表的顶部,其可以是将所述第一图像与该图像列表的顶部某个位置的图像进行调换。例如,如果原本显示在图像列表的第50行第2列的所述第一图像被置顶显示在图像列表第1行的第1列,那么原本显示在第1行的第1列的图像将被显示在的第50行第2列,而图像列表中的其他图像可以不改变显示位置。Optionally, the above-mentioned first image is displayed on top of the image list, which may be to exchange the first image with an image at a certain position at the top of the image list. For example, if the first image originally displayed in row 50, column 2 of the image list is displayed on top of
在一个可选的实施方式中,在上述第二界面中,上述第一图像显示在上述至少一张图像之前。也就是说,通过上述第一操作将上述第一图像将被置顶显示在该图像列表的最顶部,即图像列表第1行的第1列。这样,当用户打开图库应用时,电子设备同样会默认显示该图像列表的第1行,用户能更加快速找到该图像并使用该图像。In an optional implementation manner, in the second interface, the first image is displayed before the at least one image. That is to say, through the above-mentioned first operation, the above-mentioned first image will be displayed at the top of the image list, that is, the first column of the first row of the image list. In this way, when the user opens the gallery application, the electronic device will also display the first row of the image list by default, so that the user can find and use the image more quickly.
在一个可选的实施方式中,上述第一界面包括第一控件,上述显示第二界面包括:响应于对上述第一控件的第二操作,显示第三界面,上述第三界面包括输入框和第二控件;在用户将关键字输入上述输入框之后,响应于对上述第二控件的第三操作,显示第四界面,上述第四界面包括上述第一图像,上述关键字用于对上述第一图像进行搜索;响应于对上述第四界面中的上述第一图像的第四操作,显示上述第二界面,上述第一操作包括上述第二操作、上述第三操作和上述第四操作。In an optional implementation manner, the above-mentioned first interface includes a first control, and the above-mentioned displaying the second interface includes: in response to the second operation on the above-mentioned first control, displaying a third interface, and the above-mentioned third interface includes an input box and The second control; after the user enters the keyword into the input box, in response to the third operation on the second control, a fourth interface is displayed, the fourth interface includes the first image, and the keyword is used for the above-mentioned first image An image is searched; in response to a fourth operation on the first image in the fourth interface, the second interface is displayed, and the first operation includes the second operation, the third operation, and the fourth operation.
可以理解的,现如今大部分的电子设备的图库应用均支持利用关键字对图像进行搜索。因此,在本实施方式中,上述第一控件即为搜索控件,上述输入框用于接收用户输入的关键字,电子设备可以直接将结合用户输入的关键字,先从图库存储的全部图像中找出与上述关键字相符的图像。例如,假设图像列表中总共有100张图像,其中10张图像中包含花朵元素。如果上述第一图像即为这10张图像中的某一张包含花朵元素的图像,则用户可以在上述输入框中输入关键字“花朵”,并点击上述第一控件。则电子设备会显示将这10张图像显示在上述第三界面中,用户则无需从上述100张图像中对上述第一图像进行定位,只需要从上述第三界面中的10张图像中定位上述第一图像即可,进一步提高了对图像的定位效率。It is understandable that most of the gallery applications of electronic devices support searching images by using keywords. Therefore, in this embodiment, the above-mentioned first control is a search control, and the above-mentioned input box is used to receive keywords input by the user. images that match the above keywords. For example, suppose there are a total of 100 images in the image list, and 10 of them contain flower elements. If the above-mentioned first image is one of the 10 images containing flower elements, the user may input the keyword "flower" in the above-mentioned input box, and click on the above-mentioned first control. Then the electronic device will display these 10 images on the above-mentioned third interface, and the user does not need to locate the above-mentioned first image from the above-mentioned 100 images, but only needs to locate the above-mentioned first image from the above-mentioned 10 images in the above-mentioned third interface. The first image only needs to be used, which further improves the positioning efficiency of the image.
进一步的,用户还可以通过关键字对图像进行搜索,将搜索到的图像进行批量定位。例如,用户可以在上述输入框中输入关键字“花朵”,并点击上述第一控件;在电子设备将显上述这10张包含花朵元素的图像显示在上述第三界面中之后,用户可以通过用户操作将这10张图像全部勾选后,一起同时置顶显示在图像列表的顶部。具体可以参考前述对图5的相关说明,此处不再赘述。Furthermore, the user can also search for images through keywords, and locate the searched images in batches. For example, the user may input the keyword "flower" in the above input box, and click on the above first control; after the electronic device displays the above 10 images containing flower elements on the above third interface, the user can Operation After all the 10 images are selected, they will be displayed on top of the image list at the same time. For details, reference may be made to the foregoing related description of FIG. 5 , which will not be repeated here.
结合第一方面,在一个可选的实施方式中,上述第一界面中的上述第二区域还包括第二图像,上述方法还包括:显示第五界面,上述第五界面包括第三控件;响应于对上述第三控件的第五操作,显示上述第一界面;响应于对上述第一界面中第二图像的第六操作,发送上述第二图像,并显示第六界面,上述第六界面包括上述第一区域和上述第二区域,上述第六界面中上述第二图像显示于上述第一区域中。上述第五界面可以为电子设备中的支持图像分享或者上传的应用(例如或)的应用界面,上述第六操作即为用户分享或者上传上述第二图像的操作。在本实施方式中,当用户通过某个应用分享或者上传某张图像(例如上述第二图像)后,电子设备可以默认将前期分享过的图像(例如上述第二图像)置顶展示,方便用户二次分享或者上传。具体可以参考前述对图4的相关说明,此处不再赘述。With reference to the first aspect, in an optional implementation manner, the second area in the first interface further includes a second image, and the method further includes: displaying a fifth interface, where the fifth interface includes a third control; responding In response to the fifth operation on the third control, the first interface is displayed; in response to the sixth operation on the second image in the first interface, the second image is sent, and the sixth interface is displayed, and the sixth interface includes The above-mentioned first area and the above-mentioned second area, the above-mentioned second image in the above-mentioned sixth interface is displayed in the above-mentioned first area. The above-mentioned fifth interface may be an application in an electronic device that supports image sharing or uploading (such as or ), the sixth operation above is an operation for the user to share or upload the second image above. In this embodiment, when a user shares or uploads a certain image (such as the above-mentioned second image) through an application, the electronic device can display the previously shared image (such as the above-mentioned second image) on top by default, which is convenient for the user to share or upload. For details, reference may be made to the foregoing related description of FIG. 4 , which will not be repeated here.
在一个可选的实施方式中,上述第一图像与上述至少一张图像均包含对应的标签集,该标签集包括第一标签、第二标签和第三标签。上述第一图像包括第四图像和第五图像。该第一标签表征图像的最后更新时间;该第二标签表征图像是否为置顶时间为第一时长的临时置顶的图像,该第三标签表征图像的存储时间。在上述第一操作为永久置顶操作的情况下,将上述第四图像对应的第一标签和上述第五图像对应的第一标签更新为第一时间,该第一时间为上述第一操作的发生时间;在上述第一操作为临时置顶操作的情况下,将上述第四图像对应的第二标签和上述第五图像对应的第二标签由第一数值更新为第二数值,上述第二数值表征上述第四图像和上述第五图像为临时置顶的图像;将上述第二界面中各图像的第二标签进行比对后,再将上述第二界面中各图像的第一标签进行比对,最后将上述第二界面中各图像对应的第三标签进行比对,得到比对结果;根据该比对结果,显示上述第二界面;上述第二界面中,第二标签为上述第二数值的图像显示于第二标签为上述第一数值的图像之前;在第二标签相同的图像中,第一标签所表征的最后更新时间更晚的图像显示在第一标签所表征的最后更新时间更早的图像之前;在第二标签相同且第一标签相同的图像中,第三标签所表征的存储时间更晚的图像显示在第三标签所表征的存储时间更早的图像之前。In an optional implementation manner, both the above-mentioned first image and the above-mentioned at least one image include a corresponding label set, and the label set includes a first label, a second label and a third label. The above-mentioned first image includes a fourth image and a fifth image. The first tag represents the last update time of the image; the second tag represents whether the image is a temporary top image with a first duration; the third tag represents the storage time of the image. In the case that the above-mentioned first operation is a permanent top operation, update the first label corresponding to the above-mentioned fourth image and the first label corresponding to the above-mentioned fifth image to the first time, which is the occurrence of the above-mentioned first operation Time: when the above-mentioned first operation is a temporary top operation, the second label corresponding to the above-mentioned fourth image and the second label corresponding to the above-mentioned fifth image are updated from the first value to the second value, and the above-mentioned second value represents The above-mentioned fourth image and the above-mentioned fifth image are temporary top images; after comparing the second labels of each image in the above-mentioned second interface, then comparing the first labels of each image in the above-mentioned second interface, and finally Comparing the third labels corresponding to the images in the above-mentioned second interface to obtain a comparison result; according to the comparison result, displaying the above-mentioned second interface; in the above-mentioned second interface, the second label is an image of the above-mentioned second value Displayed before the image whose second label is the above-mentioned first value; among the images with the same second label, the image whose last update time represented by the first label is later is displayed before the image whose last update time represented by the first label is earlier Before the image; in images with the same second label and the same first label, images with a later storage time represented by the third label are displayed before images with an earlier storage time represented by the third label.
也就是说,上述第二界面中各图像的排列顺序可以通过对各图像的标签集的比对结果确定。对图像对应的标签集中的上述第一标签、上述第二标签以及上述第三标签的进行比较的优先级次序可以为:That is to say, the arrangement order of the images in the second interface can be determined by comparing the label sets of the images. The order of priority for comparing the first tag, the second tag, and the third tag in the tag set corresponding to the image may be:
1.先比较图像对应的第二标签的值,第二标签的值为1的图像显示在第二标签的值为0的图像之前。1. First compare the value of the second label corresponding to the image, and the image with the value of the second label of 1 is displayed before the image with the value of the second label of 0.
2.在图像对应的第二标签的值相同的情况下(例如第二标签的值同时为1或者同时为0),则进一步比较图像对应的第一标签,第一标签所对应的最后更新时间越晚的图像显示在第一标签所对应的最后更新时间越早的图像之前。2. When the value of the second label corresponding to the image is the same (for example, the value of the second label is 1 or 0 at the same time), then further compare the first label corresponding to the image and the last update time corresponding to the first label The later image is displayed before the image corresponding to the first label whose last update time is earlier.
3.在图像对应的第二标签与第一标签均相同的情况下,则进一步比较图像对应的第三标签;第三标签所对应的存储时间越晚的图像显示在第三标签所对应的存储时间越早的图像之前。3. If the second label corresponding to the image is the same as the first label, then further compare the third label corresponding to the image; the image corresponding to the third label with a later storage time is displayed in the storage corresponding to the third label The earlier the time the image is before.
具体可以参考前述对图8-图14的相关说明,此处不再赘述。For details, reference may be made to the aforementioned related descriptions of FIGS. 8-14 , which will not be repeated here.
本方法可以对目标图像进行置顶操作,将图像展示在图库的应用界面首位,方便用户快速定位到目标图像;进一步的,本方法还支持用户对图像进行永久置顶和临时置顶,并根据用户对图像置顶操作的时间以及置顶种类对图像的标签信息进行更新,并根据图像的标签信息确定各图像在图像列表中的排列顺序,能使得图像根据用户需求有序排列,帮助用户快速找到自己需要使用的图像。This method can put the target image to the top, and display the image at the top of the application interface of the gallery, which is convenient for the user to quickly locate the target image; further, this method also supports the user to permanently and temporarily put the image on the top, and according to the user's image The time and type of the pinning operation update the label information of the image, and determine the arrangement order of each image in the image list according to the label information of the image, so that the images can be arranged in an orderly manner according to the user's needs, helping users quickly find what they need to use image.
本申请实施例还提供了一种电子设备,该电子设备包括:一个或多个处理器和存储器;其中,存储器与所述一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得所述电子设备执行前述实施例中所示的方法。An embodiment of the present application also provides an electronic device, the electronic device includes: one or more processors and a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program codes, the The computer program code includes computer instructions that are invoked by the one or more processors to cause the electronic device to execute the methods shown in the foregoing embodiments.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, depending on the context, the term "when" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting...". Similarly, depending on the context, the phrases "in determining" or "if detected (a stated condition or event)" may be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)".
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210956467.8A CN115640414B (en) | 2022-08-10 | 2022-08-10 | Image display method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210956467.8A CN115640414B (en) | 2022-08-10 | 2022-08-10 | Image display method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115640414A true CN115640414A (en) | 2023-01-24 |
CN115640414B CN115640414B (en) | 2023-09-26 |
Family
ID=84940623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210956467.8A Active CN115640414B (en) | 2022-08-10 | 2022-08-10 | Image display method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115640414B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009301119A (en) * | 2008-06-10 | 2009-12-24 | Olympus Corp | Image display device |
US20100188429A1 (en) * | 2009-01-29 | 2010-07-29 | At&T Intellectual Property I, L.P. | System and Method to Navigate and Present Image Libraries and Images |
CN105553826A (en) * | 2015-12-18 | 2016-05-04 | 阿里巴巴集团控股有限公司 | Message display method and device |
CN105549844A (en) * | 2015-12-09 | 2016-05-04 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for putting pictures or information on top |
CN106775711A (en) * | 2016-12-14 | 2017-05-31 | 浙江翼信科技有限公司 | Information processing method, equipment and computer-readable recording medium for contact person |
CN107133352A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | Photo display methods and device |
CN111327814A (en) * | 2018-12-17 | 2020-06-23 | 华为技术有限公司 | An image processing method and electronic device |
CN111614837A (en) * | 2020-05-25 | 2020-09-01 | 维沃移动通信有限公司 | Cross-application data calling method and electronic device |
US20210365749A1 (en) * | 2019-07-22 | 2021-11-25 | Tencent Technology (Shenzhen) Company Limited | Image data processing method and apparatus, electronic device, and storage medium |
CN114095602A (en) * | 2020-08-24 | 2022-02-25 | 荣耀终端有限公司 | Index display method, electronic device, and computer-readable storage medium |
WO2022068642A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Message display method and electronic device |
WO2022078154A1 (en) * | 2020-10-15 | 2022-04-21 | 聚好看科技股份有限公司 | Display device and media asset playing method |
WO2022089078A1 (en) * | 2020-10-30 | 2022-05-05 | 华为技术有限公司 | Method for presenting interface information, and electronic device |
-
2022
- 2022-08-10 CN CN202210956467.8A patent/CN115640414B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009301119A (en) * | 2008-06-10 | 2009-12-24 | Olympus Corp | Image display device |
US20100188429A1 (en) * | 2009-01-29 | 2010-07-29 | At&T Intellectual Property I, L.P. | System and Method to Navigate and Present Image Libraries and Images |
CN105549844A (en) * | 2015-12-09 | 2016-05-04 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for putting pictures or information on top |
CN105553826A (en) * | 2015-12-18 | 2016-05-04 | 阿里巴巴集团控股有限公司 | Message display method and device |
CN106775711A (en) * | 2016-12-14 | 2017-05-31 | 浙江翼信科技有限公司 | Information processing method, equipment and computer-readable recording medium for contact person |
CN107133352A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | Photo display methods and device |
CN111327814A (en) * | 2018-12-17 | 2020-06-23 | 华为技术有限公司 | An image processing method and electronic device |
US20210365749A1 (en) * | 2019-07-22 | 2021-11-25 | Tencent Technology (Shenzhen) Company Limited | Image data processing method and apparatus, electronic device, and storage medium |
CN111614837A (en) * | 2020-05-25 | 2020-09-01 | 维沃移动通信有限公司 | Cross-application data calling method and electronic device |
CN114095602A (en) * | 2020-08-24 | 2022-02-25 | 荣耀终端有限公司 | Index display method, electronic device, and computer-readable storage medium |
WO2022068642A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Message display method and electronic device |
WO2022078154A1 (en) * | 2020-10-15 | 2022-04-21 | 聚好看科技股份有限公司 | Display device and media asset playing method |
WO2022089078A1 (en) * | 2020-10-30 | 2022-05-05 | 华为技术有限公司 | Method for presenting interface information, and electronic device |
Non-Patent Citations (1)
Title |
---|
马健龙: "《新媒体时代网络内容及客户资源管理研究》", 天津:天津科学技术出版社, pages: 38 * |
Also Published As
Publication number | Publication date |
---|---|
CN115640414B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022127787A1 (en) | Image display method and electronic device | |
CN111669459B (en) | Keyboard display method, electronic device and computer readable storage medium | |
CN113778641B (en) | Method for controlling camera, electronic device and computer readable storage medium | |
CN110471606B (en) | Input method and electronic equipment | |
WO2022033320A1 (en) | Bluetooth communication method, terminal device, and computer-readable storage medium | |
WO2022017474A1 (en) | Task processing method and related apparatus | |
WO2020259554A1 (en) | Learning-based keyword search method, and electronic device | |
WO2021159746A1 (en) | File sharing method and system, and related device | |
WO2021218429A1 (en) | Method for managing application window, and terminal device and computer-readable storage medium | |
WO2022179495A1 (en) | Privacy risk feedback method and apparatus, and first terminal device | |
WO2022100685A1 (en) | Drawing command processing method and related device therefor | |
CN112150499B (en) | Image processing method and related device | |
CN114466449B (en) | Position feature obtaining method and terminal equipment | |
CN114095599A (en) | Message display method and electronic device | |
CN111835904A (en) | A method and electronic device for opening an application based on situational awareness and user portrait | |
CN110058729B (en) | Method and electronic device for adjusting the sensitivity of touch detection | |
WO2022135144A1 (en) | Self-adaptive display method, electronic device, and storage medium | |
CN111752648A (en) | A system language switching method and related device | |
CN114095602B (en) | Index display method, electronic device, and computer-readable storage medium | |
CN115022807A (en) | Express delivery information reminding method and electronic equipment | |
CN113590884A (en) | Distributed data searching method and index file sharing method | |
CN113934352B (en) | Notification message processing method, electronic device and computer-readable storage medium | |
CN113923372B (en) | Exposure adjusting method and related equipment | |
CN115640414B (en) | Image display method and electronic device | |
CN114812381A (en) | Electronic device positioning method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |