CN103472989B - A method of switching terminal and wallpaper - Google Patents

A method of switching terminal and wallpaper Download PDF

Info

Publication number
CN103472989B
CN103472989B CN 201310375959 CN201310375959A CN103472989B CN 103472989 B CN103472989 B CN 103472989B CN 201310375959 CN201310375959 CN 201310375959 CN 201310375959 A CN201310375959 A CN 201310375959A CN 103472989 B CN103472989 B CN 103472989B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
wallpaper
screen
current
terminal
sliding
Prior art date
Application number
CN 201310375959
Other languages
Chinese (zh)
Other versions
CN103472989A (en )
Inventor
邓裕强
黄爱华
梁国盛
敖日明
胡勇
蒋旭文
陈炳东
Original Assignee
广州市久邦数码科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明提供一种壁纸切换的方法,终端检测到手指滑动响应,获取滑动的横向坐标值,根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果,若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 The present invention provides a method wallpaper handover, the terminal is detected in response to the finger sliding, transverse coordinate value obtaining slidable laterally in accordance with the coordinate values ​​of the slide, the current screen is a screen adjacent links and link wallpaper wallpaper for gradient operation, gradient time display wallpaper effect switch, if the current screen is switched to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper, the wallpaper is displayed and complete the handover wallpaper. 本发明解决了由于无法提供不同屏幕配置不同壁纸导致终端灵活性差,用户体验低的问题,提高了终端的灵活性,提高了用户体验。 The invention solves the inability to provide a different screen configurations lead to different wallpaper terminal inflexible, low user experience problems, increase the flexibility of the terminal and improve the user experience.

Description

一种壁纸的切换方法及终端 A method of switching terminal and wallpaper

技术领域 FIELD

[0001 ]本发明涉及信息技术领域,具体涉及一种壁纸的切换方法及终端。 [0001] The present invention relates to the field of information technology, particularly relates to a handover method and a terminal for wallpaper.

背景技术 Background technique

[0002] 安卓(Android)是基于Linux开放性内核的操作系统,仅正式上市两年便跃居全球最受欢迎的智能手机平台。 [0002] Andrews (Android) is based on the Linux open operating system kernel, officially listed only two years, they ranked the world's most popular smartphone platform. 安卓提供了一系列的手机壁纸替换功能,用户可以从手机内置图片中选择自己喜欢的图片设置为壁纸,并可以对其进行修改。 Andrews offers a range of mobile phone wallpaper replacement feature, users can choose their favorite pictures from the phone's built-picture as wallpaper and can be modified.

[0003]以手机为例,传统的手机一般设置一个固定的壁纸,其主题和颜色都比较单调,当用户想要更换壁纸时,需要手动地从手机中找到自己喜欢的壁纸,然后手动将手机屏幕的当前壁纸切换为自己喜欢的壁纸。 [0003] Mobile For example, the traditional cell phone is generally a fixed set of wallpapers, themes and colors that are more monotonous, when the user wants to change the wallpaper, you need to find your favorite wallpaper from the phone manually, and then manually phone the current screen wallpaper switch to your favorite wallpaper. 这种壁纸的控制方案显然不能满足人们对于手机智能化的需求。 This control scheme wallpaper obviously can not meet the demand for mobile phones intelligent. 例如,用户希望安卓显示的不同屏幕配置不同的壁纸或图片,当不同屏幕切换时,壁纸也发生相应的切换,但是现有技术中却无法提供此功能,导致终端进行壁纸切换的灵活性差,用户体验低。 For example, the user wishes to display a different screen configuration Andrews different wallpaper images or, when a different screen is switched, the wallpaper but also a corresponding switching occurs, but the prior art can not provide this function, cause the terminal to switch the flexibility difference wallpaper, user experience low.

发明内容 SUMMARY

[0004]本发明的目的是克服现有技术中的不足之处,提供一种壁纸的切换方法及终端,解决了由于无法提供不同屏幕配置不同壁纸导致终端灵活性差,用户体验低的问题,提高了终端的灵活性,提高了用户体验。 [0004] The object of the present invention is to overcome the shortcomings of the prior art, providing a handover method and a terminal for a wallpaper to solve the inability to provide a different screen configurations of different wallpaper results in poor flexibility of the terminal, the problem of low user experience, improved the flexibility of the terminal and improve the user experience.

