Movatterモバイル変換


[0]ホーム

URL:


CN111143300B - File compression method and electronic equipment - Google Patents

File compression method and electronic equipment
Download PDF

Info

Publication number
CN111143300B
CN111143300BCN201911358468.7ACN201911358468ACN111143300BCN 111143300 BCN111143300 BCN 111143300BCN 201911358468 ACN201911358468 ACN 201911358468ACN 111143300 BCN111143300 BCN 111143300B
Authority
CN
China
Prior art keywords
target
display area
input
icon
file
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.)
Active
Application number
CN201911358468.7A
Other languages
Chinese (zh)
Other versions
CN111143300A (en
Inventor
张繁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201911358468.7ApriorityCriticalpatent/CN111143300B/en
Publication of CN111143300ApublicationCriticalpatent/CN111143300A/en
Application grantedgrantedCritical
Publication of CN111143300BpublicationCriticalpatent/CN111143300B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a file compression method and electronic equipment, which are applied to the technical field of communication and are used for solving the problems of complex operation and low efficiency in the compression process caused by the fact that files in different file folders need to be compressed in a multiple-time manner. The method comprises the following steps: the electronic equipment receives first input of a user on a target icon in N first icons when the N first icons are displayed in a first display area and M second icons are displayed in a second display area; responding to the first input, and compressing the target file by the electronic equipment to obtain a target compressed package; the N first icons indicate N files in the first folder; the M files indicated by the M second icons include: files in at least one second folder; the target file includes: the file indicated by the target icon and the M files N, M are positive integers.

Description

Translated fromChinese
文件压缩方法及电子设备File compression method and electronic equipment

技术领域Technical field

本发明实施例涉及通信技术领域,尤其涉及一种文件压缩方法及电子设备。Embodiments of the present invention relate to the field of communication technology, and in particular, to a file compression method and electronic equipment.

背景技术Background technique

随着电子设备技术的发展,用户使用电子设备的频率越来越高,用户对电子设备的系统功能要求也越来越多。当用户需要对电子设备中的各类文件(例如,文件、图片、音频、视频等)进行压缩时,需要首先在文件夹中选中需要进行压缩的文件,然后对其进行压缩。With the development of electronic equipment technology, users use electronic equipment more and more frequently, and users have more and more system function requirements for electronic equipment. When users need to compress various types of files in electronic devices (for example, files, pictures, audios, videos, etc.), they need to first select the files that need to be compressed in the folder and then compress them.

如此,当用户需要对不同文件夹中的多个不同文件进行压缩时,需要分次进入不同的文件夹分别进行压缩,导致整个压缩过程操作繁琐、工作效率低。In this way, when a user needs to compress multiple different files in different folders, he or she needs to enter different folders in stages to compress them respectively, which results in cumbersome operation and low work efficiency of the entire compression process.

发明内容Contents of the invention

本发明实施例提供一种文件压缩方法及电子设备,以解决压缩不同文件夹中的文件需要分次压缩,导致压缩过程操作繁琐、效率低问题。Embodiments of the present invention provide a file compression method and an electronic device to solve the problem that files in different folders need to be compressed in stages, resulting in cumbersome operations and low efficiency in the compression process.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本发明实施例提供一种文件压缩方法,该方法包括:电子设备在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对上述N个第一图标中的目标图标的第一输入;响应上述第一输入,电子设备对目标文件进行压缩操作,得到目标压缩包;其中,上述N个第一图标指示第一文件夹中的N个文件;上述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;上述目标文件包括:上述目标图标指示的文件和上述M个文件,N、M为正整数。In a first aspect, embodiments of the present invention provide a file compression method. The method includes: when the electronic device displays N first icons in the first display area and M second icons in the second display area, receiving a user's response to the request. The first input of the target icon among the above-mentioned N first icons; in response to the above-mentioned first input, the electronic device performs a compression operation on the target file to obtain the target compressed package; wherein the above-mentioned N first icons indicate the first input in the first folder N files; the M files indicated by the M second icons include: files in at least one second folder; the target files include: the files indicated by the target icon and the M files, N and M are positive integers. .

第二方面,本发明实施例还提供了一种电子设备,该电子设备包括接收模块和压缩模块;上述接收模块,用于在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对上述N个第一图标中的目标图标的第一输入;上述压缩模块,用于响应接收模块接收的上述第一输入,对目标文件进行压缩操作,得到目标压缩包;其中,上述N个第一图标指示第一文件夹中的N个文件;上述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;上述目标文件包括:上述目标图标指示的文件和上述M个文件,N、M为正整数。In a second aspect, embodiments of the present invention also provide an electronic device. The electronic device includes a receiving module and a compression module; the receiving module is used to display N first icons in the first display area and display M in the second display area. In the case of two second icons, receive the user's first input to the target icon among the N first icons; the compression module is used to respond to the first input received by the receiving module and perform a compression operation on the target file to obtain Target compressed package; wherein, the N first icons indicate N files in the first folder; the M files indicated by the M second icons include: at least one file in the second folder; the target file includes : The file indicated by the above target icon and the above M files, N and M are positive integers.

第三方面,本发明实施例提供了一种终端设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的文件压缩方法的步骤。In a third aspect, embodiments of the present invention provide a terminal device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the following is implemented: The steps of the file compression method described in one aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的文件压缩方法的步骤。In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the file compression method described in the first aspect are implemented. .

在本发明实施例中,在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,由于第一图标指示第一文件夹中的文件,而上述第二图标指示其他文件夹的文件,因此,电子设备在接收到用户对N个图标中的目标图标的第一输入后,便可对多个处于不同文件夹中的文件统一进行压缩操作,简化了压缩步骤,提高了工作效率。In the embodiment of the present invention, when the first display area displays N first icons and the second display area displays M second icons, since the first icons indicate files in the first folder, the above-mentioned second The icons indicate files in other folders. Therefore, after receiving the user's first input of the target icon among the N icons, the electronic device can perform a unified compression operation on multiple files in different folders, simplifying compression. steps to improve work efficiency.

附图说明Description of the drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;Figure 1 is an architectural schematic diagram of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种文件压缩方法流程示意图;Figure 2 is a schematic flow chart of a file compression method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种文件压缩方法所应用的界面的示意图之一;Figure 3 is a schematic diagram of an interface applied to a file compression method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种文件压缩方法所应用的界面的示意图之二;Figure 4 is a second schematic diagram of an interface applied to a file compression method provided by an embodiment of the present invention;

图5为本发明实施例提供的一种文件压缩方法所应用的界面的示意图之三;Figure 5 is a third schematic diagram of an interface applied to a file compression method provided by an embodiment of the present invention;

图6为本发明实施例提供的一种文件压缩方法所应用的界面的示意图之四;Figure 6 is a fourth schematic diagram of an interface applied to a file compression method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种文件压缩方法所应用的界面的示意图之五;Figure 7 is a fifth schematic diagram of an interface applied to a file compression method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种电子设备的结构示意图之一;Figure 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图9为本发明实施例提供的一种电子设备的结构示意图之二。FIG. 9 is a second structural schematic diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that "/" in this article means or, for example, A/B can mean A or B; "and/or" in this article is just an association relationship describing related objects, indicating that there can be three A relationship, for example, A and/or B, can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

需要说明的是,本文中的“多个”是指两个或多于两个。It should be noted that "multiple" in this article refers to two or more than two.

需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in the embodiments of the present invention, words such as “exemplary” or “for example” are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the invention is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.

需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明实施例中,采用了“第一”、“第二”等字样对功能或作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。例如,第一显示区域和第二显示区域是用于区别不同的显示区域,而不是用于描述显示区域的特定顺序。It should be noted that, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to describe the same or similar items with basically the same functions or effects. To distinguish, those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order. For example, the first display area and the second display area are used to distinguish different display areas, rather than to describe a specific order of the display areas.

本发明实施例提供的文件压缩方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该文件压缩方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的文件压缩方法进行示例性的说明。The execution subject of the file compression method provided by the embodiment of the present invention can be the above-mentioned electronic device, or it can be a functional module and/or functional entity in the electronic device that can implement the file compression method. The details can be determined according to actual usage requirements. The embodiments of the present invention are not limiting. The following takes a terminal device as an example to illustrate the file compression method provided by the embodiment of the present invention.

本发明实施例提供的文件压缩方法可以为终端设备,该终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The file compression method provided by the embodiment of the present invention can be a terminal device, and the terminal device can be a mobile terminal device or a non-mobile terminal device. The mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc.; the embodiments of the present invention are not specifically limited.

本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的文件压缩方法所应用的软件环境。The following uses the Android operating system as an example to introduce the software environment to which the file compression method provided by the embodiment of the present invention is applied.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in Figure 1, it is a schematic architectural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes four layers, namely: application layer, application framework layer, system runtime layer and kernel layer (specifically, it can be the Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications in the Android operating system (including system applications and third-party applications).

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while adhering to the development principles of the application framework.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system running environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的文件压缩方法的软件程序,从而使得该文件压缩方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的文件压缩方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the file compression method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in Figure 1, so that the file The compression method can be run based on the Android operating system as shown in Figure 1. That is, the processor or electronic device can implement the file compression method provided by the embodiment of the present invention by running the software program in the Android operating system.

相关技术中,当用户需要对不同文件夹中的目标文件同时进行压缩时,首先需要创建专门用于放置目标文件的新建文件夹,然后将目标文件从不同文件夹中选出放置在新建文件夹中,最后对新建文件夹执行压缩操作进行压缩。整个压缩过程非常繁琐,耗时长,且由于用户需要反复开启和关闭不同的文件夹,会导致压缩操作易出错,工作效率低。In related technologies, when a user needs to compress target files in different folders at the same time, he first needs to create a new folder specifically for placing the target files, and then select the target files from different folders and place them in the new folder. , and finally perform a compression operation on the newly created folder to compress it. The entire compression process is very cumbersome and time-consuming, and because users need to repeatedly open and close different folders, the compression operation will be error-prone and the work efficiency will be low.

为了解决上述问题,本发明实施例提供的方案通过将电子设备的显示区域划分为第一显示区域和第二显示区域,并在第一显示区域显示待选的文件图标,在第二显示区域显示用户已选择的待压缩的文件图标。如此,当电子设备接收到用户的文件压缩输入后,便可对多个处于不同文件夹中的文件统一进行压缩操作,简化了压缩步骤,提高了工作效率。In order to solve the above problem, the solution provided by the embodiment of the present invention divides the display area of the electronic device into a first display area and a second display area, and displays the file icon to be selected in the first display area and displays it in the second display area. The user-selected file icon to be compressed. In this way, after the electronic device receives the user's file compression input, it can perform unified compression operations on multiple files in different folders, simplifying the compression steps and improving work efficiency.

下面结合图2所示的文件压缩方法流程图对本发明实施例的文件压缩方法进行说明,图2为本发明实施例提供的一种文件压缩方法流程示意图,包括步骤201和步骤202:The file compression method according to the embodiment of the present invention will be described below with reference to the file compression method flow chart shown in Figure 2. Figure 2 is a schematic flow chart of a file compression method provided by the embodiment of the present invention, including step 201 and step 202:

步骤201:在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,电子设备接收用户对上述N个第一图标中的目标图标的第一输入。Step 201: When the first display area displays N first icons and the second display area displays M second icons, the electronic device receives the user's first input to the target icon among the N first icons.

其中,上述N个第一图标指示第一文件夹中的N个文件;上述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件。Wherein, the N first icons indicate N files in the first folder; the M files indicated by the M second icons include: at least one file in the second folder.

示例性的,上述N个第一图标为待选的文件图标,即上述第一文件夹中的N个文件为:供用户进行选择,选择后可以放置在与第一文件夹不同的同一文件夹中的文件。上述M个第二图标为用户已选择的待压缩的文件图标,即上述第二文件夹中的M个文件为用户已选择的待压缩的文件。For example, the above-mentioned N first icons are file icons to be selected, that is, the N files in the above-mentioned first folder are for the user to select. After selection, they can be placed in the same folder different from the first folder. files in . The M second icons are file icons selected by the user to be compressed, that is, the M files in the second folder are files selected by the user to be compressed.

示例性的,上述第一文件夹为某一应用程序或者文件夹。上述第二文件夹中的M个文件可以为不同的应用程序的文件,也可以为不同的文件夹中的文件。For example, the above-mentioned first folder is a certain application program or folder. The M files in the above-mentioned second folder may be files of different applications or files in different folders.

示例性的,上述第一显示区域用于显示供用户进行选择的文件图标,用户通过切换第一显示区域中的应用程序或者文件夹,从而显示不同的文件图标,使得用户可以选择不同应用程序或不同文件夹中的文件。例如,在第一显示区域中原先显示“相册”APP中的照片文件的图标,之后用户关闭“相册”APP,打开“音乐”APP,从而显示“音乐”APP中的音频文件的图标,供用户进行选择。Illustratively, the above-mentioned first display area is used to display file icons for the user to select. The user switches applications or folders in the first display area to display different file icons, so that the user can select different applications or folders. files in different folders. For example, the first display area originally displays the icon of the photo file in the "Photo Album" APP, and then the user closes the "Photo Album" APP and opens the "Music" APP, thereby displaying the icon of the audio file in the "Music" APP for the user to Make your selection.

示例性的,上述第二显示区域用于显示用户已选择的待压缩的文件图标。For example, the above-mentioned second display area is used to display the file icon to be compressed that has been selected by the user.

示例性的,上述第一显示区域与第二显示区域可以为电子设备同一显示屏上的两个不同的显示区域,也可以为电子设备两个不同显示屏上的不同显示区域。For example, the first display area and the second display area may be two different display areas on the same display screen of the electronic device, or may be different display areas on two different display screens of the electronic device.

示例性的,上述第一显示区域和第二显示区域可以为电子设备对当前显示界面进行划分后的显示区域,也可以为悬浮显示在当前界面上的两个显示区域。For example, the first display area and the second display area may be display areas after the electronic device divides the current display interface, or may be two display areas that are displayed suspended on the current interface.

示例性的,上述的第一显示区域和第二显示区域可以以预设透明度叠加显示在该当前界面中,例如,如果预设透明度记为T,那么T的取值范围可以为0%<T<100%。For example, the above-mentioned first display area and second display area can be superimposed and displayed in the current interface with a preset transparency. For example, if the preset transparency is marked as T, then the value range of T can be 0%<T <100%.

示例性的,上述第一输入可以包括:用户在第一显示区域上的触控输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际需求设定。For example, the above-mentioned first input may include: the user's touch input on the first display area, or a voice command input by the user, or a specific gesture input by the user, which may be set according to actual requirements.

示例性的,上述的触控输入可以包括:点击输入、滑动输入、拖动输入;上述的特定手势可以为单击手势、滑动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种,具体的可以根据实际需求设定。Exemplarily, the above-mentioned touch input may include: click input, sliding input, and drag input; the above-mentioned specific gestures may be a click gesture, a sliding gesture, a pressure recognition gesture, a long press gesture, an area change gesture, and a double press gesture. , any one of the double-click gestures, the specific settings can be set according to actual needs.

示例性的,上述第一输入用于触发电子设备显示上述第一显示区域和第二显示区域。例如,用户可以通过长按“相册”APP中的任一照片的图标,触发电子设备在当前界面上悬浮显示区域1和区域2。Exemplarily, the first input is used to trigger the electronic device to display the first display area and the second display area. For example, the user can trigger the electronic device to display Area 1 and Area 2 on the current interface by long-pressing the icon of any photo in the "Photo Album" APP.

示例性的,上述第一输入可以包括第一子输入,上述第一子输入用于触发电子设备选中目标图标。For example, the first input may include a first sub-input, and the first sub-input is used to trigger the electronic device to select the target icon.

示例1,以用户需要将电子设备中不同应用程序中的文件放置在同一文件夹为例。如图3中的(a)所示,电子设备的当前显示界面上显示有区域1(即上述第一显示区域,如图3中的(a)中的31)和区域2(即上述第二显示区域,如图3中的(a)中的32),其中,区域1中显示有“音频”APP的6个音频文件的文件图标(即上述第一图标),区域2中显示有用户已经选择、欲进行压缩的“相册”APP中的文件图标,即照片1的图标和照片2的图标(即上述第二图标)。此时,若用户想要将音频文件1和音频文件2为用户需要和照片1、照片2一并进行压缩的文件,则用户可以依次点击“音频”APP中音频文件1的图标和音频文件2的图标(即上述第一子输入),使得音频文件1的图标和音频文件2的图标显示在区域2中。Example 1, take the user needing to place files in different applications in the electronic device in the same folder. As shown in (a) of Figure 3, the current display interface of the electronic device displays area 1 (ie, the above-mentioned first display area, 31 in Figure 3 (a)) and area 2 (ie, the above-mentioned second display area). The display area is shown as 32 in (a) of Figure 3), where the file icons of the six audio files of the "Audio" APP are displayed in area 1 (i.e., the above-mentioned first icon), and the file icons of the 6 audio files of the "Audio" APP are displayed in area 2. Select the file icon in the "Photo Album" APP that you want to compress, that is, the icon of Photo 1 and the icon of Photo 2 (that is, the second icon mentioned above). At this time, if the user wants to compress audio file 1 and audio file 2 together with photo 1 and photo 2, the user can click the icon of audio file 1 and audio file 2 in the "Audio" APP in sequence. icon (that is, the first sub-input mentioned above), so that the icon of audio file 1 and the icon of audio file 2 are displayed in area 2.

步骤202:响应上述第一输入,电子设备对目标文件进行压缩操作,得到目标压缩包。Step 202: In response to the above first input, the electronic device performs a compression operation on the target file to obtain the target compressed package.

其中,上述目标文件包括:上述目标图标指示的文件和上述M个文件,N、M为正整数。Wherein, the above-mentioned target files include: the file indicated by the above-mentioned target icon and the above-mentioned M files, where N and M are positive integers.

示例性的,上述目标压缩包可以为一个,也可以为多个,本发明实施例对此不作限制。For example, the above target compressed package may be one or multiple, and the embodiment of the present invention does not limit this.

在一种示例中,上述第一显示区域还可以用于显示确认控件,该确认控件用于确认用户在第一显示区域选中的目标图标。进一步的,上述确认控件的形状可以为圆形、矩形、三角形、菱形、圆环或者多边形等任意可能的形状,具体可以根据实际使用需求确定,本发明实施例不作限定。上述确认控件不遮挡用户在第一显示区域上所显示的内容。In one example, the above-mentioned first display area can also be used to display a confirmation control, and the confirmation control is used to confirm the target icon selected by the user in the first display area. Furthermore, the shape of the above confirmation control can be any possible shape such as circle, rectangle, triangle, rhombus, ring or polygon, etc. The specific shape can be determined according to actual usage requirements, and is not limited in the embodiment of the present invention. The above confirmation control does not block the content displayed by the user on the first display area.

示例性的,上述第一输入还可以包括第二子输入,上述第二子输入用于触发电子设备对目标文件进行文件压缩操作。Exemplarily, the above-mentioned first input may also include a second sub-input, and the above-mentioned second sub-input is used to trigger the electronic device to perform a file compression operation on the target file.

示例2,结合上述示例1,如图3中的(b)所示,当用户将照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标全部放置在区域2中后,对区域2的界面进行长按输入(即上述第二子输入),电子设备响应上述长按输入,将照片1、照片2、音频文件1和音频文件2同步压缩至同一压缩包(即上述目标压缩包)中。Example 2, combined with the above example 1, as shown in (b) in Figure 3, when the user places all the icons of photo 1, photo 2, audio file 1 and audio file 2 in area 2 , perform a long-press input on the interface of area 2 (i.e., the above-mentioned second sub-input), the electronic device responds to the above-mentioned long-press input, and synchronously compresses photo 1, photo 2, audio file 1 and audio file 2 into the same compression package (i.e., the above-mentioned second sub-input). target compressed package).

