CN107977150A - A kind of view scrolling method, device and electronic equipment - Google Patents
A kind of view scrolling method, device and electronic equipment Download PDFInfo
- Publication number
- CN107977150A CN107977150A CN201711047598.XA CN201711047598A CN107977150A CN 107977150 A CN107977150 A CN 107977150A CN 201711047598 A CN201711047598 A CN 201711047598A CN 107977150 A CN107977150 A CN 107977150A
- Authority
- CN
- China
- Prior art keywords
- area
- scrolling
- rebound
- view
- preset
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本说明书涉及计算机技术领域,尤其涉及一种视图滚动方法、装置以及电子设备。This specification relates to the field of computer technology, and in particular to a view scrolling method, device and electronic equipment.
背景技术Background technique
随着互联网技术的发展,支持HTML5(Hypertext Markup Language 5.0,超文本传输协议第5版)的页面(如:网页、应用页面等)中,往往会加载很多信息,例如:图片、文字等等,但由于终端设备的屏幕尺寸有限,故通过屏幕当前显示界面无法同时清晰地展示出页面中的所有内容。因此,用户可通过滚动操作的方式,浏览页面中的所有内容。With the development of Internet technology, pages (such as web pages, application pages, etc.) that support HTML5 (Hypertext Markup Language 5.0, Hypertext Transfer Protocol version 5) often load a lot of information, such as pictures, text, etc. However, due to the limited screen size of the terminal device, it is impossible to clearly display all the content on the page through the current display interface of the screen. Therefore, users can browse all the content on the page by scrolling.
在现有技术中,由于基于HTML5的浏览器中的视图滚动组件并不是很齐全,不能够支持所有移动终端实现视图滚动以及拖拉回弹的动画效果。因此,移动终端的视图滚动通常是借助于iscroll等第三方视图滚动组件实现的。具体来说,是通过iscroll,完全拦截用户滚动、拖放等操作,并使用CSS(Cascading Style Sheets,层叠样式表)定位移动的方式模拟基于HTML5的网页视图滚动效果。In the prior art, since the view scrolling components in HTML5-based browsers are not very complete, it cannot support all mobile terminals to realize the animation effects of view scrolling and dragging and rebounding. Therefore, the view scrolling of the mobile terminal is usually implemented by means of a third-party view scrolling component such as iscroll. Specifically, iscroll is used to completely intercept user scrolling, dragging and dropping operations, and use CSS (Cascading Style Sheets, Cascading Style Sheets) to position and move to simulate the scrolling effect of a web page view based on HTML5.
基于现有技术,需要能够更好的实现视图滚动的方案。Based on the prior art, a solution that can better implement view scrolling is needed.
发明内容Contents of the invention
本说明书实施例提供一种视图滚动方法、装置以及电子设备,用于解决以下技术问题:需要能够更好的实现视图滚动的方案。The embodiments of the present specification provide a view scrolling method, device and electronic equipment, which are used to solve the following technical problem: a solution for better realization of view scrolling is needed.
为解决上述技术问题,本说明书实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiments of this specification are implemented as follows:
本说明书实施例提供的一种视图滚动方法,包括:A view scrolling method provided by an embodiment of this specification includes:
接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域;Receive the scrolling operation of the view, and scroll the preset scrolling area based on the native scrolling component;
当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的;When the boundary line of the scrolling area is scrolled to be aligned with the boundary line of the visible area, the preset marking position of the rebound area is acquired; wherein, the boundary line of the scrolling area is determined based on the view content contained in the preset scrolling area;
基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域;Restoring the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region;
其中,所述滚动区域和所述回弹区域基于所述原生滚动组件预设得到。Wherein, the scrolling area and the rebounding area are preset based on the native scrolling component.
本说明书实施例提供的一种视图滚动装置,包括:A view scrolling device provided in an embodiment of this specification includes:
接收模块,接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域;The receiving module receives the scrolling operation of the view and scrolls the preset scrolling area based on the native scrolling component;
标记模块,在当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的;The marking module, when the boundary line of the scrolling area is scrolled to align with the boundary line of the visible area, acquires the mark position of the preset rebound area; wherein, the boundary line of the scrolling area is based on the view contained in the preset scrolling area determined by the content;
回弹模块,基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域;The rebound module restores the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region;
其中,所述滚动区域和所述回弹区域基于所述原生滚动组件预设得到。Wherein, the scrolling area and the rebounding area are preset based on the native scrolling component.
本说明书实施例提供的一种电子设备,包括:An electronic device provided in an embodiment of this specification includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域;Receive the scrolling operation of the view, and scroll the preset scrolling area based on the native scrolling component;
当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的;When the boundary line of the scrolling area is scrolled to be aligned with the boundary line of the visible area, the preset marking position of the rebound area is acquired; wherein, the boundary line of the scrolling area is determined based on the view content contained in the preset scrolling area;
基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域;Restoring the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region;
其中,所述滚动区域和所述回弹区域基于所述原生滚动组件预设得到。Wherein, the scrolling area and the rebounding area are preset based on the native scrolling component.
本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:根据支持HTML5的浏览器携带的原生scroll view滚动组件预设回弹区域和滚动区域;利用原生scroll view滚动组件实现视图滚动操作,不需要依赖第三方视图滚动组件或插件对用户的滚动操作进行拦截,可以有效提升视图滚动的性能,具有更好的流畅滚动的体验;进一步地,基于原生scroll view滚动组件,利用预设的CSS3动画渲染方式,使得回弹区域实现预设的回弹效果,可以满足用户使用移动终端时的视图下拉和视图回弹的动画体验。The above-mentioned at least one technical solution adopted in the embodiment of this specification can achieve the following beneficial effects: the rebound area and the scrolling area are preset according to the native scroll view scrolling component carried by the browser supporting HTML5; the scrolling operation of the view is realized by using the native scroll view scrolling component, There is no need to rely on third-party view scrolling components or plug-ins to intercept user scrolling operations, which can effectively improve the performance of view scrolling and provide a better smooth scrolling experience; further, based on native scroll view scrolling components, using preset CSS3 The animation rendering method enables the rebound area to achieve a preset rebound effect, which can satisfy the user's animation experience of view pull-down and view rebound when using a mobile terminal.
附图说明Description of drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in this specification. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本说明书的方案在一种实际应用场景下涉及的显示界面布局示意图;Figure 1 is a schematic diagram of the layout of the display interface involved in the solution of this specification in a practical application scenario;
图2为本说明书实施例提供的一种视图滚动方法的流程示意图;FIG. 2 is a schematic flowchart of a view scrolling method provided by an embodiment of this specification;
图3a、3b为本说明书实施例提供的一种移动终端应用场景的示意图;3a and 3b are schematic diagrams of a mobile terminal application scenario provided by the embodiment of this specification;
图4为本说明书实施例提供的一种顶部边界线对齐的示意图;Fig. 4 is a schematic diagram of top boundary line alignment provided by the embodiment of this specification;
图5为本说明书实施例提供的一种顶部边界线下拉的示意图;Fig. 5 is a schematic diagram of a pull-down top boundary line provided by the embodiment of this specification;
图6为本说明书实施例提供的一种底部边界线对齐的示意图;Fig. 6 is a schematic diagram of bottom boundary line alignment provided by the embodiment of this specification;
图7为本说明书实施例提供的一种底部边界线下拉的示意图;Fig. 7 is a schematic diagram of a bottom boundary line pull-down provided by the embodiment of this specification;
图8为本说明书实施例提供的一种视图滚动装置的结构示意图。FIG. 8 is a schematic structural diagram of a view scrolling device provided by an embodiment of this specification.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments of this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
图1为本说明书的方案在一种实际应用场景下涉及的显示界面布局的示意图。该显示界面布局包括滚动区域、回弹区域、可视区域、不可视区域。移动终端设备接收到用户的视图滚动操作后,滚动区域及其对应的显示界面发生滚动;该视图滚动操作通过支持HTML5的浏览器携带的scroll view原生滚动组件实现。FIG. 1 is a schematic diagram of a display interface layout involved in the solution of this specification in a practical application scenario. The display interface layout includes a scrolling area, a rebound area, a visible area, and an invisible area. After the mobile terminal device receives the user's view scrolling operation, the scrolling area and its corresponding display interface will scroll; the view scrolling operation is realized by the scroll view native scrolling component carried by the browser supporting HTML5.
在图1所示的界面中,能够通过显示界面显示的部分被称作可视区域。网页内容中不能够直接展示给用户的,需要通过滚动操作展示给用户的部分称作不可视区域。滚动区域根据视图内容来确定的,用来标记视图滚动操作时页面内容滚动的距离,以及判断页面是否滚动到顶部或者底部边界。回弹区域可认为是用于实现预定的回弹渲染效果的区域。In the interface shown in FIG. 1 , the part that can be displayed through the display interface is called a visible area. The part of the webpage content that cannot be directly displayed to the user but needs to be displayed to the user through a scrolling operation is called an invisible area. The scrolling area is determined according to the content of the view, and is used to mark the scrolling distance of the page content during the scrolling operation of the view, and to determine whether the page is scrolled to the top or bottom boundary. The rebound area can be regarded as an area for realizing a predetermined rebound rendering effect.
需要说明的是,在进行滚动操作的过程中,原生scroll view滚动组件无法直接通过界面直接确定显示内容的滚动距离,那么,通过定义的上述滚动区域,则可根据滚动区域的滚动距离确定显示内容的滚动距离。当滚动区域的边界线与可视区域的边界线对齐时,如果用户继续进行视图滚动操作,则回弹区域将携带滚动区域一起继续滚动;如果用户释放视图滚动操作,回弹区域携带滚动区域回弹到与可视区域边界线对齐的位置,该回弹动画采用CSS3动画回弹。It should be noted that during the scrolling operation, the native scroll view scrolling component cannot directly determine the scrolling distance of the displayed content through the interface. Then, through the above defined scrolling area, the displayed content can be determined according to the scrolling distance of the scrolling area scrolling distance. When the boundary line of the scrolling area is aligned with the boundary line of the visible area, if the user continues to scroll the view, the rebound area will continue to scroll with the scrolling area; if the user releases the scrolling operation of the view, the rebound area will carry the scrolling area back It bounces to a position aligned with the boundary line of the visible area, and the rebound animation adopts CSS3 animation rebound.
本实施例技术方案可应用于手机、平板电脑等支持HTML5的移动终端设备,为了更好的进行举例说明技术方案,下面的各个实施例中将手机作为一种实际应用场景进行说明。The technical solution of this embodiment can be applied to mobile terminal devices supporting HTML5, such as mobile phones and tablet computers. In order to better illustrate the technical solution with examples, the following embodiments use mobile phones as an actual application scenario for illustration.
基于该整体架构,下面对本说明书的方案进行详细说明。Based on the overall architecture, the solutions of this specification will be described in detail below.
本说明书实施例提供了一种视图滚动方法,该方法的流程示意图如图2所示。The embodiment of this specification provides a view scrolling method, and a schematic flowchart of the method is shown in FIG. 2 .
图2为本说明书实施例提供的一种视图滚动方法的流程示意图,该方法具体可以包括以下步骤:Fig. 2 is a schematic flowchart of a view scrolling method provided by the embodiment of this specification, and the method may specifically include the following steps:
步骤S202:接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域。Step S202: Receive a view scrolling operation, and scroll a preset scrolling area based on a native scrolling component.
在实际应用中,如果网页等页面的内容比较多时,通常无法将所有的内容通过终端屏幕的当前显示界面完全展现给用户,尤其是屏幕较小的移动终端设备。因此,需要采用视图滚动的方式将网页内容依次展示给用户。In practical applications, if there are many pages such as web pages, it is usually impossible to fully display all the content to the user through the current display interface of the terminal screen, especially for mobile terminal devices with small screens. Therefore, it is necessary to sequentially display the content of the webpage to the user by means of view scrolling.
原生滚动组件,通常可认为是HTML所能支持的滚动组件。例如,可以是基于支持HTML5的浏览器携带的scroll view滚动组件。进一步地,在本说明书一个或者多个实施例中,接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域,具体可以包括:接收视图滚动操作对应的滚动距离,基于支持HTML5的浏览器携带的scroll view滚动组件,滚动所述预设的滚动区域;其中,所述滚动区域用于确定实现滚动操作的视图范围。Native scrolling components can generally be considered as scrolling components supported by HTML. For example, it may be based on a scroll view scrolling component carried by a browser supporting HTML5. Further, in one or more embodiments of this specification, receiving the scrolling operation of the view and scrolling the preset scrolling area based on the native scrolling component may specifically include: receiving the scrolling distance corresponding to the scrolling operation of the view, based on the browser carrying HTML5 The scroll view scrolling component scrolls the preset scrolling area; wherein, the scrolling area is used to determine the view range for implementing the scrolling operation.
例如,在支持HTML5的浏览器应用于移动终端的场景下,如图3a所示,为视图未发生滚动时,网页顶部边界与可视区域顶部边界是对齐的;当采用基于HTML5的浏览器携带的原生scroll view滚动组件实现视图滚动操作,视图发生滚动后(如图3b所示),原来显示在可视区域的“第一标题”滚动到顶部的不可视区域,原来位于底部的不可视区域的“第四标题”显示在可视区域中。由于原生scroll view滚动组件具有更好的兼容性,滚动运行流程,能够有效提升用户体验。For example, in the scenario where a browser supporting HTML5 is applied to a mobile terminal, as shown in Figure 3a, when the view does not scroll, the top border of the web page is aligned with the top border of the visible area; when an HTML5-based browser is used to carry The native scroll view scrolling component implements the view scrolling operation. After the view scrolls (as shown in Figure 3b), the "first title" originally displayed in the visible area scrolls to the invisible area at the top, and the invisible area originally located at the bottom The "Fourth Title" is displayed in the viewable area. Since the native scroll view scrolling component has better compatibility, the scrolling operation process can effectively improve the user experience.
步骤S204:当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的。Step S204: When the boundary line of the scrolling area is scrolled to align with the boundary line of the visible area, obtain the preset mark position of the rebound area; wherein, the boundary line of the scrolling area is based on the view content contained in the preset scrolling area definite.
例如,当用户通过支持HTML5的浏览器浏览到网页的顶部或底部(当然,也可以包括网页的左右边界线)时,也就是滚动区域的边界线与可视区域的边界线对齐时,根据预设动画方式,滚动区域边界线可以继续滚动越出可视区域。为了能够返回到当前的位置,所以需要保存预设的回弹区域的当前标记位置。For example, when the user browses to the top or bottom of the webpage (of course, the left and right boundaries of the webpage can also be included) through a browser supporting HTML5, that is, when the boundary line of the scrolling area is aligned with the boundary line of the visible area, according to the preset Set animation mode, the boundary line of the scrolling area can continue to scroll beyond the visible area. In order to be able to return to the current position, it is necessary to save the current marker position of the preset rebound area.
需要说明的是,在本申请实施例中所说的越出可以理解为滚动区域的边界线越过可视区域的边界线,进入到可视区域的可视范围内。It should be noted that, in the embodiment of the present application, the term "going beyond" can be understood as that the boundary line of the scrolling area crosses the boundary line of the visible area and enters the visible range of the visible area.
这里所说的标记位置,可以是滚动区域的顶部或底部边界线与回弹区域顶部或底部边界线对齐时的标记位置,并且该标记位置可以是一个标记作用的点或者一条标记作用的线。例如,假设以可视区域的左上角坐标作为回弹区域的原点位置,当滚动区域顶部边界线与可视区域的顶部边界线对齐时,保存回弹区域的原点位置(即,标记位置)。The mark position mentioned here can be the mark position when the top or bottom boundary line of the scrolling area is aligned with the top or bottom boundary line of the rebound area, and the mark position can be a mark action point or a mark action line. For example, assuming that the coordinates of the upper left corner of the visible area are used as the origin position of the rebound area, when the top boundary line of the scrolling area is aligned with the top boundary line of the visible area, the origin position (ie, the mark position) of the rebound area is saved.
步骤S206:基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域。Step S206: Restoring the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region.
在实际应用中,渲染效果可以有多种,具体可根据用户需求将渲染效果设置为尺寸缩放、位置调整、模糊化、设定透明度等等。回弹区域用于辅助实现预设的渲染效果。例如,当回弹区域的位置或尺寸发生变化后,根据预设的渲染效果,使得回弹区域的下拉和回弹过程可以呈现类似橡皮筋回弹的效果。In practical applications, there are various rendering effects. Specifically, the rendering effects can be set to size scaling, position adjustment, blurring, setting transparency, etc. according to user needs. The rebound area is used to assist in achieving preset rendering effects. For example, when the position or size of the rebound region changes, according to the preset rendering effect, the pull-down and rebound process of the rebound region can present an effect similar to the rebound of a rubber band.
该回弹区域的范围大小是可以根据实际需要进行定义的,一般来说,回弹区域定义范围不大于滚动区域的范围,但是不小于可视区域的范围。The range of the rebound area can be defined according to actual needs. Generally speaking, the defined range of the rebound area is not larger than the range of the scrolling area, but not smaller than the range of the visible area.
基于上述步骤,根据支持HTML5的浏览器携带的原生scroll view滚动组件预设回弹区域和滚动区域,那么,利用原生scroll view滚动组件实现视图滚动操作,不需要依赖第三方视图滚动组件或插件对用户的滚动操作进行拦截,可以有效提升视图滚动的性能,具有更好的流畅滚动的体验;进一步地,基于原生scroll view滚动组件,并利用预设的CSS3动画渲染方式,使得回弹区域实现预设的回弹效果,可以满足用户在使用移动终端时的视图下拉和视图回弹的动画体验。Based on the above steps, the rebound area and scrolling area are preset according to the native scroll view scrolling component carried by browsers that support HTML5. Then, using the native scroll view scrolling component to realize the view scrolling operation does not need to rely on third-party view scrolling components or plug-ins. Intercepting the user's scrolling operation can effectively improve the performance of view scrolling and provide a better smooth scrolling experience; further, based on the native scroll view scrolling component, and using the preset CSS3 animation rendering method, the rebound area can realize the preset The rebound effect set can satisfy the user's animation experience of view drop-down and view rebound when using a mobile terminal.
在本说明书一个或者多个实施例中,当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置,具体可以包括:基于所述预设的滚动区域包含的视图内容,确定所述滚动区域的边界线;当所述滚动区域的边界线与所述可视区域边界线或者所述回弹区域边界线对齐时,获取并保存所述回弹区域的标记位置;其中,所述回弹区域用于确定实现回弹效果的视图范围。In one or more embodiments of the present specification, when the boundary line of the scrolling area is scrolled to be aligned with the boundary line of the visible area, obtaining the preset marker position of the rebound area may specifically include: based on the preset The view content contained in the scrolling area determines the boundary line of the scrolling area; when the boundary line of the scrolling area is aligned with the boundary line of the visible area or the boundary line of the rebound area, acquire and save the rebound The marked position of the area; wherein, the rebound area is used to determine the viewing range for realizing the rebound effect.
如前文所述可知滚动区域的范围是根据视图内容确定的,具体来说,例如可以根据完全显示视图内容时所需的像素数来确定对应的滚动区域的高度,进而可以根据滚动区域的高度确定其顶部和底部边界线的位置以及滚动过的像素数(即,滚动距离)。As mentioned above, it can be seen that the range of the scrolling area is determined according to the content of the view. Specifically, for example, the height of the corresponding scrolling area can be determined according to the number of pixels required to fully display the content of the view, and then it can be determined according to the height of the scrolling area. The position of its top and bottom border lines and the number of pixels scrolled (ie, the scroll distance).
当滚动区域的边界线与可视区域的边界线对齐时,保存预设的回弹区域的标记位置,该标记位置可以作为回弹时的参考位置。When the boundary line of the scrolling area is aligned with the boundary line of the visible area, the preset mark position of the rebound area is saved, and the mark position can be used as a reference position during rebound.
回弹区域除了可以用来确定回弹的标记位置外,还可以用于确定实现回弹效果的视图范围。例如,假设预设的回弹区域的范围与可视区域的范围大小相同,根据回弹区域与滚动区域之间的位置关系,当滚动区域滚动到顶部边界时,如图4所示,用于实现回弹效果的视图为当前可视区域对应的视图顶部到可视区域底部的部分;同理,当滚动区域滚动到底部边界时,如图6所示,用于实现回弹效果的视图为当前可视区域对应的视图底部到可视区域顶部的部分;上述两种情况下回弹区域分别对应不同的视图内容。因此,在实际应用中,用于实现回弹效果的视图内容是根据回弹区域与滚动区域的位置关系来确定的。In addition to being used to determine the marker position of the bounce, the bounce area can also be used to determine the view range to achieve the bounce effect. For example, assuming that the range of the preset rebound area is the same as the range of the visible area, according to the positional relationship between the rebound area and the scroll area, when the scroll area scrolls to the top boundary, as shown in Figure 4, for The view that realizes the rebound effect is the part from the top of the view corresponding to the current visible area to the bottom of the visible area; similarly, when the scrolling area scrolls to the bottom boundary, as shown in Figure 6, the view used to realize the rebound effect is The part from the bottom of the view corresponding to the current visible area to the top of the visible area; in the above two cases, the rebound area corresponds to different view contents. Therefore, in practical applications, the view content used to realize the rebound effect is determined according to the positional relationship between the rebound area and the scroll area.
在本说明书一个或者多个实施例中,基于所述视图滚动操作对所述回弹区域实现的渲染效果,具体可以包括:基于预设的渲染方式,根据所述视图滚动操作调整所述回弹区域的位置和/或尺寸。In one or more embodiments of this specification, the rendering effect achieved on the rebound area based on the scrolling operation of the view may specifically include: adjusting the rebound according to the scrolling operation of the view based on a preset rendering method The location and/or size of the region.
如前文所述,预设的渲染方式可以包括:尺寸缩放、位置调整、模糊化、设定透明度等。在实际应用中,还可以同时使用多种渲染方式,如:在实现位置调整(即,位移)的同时,也将回弹区域对应的视图透明度调整为50%透明。在实际应用中用户可以根据自己的需求进行选择,这里所列举的渲染方式只是进行举例说明,并不作为对本申请的限制。As mentioned above, the preset rendering methods may include: size scaling, position adjustment, blurring, setting transparency, etc. In practical applications, multiple rendering methods can also be used at the same time, for example, while implementing position adjustment (ie, displacement), the transparency of the view corresponding to the rebound area is also adjusted to 50% transparency. In practical applications, users can choose according to their own needs, and the rendering methods listed here are just examples, and are not intended to limit this application.
在本说明书一个或者多个实施例中,所述预设的渲染方式包括预设的CSS3动画方式;In one or more embodiments of this specification, the preset rendering method includes a preset CSS3 animation method;
基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置还原所述回弹区域,具体可以包括:Restoring the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region may specifically include:
当所述预设的渲染方式实现的效果为调整所述回弹区域的位置时,根据结束所述视图滚动操作,或者所述回弹区域的移动距离达到预设的偏移量,所述回弹区域按照所述预设的CSS3动画方式还原;When the effect achieved by the preset rendering method is to adjust the position of the rebound area, according to the end of the view scrolling operation, or the movement distance of the rebound area reaches the preset offset, the rebound The popup area is restored according to the preset CSS3 animation method;
当所述预设的渲染方式实现的效果为调整所述回弹区域的尺寸时,根据结束所述视图滚动操作,或者所述回弹区域的尺寸放大倍数达到预设的放大阈值,所述回弹区域按照所述预设的CSS3动画方式还原;When the effect achieved by the preset rendering method is to adjust the size of the rebound area, according to the end of the scrolling operation of the view, or the magnification factor of the size of the rebound area reaches the preset magnification threshold, the rebound The popup area is restored according to the preset CSS3 animation method;
根据所述滚动区域与所述回弹区域之间的对应关系,所述回弹区域带动所述滚动区域还原到所述标记位置;According to the corresponding relationship between the rolling area and the rebound area, the rebound area drives the scroll area to return to the marked position;
其中,所述标记位置包括:所述回弹区域的原点位置、基准线位置。Wherein, the mark position includes: the origin position and the reference line position of the rebound area.
需要说明的是,在实际应用中,通常回弹区域与滚动区域之间具有继承关系,具体来说,滚动区域能够继承回弹区域的数据信息,该数据信息例如可以包括:标记位置或者坐标信息等等。It should be noted that, in practical applications, there is usually an inheritance relationship between the rebound area and the scroll area. Specifically, the scroll area can inherit the data information of the rebound area, and the data information may include, for example: marker position or coordinate information and many more.
为了便于理解,下面以预设的渲染方式为调整回弹区域位置为例进行说明,图4为本说明书实施例提供的一种顶部边界线对齐的示意图,图5为对应于图4的一种顶部边界线下拉的示意图;图6为本说明书实施例提供的一种底部边界线对齐的示意图,图7为对应于图6的一种底部边界线下拉的示意图。当滚动区域的边界线滚动到与可视区域的边界线对齐的位置后,若该回弹区域继续基于预设CSS3动画进行滑动,如图5和图7所示,由于回弹区域与滚动区域之间存在继承关系,回弹区域进行滑动的同时,会携带滚动区域一起进行滑动。当回弹区域根据保存的标记位置进行回弹还原时,滚动区域再根据继承的回弹区域的标记位置进行还原,还原到如图4和图6所示的状态。这样,呈现给用户的效果是一直在对滚动区域对应的视图内容进行滚动操作和回弹操作,能够提升用户视觉体验效果。For ease of understanding, the preset rendering method is to adjust the position of the rebound area as an example. Figure 4 is a schematic diagram of top boundary line alignment provided by the embodiment of this specification. A schematic diagram of the pull-down top boundary line; FIG. 6 is a schematic diagram of a bottom boundary line alignment provided by the embodiment of this specification, and FIG. 7 is a schematic diagram of a bottom boundary line pull-down corresponding to FIG. 6 . When the boundary line of the scrolling area is scrolled to a position aligned with the boundary line of the visible area, if the rebound area continues to slide based on the preset CSS3 animation, as shown in Figure 5 and Figure 7, due to the rebound area and the scroll area There is an inheritance relationship between them. When the rebound area slides, it will slide with the scroll area. When the rebound region is restored according to the saved mark position, the scrolling region is restored according to the inherited mark position of the rebound region, and the state shown in Fig. 4 and Fig. 6 is restored. In this way, the effect presented to the user is that the scrolling operation and the rebounding operation are always performed on the view content corresponding to the scrolling area, which can improve the user's visual experience.
在实际应用中,回弹区域进行回弹的条件可有多种。在一种实施例中,当用户发现已经滑动到所浏览网页的边界线(即,滚动区域边界线)后,用户会主动释放该视图滚动操作,根据预设的CSS3动画方式,回弹区域携带滚动区域一起恢复到原来保存的标记位置。In practical applications, there may be various conditions for rebounding in the rebounding region. In one embodiment, when the user finds that he has slid to the borderline of the browsed webpage (that is, the borderline of the scrolling area), the user will actively release the scrolling operation of the view, and according to the preset CSS3 animation method, the rebound area carries The scroll area is restored to the original saved marker position together.
在另一种实施例中,假设设定了释放回弹区域的偏移量,当用户持续滑动回弹区域超过该设定的偏移量值后,回弹区域会自动携带滚动区域一起还原到标记位置。In another embodiment, assuming that the offset for releasing the rebound area is set, when the user continues to slide the rebound area beyond the set offset value, the rebound area will automatically restore to the Mark the location.
需要说明的是,标记位置通常可以是回弹区域的某一个点,如左上角坐标点;当然,也可以将回弹区域的顶部边界线或者底部边界线作为基准线的位置,同样可以起到标记位置的作用。It should be noted that the position of the mark can usually be a certain point in the rebound area, such as the coordinate point in the upper left corner; of course, the top boundary line or bottom boundary line of the rebound area can also be used as the position of the baseline, which can also play a role The role of the marker position.
在本说明书一个或者多个实施例中,当所述滚动区域边界线未滚动越出所述可视区域边界线时,所述回弹区域相对于所述可视区域不发生移动,所述滚动区域相对于所述回弹区域和所述可视区域发生移动。In one or more embodiments of this specification, when the boundary line of the scrolling area does not scroll beyond the boundary line of the visible area, the rebound area does not move relative to the visible area, and the scrolling area A region moves relative to the rebound region and the viewable region.
在实际应用中,滚动区域通常大于可视区域和回弹区域,回弹区域通常与可视区域大小相同。在进行视图滚动操作时,如果还没有滚动到滚动区域的顶部、底部等边界线,则只有滚动区域根据用户的视图滚动操作进行滚动,回弹区域与可视区域不发生移动。如果滚动到滚动区域的边界线后,保存回弹区域的标记位置,并且根据当前滚动区域与回弹区域之间的对应关系(如,继承关系),回弹区域携带滚动区域一起继续滚动,此时,回弹区域相对于滚动区域不发生移动,回弹区域相对于可视区域发生移动。In practical applications, the scrolling area is usually larger than the visible area and the rebound area, and the rebound area is usually the same size as the visible area. When scrolling the view, if the top and bottom boundaries of the scrolling area have not been scrolled, only the scrolling area will scroll according to the user's view scrolling operation, and the rebound area and the visible area will not move. If after scrolling to the boundary line of the scrolling area, save the mark position of the rebound area, and according to the corresponding relationship between the current scrolling area and the rebound area (for example, the inheritance relationship), the rebound area carries the scroll area to continue scrolling, this , the rebound area does not move relative to the scrolling area, but the rebound area moves relative to the visible area.
根据以上所述实施例可知,基于支持HTML5的浏览器携带的原生scrollview滚动组件预设回弹区域和滚动区域;利用原生scroll view滚动组件实现视图滚动操作,不需要依赖第三方视图滚动组件或插件对用户的滚动操作进行拦截,可以有效提升视图滚动的性能,具有更好的流畅滚动的体验;进一步地,基于原生scroll view滚动组件,利用预设的CSS3动画渲染方式,使得回弹区域实现预设的回弹效果,可以满足用户使用移动终端时的视图下拉和视图回弹的动画体验。According to the above-mentioned embodiments, it can be seen that the rebound area and scrolling area are preset based on the native scrollview scrolling component carried by browsers supporting HTML5; the view scrolling operation is realized by using the native scroll view scrolling component, without relying on third-party view scrolling components or plug-ins Intercepting the user's scrolling operation can effectively improve the performance of view scrolling and provide a better smooth scrolling experience; further, based on the native scroll view scrolling component, using the preset CSS3 animation rendering method, the rebound area can realize the preset The rebound effect set can satisfy the user's animation experience of view drop-down and view rebound when using a mobile terminal.
基于同样的思路,本说明书实施例还提供一种视图滚动装置,如图8所示,包括:Based on the same idea, the embodiment of this specification also provides a view scrolling device, as shown in FIG. 8 , including:
接收模块801,接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域;The receiving module 801 receives a view scrolling operation, and scrolls a preset scrolling area based on a native scrolling component;
标记模块802,在当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的;The marking module 802, when the boundary line of the scrolling area is scrolled to align with the boundary line of the visible area, acquires the marking position of the preset rebound area; wherein, the boundary line of the scrolling area is based on the preset scrolling area contained The view content is determined;
回弹模块803,基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域;The rebound module 803 restores the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region;
其中,所述滚动区域和所述回弹区域基于所述原生滚动组件预设得到。Wherein, the scrolling area and the rebounding area are preset based on the native scrolling component.
在本说明书一个或者多个实施例中,所述原生滚动组件包括scroll view滚动组件;In one or more embodiments of this specification, the native scrolling component includes a scroll view scrolling component;
接收模块801,接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域,具体包括:The receiving module 801 receives the view scrolling operation, and scrolls the preset scrolling area based on the native scrolling component, specifically including:
接收模块801,接收视图滚动操作对应的滚动距离,基于支持HTML5的浏览器携带的scroll view滚动组件,滚动所述预设的滚动区域;The receiving module 801 receives the scrolling distance corresponding to the view scrolling operation, and scrolls the preset scrolling area based on the scroll view scrolling component carried by the browser supporting HTML5;
其中,所述滚动区域用于确定实现滚动操作的视图范围。Wherein, the scrolling area is used to determine a view range for implementing a scrolling operation.
在本说明书一个或者多个实施例中,标记模块802,在当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置,具体包括:In one or more embodiments of this specification, the marking module 802 acquires the preset marking position of the rebound area when the boundary line of the scrolling area is scrolled to align with the boundary line of the visible area, specifically including:
基于所述预设的滚动区域包含的视图内容,确定所述滚动区域的边界线;Determine the boundary line of the scrolling area based on the view content included in the preset scrolling area;
标记模块802,在当所述滚动区域的边界线与所述可视区域边界线或者所述回弹区域边界线对齐时,获取并保存所述回弹区域的标记位置;The marking module 802, when the boundary line of the scrolling area is aligned with the boundary line of the visible area or the boundary line of the rebound area, acquire and save the marking position of the rebound area;
其中,所述回弹区域用于确定实现回弹效果的视图范围。Wherein, the rebound area is used to determine a view range for realizing the rebound effect.
在本说明书一个或者多个实施例中,所述装置还包括渲染模块804,基于所述视图滚动操作对所述回弹区域实现的渲染效果,具体包括:In one or more embodiments of this specification, the device further includes a rendering module 804, which implements a rendering effect on the rebound area based on the scrolling operation of the view, specifically including:
基于预设的渲染方式,所述渲染模块804根据所述视图滚动操作调整所述回弹区域的位置和/或尺寸。Based on a preset rendering manner, the rendering module 804 adjusts the position and/or size of the rebound area according to the scrolling operation of the view.
在本说明书一个或者多个实施例中,所述预设的渲染方式为预设的CSS3动画方式;In one or more embodiments of this specification, the preset rendering method is a preset CSS3 animation method;
回弹模块803,基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置还原所述回弹区域,具体包括:The rebound module 803 restores the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region, specifically including:
当所述预设的渲染方式实现的效果为调整所述回弹区域的位置时,根据结束所述视图滚动操作,或者所述回弹区域的移动距离达到预设的偏移量,所述回弹区域按照所述预设的CSS3动画方式还原;When the effect achieved by the preset rendering method is to adjust the position of the rebound area, according to the end of the view scrolling operation, or the movement distance of the rebound area reaches the preset offset, the rebound The popup area is restored according to the preset CSS3 animation method;
当所述预设的渲染方式实现的效果为调整所述回弹区域的尺寸时,根据结束所述视图滚动操作,或者所述回弹区域的尺寸放大倍数达到预设的放大阈值,所述回弹区域按照所述预设的CSS3动画方式还原;When the effect achieved by the preset rendering method is to adjust the size of the rebound area, according to the end of the scrolling operation of the view, or the magnification factor of the size of the rebound area reaches the preset magnification threshold, the rebound The popup area is restored according to the preset CSS3 animation method;
根据所述滚动区域与所述回弹区域之间的对应关系,所述回弹区域带动所述滚动区域还原到所述标记位置;According to the corresponding relationship between the rolling area and the rebound area, the rebound area drives the scroll area to return to the marked position;
其中,所述标记位置包括:所述回弹区域的原点位置、基准线位置。Wherein, the mark position includes: the origin position and the reference line position of the rebound area.
在本说明书一个或者多个实施例中,所述装置还包括:In one or more embodiments of this specification, the device further includes:
当所述滚动区域边界线未滚动越出所述可视区域边界线时,所述回弹区域相对于所述可视区域不发生移动,所述滚动区域相对于所述回弹区域和所述可视区域发生移动。When the boundary line of the scrolling area does not scroll beyond the boundary line of the visible area, the rebound area does not move relative to the visible area, and the scroll area does not move relative to the rebound area and the The visible area moves.
根据支持HTML5的浏览器携带的原生scroll view滚动组件预设回弹区域和滚动区域;利用原生scroll view滚动组件实现视图滚动操作,不需要依赖第三方视图滚动组件或插件对用户的滚动操作进行拦截,可以有效提升视图滚动的性能,具有更好的流畅滚动的体验;进一步地,基于原生scroll view滚动组件,利用预设的CSS3动画方式,使得回弹区域实现预设的回弹效果,可以满足用户使用移动终端时的视图下拉和视图回弹的动画体验。The rebound area and scrolling area are preset according to the native scroll view scrolling component carried by browsers that support HTML5; the native scroll view scrolling component is used to realize the view scrolling operation, and there is no need to rely on third-party view scrolling components or plug-ins to intercept the user's scrolling operation , can effectively improve the scrolling performance of the view, and have a better smooth scrolling experience; further, based on the native scroll view scrolling component, using the preset CSS3 animation method, the rebound area can achieve the preset rebound effect, which can satisfy The animation experience of view drop-down and view bounce when users use mobile terminals.
基于同样的思路,本说明书实施例还提供一种电子设备,包括:Based on the same idea, the embodiment of this specification also provides an electronic device, including:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收视图滚动操作,基于原生滚动组件滚动预设的滚动区域;Receive the scrolling operation of the view, and scroll the preset scrolling area based on the native scrolling component;
当所述滚动区域边界线滚动到与可视区域边界线对齐时,获取预设的回弹区域的标记位置;其中,所述滚动区域边界线基于预设的滚动区域包含的视图内容确定的;When the boundary line of the scrolling area is scrolled to be aligned with the boundary line of the visible area, the preset marking position of the rebound area is acquired; wherein, the boundary line of the scrolling area is determined based on the view content contained in the preset scrolling area;
基于所述视图滚动操作对所述回弹区域实现的渲染效果,根据所述回弹区域对应的所述标记位置,还原所述回弹区域;Restoring the rebound region according to the marker position corresponding to the rebound region based on the rendering effect of the view scroll operation on the rebound region;
其中,所述滚动区域和所述回弹区域基于所述原生滚动组件预设得到。Wherein, the scrolling area and the rebounding area are preset based on the native scrolling component.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, and non-volatile computer storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiments.
本说明书实施例提供的装置、电子设备、非易失性计算机存储介质与方法是对应的,因此,装置、电子设备、非易失性计算机存储介质也具有与对应方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述对应装置、电子设备、非易失性计算机存储介质的有益技术效果。The device, electronic equipment, and non-volatile computer storage medium provided in the embodiments of this specification correspond to the method. Therefore, the device, electronic equipment, and non-volatile computer storage medium also have beneficial technical effects similar to those of the corresponding method, because The beneficial technical effects of the method have been described in detail above, therefore, the beneficial technical effects of the corresponding device, electronic equipment, and non-volatile computer storage medium will not be repeated here.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished as an improvement in hardware (for example, improvements in circuit structures such as diodes, transistors, and switches) or improvements in software (improvement in method flow). However, with the development of technology, the improvement of many current method flows can be regarded as the direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit, and its logic function is determined by programming the device by a user. It is programmed by the designer to "integrate" a digital system on a PLD, instead of asking a chip manufacturer to design and make a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips by hand, this kind of programming is mostly realized by "logic compiler (logic compiler)" software, which is similar to the software compiler used when writing programs. The original code of the computer must also be written in a specific programming language, which is called a hardware description language (Hardware Description Language, HDL), and there is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., currently the most commonly used is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logical programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit for realizing the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable way, for example the controller may take the form of a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro)processor , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers, and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art also know that, in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as structures within the hardware component. Or even, means for realizing various functions can be regarded as a structure within both a software module realizing a method and a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Combinations of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书一个或多个实施例时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in one or more software and/or hardware.
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统、或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of this specification may be provided as methods, systems, or computer program products. Accordingly, the embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the specification. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The description may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.
以上所述仅为本说明书实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present specification, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims (13)
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047598.XA CN107977150A (en) | 2017-10-31 | 2017-10-31 | A kind of view scrolling method, device and electronic equipment |
PCT/CN2018/099984 WO2019085580A1 (en) | 2017-10-31 | 2018-08-10 | View scrolling method and apparatus, and electronic device |
TW107130314A TW201918854A (en) | 2017-10-31 | 2018-08-30 | View scrolling method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047598.XA CN107977150A (en) | 2017-10-31 | 2017-10-31 | A kind of view scrolling method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107977150A true CN107977150A (en) | 2018-05-01 |
Family
ID=62012954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711047598.XA Pending CN107977150A (en) | 2017-10-31 | 2017-10-31 | A kind of view scrolling method, device and electronic equipment |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN107977150A (en) |
TW (1) | TW201918854A (en) |
WO (1) | WO2019085580A1 (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062653A (en) * | 2018-08-20 | 2018-12-21 | 珠海市筑巢科技有限公司 | Long graph text information display methods, computer installation and computer readable storage medium |
WO2019085580A1 (en) * | 2017-10-31 | 2019-05-09 | 阿里巴巴集团控股有限公司 | View scrolling method and apparatus, and electronic device |
CN109976609A (en) * | 2019-03-18 | 2019-07-05 | 努比亚技术有限公司 | Slide response method, wearable device and computer readable storage medium |
CN110099162A (en) * | 2019-03-18 | 2019-08-06 | 努比亚技术有限公司 | A kind of page display processing method and wearable device |
CN111221600A (en) * | 2018-11-26 | 2020-06-02 | 福建省天奕网络科技有限公司 | Management method and terminal for Layaair engine rolling |
CN111506242A (en) * | 2020-05-28 | 2020-08-07 | 支付宝(杭州)信息技术有限公司 | Method and device for achieving elastic rolling effect of page view and electronic equipment |
CN111782097A (en) * | 2020-06-30 | 2020-10-16 | 北京达佳互联信息技术有限公司 | Image resource switching method and device |
CN112882636A (en) * | 2021-02-18 | 2021-06-01 | 上海哔哩哔哩科技有限公司 | Picture processing method and device |
CN113157166A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method for realizing self-adaptive note taking by intelligent terminal, storage medium and electronic equipment |
CN113190284A (en) * | 2021-04-15 | 2021-07-30 | 北京沃东天骏信息技术有限公司 | View rendering method and device, electronic equipment and computer readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101578578A (en) * | 2007-01-07 | 2009-11-11 | 苹果公司 | Application programming interface for scrolling operations |
CN102144213A (en) * | 2008-08-29 | 2011-08-03 | 微软公司 | Scrollable area multi-scale viewing |
CN102597944A (en) * | 2009-10-16 | 2012-07-18 | 高通股份有限公司 | Content boundary signaling techniques |
CN103777868A (en) * | 2012-10-23 | 2014-05-07 | 福建星网视易信息系统有限公司 | Screen sliding method using page as unit and having background loading function and cache logic function |
CN105637464A (en) * | 2013-09-10 | 2016-06-01 | 谷歌公司 | Scroll end effects for websites and content |
CN106708478A (en) * | 2015-07-21 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Scroll view display method and device |
CN107219983A (en) * | 2017-06-20 | 2017-09-29 | 武汉斗鱼网络科技有限公司 | List display method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977150A (en) * | 2017-10-31 | 2018-05-01 | 阿里巴巴集团控股有限公司 | A kind of view scrolling method, device and electronic equipment |
-
2017
- 2017-10-31 CN CN201711047598.XA patent/CN107977150A/en active Pending
-
2018
- 2018-08-10 WO PCT/CN2018/099984 patent/WO2019085580A1/en active Application Filing
- 2018-08-30 TW TW107130314A patent/TW201918854A/en unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101578578A (en) * | 2007-01-07 | 2009-11-11 | 苹果公司 | Application programming interface for scrolling operations |
CN103345351A (en) * | 2007-01-07 | 2013-10-09 | 苹果公司 | Application programming interfaces for scrolling operations |
CN102144213A (en) * | 2008-08-29 | 2011-08-03 | 微软公司 | Scrollable area multi-scale viewing |
CN102597944A (en) * | 2009-10-16 | 2012-07-18 | 高通股份有限公司 | Content boundary signaling techniques |
CN103777868A (en) * | 2012-10-23 | 2014-05-07 | 福建星网视易信息系统有限公司 | Screen sliding method using page as unit and having background loading function and cache logic function |
CN105637464A (en) * | 2013-09-10 | 2016-06-01 | 谷歌公司 | Scroll end effects for websites and content |
CN106708478A (en) * | 2015-07-21 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Scroll view display method and device |
CN107219983A (en) * | 2017-06-20 | 2017-09-29 | 武汉斗鱼网络科技有限公司 | List display method and device |
Non-Patent Citations (1)
Title |
---|
ANONYMITY: "Scroll To Top Animation Effect|HTML5&CSS3 Tricks in Hindi", 《YOUTUBE》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019085580A1 (en) * | 2017-10-31 | 2019-05-09 | 阿里巴巴集团控股有限公司 | View scrolling method and apparatus, and electronic device |
CN109062653A (en) * | 2018-08-20 | 2018-12-21 | 珠海市筑巢科技有限公司 | Long graph text information display methods, computer installation and computer readable storage medium |
CN111221600B (en) * | 2018-11-26 | 2023-05-23 | 福建省天奕网络科技有限公司 | Layaair engine rolling management method and terminal |
CN111221600A (en) * | 2018-11-26 | 2020-06-02 | 福建省天奕网络科技有限公司 | Management method and terminal for Layaair engine rolling |
CN109976609A (en) * | 2019-03-18 | 2019-07-05 | 努比亚技术有限公司 | Slide response method, wearable device and computer readable storage medium |
CN110099162A (en) * | 2019-03-18 | 2019-08-06 | 努比亚技术有限公司 | A kind of page display processing method and wearable device |
CN111506242A (en) * | 2020-05-28 | 2020-08-07 | 支付宝(杭州)信息技术有限公司 | Method and device for achieving elastic rolling effect of page view and electronic equipment |
CN111782097A (en) * | 2020-06-30 | 2020-10-16 | 北京达佳互联信息技术有限公司 | Image resource switching method and device |
CN112882636B (en) * | 2021-02-18 | 2022-05-17 | 上海哔哩哔哩科技有限公司 | Picture processing method and device |
CN112882636A (en) * | 2021-02-18 | 2021-06-01 | 上海哔哩哔哩科技有限公司 | Picture processing method and device |
CN113190284A (en) * | 2021-04-15 | 2021-07-30 | 北京沃东天骏信息技术有限公司 | View rendering method and device, electronic equipment and computer readable medium |
CN113190284B (en) * | 2021-04-15 | 2025-05-23 | 北京沃东天骏信息技术有限公司 | View rendering method, device, electronic device and computer readable medium |
CN113157166A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method for realizing self-adaptive note taking by intelligent terminal, storage medium and electronic equipment |
CN113157166B (en) * | 2021-05-20 | 2022-03-29 | 读书郎教育科技有限公司 | A method, storage medium and electronic device for realizing self-adaptive note taking by an intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2019085580A1 (en) | 2019-05-09 |
TW201918854A (en) | 2019-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107977150A (en) | A kind of view scrolling method, device and electronic equipment | |
CN108228050B (en) | A picture zooming method, device and electronic device | |
CN103597446B (en) | Method and system for context switching of mobile browser | |
CN107368511B (en) | Information display method and device | |
CN105745612B (en) | For showing the readjustment size technology of content | |
CN110647704B (en) | Page updating method, device and equipment | |
CN110851058B (en) | Page virtual scrolling method, device and equipment | |
CN106484080B (en) | Display interface display method, device and equipment | |
CN105786417B (en) | A kind of dynamic display method of static images, device and equipment | |
WO2014094585A1 (en) | Method and device for playing multimedia in browser | |
CN107402962A (en) | Page display method and device | |
WO2019085653A1 (en) | Page information display method, device, and client | |
US20170249076A1 (en) | User interfaces for presenting content items to users | |
US20170169599A1 (en) | Methods and electronic devices for displaying picture | |
WO2019052412A1 (en) | Method, device, and client for watermark-adding processing | |
CN110262749B (en) | Webpage operation method, device, container, equipment and medium | |
CN108446152B (en) | Page display method and device | |
CN111061978B (en) | Page jump method and device | |
US20230123119A1 (en) | Terminal, control method therefor, and recording medium in which program for implementing method is recorded | |
HK1253994A1 (en) | View scrolling method and device, and electronic equipment | |
CN114296590A (en) | Page navigation method, device, equipment and storage medium applied to visual terminal | |
KR20180038434A (en) | Method, system and non-transitory computer-readable recording medium for controlling scroll based on context information | |
CN116975485A (en) | Lazy loading method, lazy loading device, lazy loading storage medium and lazy loading equipment for page blocks | |
KR102102889B1 (en) | Terminal and method for controlling thereof | |
HK1255659B (en) | Picture zooming method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1253994 Country of ref document: HK |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180501 |
|
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1253994 Country of ref document: HK |