[0005]本发明实施例提供一种壁纸切换的方法,包括: [0005] The present invention provides a method for wallpaper handover, comprising:

[0006]终端检测到手指滑动响应,获取滑动的横向坐标值; [0006] The terminal detects the finger sliding in response, obtaining the slide transverse coordinate values;

[0007]根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果; [0007] The coordinate values ​​of the lateral slide, the current screen is a screen adjacent link wallpaper and a wallpaper for the gradient calculation link, real-time display when the wallpaper gradient effect switching;

[0008]若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 [0008] If the current screen is switched to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper, the wallpaper is displayed and complete the handover wallpaper.

[0009]本发明实施例还提供一种壁纸切换的终端,包括: Example [0009] The present invention further provides a terminal for handover wallpaper, comprising:

[0010]终端检测到手指滑动响应,获取滑动的横向坐标值; [0010] In response terminal detects the finger sliding, sliding horizontal coordinate values ​​acquired;

[0011]根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果; [0011] The coordinate values ​​of the lateral slide, the current screen is a screen adjacent link wallpaper and a wallpaper for the gradient calculation link, real-time display when the wallpaper gradient effect switching;

[0012]若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 [0012] If the current screen is switched to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper, the wallpaper is displayed and complete the handover wallpaper.

[0013]通过本发明实施例提供的方法及装置,终端检测到手指滑动响应,获取滑动的横向坐标值,根据所述滑动的横向坐标值,对当前壁纸及相邻壁纸进行渐变运算,实时显示壁纸的渐变效果,若当前屏幕切换到下一屏幕,且检测到手指松开响应时,切换为下一屏幕对应的壁纸。 [0013] The method and apparatus provided by the present invention, the terminal is detected in response finger sliding, sliding lateral acquired coordinate values, coordinate values ​​in accordance with the lateral sliding of adjacent wallpapers and wallpapers for current gradient operation, real-time display wallpaper gradient effect, if the current screen is switched to the next screen, and release the finger is detected in response to switch to the next screen corresponding wallpaper. 本发明解决了由于无法提供不同屏幕配置不同壁纸导致终端灵活性差,用户体验低的问题,提高了终端的灵活性,提高了用户体验。 The invention solves the inability to provide a different screen configurations lead to different wallpaper terminal inflexible, low user experience problems, increase the flexibility of the terminal and improve the user experience.

附图说明 BRIEF DESCRIPTION

[0014]为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0014] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings will be described below as required in the embodiment, a brief introduction Apparently, the drawings in the following description of some embodiments of the present invention embodiment, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0015]图1是本发明实施例一的方法流程图; [0015] FIG. 1 is a diagram of a method embodiment of the present invention, a flow chart;

[0016]图2是本发明实施例一的壁纸切换显示效果图; [0016] FIG. 2 is a graph showing the effects of switch wallpaper embodiment of the present invention;

[0017]图3是本发明实施例一的壁纸循环切换示意图; [0017] FIG. 3 is an embodiment of a switching cycle wallpaper schematic embodiment of the present invention;

[0018]图4是本发明实施例二的装置组成图。 [0018] FIG. 4 is a schematic diagram showing apparatus according to the second embodiment of the present invention.

具体实施方式 Detailed ways

[0019]为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0019] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described the embodiment is an embodiment of the present invention is a part, but not all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without creative efforts shall fall within the scope of the present invention.

[0020] 实施例一 [0020] Example a

[0021]图1是实施例一的方法流程图,如图1所示,该方法如下: Method [0021] FIG. 1 is a flow chart of the embodiment shown in Figure 1, which follows:

[0022 ] S11、终端检测到手指滑动响应,获取滑动的横向坐标值; [0022] S11, the terminal in response to the detected finger sliding, the sliding of the transverse coordinate values ​​acquired;