示例性的,上述第二显示区域还可以显示压缩控件,该压缩控件用于触发电子设备压缩第二显示区域内显示的图像对应的文件。在一种示例中,上述压缩控件可以显示在第二显示区域的空白处。For example, the above-mentioned second display area may also display a compression control, and the compression control is used to trigger the electronic device to compress the file corresponding to the image displayed in the second display area. In one example, the above compression control can be displayed in a blank space of the second display area.

本发明实施例提供的文件压缩方法,在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,由于第一图标指示第一文件夹中的文件,而上述第二图标指示其他文件夹的文件,因此,电子设备在接收到用户对N个图标中的目标图标的第一输入后,便可对多个处于不同文件夹中的文件统一进行压缩操作,简化了压缩步骤,提高了工作效率。In the file compression method provided by the embodiment of the present invention, when the first display area displays N first icons and the second display area displays M second icons, since the first icons indicate files in the first folder, The above-mentioned second icon indicates files in other folders. Therefore, after receiving the user's first input of the target icon among the N icons, the electronic device can perform a unified compression operation on multiple files in different folders. The compression steps are simplified and work efficiency is improved.

可选的,在本发明实施例中,上述步骤201中可以包括如下步骤A:Optionally, in this embodiment of the present invention, the above step 201 may include the following step A:

步骤A:电子设备接收用户将上述目标图标从上述第一显示区域移动至上述第二显示区域的移动输入。Step A: The electronic device receives a movement input from the user to move the target icon from the first display area to the second display area.

示例性的,上述移动输入可以为拖动输入,即用户可以将目标图标从第一显示区域拖动至第二显示区域。For example, the above movement input may be a drag input, that is, the user may drag the target icon from the first display area to the second display area.

需要注意的是,当用户将目标图标从上述第一显示区域移动至上述第二显示区域后,该目标图标仍显示在第一显示区域中,即该目标图标仍显示在其原先所属应用程序或文件夹中。It should be noted that after the user moves the target icon from the first display area to the second display area, the target icon is still displayed in the first display area, that is, the target icon is still displayed in the application or program to which it originally belongs. folder.

举例说明:以用户需要将电子设备中不同应用程序中的文件放置在同一文件夹为例。如图4中的(a)所示,电子设备的当前显示界面上显示有区域1(即上述第一显示区域)和区域2(即上述第二显示区域),当用户想要将“相册”APP中的照片1和照片2以及“音乐”APP中的音频文件1和音频文件2压缩至同一压缩包中,则电子设备可以在区域1中显示“相册”APP的显示界面,将显示界面中显示的照片1的图标拖动至区域2(即上述拖动输入),同理,将照片2的图标拖动至区域2。接着,如图4中的(b)所示,电子设备关闭“相册”APP,打开“音乐”APP,用户将音频文件1的图标和音频文件2的图标依次拖动至区域2中,使得区域2中同时显示照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标,进而实现同时压缩。For example: Take the user needing to place files in different applications in the electronic device in the same folder. As shown in (a) in Figure 4, the current display interface of the electronic device displays area 1 (i.e., the above-mentioned first display area) and area 2 (i.e., the above-mentioned second display area). When the user wants to change the "photo album" Photos 1 and 2 in the APP and audio files 1 and 2 in the "Music" APP are compressed into the same compressed package, then the electronic device can display the display interface of the "Album" APP in area 1 and change the display interface Drag the displayed icon of photo 1 to area 2 (i.e., the above drag input). Similarly, drag the icon of photo 2 to area 2. Then, as shown in (b) of Figure 4, the electronic device closes the "Photo Album" APP and opens the "Music" APP. The user drags the icon of audio file 1 and the icon of audio file 2 to area 2 in sequence, so that the area 2 simultaneously displays the icon of photo 1, the icon of photo 2, the icon of audio file 1 and the icon of audio file 2, thereby achieving simultaneous compression.

如此,用户可以通过直接移动目标图标的方式将需要执行压缩操作的文件快速集合,从而方便用户快速执行压缩操作,提高工作效率。In this way, the user can quickly collect the files that need to be compressed by directly moving the target icon, which facilitates the user to quickly perform the compression operation and improves work efficiency.

可选的,在本发明实施例中,在电子设备为可折叠电子设备的情况下,上述步骤201中可以包括如下步骤B1:Optionally, in this embodiment of the present invention, when the electronic device is a foldable electronic device, the above step 201 may include the following step B1:

步骤B1:电子设备接收用户对上述目标图标的选择输入。Step B1: The electronic device receives the user's selection input of the above target icon.

结合上述步骤B1,上述步骤202中可以包括如下步骤B2至步骤B4:Combined with the above step B1, the above step 202 may include the following steps B2 to step B4:

步骤B2:响应上述选择输入,该电子设备选中上述目标图标。Step B2: In response to the above selection input, the electronic device selects the above target icon.

步骤B3:电子设备接收用户的折叠输入。Step B3: The electronic device receives the user's folding input.

步骤B4:响应上述折叠输入,电子设备对上述目标文件进行压缩操作,得到上述目标压缩包。Step B4: In response to the above folding input, the electronic device performs a compression operation on the above target file to obtain the above target compressed package.

示例性的,上述的可折叠电子设备可以为柔性电子设备或由多个显示屏组成的组合的可组合折叠电子设备。其中,上述的柔性电子设备的屏幕为可弯折、可折叠的屏幕。For example, the above-mentioned foldable electronic device may be a flexible electronic device or a combined foldable electronic device composed of multiple display screens. Among them, the screen of the above-mentioned flexible electronic device is a bendable and foldable screen.

示例性的,当上述电子设备的折叠角度达到预定阈值时,即可进行压缩操作。其中,上述预定阈值可以为用户自定义的,也可以为终端设备预设的。For example, when the folding angle of the electronic device reaches a predetermined threshold, the compression operation can be performed. Wherein, the above-mentioned predetermined threshold can be customized by the user or preset by the terminal device.

举例说明:结合图3或图4,如图5所示,当区域2中同时显示照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标后,用户折叠电子设备,当电子设备的折叠角度θ达到30°(即上述预定阈值)时,电子设备将页面2中的照片1、照片2、音频文件1和音频文件2压缩(即上述压缩操作)至同一压缩包(即上述目标压缩包)中。For example: combined with Figure 3 or Figure 4, as shown in Figure 5, when the icon of photo 1, the icon of photo 2, the icon of audio file 1 and the icon of audio file 2 are simultaneously displayed in area 2, the user folds the electronic device, When the folding angle θ of the electronic device reaches 30° (i.e., the above-mentioned predetermined threshold), the electronic device compresses photo 1, photo 2, audio file 1, and audio file 2 in page 2 (i.e., the above-mentioned compression operation) into the same compressed package ( That is, in the above target compressed package).

如此,当用户使用的电子设备为可折叠设备时,可以通过折叠输入这一简单动作,方便、快捷的对不同文件夹中文件进行统一压缩操作,提高工作效率。In this way, when the electronic device used by the user is a foldable device, the user can conveniently and quickly perform unified compression operations on files in different folders through the simple action of folding input, thereby improving work efficiency.

可选的,在本发明实施例中,在上述步骤202之后,还可以包括如下步骤C:Optionally, in this embodiment of the present invention, after the above step 202, the following step C may also be included:

步骤C:响应上述第一输入,电子设备在上述第二显示区域上显示上述目标图标。Step C: In response to the first input, the electronic device displays the target icon on the second display area.

示例性的,上述目标图标用于指示用户需要压缩至同一压缩包中的所有文件。For example, the above target icon is used to indicate that the user needs to compress all files in the same compressed package.

示例性的,若上述目标图标为多个图标时,在用户通过第一输入依次选中上述多个目标图标后,电子设备可以按照用户选择目标图标的选择顺序,将上述多个目标图标依次显示在第二显示区域上。在一种示例中,电子设备按照选择顺序优先显示在第二显示区域的上侧或左侧。例如,当第二显示区域中每排可以存放2个图标时,用户依次打开“相册”APP和“音乐”APP,将照片1的图标、照片2的图标、音频文件1的图标、音频文件2的图标由第一显示区域拖动至第二显示区域中后,其在第二显示区域中的显示顺序为:第一排从左至右为照片1的图标、照片2的图标,第二排从左至右为音频文件1的图标、音频文件2的图标。For example, if the target icons are multiple icons, after the user selects the multiple target icons in sequence through the first input, the electronic device can display the multiple target icons in sequence in the order in which the user selects the target icons. on the second display area. In one example, the electronic device is preferentially displayed on the upper or left side of the second display area according to the selection order. For example, when each row of the second display area can store 2 icons, the user opens the "Photo Album" APP and the "Music" APP in sequence, and adds the icon of Photo 1, the icon of Photo 2, the icon of Audio File 1, and the icon of Audio File 2. After the icons are dragged from the first display area to the second display area, their display order in the second display area is: the first row from left to right is the icon of Photo 1, the icon of Photo 2, the second row From left to right are the icon of audio file 1 and the icon of audio file 2.

如此,能够方便用户直接在电子设备的第二显示区域查看选中的文件,从而准确的选定所要压缩的文件。In this way, it is convenient for the user to directly view the selected file in the second display area of the electronic device, thereby accurately selecting the file to be compressed.

可选的,在本发明实施例中,当用户对已选定进行压缩的目标文件进行需要修改,例如进行删除或者重命名时,用户可以通过如下方式对目标文件进行修改:Optionally, in this embodiment of the present invention, when the user needs to modify the target file selected for compression, such as deleting or renaming it, the user can modify the target file in the following manner:

在上述步骤B4之前,还可以包括如下步骤D1和步骤D2:Before the above step B4, the following steps D1 and D2 may also be included:

步骤D1:电子设备接收用户对第二显示区域上显示的第三图标的第二输入。Step D1: The electronic device receives the user's second input to the third icon displayed on the second display area.

步骤D2:响应上述第二输入,电子设备移除上述第二显示区域中显示的上述第三图标。Step D2: In response to the second input, the electronic device removes the third icon displayed in the second display area.

其中,上述目标文件包括上述第二显示区域上显示的图标指示的文件。Wherein, the target file includes the file indicated by the icon displayed on the second display area.

示例性的,上述第三图标用于指示用户需要修改的文件,例如,用户需要删除、重命名的文件。For example, the above third icon is used to indicate a file that the user needs to modify, for example, a file that the user needs to delete or rename.

示例性的,上述第二输入可以用于修改用户选中的文件或者压缩包中的文件,具体的,上述修改可以为删除文件、重命名文件等,本发明实施例对此不作限制。For example, the above-mentioned second input may be used to modify a file selected by the user or a file in a compressed package. Specifically, the above-mentioned modification may include deleting a file, renaming a file, etc. This embodiment of the present invention does not limit this.

示例性的,上述第二输入可以为用户对第一目标图标的滑动输入,或者拖动输入,其中,上述滑动输入和拖动输入可以参照上述描述,此处不再赘述。For example, the second input may be a sliding input or a dragging input by the user on the first target icon. The sliding input and dragging input may refer to the above description and will not be described again here.

示例性的,上述的第二输入可以为用户在第三图标上向第一滑动方向滑动的滑动输入,电子设备可以根据第一滑动方向移除上述第三图标。例如,若第一滑动方向为朝向第一显示区域的方向,则移除第三图标。For example, the above-mentioned second input may be a sliding input in which the user slides on the third icon in the first sliding direction, and the electronic device may remove the above-mentioned third icon according to the first sliding direction. For example, if the first sliding direction is toward the first display area, the third icon is removed.

示例性的,上述的第二输入还可以为用户向目标区域上拖动第三图标的拖动输入,上述目标区域可以为第二显示区域的区域边界。进一步的,当第三图标与屏幕的边框边缘的距离小于第一阈值时,电子设备移除第三图标。For example, the above-mentioned second input may also be a drag input in which the user drags the third icon onto the target area, and the above-mentioned target area may be the area boundary of the second display area. Further, when the distance between the third icon and the frame edge of the screen is less than the first threshold, the electronic device removes the third icon.

示例性的,用户可以通过对第三图标进行长按输入、点击输入、手势输入或者语音输入的方式对第三图标进行重命名。例如,用户可以通过双击第三图标,使得电子设备启动对第三图标的重命名操作。For example, the user can rename the third icon by performing long press input, click input, gesture input, or voice input on the third icon. For example, the user can double-click the third icon to cause the electronic device to initiate a renaming operation for the third icon.