[0023]需要说明的是,终端预先保存不同的屏幕及对应的不同壁纸,不同的屏幕其下标值不同,不同下标值对应不同壁纸的标号。 [0023] Incidentally, the terminal stored in advance and corresponding to the different screens of different wallpaper, different screens which index values, corresponding to different values ​​of different wallpaper superscript numerals.

[0024]用户用手指在终端屏幕上进行滑动,终端检测其滑动响应,并在滑动过程中,实时获取滑动到的具体位置的横向坐标值。 [0024] The user slides the finger on the screen of the terminal, the terminal is detected in response to sliding, and during sliding, transverse coordinate value acquired in real time to a specific location of the slide.

[0025] S102、根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果; [0025] S102, the coordinate values ​​in accordance with the transverse slide, the current screen is a screen adjacent link wallpaper and a wallpaper for the gradient calculation link, real-time display when the wallpaper gradient effect switching;

[0026]在屏幕滑动过程中,当前屏的壁纸和下一屏的壁纸进行渐变;渐变的过程可以是通过安卓开发包SDK里面的canvas类来进行操作,对当前壁纸进行alpha绘制,获取到的横向坐标值不同,壁纸的alpha值也不同,以使当前壁纸显示效果为从可见到不可见,同时对下一张壁纸也进行alpha绘制,以使下一张壁纸显示效果从不可见到可见。 [0026] In the process of sliding the screen, the current screen and the next screen wallpaper wallpaper be gradual; gradual process may be operated by the Android SDK development kit inside the canvas type, the current drawn to alpha wallpaper, acquired transverse coordinate different values, alpha values ​​of different wallpaper, so that the current display is not visible from the wallpaper can be seen, at the same time also a wallpaper alpha drawing, so that the lower a wallpaper from invisible to visible display effect.

[0027]此外,当屏幕数量大于壁纸数量,取壁纸数量为基数;当手指在屏幕滑动时,所述终端获取到当前屏幕的下标值,如果当前屏幕的下标值大于基数,则用当前屏幕的下标值与基数进行求余运算,以所得余数值作为当前屏幕新的下标值,并链接新的下标值对应的壁纸,实现壁纸循环切换。 [0027] Further, when the screen is larger than the number of the number of wallpaper, the wallpaper is taken the number of the base; when the finger slides on the screen, the terminal obtains the index value of the current screen, the current screen if the index value is greater than the number, and with the current screen radix index value is a remainder operation to a remainder value resulting index values ​​as the new current screen, and link the new index value corresponding to the wallpaper, the wallpaper to cycle to achieve. 当前屏幕数的获取方法如下:终端获取滑动的横向坐标值X轴步长值(XOfTsetStep),以所述步长值作为除数,与整数I作除法,得到的商加1,并所得之和取整,所述取整后得到的值为当前屏幕数。 Obtaining the current number of screens as follows: the terminal obtains the transverse coordinate values ​​of X-axis sliding step value (XOfTsetStep), the step value to a divider for dividing the integer I, a quotient obtained by adding 1, and the sum is taken whole, after rounding the obtained value of the number of the current screen. 例如:当前系统返回的XOffsetStep的值为0.25,则当前屏幕总数为1/0.25+1 = 5。 For example: The current system returns XOffsetStep value 0.25, the current total number of screens of 1 / 0.25 + 1 = 5.

[0028] S103、若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 [0028] S103, if the current screen is switched to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper, the wallpaper is displayed and complete the handover wallpaper.

[0029]当前屏幕已切换到下一屏幕,且用户手指已松开,则获取下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 [0029] The current screen is switched to the next screen, and the user's finger has been released, the next screen is acquired corresponding to the wallpaper, the wallpaper is displayed and complete the handover wallpaper.

[0030]对于不同的屏幕可设置不同的壁纸或照片,在用户点击“应用”后,会进行各个屏幕的壁纸设置,同时对所选的壁纸或照片的名称、路径、包名等信息进行保存,记录到数据库中,以记录每个屏幕当前所使用的壁纸或照片,且便于读取壁纸信息。 [0030] can set different wallpaper or picture for different screen after the user clicks the "Apply", will be set each screen wallpaper, while the name of the selected photo or wallpaper, the path, the package name and other information to save , recorded in the database, or wallpaper to record pictures currently used each screen, and the information is easy to read wallpaper.