举例说明,结合示例1,以用户需要修改已经选中的待压缩文件为例。结合图3,用户将照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标拖动至区域2后,若用户不想对照片2进行压缩,如图6中的(a)所示,用户可以通过将照片2的图标向右侧边框拖动(即上述第二输入),当照片2的图标距离屏幕的边框边缘小于预定阈值时,将照片2从区域2中移除。接着,如图6中的(b)所示,经过上述移除操作,上述区域2中仅包含照片1的图标、音频文件1的图标和音频文件2的图标,之后,用户可以对上述3个图标所指示的文件执行压缩操作。For example, combined with Example 1, take the user who needs to modify the selected file to be compressed as an example. Combined with Figure 3, after the user drags the icon of photo 1, the icon of photo 2, the icon of audio file 1 and the icon of audio file 2 to area 2, if the user does not want to compress photo 2, as shown in (a in Figure 6 ), the user can remove Photo 2 from Area 2 by dragging the icon of Photo 2 to the right border (i.e., the above-mentioned second input). When the distance between the icon of Photo 2 and the edge of the border of the screen is less than a predetermined threshold, Photo 2 can be removed from Area 2. . Then, as shown in (b) of Figure 6, after the above removal operation, the above area 2 only contains the icon of photo 1, the icon of audio file 1 and the icon of audio file 2. After that, the user can modify the above three The file indicated by the icon is compressed.

如此,当用户在选定欲压缩文件出现错误时,可以通过第二输入快速修正所要进行压缩操作的文件,从而提高用户压缩不同文件夹中文件的压缩效率。In this way, when the user makes an error in selecting a file to be compressed, the file to be compressed can be quickly corrected through the second input, thereby improving the compression efficiency of the user in compressing files in different folders.

可选的,在本发明实施例中,电子设备在生成目标压缩包后,可以将该目标压缩包自动显示在第一界面上。Optionally, in this embodiment of the present invention, after generating the target compressed package, the electronic device can automatically display the target compressed package on the first interface.

示例性的,上述第一界面可以为当前界面,也可以为桌面界面,本发明实施例对此不作限制。For example, the above-mentioned first interface may be the current interface or the desktop interface, which is not limited in this embodiment of the present invention.

示例性的,上述第一界面可以为电子设备预设的,也可以为用户自定义的。For example, the above-mentioned first interface may be preset by the electronic device or customized by the user.

如此,由于压缩后的文件显示在用户自定义的界面或者桌面界面上,方便用户进行查询和进一步操作(传输或编辑),提高工作效率。In this way, since the compressed files are displayed on a user-defined interface or desktop interface, it is convenient for users to query and further operate (transfer or edit) and improve work efficiency.

可选的,在本发明实施例中,若用户想要对目标压缩包的中部分文件修改时,电子设备可以对目标压缩包进行快速解压缩,方便用户对目标压缩包中的文件进行修改。Optionally, in this embodiment of the present invention, if the user wants to modify some files in the target compressed package, the electronic device can quickly decompress the target compressed package to facilitate the user to modify the files in the target compressed package.

示例性的,在上述步骤202之后,上述方法还包括如下步骤F1至步骤F3:Exemplarily, after the above-mentioned step 202, the above-mentioned method also includes the following steps F1 to step F3:

步骤F1:电子设备在第一目标显示区域显示上述目标压缩包的压缩包图标。Step F1: The electronic device displays the compressed package icon of the above-mentioned target compressed package in the first target display area.

步骤F2:电子设备接收用户的第三输入。Step F2: The electronic device receives the third input from the user.

步骤F3:响应上述第三输入,电子设备将上述目标压缩包进行解压缩,得到上述目标文件,并在第二目标显示区域中显示上述目标文件对应的图标。Step F3: In response to the above third input, the electronic device decompresses the above target compressed package to obtain the above target file, and displays the icon corresponding to the above target file in the second target display area.

其中,上述第一目标显示区域为上述第一显示区域,上述第二目标显示区域为上述第二显示区域;或者,上述第一目标显示区域为上述第二显示区域,上述第二目标显示区域为上述第一显示区域。Wherein, the first target display area is the first display area, and the second target display area is the second display area; or, the first target display area is the second display area, and the second target display area is The above-mentioned first display area.

示例性的,上述第三输入可以参照上述第一输入的描述,此处不再赘述。For example, the third input may refer to the description of the first input, which will not be described again here.

示例性的,上述第三输入可以为:用户将压缩包图标拖动至第二目标显示区域的拖动输入。可以理解,电子设备在接收到用户跨显示区域将压缩包图标拖动至第二目标显示区域的拖动输入后,可以对该目标压缩包进行解压缩,并在第二目标显示区域上直接显示该目标压缩包中的文件。For example, the above third input may be: the user drags the compressed package icon to the second target display area. It can be understood that after receiving the drag input from the user to drag the compressed package icon across the display area to the second target display area, the electronic device can decompress the target compressed package and directly display it on the second target display area. The files in the target compressed package.

示例性的,上述电子设备的第二目标显示区域可以显示解压缩控件,该解压缩控件用于触发电子设备对压缩包进行解压缩操作。For example, the second target display area of the electronic device may display a decompression control, and the decompression control is used to trigger the electronic device to decompress the compressed package.

示例性的,当电子设备将指示目标压缩包的压缩包图标由第一目标显示区域移动至第二目标显示区域中,自用户释放上述压缩包图标后,上述目标压缩包可以在第二目标显示区域中自动解压缩,也可以接收用户对上述解压缩控件的点击输入后解压缩。For example, when the electronic device moves the compressed package icon indicating the target compressed package from the first target display area to the second target display area, after the user releases the compressed package icon, the target compressed package can be displayed on the second target. Automatically decompress in the area, and can also decompress after receiving the user's click input on the above decompression control.

举例说明,参照上述图3,用户对区域2所显示的照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标所指示的文件进行压缩后,如图7中的(a)所示,电子设备在区域1中显示该压缩包的压缩包图标,用户将上述压缩包图标拖动(即上述第三输入)至区域2中,如图7中的(b)所示,在用户释放压缩包图标后,电子设备将自动将该压缩包解压缩,在区域2上重新显示照片1的图标、照片2的图标、音频文件1的图标和音频文件2的图标。For example, referring to the above-mentioned Figure 3, after the user compresses the files indicated by the icons of Photo 1, Photo 2, Audio File 1 and Audio File 2 displayed in area 2, as shown in Figure 7 ( As shown in a), the electronic device displays the compressed package icon of the compressed package in area 1, and the user drags the compressed package icon (i.e., the third input) to area 2, as shown in (b) in Figure 7 , after the user releases the compressed package icon, the electronic device will automatically decompress the compressed package and re-display the icons of photo 1, photo 2, audio file 1 and audio file 2 in area 2.

示例性的,当用户需要对目标压缩包中的文件进行修改(例如,删除文件、添加文件或者重命名文件)时,可以通过上述解压缩的方式对目标压缩包快速解压缩,并对解压缩后的文件进行修改。For example, when the user needs to modify the files in the target compressed package (for example, delete files, add files, or rename files), the target compressed package can be quickly decompressed through the above decompression method, and the decompressed file can be decompressed. Modify the subsequent files.

举例说明,以用户需要修改压缩包中的文件为例。结合上述示例1,当用户需要修改上述压缩包(即上述目标压缩包)中的文件时,用户可以通过对上述照片1图标中进行滑动输入或者拖动输入(即上述第三输入),从而删除该压缩包中的照片1,此时,区域2中显示照片2的图标、音频文件1的图标和音频文件2的图标。For example, take the user needing to modify the files in the compressed package. Combined with the above example 1, when the user needs to modify the files in the above compressed package (i.e., the above target compressed package), the user can delete the file by sliding or dragging the icon on the photo 1 icon (i.e., the above third input). Photo 1 in the compressed package. At this time, the icon of photo 2, the icon of audio file 1, and the icon of audio file 2 are displayed in area 2.

可选的,在本发明实施例中,电子设备在得到目标文件后,当电子设备不是可折叠电子设备时,可以参照上述压缩过程再次进行压缩。Optionally, in this embodiment of the present invention, after the electronic device obtains the target file, when the electronic device is not a foldable electronic device, it may refer to the above compression process to perform compression again.

可选的,在本发明实施例中,电子设备在得到目标文件后,可以将该目标文件放置在目标文件夹中,该目标文件夹可以自动显示在第二界面上。当然,在上述电子设备为可折叠设备时,也可以在接收到折叠输入后显示在第二界面上。Optionally, in this embodiment of the present invention, after obtaining the target file, the electronic device can place the target file in the target folder, and the target folder can be automatically displayed on the second interface. Of course, when the above-mentioned electronic device is a foldable device, it can also be displayed on the second interface after receiving the folding input.

示例性的,上述第二界面可以为当前界面,也可以为桌面界面,本发明实施例对此不作限制。For example, the above-mentioned second interface may be the current interface or the desktop interface, which is not limited in this embodiment of the present invention.

示例性的,上述第二界面可以为电子设备预设的,也可以为用户自定义的。For example, the above-mentioned second interface may be preset by the electronic device or customized by the user.

如此,用户可以对不同压缩包中的文件快速解压缩,并直接合并至同一文件夹中,从而方便用户进行快速解压缩操作,提高工作效率。In this way, users can quickly decompress files in different compressed packages and merge them directly into the same folder, which facilitates users to quickly decompress and improve work efficiency.

需要说明的是,本发明实施例中,上述各个方法附图所示的文件压缩方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的文件压缩方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that in the embodiment of the present invention, the file compression methods shown in the drawings of each method mentioned above are exemplarily explained by taking one of the drawings in the embodiment of the present invention as an example. During specific implementation, the file compression methods shown in the above-mentioned method drawings can also be implemented in combination with any other combinable drawings illustrated in the above-mentioned embodiments, and will not be described again here.

图8为实现本发明实施例提供的一种电子设备的可能的结构示意图,如图8所示,电子设备600包括:接收模块601和压缩模块602,其中:上述接收模块601,用于在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对上述N个第一图标中的目标图标的第一输入;上述压缩模块602,用于响应接收模块601接收的上述第一输入,对目标文件进行压缩操作,得到目标压缩包;其中,上述N个第一图标指示第一文件夹中的N个文件;上述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;上述目标文件包括:上述目标图标指示的文件和上述M个文件,N、M为正整数。Figure 8 is a schematic structural diagram of a possible implementation of an electronic device provided by an embodiment of the present invention. As shown in Figure 8, the electronic device 600 includes: a receiving module 601 and a compression module 602, wherein: the above-mentioned receiving module 601 is used in the first When one display area displays N first icons and the second display area displays M second icons, receiving the user's first input to the target icon among the N first icons; the above compression module 602 is used to respond The receiving module 601 performs a compression operation on the above-mentioned first input received by the target file to obtain the target compressed package; wherein, the above-mentioned N first icons indicate N files in the first folder; the above-mentioned M second icons indicate M The files include: at least one file in the second folder; the above-mentioned target files include: the file indicated by the above-mentioned target icon and the above-mentioned M files, where N and M are positive integers.

可选的,在本发明实施例中,上述第一输入包括:用户将上述目标图标从上述第一显示区域移动至上述第二显示区域的移动输入。Optionally, in this embodiment of the present invention, the first input includes: a movement input by the user to move the target icon from the first display area to the second display area.

可选的,在本发明实施例中,上述第一输入包括:用户对上述目标图标的选择输入;在上述电子设备600为可折叠电子设备的情况下,上述电子设备600还包括选中模块603;上述选中模块603,用于响应上述接收模块601接收的上述选择输入,选中上述目标图标;上述接收模块601,具体用于接收用户对上述电子设备600的折叠输入;上述压缩模块602,具体用于响应上述折叠输入,对上述目标文件进行压缩操作,得到上述目标压缩包。Optionally, in the embodiment of the present invention, the above-mentioned first input includes: the user's selection input of the above-mentioned target icon; in the case where the above-mentioned electronic device 600 is a foldable electronic device, the above-mentioned electronic device 600 further includes a selection module 603; The above-mentioned selection module 603 is used to select the above-mentioned target icon in response to the above-mentioned selection input received by the above-mentioned receiving module 601; the above-mentioned receiving module 601 is specifically used to receive the user's folding input on the above-mentioned electronic device 600; the above-mentioned compression module 602 is specifically used to In response to the above folding input, the above target file is compressed to obtain the above target compressed package.

可选的,在本发明实施例中,该电子设备600还包括移除模块604,上述接收模块601,具体用于接收用户对上述第二显示区域上显示的第三图标的第二输入;上述移除模块604,具体用于响应上述接收模块601接收的上述第二输入,移除上述第二显示区域中显示的上述第三图标;其中,上述目标文件包括上述第二显示区域上显示的图标指示的文件。Optionally, in this embodiment of the present invention, the electronic device 600 further includes a removal module 604, and the above-mentioned receiving module 601 is specifically configured to receive the user's second input to the third icon displayed on the above-mentioned second display area; the above-mentioned The removal module 604 is specifically configured to remove the third icon displayed in the second display area in response to the second input received by the receiving module 601; wherein the target file includes the icon displayed in the second display area. indicated file.

可选的,在本发明实施例中,上述电子设备600还包括显示模块605和解压缩模块606;上述显示模块605,用于在第一目标显示区域显示上述目标压缩包的压缩包图标;上述接收模块601,还用于接收用户的第三输入;上述解压缩模块606,用于响应上述接收模块601接收的上述第三输入,将上述目标压缩包进行解压缩,得到上述目标文件,并在第二目标显示区域中显示上述目标文件对应的图标;其中,上述第一目标显示区域为上述第一显示区域,上述第二目标显示区域为上述第二显示区域;或者,上述第一目标显示区域为上述第二显示区域,上述第二目标显示区域为上述第一显示区域。Optionally, in the embodiment of the present invention, the above-mentioned electronic device 600 also includes a display module 605 and a decompression module 606; the above-mentioned display module 605 is used to display the compressed package icon of the above-mentioned target compressed package in the first target display area; the above-mentioned receiving Module 601 is also used to receive the third input from the user; the above-mentioned decompression module 606 is used to respond to the above-mentioned third input received by the above-mentioned receiving module 601, decompress the above-mentioned target compressed package, obtain the above-mentioned target file, and in the The icon corresponding to the target file is displayed in two target display areas; wherein the first target display area is the first display area, and the second target display area is the second display area; or, the first target display area is The above-mentioned second display area and the above-mentioned second target display area are the above-mentioned first display area.

本发明实施例提供的电子设备,在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,由于第一图标指示第一文件夹中的文件,而上述第二图标指示其他文件夹的文件,因此,电子设备在接收到用户对N个图标中的目标图标的第一输入后,便可对多个处于不同文件夹中的文件统一进行压缩操作,简化了压缩步骤,提高了工作效率。In the electronic device provided by the embodiment of the present invention, when the first display area displays N first icons and the second display area displays M second icons, since the first icon indicates a file in the first folder, the above The second icon indicates files in other folders. Therefore, after receiving the user's first input of the target icon among the N icons, the electronic device can perform a unified compression operation on multiple files in different folders, simplifying The compression step is eliminated and work efficiency is improved.

本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiment. To avoid repetition, details will not be described here.

需要说明的是,如图8所示,电子设备600中一定包括的模块用实线框示意,如接收模块601;电子设备600中可以包括也可以不包括的模块用虚线框示意,如显示模块605。It should be noted that, as shown in Figure 8, the modules that must be included in the electronic device 600 are represented by solid lines, such as the receiving module 601; the modules that may or may not be included in the electronic device 600 are represented by dotted boxes, such as the display module. 605.

以电子设备为终端设备为例。图9为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图9中示出的终端设备100的结构并不构成对终端设备的限定,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。Take electronic equipment as terminal equipment as an example. Figure 9 is a schematic diagram of the hardware structure of a terminal device that implements various embodiments of the present invention. The terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit. 106. User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components. Those skilled in the art can understand that the structure of the terminal device 100 shown in FIG. 9 does not constitute a limitation on the terminal device. The terminal device 100 may include more or less components than shown in the figure, or combine certain components, or Different component arrangements. In the embodiment of the present invention, the terminal device 100 includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, a pedometer, etc.