[0031]图2是壁纸切换显示效果图,如图2所示,从左至右看,第一幅图是当前屏幕及其对应的壁纸,此时用户手指在屏幕上滑动,第二幅图是壁纸间的渐变过程,在切换屏幕的同时,壁纸也在渐变为下一个屏幕的壁纸,第三幅图为手指停止滑动后,壁纸改变为下一张壁纸。 [0031] FIG. 2 is a graph showing the effects wallpaper switch, shown in Figure 2, from left to right to see the first screen and a current corresponding to FIG wallpaper, when the user slides the finger on the screen, the second web of FIG. is a gradual process between the wallpaper, while switching the screen, wallpaper is also fade to the next screen wallpaper, the third piece of the picture shows the finger sliding stop, change the wallpaper for the next wallpaper.

[0032]图3是壁纸循环切换示意图,如图3所示,图3上方是壁纸缩略图,并且,壁纸数目少于屏幕数目,图3下方从左向右看依次是屏幕I一5,由图3可知,屏幕I和屏幕4的壁纸循环,屏幕2和屏幕5的壁纸循环。 [0032] FIG. 3 is a schematic view of the wallpaper Cycle, shown in Figure 3, the top of FIG. 3 is a wallpaper thumbnail, and the number less than the number of the screen wallpaper, FIG. 3 viewed from left to right below the screen is a 5 I, the 3 that the screen and the screen wallpaper I cycle 4, the screen 2 and 5 cycles of screen wallpaper. 需要说明的是,图3只是壁纸循环切换的示意图,不同数量的屏幕,不同数量的壁纸,其壁纸循环切换的方式均纳入本发明实施例保护的范围中。 Note that, in FIG. 3 are schematic wallpaper switching cycle, the number of different screens, the number of different wallpaper, the wallpaper Cycle manner which are included in the protection scope of the embodiments of the present invention.

[0033] 实施例二 [0033] Second Embodiment

[0034]图4是终端的示意图,如图4所示,该终端包括: [0034] FIG. 4 is a schematic view of the terminal shown in Figure 4, the terminal comprising:

[0035]获取单元201,用于检测到手指滑动响应,获取滑动的横向坐标值; [0035] The acquisition unit 201, in response to detecting a finger for sliding, horizontal sliding acquired coordinate values;

[0036]需要说明的是,终端预先保存不同的屏幕及对应的不同壁纸,不同的屏幕其下标值不同,不同下标值对应不同壁纸的标号。 [0036] Incidentally, the terminal stored in advance and corresponding to the different screens of different wallpaper, different screens which index values, corresponding to different values ​​of different wallpaper superscript numerals.

[0037]运算单元202,用于根据所述滑动的横向坐标值,对当前壁纸及相邻壁纸进行渐变运算,实时显示壁纸切换时的渐变效果; [0037] The arithmetic unit 202, the coordinate values ​​for a transverse slide, and the adjacent current wallpaper wallpaper gradient calculation for real-time display when the wallpaper gradient effect switching;

[0038]运算单元202,还用于当屏幕数量大于壁纸数量,取壁纸数量为基数;当手指在屏幕滑动时,所述终端获取到当前屏幕的下标值,如果当前屏幕的下标值大于基数,则用当前屏幕的下标值与基数进行求余运算,以所得余数值作为当前屏幕新的下标值,并链接新的下标值对应的壁纸,实现壁纸循环切换。 [0038] The arithmetic unit 202 is further configured number when the screen is larger than the number of wallpaper, the wallpaper is taken the number of the base; when the finger slides on the screen, the terminal obtains the index value of the current screen, if the index value is greater than the current screen base, a remainder operation is performed with the current index value and the base of the screen, resulting in a remainder value as the new index value of the current screen, and link the new index value corresponding to the wallpaper, the wallpaper to cycle to achieve.

[0039] 所述运算单元202对当前壁纸及相邻壁纸进行渐变运算,实时显示壁纸的渐变效果,具体为:对当前壁纸进行alpha绘制,以使当前壁纸显示效果为从可见到不可见,同时对下一张壁纸也进行alpha绘制,以使下一张壁纸显示效果从不可见到可见。 [0039] The arithmetic unit 202 and an adjacent current wallpaper gradient calculation for wallpaper, the wallpaper gradient effect real-time display, in particular: the current drawn to alpha wallpaper, so that the current display can be seen from the wallpaper is not visible, while a wallpaper for the alpha also plotted, so that the lower a wallpaper from invisible to visible display effect.

[0040]切换单元203,用于若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸。 [0040] The switching unit 203, if the current screen is switched to the next screen, and detects the stop finger in response to the slide, corresponding to the screen is switched to the next wallpaper.

[0041]此外,所述终端对各个屏幕的壁纸尺寸进行设置,同时对所选的壁纸的名称、路径、包名等信息进行保存,记录到数据库中,以记录每个屏幕当前所使用的壁纸,便于壁纸ig息的读取。 [0041] In addition, the terminal dimensions of each screen wallpaper setting, while the name of the selected information of the wallpaper, the path, and the like to save the package name, recorded in the database, each record in the screen currently used wallpaper , to facilitate the reading of information ig wallpaper.

[0042]本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的单元或流程并不一定是实施本发明所必须的。 [0042] Those of ordinary skill in the art will be understood: the drawings is only a schematic example of embodiment, the drawing unit or process embodiment of the present invention is not necessarily necessary.

[0043]在本申请所提供的几个实施例中,应该理解到,所揭露的系统,设备和方法,可以通过其它的方式实现。 [0043] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the device described in the above embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be attached by indirect coupling or communication of some interface, device, or unit, it may be an electrical, mechanical, or other forms.

[0044]所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0044] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0045]另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0045] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units in hardware may also be implemented.

[0046]上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。 [0046] The integrated unit implemented in the form of a software functional unit described above may be stored in a computer-readable storage medium. 上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。 The software functional unit is stored in a storage medium and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) to perform the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), magnetic disk, or an optical disc of various program codes may be stored media. 最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 Finally, it should be noted that: the above embodiments are intended to illustrate the present invention, rather than limiting;. Although the embodiments of the present invention has been described in detail, those of ordinary skill in the art should be understood: that they may still to the technical solutions described in each embodiment to modify, or to some technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

  1. 1.一种壁纸切换的方法,其特征在于,包括: 终端检测到手指滑动响应,获取滑动的横向坐标值; 根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果;当屏幕数量大于壁纸数量,取壁纸数量为基数;当手指在屏幕滑动时,所述终端获取到当前屏幕的下标值,如果当前屏幕的下标值大于基数,则用当前屏幕的下标值与基数进行求余运算,以所得余数值作为当前屏幕新的下标值,并链接新的下标值对应的壁纸,实现壁纸循环切换; 若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 1. A method for handover wallpaper, characterized by comprising: detecting the terminal in response to the finger sliding, the sliding of the transverse coordinate values ​​acquired; The coordinate values ​​of the lateral slide, the current screen is a screen adjacent links and link wallpaper wallpaper for the gradient operation, when the real-time display wallpaper gradient effect switching; screen when the number is greater than the number of wallpaper, the wallpaper is taken the number of the base; when the finger slides on the screen, the terminal obtains the index value of the current screen, if the current screen index value greater than the base, is performed modulo operation with the index value and the base current screen to the resulting residue values ​​as the new index value of the current screen, and link the new index value corresponding to wallpaper, to achieve the wallpaper to cycle; If the current screen is switched to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper, the wallpaper is displayed and complete the handover wallpaper.
  2. 2.根据权利要求1所述的方法,其特征在于,所述方法进一步包括: 所述终端获取滑动的横向坐标值X轴步长值,以所述步长值作为除数,与整数I作除法,得到的商加I,并所得之和取整,所述取整后得到的值为当前屏幕数。 2. The method according to claim 1, wherein said method further comprises: obtaining the terminal transverse coordinate values ​​of X-axis slide step value, said step value to a divider for dividing the integer I , quotient plus I, and rounding the resulting sum, the current number is taken after the entire screen is obtained.
  3. 3.根据权利要求1至2任一项所述的方法,其特征在于,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果,包括: 对当前壁纸进行alpha绘制,以使当前壁纸显示效果为从可见到不可见,同时对下一张壁纸也进行alpha绘制,以使下一张壁纸显示效果从不可见到可见; 当前屏幕已切换到下一屏幕,且用户手指已松开,则获取下一屏幕对应的壁纸,并将该壁纸进行显示,完成壁纸的切换。 1 3. The method according to any one of claims 2, characterized in that, for the current screen and the adjacent link wallpaper screen wallpaper for gradient calculation link, real-time display wallpaper gradient effect when switching, comprising: a current wallpaper for alpha drawing, so that the current display is not visible from the wallpaper can be seen, at the same time also a wallpaper alpha drawing, so that the lower a wallpaper display effect from invisible to visible; the current screen is switched to the next screen, and the user's finger has been released, the next screen is acquired corresponding to the wallpaper, the wallpaper is displayed and complete the handover wallpaper.
  4. 4.根据权利要求1所述的方法,其特征在于,所述终端对各个屏幕的壁纸尺寸进行设置,同时对所选的壁纸的名称、路径、包名信息进行保存,记录到数据库中,以记录每个屏幕当前所使用的壁纸,便于壁纸信息的读取。 4. The method according to claim 1, characterized in that the dimensions of each terminal screen wallpaper setting, while the name of the selected wallpaper, path information is stored the package name, recorded in the database, to each currently used recording screen wallpaper, the wallpaper information easy to read.
  5. 5.一种壁纸切换的终端,其特征在于,包括: 获取单元,用于检测到手指滑动响应,获取滑动的横向坐标值; 运算单元,用于根据所述滑动的横向坐标值,对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果;所述运算单元,还用于:当屏幕数量大于壁纸数量,取壁纸数量为基数;当手指在屏幕滑动时,所述终端获取到当前屏幕的下标值,如果当前屏幕的下标值大于基数,则用当前屏幕的下标值与基数进行求余运算,以所得余数值作为当前屏幕新的下标值,并链接新的下标值对应的壁纸,实现壁纸循环切换; 切换单元,用于若当前屏幕切换到下一屏幕,且检测到手指停止滑动响应时,切换为下一屏幕对应的壁纸。 A wallpaper switching terminal, characterized by comprising: an acquisition unit for detecting a response to the finger sliding, the sliding of the transverse coordinate values ​​acquired; an arithmetic unit for lateral sliding of the coordinate values ​​based on the current screen wallpaper screen adjacent links and links for wallpaper gradient operation, when the real-time display wallpaper gradient effect switch; the arithmetic unit, further configured to: when the screen is larger than the number of the number of wallpaper, the wallpaper is taken the number of base; the finger sliding when the screen when the terminal obtains the index value of the current screen, if the index value is greater than the base current screen, a remainder operation is performed with the current index value and the base of the screen, resulting in a remainder value as the new current index screen value, and link the new index value corresponding to the wallpaper, the wallpaper achieve switching cycle; switching unit for switching if the current screen to the next screen, and detects the finger stops sliding in response, the next screen is switched to the corresponding wallpaper.
  6. 6.根据权利要求5所述的终端,其特征在于,所述运算单元对当前屏幕链接的壁纸及相邻屏幕链接的壁纸进行渐变运算,实时显示壁纸切换时的渐变效果,包括: 对当前壁纸进行alpha绘制,以使当前壁纸显示效果为从可见到不可见,同时对下一张壁纸也进行alpha绘制,以使下一张壁纸显示效果从不可见到可见。 6. The terminal according to claim 5, characterized in that the arithmetic unit for the current screen and the adjacent link wallpaper screen wallpaper for gradient calculation link, real-time display wallpaper gradient effect when switching, comprising: a current wallpaper alpha for drawing, so that the current display as the wallpaper is not visible from visible, while the alpha also drawn a wallpaper, so that the lower a wallpaper from invisible to visible display effect.
  7. 7.根据权利要求5所述的终端,其特征在于,所述终端对各个屏幕的壁纸尺寸进行设置,同时对所选的壁纸的名称、路径、包名信息进行保存,记录到数据库中,以记录每个屏幕当前所使用的壁纸,便于壁纸信息的读取。 The terminal according to claim 5, characterized in that the dimensions of each terminal screen wallpaper setting, while the name of the selected wallpaper, path information is stored the package name, recorded in the database, to each currently used recording screen wallpaper, the wallpaper information easy to read.
CN 201310375959 2013-08-26 2013-08-26 A method of switching terminal and wallpaper CN103472989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310375959 CN103472989B (en) 2013-08-26 2013-08-26 A method of switching terminal and wallpaper

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310375959 CN103472989B (en) 2013-08-26 2013-08-26 A method of switching terminal and wallpaper

Publications (2)

Publication Number Publication Date
CN103472989A true CN103472989A (en) 2013-12-25
CN103472989B true CN103472989B (en) 2016-09-07

Family

ID=49797868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310375959 CN103472989B (en) 2013-08-26 2013-08-26 A method of switching terminal and wallpaper

Country Status (1)

Country Link
CN (1) CN103472989B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970419A (en) * 2014-05-09 2014-08-06 广州市久邦数码科技有限公司 Shortcut bar rotating switching method and system
CN104049845A (en) * 2014-06-23 2014-09-17 联想(北京)有限公司 Information processing method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599001A (en) * 2009-07-13 2009-12-09 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment
CN101963894A (en) * 2010-10-22 2011-02-02 华为终端有限公司 Method and device for displaying desktop wallpaper in terminal
CN102012783A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Method and terminal for controlling terminal wallpaper
CN102053867A (en) * 2009-10-28 2011-05-11 腾讯科技(深圳)有限公司 Method and device for dynamically switching pictures
US8463328B1 (en) * 2009-12-02 2013-06-11 Google Inc. Mobile electronic device wrapped in electronic display

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599001A (en) * 2009-07-13 2009-12-09 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment
CN102053867A (en) * 2009-10-28 2011-05-11 腾讯科技(深圳)有限公司 Method and device for dynamically switching pictures
US8463328B1 (en) * 2009-12-02 2013-06-11 Google Inc. Mobile electronic device wrapped in electronic display
CN102012783A (en) * 2010-09-16 2011-04-13 宇龙计算机通信科技(深圳)有限公司 Method and terminal for controlling terminal wallpaper
CN101963894A (en) * 2010-10-22 2011-02-02 华为终端有限公司 Method and device for displaying desktop wallpaper in terminal

Also Published As

Publication number Publication date Type
CN103472989A (en) 2013-12-25 application

Similar Documents

Publication Publication Date Title
US20130263047A1 (en) Methods and apparatus for providing graphical view of digital content
US20140201660A1 (en) Apparatus and method for application peel
CN101867637A (en) Method and terminal for dynamically generating standby interface
US20120206475A1 (en) Color waveform
US20130198634A1 (en) Video Object Behavior in a User Interface
CN102385473A (en) Page switching method and device
US20140075324A1 (en) Automated Graphical User-Interface Layout
CN102750217A (en) Method and device for displaying application program icons and terminal device
CN102193714A (en) Man-machine interactive mode for data grouping management of mobile terminal
CN103019578A (en) Text selection method and test selection device as well as picture interception method and picture interception device
CN103309578A (en) Web page display method and terminal
CN104023271A (en) Advertisement information pushing method and user equipment
CN102841753A (en) Display method and system and mobile terminal of application function interface in common use
CN103309616A (en) Soft keyboard display method and a terminal
US20150278164A1 (en) Method and apparatus for constructing documents
CN102938863A (en) Intelligent television icon theme replacement method and device based on Android system
CN103677498A (en) Icon sorting and displaying method and terminal equipment
CN103530018A (en) Establishment method of widget interfaces in android operating system and mobile terminal
CN104239076A (en) Interface color adjusting method and device
CN101853120A (en) Method and system for presenting control menu of application program and mobile terminal
CN103383628A (en) Method and device for changing icon
CN102800048A (en) Electronic map scaling display method
CN103559236A (en) Image displaying method and terminal
CN103257796A (en) Mobile communication equipment and switching method of theme colors of same
CN104317474A (en) Window switching method and device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model