其中,用户输入单元107,用于在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对上述N个第一图标中的目标图标的第一输入;处理器110,用于响应于用户输入单元107接收的上述第一输入,对目标文件进行压缩操作,得到目标压缩包;其中,上述N个第一图标指示第一文件夹中的N个文件;上述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;上述目标文件包括:上述目标图标指示的文件和上述M个文件,N、M为正整数。Wherein, the user input unit 107 is used to receive the user's response to the target icon among the N first icons when the first display area displays N first icons and the second display area displays M second icons. An input; the processor 110 is configured to, in response to the above-mentioned first input received by the user input unit 107, perform a compression operation on the target file to obtain the target compressed package; wherein the above-mentioned N first icons indicate N in the first folder files; the M files indicated by the M second icons include: files in at least one second folder; the target files include: the files indicated by the target icon and the M files, where N and M are positive integers.

本发明实施例提供的终端设备,在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,由于第一图标指示第一文件夹中的文件,而上述第二图标指示其他文件夹的文件,因此,终端设备在接收到用户对N个图标中的目标图标的第一输入后,便可对多个处于不同文件夹中的文件统一进行压缩操作,简化了压缩步骤,提高了工作效率。In the terminal device provided by the embodiment of the present invention, when the first display area displays N first icons and the second display area displays M second icons, since the first icon indicates a file in the first folder, the above The second icon indicates files in other folders. Therefore, after receiving the user's first input of the target icon among the N icons, the terminal device can perform a unified compression operation on multiple files in different folders, simplifying The compression step is eliminated and work efficiency is improved.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that in the embodiment of the present invention, the radio frequency unit 101 can be used to receive and send information or signals during a call. Specifically, after receiving downlink data from the base station, it is processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, transceiver, coupler, low noise amplifier, duplexer, etc. In addition, the radio frequency unit 101 can also communicate with networks and other devices through wireless communication systems.

终端设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device 100 provides users with wireless broadband Internet access through the network module 102, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与终端设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as a sound. Furthermore, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes still pictures or video images obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the network module 102. Microphone 1042 can receive sounds and can process such sounds into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in a phone call mode.

终端设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 when the terminal device 100 moves to the ear. /or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes). It can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc. will not be described in detail here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元107可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive input numeric or character information and generate key signal input related to user settings and function control of the terminal device 100 . Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 , also known as a touch screen, can collect the user's touch operations on or near the touch panel 1071 (for example, the user uses a finger, stylus, or any suitable object or accessory on or near the touch panel 1071 operate). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact point coordinates, and then sends it to the touch controller. To the processor 110, receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图9中,触控面板1071与显示面板1061是作为两个独立的部件来实现终端设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现终端设备100的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be covered on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it is sent to the processor 110 to determine the type of touch event. Then the processor 110 determines the type of touch event according to the touch. The type of event provides corresponding visual output on display panel 1061. Although in FIG. 9 , the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the terminal device 100 , in some embodiments, the touch panel 1071 and the display panel 1061 can be combined. Integrated to realize the input and output functions of the terminal device 100, the details are not limited here.

接口单元108为外部装置与终端设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备100内的一个或多个元件或者可以用于在终端设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting external devices to the terminal device 100 . For example, external devices may include a wired or wireless headphone port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal device 100 or may be used to connect the terminal device 100 and the external device 100 . Transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store a program according to Data created by the use of mobile phones (such as audio data, phone books, etc.), etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

处理器110是终端设备100的控制中心,利用各种接口和线路连接整个终端设备100的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the terminal device 100, using various interfaces and lines to connect various parts of the entire terminal device 100, by running or executing software programs and/or modules stored in the memory 109, and calling the software programs and/or modules stored in the memory 109. data, perform various functions of the terminal device 100 and process data, thereby overall monitoring the terminal device 100. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc., and the modem processor The debug processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 110 .

终端设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal device 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Optionally, the power supply 111 may be logically connected to the processor 110 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.

另外,终端设备100包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 includes some not-shown functional modules, which will not be described again here.

可选的,本发明实施例还提供一种终端设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述文件压缩方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and executable on the processor 110. When the computer program is executed by the processor, the above file is implemented. Each process of the compression method embodiment can achieve the same technical effect, so to avoid repetition, it will not be described again here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文件压缩方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above file compression method embodiment is implemented, and the same technology can be achieved. The effect will not be described here to avoid repetition. Wherein, the computer-readable storage medium is such as read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause an electronic device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (8)

Translated fromChinese
1.一种文件压缩方法,应用于电子设备,其特征在于,所述方法包括:1. A file compression method, applied to electronic equipment, characterized in that the method includes:在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对所述N个第一图标中的目标图标的第一输入;When the first display area displays N first icons and the second display area displays M second icons, receive the user's first input to the target icon among the N first icons;响应所述第一输入,对目标文件进行压缩操作,得到目标压缩包;In response to the first input, perform a compression operation on the target file to obtain the target compressed package;在第一目标显示区域显示所述目标压缩包的压缩包图标;Display the compressed package icon of the target compressed package in the first target display area;接收用户的第三输入,所述第三输入为用户将压缩包图标拖动至第二目标显示区域的拖动输入;Receive a third input from the user, where the third input is a drag input by the user dragging the compressed package icon to the second target display area;响应所述第三输入,将所述目标压缩包进行解压缩,得到所述目标文件,并在第二目标显示区域中显示所述目标文件对应的图标;In response to the third input, decompress the target compressed package to obtain the target file, and display an icon corresponding to the target file in the second target display area;其中,所述N个第一图标指示第一文件夹中的N个文件;所述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;所述目标文件包括:所述目标图标指示的文件和所述M个文件,N、M为正整数;所述第一目标显示区域为所述第一显示区域,所述第二目标显示区域为所述第二显示区域;或者,所述第一目标显示区域为所述第二显示区域,所述第二目标显示区域为所述第一显示区域。Wherein, the N first icons indicate N files in the first folder; the M files indicated by the M second icons include: at least one file in the second folder; the target file includes: The file indicated by the target icon and the M files, N and M are positive integers; the first target display area is the first display area, and the second target display area is the second display area ; Alternatively, the first target display area is the second display area, and the second target display area is the first display area.2.根据权利要求1所述的方法,其特征在于,所述第一输入包括:用户将所述目标图标从所述第一显示区域移动至所述第二显示区域的移动输入。2. The method according to claim 1, wherein the first input includes: a movement input by a user to move the target icon from the first display area to the second display area.3.根据权利要求1所述的方法,其特征在于,所述第一输入包括:用户对所述目标图标的选择输入;3. The method according to claim 1, wherein the first input includes: a user's selection input of the target icon;在所述电子设备为可折叠电子设备的情况下,所述响应所述第一输入,对目标文件进行压缩操作,得到目标压缩包,包括:In the case where the electronic device is a foldable electronic device, in response to the first input, a compression operation is performed on the target file to obtain a target compressed package, including:响应所述选择输入,选中所述目标图标;In response to the selection input, select the target icon;接收用户对所述电子设备的折叠输入;Receive a user's folding input on the electronic device;响应所述折叠输入,对所述目标文件进行压缩操作,得到所述目标压缩包。In response to the folding input, a compression operation is performed on the target file to obtain the target compressed package.4.根据权利要求3所述的方法,其特征在于,所述对目标文件进行压缩操作,得到目标压缩包之前,所述方法还包括:4. The method according to claim 3, characterized in that before performing a compression operation on the target file to obtain the target compressed package, the method further includes:接收用户对所述第二显示区域上显示的第三图标的第二输入;receiving a second input from the user to a third icon displayed on the second display area;响应所述第二输入,移除所述第二显示区域中显示的所述第三图标;in response to the second input, removing the third icon displayed in the second display area;其中,所述目标文件包括所述第二显示区域上显示的图标指示的文件。Wherein, the target file includes a file indicated by an icon displayed on the second display area.5.一种电子设备,其特征在于,所述电子设备包括:接收模块、压缩模块、显示模块和解压缩模块;5. An electronic device, characterized in that the electronic device includes: a receiving module, a compression module, a display module and a decompression module;所述接收模块,用于在第一显示区域显示N个第一图标、第二显示区域显示M个第二图标的情况下,接收用户对所述N个第一图标中的目标图标的第一输入;The receiving module is configured to receive the user's first response to the target icon among the N first icons when the first display area displays N first icons and the second display area displays M second icons. enter;所述压缩模块,用于响应接收模块接收的所述第一输入,对目标文件进行压缩操作,得到目标压缩包;The compression module is configured to respond to the first input received by the receiving module, perform a compression operation on the target file, and obtain the target compressed package;所述显示模块,用于在第一目标显示区域显示所述目标压缩包的压缩包图标;The display module is configured to display the compressed package icon of the target compressed package in the first target display area;所述接收模块,还用于接收用户的第三输入,所述第三输入为用户将压缩包图标拖动至第二目标显示区域的拖动输入;The receiving module is also configured to receive a third input from a user, where the third input is a drag input in which the user drags the compressed package icon to the second target display area;所述解压缩模块,用于响应所述接收模块接收的所述第三输入,将所述目标压缩包进行解压缩,得到所述目标文件,并在第二目标显示区域中显示所述目标文件对应的图标;The decompression module is configured to respond to the third input received by the receiving module, decompress the target compressed package, obtain the target file, and display the target file in the second target display area. corresponding icon;其中,所述N个第一图标指示第一文件夹中的N个文件;所述M个第二图标指示的M个文件包括:至少一个第二文件夹中的文件;所述目标文件包括:所述目标图标指示的文件和所述M个文件,N、M为正整数;所述第一目标显示区域为所述第一显示区域,所述第二目标显示区域为所述第二显示区域;或者,所述第一目标显示区域为所述第二显示区域,所述第二目标显示区域为所述第一显示区域。Wherein, the N first icons indicate N files in the first folder; the M files indicated by the M second icons include: at least one file in the second folder; the target file includes: The file indicated by the target icon and the M files, N and M are positive integers; the first target display area is the first display area, and the second target display area is the second display area ; Or, the first target display area is the second display area, and the second target display area is the first display area.6.根据权利要求5所述的电子设备,其特征在于,所述第一输入包括:用户将所述目标图标从所述第一显示区域移动至所述第二显示区域的移动输入。6. The electronic device according to claim 5, wherein the first input includes: a movement input by a user to move the target icon from the first display area to the second display area.7.根据权利要求5所述的电子设备,其特征在于,所述第一输入包括:用户对所述目标图标的选择输入;7. The electronic device according to claim 5, wherein the first input includes: a user's selection input of the target icon;在所述电子设备为可折叠电子设备的情况下,所述电子设备还包括选中模块;In the case where the electronic device is a foldable electronic device, the electronic device further includes a selection module;所述选中模块,用于响应所述接收模块接收的所述选择输入,选中所述目标图标;The selection module is configured to select the target icon in response to the selection input received by the receiving module;所述接收模块,具体用于接收用户对所述电子设备的折叠输入;The receiving module is specifically configured to receive the user's folding input of the electronic device;所述压缩模块,具体用于响应所述折叠输入,对所述目标文件进行压缩操作,得到所述目标压缩包。The compression module is specifically configured to respond to the folding input, perform a compression operation on the target file, and obtain the target compressed package.8.根据权利要求7所述的电子设备,其特征在于,所述电子设备还包括移除模块;8. The electronic device according to claim 7, wherein the electronic device further comprises a removal module;所述接收模块,还用于接收用户对所述第二显示区域上显示的第三图标的第二输入;The receiving module is also configured to receive a second input from the user to the third icon displayed on the second display area;所述移除模块,用于响应所述接收模块接收的所述第二输入,移除所述第二显示区域中显示的所述第三图标;The removal module is configured to remove the third icon displayed in the second display area in response to the second input received by the receiving module;其中,所述目标文件包括所述第二显示区域上显示的图标指示的文件。Wherein, the target file includes a file indicated by an icon displayed on the second display area.
CN201911358468.7A2019-12-252019-12-25 File compression method and electronic equipmentActiveCN111143300B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911358468.7ACN111143300B (en)2019-12-252019-12-25 File compression method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911358468.7ACN111143300B (en)2019-12-252019-12-25 File compression method and electronic equipment

Publications (2)

Publication NumberPublication Date
CN111143300A CN111143300A (en)2020-05-12
CN111143300Btrue CN111143300B (en)2024-01-12

Family

ID=70520032

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911358468.7AActiveCN111143300B (en)2019-12-252019-12-25 File compression method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN111143300B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117008773A (en)*2022-04-292023-11-07华为技术有限公司Application compression method, decompression method and electronic equipment
CN116701327B (en)*2022-12-072024-06-21荣耀终端有限公司 File processing method and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109343755A (en)*2018-09-212019-02-15维沃移动通信有限公司 A file processing method and terminal device
CN109471692A (en)*2018-10-242019-03-15维沃移动通信有限公司 A display control method and terminal device
CN109885171A (en)*2019-02-262019-06-14维沃移动通信有限公司 File operation method and terminal device
CN109917995A (en)*2019-01-252019-06-21维沃移动通信有限公司A kind of object processing method and terminal device
CN110008184A (en)*2019-03-292019-07-12维沃移动通信有限公司A kind of document handling method and electronic equipment
WO2019149028A1 (en)*2018-01-302019-08-08维沃移动通信有限公司Application download method and terminal
CN110308839A (en)*2019-06-282019-10-08维沃移动通信有限公司 A file management method and terminal equipment
CN110502162A (en)*2019-07-082019-11-26维沃移动通信有限公司 Folder Creation Method and Terminal Device
CN110532412A (en)*2019-08-282019-12-03维沃移动通信有限公司A kind of document handling method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110515420B (en)*2018-05-222022-10-25鸿富锦精密工业(深圳)有限公司 Foldable electronic device and file decompression method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2019149028A1 (en)*2018-01-302019-08-08维沃移动通信有限公司Application download method and terminal
CN109343755A (en)*2018-09-212019-02-15维沃移动通信有限公司 A file processing method and terminal device
CN109471692A (en)*2018-10-242019-03-15维沃移动通信有限公司 A display control method and terminal device
CN109917995A (en)*2019-01-252019-06-21维沃移动通信有限公司A kind of object processing method and terminal device
CN109885171A (en)*2019-02-262019-06-14维沃移动通信有限公司 File operation method and terminal device
CN110008184A (en)*2019-03-292019-07-12维沃移动通信有限公司A kind of document handling method and electronic equipment
CN110308839A (en)*2019-06-282019-10-08维沃移动通信有限公司 A file management method and terminal equipment
CN110502162A (en)*2019-07-082019-11-26维沃移动通信有限公司 Folder Creation Method and Terminal Device
CN110532412A (en)*2019-08-282019-12-03维沃移动通信有限公司A kind of document handling method and mobile terminal

Also Published As

Publication numberPublication date
CN111143300A (en)2020-05-12

Similar Documents

PublicationPublication DateTitle
CN108762954A (en)A kind of object sharing method and mobile terminal
CN108255378A (en)A kind of display control method and mobile terminal
CN110007835B (en)Object management method and mobile terminal
CN110413168A (en) Icon management method and terminal
CN110456953A (en) Folder interface switching method and terminal equipment
CN109917995A (en)A kind of object processing method and terminal device
CN108415641B (en) Icon processing method and mobile terminal
CN108415652A (en)A kind of text handling method and mobile terminal
CN110308960A (en) Icon classification method, mobile terminal and computer-readable storage medium
CN111338530A (en) Application icon control method and electronic device
CN109408072B (en)Application program deleting method and terminal equipment
CN111143299A (en)File management method and electronic equipment
CN108446058A (en)A kind of operating method and mobile terminal of mobile terminal
CN110049185A (en)Image processing method and terminal device
CN111596817A (en) Icon moving method and electronic device
WO2021129536A1 (en)Icon moving method and electronic device
CN110502162A (en) Folder Creation Method and Terminal Device
CN108234774A (en)The method for down loading and terminal of a kind of application program
CN110442297A (en)Split screen display method, split screen display device and terminal equipment
CN110308839A (en) A file management method and terminal equipment
CN108170329B (en)Display control method and terminal equipment
CN108733282A (en)A kind of page moving method and terminal device
CN108763317A (en)A kind of auxiliary chooses the method and terminal device of picture
CN110221761A (en)Display methods and terminal device
CN107728923A (en)The processing method and mobile terminal of a kind of operation

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp