[go: up one dir, main page]

CN112148286A - Scroll view processing method, device, device and storage medium - Google Patents

Scroll view processing method, device, device and storage medium Download PDF

Info

Publication number
CN112148286A
CN112148286A CN201910580299.5A CN201910580299A CN112148286A CN 112148286 A CN112148286 A CN 112148286A CN 201910580299 A CN201910580299 A CN 201910580299A CN 112148286 A CN112148286 A CN 112148286A
Authority
CN
China
Prior art keywords
view
content
coordinates
scroll
offset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910580299.5A
Other languages
Chinese (zh)
Other versions
CN112148286B (en
Inventor
庞超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910580299.5A priority Critical patent/CN112148286B/en
Publication of CN112148286A publication Critical patent/CN112148286A/en
Application granted granted Critical
Publication of CN112148286B publication Critical patent/CN112148286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供一种滚动视图的处理方法、装置、设备和存储介质,该方法包括:获取需要通过滚动视图显示的待显示内容所需要的总高度,根据总高度生成空白视图,并将空白视图放入滚动视图中,获取滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量,根据空白视图和偏移量,获取滚动后的内容视图坐标,获取内容视图坐标对应的显示页面进行显示,待显示内容包括显示页面上的内容,通过中间空白视图的中间效果,通过动态调整内容视图的位置,同时使用滚动视图和内容视图的联动,并保持内容视图本身的内存复用效果,保持手机应用滚动的流畅的和减少内存占用。

Figure 201910580299

The present invention provides a method, device, device and storage medium for processing a scroll view. The method includes: acquiring the total height of content to be displayed that needs to be displayed through the scroll view, generating a blank view according to the total height, and placing the blank view on the Enter the scroll view, obtain the offset of the scroll view from the start of scrolling to the end of the scroll according to the user's operation on the touch screen, obtain the scrolled content view coordinates according to the blank view and the offset, and obtain the display page corresponding to the content view coordinates. Display, the content to be displayed includes the content on the display page, through the intermediate effect of the middle blank view, by dynamically adjusting the position of the content view, using the linkage between the scroll view and the content view, and maintaining the memory reuse effect of the content view itself, keeping Mobile apps scroll smoothly and reduce memory usage.

Figure 201910580299

Description

滚动视图的处理方法、装置、设备和存储介质Scroll view processing method, device, device and storage medium

技术领域technical field

本发明涉及页面开发技术领域,尤其涉及一种滚动视图的处理方法、装置、设备和存储介质。The present invention relates to the technical field of page development, and in particular, to a scroll view processing method, apparatus, device and storage medium.

背景技术Background technique

随着图形用户界面的兴起,用户界面在软件系统中所占的比例也越来越大,用户使用手机、平板电脑等智能终端进行网页,应用程序使用也越来越普及。在终端的应用程序实际开发过程中,会遇到需要将一个网页或是列表嵌入到已有的滚动视图中,网页(WebView)或是列表(TableView)需要滚动才能显示所有的内容,因为现在的很多智能终端都是触摸屏,滚动事件只能响应一个,多个滚动视图就会造成手势冲突,影响用户体验。With the rise of the graphical user interface, the proportion of the user interface in the software system is also increasing. Users use smart terminals such as mobile phones and tablet computers to conduct web pages, and the use of applications is becoming more and more popular. In the actual development process of the terminal application, it is necessary to embed a web page or a list into an existing scroll view, and the web page (WebView) or list (TableView) needs to be scrolled to display all the content, because the current Many smart terminals are touch screens, and only one scroll event can be responded to. Multiple scroll views will cause gesture conflicts and affect user experience.

但是,目前业界实现此需求的做法有两种:第一种,在滚动到网页(WebView)或是列表(TableView)位置时,强制停止滚动视图(ScrollView)的滚动,进行手势切换,切换后可滚动网页或列表。第二种,将整个网页(WebView)或是列表(TableView)整个铺开,拉伸至将所有内容全部显示的高度,再放入滚动视图(ScrollView)。However, there are currently two ways to achieve this requirement in the industry: the first one, when scrolling to a web page (WebView) or a list (TableView) position, forcibly stop the scrolling of the scroll view (ScrollView), perform gesture switching, after switching, you can Scroll a web page or list. The second is to spread the entire web page (WebView) or list (TableView), stretch it to the height where all the content is displayed, and then put it into the scroll view (ScrollView).

然而,现有技术的方案容易给用户造成卡顿感,对内存占用较多,内容过多严重会导致内存溢出,应用闪退等问题。However, the solutions in the prior art are likely to cause a stuck feeling to the user, occupy a lot of memory, and if too much content is serious, problems such as memory overflow and application flashback may be caused.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种滚动视图的处理方法、装置、设备和存储介质,以解决现有技术中容易给用户造成卡顿感,对内存占用较多,内容过多严重会导致内存溢出,应用闪退的问题。Embodiments of the present invention provide a scroll view processing method, device, device, and storage medium, so as to solve the problem that in the prior art, it is easy to cause a stuck feeling to users, occupy a lot of memory, and excessive content may cause memory overflow. Flashback problem.

第一方面,本发明实施例提供一种滚动视图的处理方法,应用于电子设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for processing a scroll view, which is applied to an electronic device, and the method includes:

获取需要通过滚动视图显示的待显示内容所需要的总高度;Get the total height of the content to be displayed that needs to be displayed through the scroll view;

根据所述总高度生成空白视图,并将所述空白视图放入所述滚动视图中;generate a blank view according to the total height, and put the blank view into the scroll view;

获取所述滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量;Obtain the offset of the scroll view from scrolling to the end of scrolling according to the user's operation on the touch screen;

根据所述空白视图和所述偏移量,获取滚动后的内容视图坐标;Obtain the scrolled content view coordinates according to the blank view and the offset;

获取所述内容视图坐标对应的显示页面进行显示,所述待显示内容包括所述显示页面上的内容。The display page corresponding to the coordinates of the content view is acquired and displayed, and the content to be displayed includes the content on the display page.

在一种可能的设计中,所述显示页面包括:In one possible design, the display page includes:

与所述内容视图坐标对应的位置的一个页面;a page at a location corresponding to the content view coordinates;

或者,or,

与所述内容视图坐标对应的位置的一个页面以及之前的所有页面One page and all previous pages at the location corresponding to the content view coordinates

在一种可能的设计中,获取所述内容视图坐标对应的显示页面,包括:In a possible design, acquiring the display page corresponding to the coordinates of the content view includes:

若所述偏移量与所述电子设备的屏幕高度之和大于或等于所述内容视图坐标,则根据所述内容视图坐标获取对应的内容视图位置;If the sum of the offset and the screen height of the electronic device is greater than or equal to the content view coordinates, obtain the corresponding content view position according to the content view coordinates;

根据所述内容视图位置从所述待显示内容中获取所述显示页面。The display page is acquired from the content to be displayed according to the content view position.

在一种可能的设计中,所述内容视图位置包括内容视图坐标和/或内容视图偏移量。In one possible design, the content view position includes content view coordinates and/or content view offsets.

在一种可能的设计中,所述根据所述内容视图坐标获取对应的内容视图位置,包括:In a possible design, the obtaining the corresponding content view position according to the content view coordinates includes:

根据所述偏移量和滚动后的所述空白视图的楼层的坐标获取所述内容视图偏移量;Obtain the content view offset according to the offset and the coordinates of the scrolled floor of the blank view;

和/或,and / or,

根据所述偏移量和滚动后的所述空白视图的中间视图的坐标获取所述内容视图坐标。The content view coordinates are obtained according to the offset and the coordinates of the scrolled middle view of the blank view.

第二方面,本发明实施例提供一种滚动视图的处理装置,包括:In a second aspect, an embodiment of the present invention provides an apparatus for processing a scroll view, including:

获取模块,用于获取需要通过滚动视图显示的待显示内容所需要的总高度;The acquisition module is used to acquire the total height of the content to be displayed that needs to be displayed through the scroll view;

处理模块,用于根据所述总高度生成空白视图,并将所述空白视图放入所述滚动视图中;a processing module, configured to generate a blank view according to the total height, and put the blank view into the scroll view;

所述处理模块还用于获取所述滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量;The processing module is further configured to obtain the offset of the scroll view from scrolling to the end of scrolling according to the user's operation on the touch screen;

所述处理模块还用于根据所述空白视图和所述偏移量,获取滚动后的内容视图坐标;The processing module is further configured to obtain the scrolled content view coordinates according to the blank view and the offset;

显示模块,用于获取所述内容视图坐标对应的显示页面进行显示,所述待显示内容包括所述显示页面上的内容。The display module is configured to acquire and display the display page corresponding to the coordinates of the content view, and the content to be displayed includes the content on the display page.

在一种可能的设计中,所述显示页面包括:In one possible design, the display page includes:

与所述内容视图坐标对应的位置的一个页面;a page at a location corresponding to the content view coordinates;

或者,or,

与所述内容视图坐标对应的位置的一个页面以及之前的所有页面One page and all previous pages at the location corresponding to the content view coordinates

在一种可能的设计中,所述处理模块具体用于:若所述偏移量与所述电子设备的屏幕高度之和大于或等于所述内容视图坐标,则根据所述内容视图坐标获取对应的内容视图位置;In a possible design, the processing module is specifically configured to: if the sum of the offset and the screen height of the electronic device is greater than or equal to the content view coordinates, obtain the corresponding content view coordinates according to the content view coordinates The content view position of ;

根据所述内容视图位置从所述待显示内容中获取所述显示页面。The display page is acquired from the content to be displayed according to the content view position.

在一种可能的设计中,所述内容视图位置包括内容视图坐标和/或内容视图偏移量。In one possible design, the content view position includes content view coordinates and/or content view offsets.

在一种可能的设计中,所述处理模块具体用于:In a possible design, the processing module is specifically used for:

根据所述偏移量和滚动后的所述空白视图的楼层的坐标获取所述内容视图偏移量;Obtain the content view offset according to the offset and the coordinates of the scrolled floor of the blank view;

和/或,and / or,

根据所述偏移量和滚动后的所述空白视图的中间视图的坐标获取所述内容视图坐标。The content view coordinates are obtained according to the offset and the coordinates of the scrolled middle view of the blank view.

第三方面,本发明实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present invention provides an electronic device, including:

显示器、处理器;以及,a display, a processor; and,

存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;

其中,所述处理器配置为经由执行所述可执行指令来执行第一方面任一实施方式所述的滚动视图的处理方法。Wherein, the processor is configured to execute the scroll view processing method according to any embodiment of the first aspect by executing the executable instructions.

第四方面,本发明实施例提供一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面任一实施方式所述的滚动视图的处理方法。In a fourth aspect, an embodiment of the present invention provides a storage medium on which a computer program is stored, and when the program is executed by a processor, implements the scroll view processing method described in any implementation manner of the first aspect.

本发明实施例提供的一种滚动视图的处理方法、装置、设备和存储介质,电子设备获取需要通过滚动视图显示的待显示内容所需要的总高度,根据总高度生成空白视图,并将空白视图放入滚动视图中,获取滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量,根据空白视图和偏移量,获取滚动后的内容视图坐标,获取内容视图坐标对应的显示页面进行显示,待显示内容包括显示页面上的内容,通过中间空白视图的中间效果,通过动态调整内容视图的位置,同时使用滚动视图和内容视图的联动,并保持内容视图本身的内存复用效果,保持手机应用滚动的流畅的和减少内存占用。In a scroll view processing method, device, device, and storage medium provided by the embodiments of the present invention, an electronic device obtains the total height required for the content to be displayed that needs to be displayed through the scroll view, generates a blank view according to the total height, and converts the blank view Put it into the scroll view, get the offset of the scroll view from the start of scrolling to the end of the scroll according to the user's operation on the touch screen, get the scrolled content view coordinates according to the blank view and the offset, and get the display page corresponding to the content view coordinates For display, the content to be displayed includes the content on the display page, through the intermediate effect of the middle blank view, by dynamically adjusting the position of the content view, using the linkage between the scroll view and the content view, and maintaining the memory reuse effect of the content view itself, Keep mobile apps scrolling smoothly and reduce memory usage.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是本发明根据一示例实施例示出的滚动视图的处理方法实施例一的流程示意图;1 is a schematic flowchart of Embodiment 1 of a method for processing a scroll view according to an exemplary embodiment of the present invention;

图2是本发明根据一示例实施例示出的滚动视图的处理方法实施例二的流程示意图;2 is a schematic flowchart of Embodiment 2 of a method for processing a scroll view according to an exemplary embodiment of the present invention;

图3是本发明根据一示例实施例示出的滚动视图的处理方法一实例的流程图;3 is a flowchart of an example of a method for processing a scroll view according to an exemplary embodiment of the present invention;

图4是本发明根据一示例实施例示出的滚动视图的处理装置的结构示意图;FIG. 4 is a schematic structural diagram of a scroll view processing apparatus according to an exemplary embodiment of the present invention;

图5是本发明根据一示例实施例示出的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

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

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to Describe a particular order or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

针对现有技术提供的两种滚动视图的方案,第一种技术实现会造成滚动强制停止,给用户造成卡顿感,用户体验差。第二种技术实现会将所有内容写入内存,不能使用网页(WebView)或是列表(TableView)的复用机制,造成内存飙升,内容过多严重会导致内存溢出,应用闪退等问题。For the two scroll view solutions provided by the prior art, the implementation of the first technology will cause the scrolling to be forced to stop, causing a stuck feeling to the user and poor user experience. The second technical implementation will write all the content into the memory, and cannot use the multiplexing mechanism of the web page (WebView) or the list (TableView), which will cause the memory to soar. Too much content will cause memory overflow and application flashback.

针对上述存在的问题,本申请提供的一种滚动视图的处理方法,用来解决不进行手势切换,也不将内容全部加载并实现正常滚动效果。In view of the above-mentioned problems, the present application provides a method for processing a scroll view, which is used to solve the problem of not performing gesture switching, and not loading all the content and achieving a normal scrolling effect.

下面通过几个具体实施方式对该方案进行说明。The solution will be described below through several specific implementation manners.

图1是本发明根据一示例实施例示出的滚动视图的处理方法实施例一的流程示意图。如图1所示,该方案应用在手机、平板电脑、机场商场的终端等电子设备中,本实施例提供的滚动视图的处理方法,包括:FIG. 1 is a schematic flowchart of Embodiment 1 of a method for processing a scroll view according to an exemplary embodiment of the present invention. As shown in Figure 1, this solution is applied to electronic devices such as mobile phones, tablet computers, terminals in airport shopping malls, etc. The processing method of the scroll view provided by this embodiment includes:

步骤S101、获取需要通过滚动视图显示的待显示内容所需要的总高度。Step S101: Obtain the total height required for the content to be displayed that needs to be displayed through the scroll view.

在本步骤中,用户在使用电子设备的过程中,可能需要对一些网页(UIWebView)或是列表(UITableView)等内容进行操作浏览,而待显示内容不能通过电子设备屏幕上的一个页面显示完,因此需要进行监测,对待显示内容全部显示所需要的总高度进行获取,一般来说,在应用程序使用过程中,内容是逐渐从服务器获取到的,传输过程中总高度会发生一定的变化,这里以能够获取到的总高度为准,如果更新了显示的内容,总高度发生变化,则根据变化后的总高度更新后续过程。In this step, in the process of using the electronic device, the user may need to operate and browse some web pages (UIWebView) or lists (UITableView), and the content to be displayed cannot be displayed through a page on the screen of the electronic device. Therefore, it is necessary to monitor and obtain the total height required to display all the displayed content. Generally speaking, during the use of the application, the content is gradually obtained from the server, and the total height will change to a certain extent during the transmission process. Here The total height that can be obtained shall prevail. If the displayed content is updated and the total height changes, the subsequent process will be updated according to the changed total height.

步骤S102、根据总高度生成空白视图,并将空白视图放入滚动视图中。Step S102, generate a blank view according to the total height, and put the blank view into the scroll view.

在本步骤中,电子设备在获取到显示待显示内容所需要的总高度之后,生成与该总高度同样高度的空白视图,然后将该空白视图放入滚动视图当中,即把该空白视图当成拉伸后的总的待显示页面,只是不需要同时获取所有内容进行缓存。In this step, after obtaining the total height required to display the content to be displayed, the electronic device generates a blank view with the same height as the total height, and then puts the blank view into the scroll view, that is, treats the blank view as a scroll view The total page to be displayed after extension, but it is not necessary to obtain all the content for caching at the same time.

步骤S103、获取滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量。Step S103: Acquire the offset of the scroll view starting to scroll to the end of scrolling according to the user's operation on the touch screen.

在本步骤中,在将空白视图放入滚动视图之后,用户在触摸屏上进行滑动操作,以使屏幕上显示的视图也开始滚动,这个时候滚动的是空白视图,在操作停止之后,获取滚动视图从滚动前到滚动后的偏移量。In this step, after placing the blank view into the scroll view, the user performs a swipe operation on the touch screen so that the view displayed on the screen also starts to scroll. At this time, the blank view is scrolled. After the operation is stopped, the scroll view is obtained. The offset from before scrolling to after scrolling.

步骤S104、根据空白视图和所述偏移量,获取滚动后的内容视图坐标。Step S104: Obtain the scrolled content view coordinates according to the blank view and the offset.

在本步骤中,空白视图的总高度是预定的,其中的每个位置也有一定的坐标,因此电子设备根据空白视图滚动前的位置以及该偏移量,可以获取滚动后在空白视图上的位置,然后根据位置的对应关系,可以获取到滚动后的内容视图坐标。In this step, the total height of the blank view is predetermined, and each position of the blank view also has certain coordinates, so the electronic device can obtain the position on the blank view after scrolling according to the position before the blank view is scrolled and the offset , and then according to the corresponding relationship of the position, the coordinates of the content view after scrolling can be obtained.

步骤S105、获取内容视图坐标对应的显示页面进行显示,待显示内容包括显示页面上的内容。Step S105: Acquire a display page corresponding to the coordinates of the content view for display, and the content to be displayed includes the content on the display page.

电子设备根据获取到的内容视图坐标回去对应的页面上的内容,也就是显示页面,在屏幕上进行显示,这里获取到的显示页面上的内容就是原本待显示内容中的一部分。The electronic device returns the content on the corresponding page according to the obtained content view coordinates, that is, the display page, and displays it on the screen. The content on the display page obtained here is a part of the original content to be displayed.

在该方案的具体实现中,应理解,该显示页面至少包括下面这两种情况:In the specific implementation of the solution, it should be understood that the display page includes at least the following two situations:

第一种情况,与所述内容视图坐标对应的位置的一个页面;该方案的含义是,获取内容视图坐标对应的那一个页面上的内容进行显示,即在该页面之前的和之后的内容均不需要获取。In the first case, a page at a position corresponding to the coordinates of the content view; the meaning of this solution is to obtain the content on the page corresponding to the coordinates of the content view and display it, that is, the content before and after the page are both displayed. No need to acquire.

第二种情况,与所述内容视图坐标对应的位置的一个页面以及之前的所有页面。该方案的含义是将待显示内容中从内容视图坐标对应的页面之前的所有页面的内容都获取到,并且在获取到这些页面的内容之后,可以在屏幕上滚动显示,在该页面之后的内容暂时不需要获取。In the second case, one page at the position corresponding to the coordinates of the content view and all previous pages. The meaning of this solution is to obtain the content of all pages before the page corresponding to the content view coordinate in the content to be displayed, and after obtaining the content of these pages, it can be scrolled and displayed on the screen, and the content after the page No need to obtain for now.

本实施例提供的滚动视图的处理方法,电子设备获取待显示内容所需的总高度,然后根据该总高度生成一个空白视图放入滚动视图中,滚动视图根据用户的操作开始滚动,电子设备获取滚动的偏移量,然后根据该空白视图和偏移量获取滚动后的内容视图坐标,然后获取对应的显示页面进行显示,通过中间空白视图的中间效果,通过动态调整内容视图的位置,同时使用滚动视图和内容视图的联动,并保持内容视图本身的内存复用效果,保持手机应用滚动的流畅的和减少内存占用。In the processing method of the scroll view provided by this embodiment, the electronic device obtains the total height required for the content to be displayed, and then generates a blank view according to the total height and puts it into the scroll view, the scroll view starts to scroll according to the user's operation, and the electronic device obtains The offset of the scroll, and then obtain the scrolled content view coordinates according to the blank view and offset, and then obtain the corresponding display page for display, through the intermediate effect of the middle blank view, by dynamically adjusting the position of the content view, and using The linkage between the scroll view and the content view, and maintain the memory reuse effect of the content view itself, keep the mobile application scrolling smoothly and reduce memory usage.

图2是本发明根据一示例实施例示出的滚动视图的处理方法实施例二的流程示意图。如图2所示,在上述实施例一的具体实现中,获取所述内容视图坐标对应的显示页面可以具体实现为:FIG. 2 is a schematic flowchart of Embodiment 2 of a method for processing a scroll view according to an exemplary embodiment of the present invention. As shown in FIG. 2, in the specific implementation of the above-mentioned first embodiment, obtaining the display page corresponding to the coordinates of the content view can be specifically implemented as:

步骤S201:若偏移量与电子设备的屏幕高度之和大于或等于内容视图坐标,则根据内容视图坐标获取对应的内容视图位置。Step S201: If the sum of the offset and the screen height of the electronic device is greater than or equal to the content view coordinates, obtain the corresponding content view position according to the content view coordinates.

步骤S202:根据内容视图位置从待显示内容中获取显示页面。Step S202: Acquire a display page from the content to be displayed according to the content view position.

具体的实现中,内容视图位置包括内容视图坐标和/或内容视图偏移量。用偏移量对比内容视图网页(UIWebView)或是列表(UITableView)的坐标位置,为了获取显示需要,需要判断内容视图是否全部全部显示到电子设备的屏幕上,可以通过偏移量与电子设备的屏幕高度之和是否大于或等于内容视图坐标来确定,在偏移量与电子设备的屏幕高度之和大于或等于内容视图坐标时候,开始对内容视图进行位置处理。即根据内容视图坐标获取对应的内容视图位置,然后再根据内容视图位置从待显示内容中获取显示页面。In a specific implementation, the content view position includes content view coordinates and/or content view offset. Compare the coordinate position of the content view web page (UIWebView) or list (UITableView) with the offset. In order to obtain the display needs, it is necessary to judge whether all the content views are displayed on the screen of the electronic device. It is determined whether the sum of the screen heights is greater than or equal to the coordinates of the content view. When the sum of the offset and the screen height of the electronic device is greater than or equal to the coordinates of the content view, position processing of the content view is started. That is, the corresponding content view position is obtained according to the content view coordinates, and then the display page is obtained from the content to be displayed according to the content view position.

具体的,获取根据所述内容视图坐标获取对应的内容视图位置的方式包括以下至少一种:Specifically, the method for obtaining the corresponding content view position according to the content view coordinates includes at least one of the following:

第一种,根据所述偏移量和滚动后的所述空白视图的楼层的坐标获取所述内容视图偏移量;The first is to obtain the offset of the content view according to the offset and the coordinates of the floor of the blank view after scrolling;

第二种,根据所述偏移量和滚动后的所述空白视图的中间视图的坐标获取所述内容视图坐标。Second, the coordinates of the content view are obtained according to the offset and the coordinates of the middle view of the scrolled blank view.

继续滚动时更新内容视图在中间空白视图上的坐标,通过调整坐标,让内容视图一直保持占在屏幕上显示,这样内容视图就会一直在用户视野当中。通过这两个方案更新内容视图中的偏移量,实现内外滚动的联动,造成内容视图在滚动的错觉,从而实现顺畅的滚动效果。When scrolling continues, update the coordinates of the content view on the blank view in the middle, and adjust the coordinates to keep the content view on the screen, so that the content view will always be in the user's field of vision. Through these two schemes, the offset in the content view is updated to realize the linkage of internal and external scrolling, causing the illusion that the content view is scrolling, so as to achieve a smooth scrolling effect.

在上述几个实施例的基础上,下面以电子设备为手机,对本发明提供的滚动视图的处理方法进行举例说明。On the basis of the above-mentioned embodiments, the method for processing the scroll view provided by the present invention will be illustrated below by taking the electronic device as a mobile phone.

在不切换手势的情况下,用户的滑动手势只能在滚动视图(ScrollView)上响应,同时还不能将内容视图拉伸,所以只能将内容视图的高度设定为手机屏幕显示的高度,这时候可以创建一个中间空白视图,空白视图的高度设定为网页(WebView)或是列表(TableView)内容全部显示的总高度,同时将网页(WebView)或是列表(TableView)放到中间空白视图上,当滚动视图(ScrollView)滚动的时候,同时调整网页(WebView)或是列表(TableView)在中间空白视图上的位置,并控制网页(WebView)或是列表(TableView)进行同步滚动,内容视图的偏移量=滚动视图的偏移量–中间空白楼层的坐标,造成视觉上的滚动,从而实现顺畅的滚动效果。下面对该方案的具体流程进行说明。Without switching gestures, the user's swipe gesture can only be responded to on the scroll view (ScrollView), and the content view cannot be stretched at the same time, so the height of the content view can only be set to the height displayed on the phone screen. At this time, you can create a middle blank view. The height of the blank view is set to the total height of the web page (WebView) or the list (TableView) content, and the web page (WebView) or list (TableView) is placed on the middle blank view. , When the scroll view (ScrollView) scrolls, adjust the position of the web page (WebView) or the list (TableView) on the middle blank view at the same time, and control the web page (WebView) or the list (TableView) to scroll synchronously, the content view Offset = the offset of the scroll view – the coordinates of the blank floor in the middle, causing visual scrolling, so as to achieve a smooth scrolling effect. The specific flow of the scheme will be described below.

图3是本发明根据一示例实施例示出的滚动视图的处理方法一实例的流程图,如图3所示,该过程包括:FIG. 3 is a flowchart of an example of a method for processing a scroll view according to an exemplary embodiment of the present invention. As shown in FIG. 3 , the process includes:

步骤S301:获取显示所有待显示内容所需要的总高度。Step S301: Obtain the total height required to display all the contents to be displayed.

步骤S302:生成中间空白视图,将中间视图放入滚动视图。Step S302: Generate a middle blank view, and put the middle view into the scroll view.

在上述两个步骤中,通常,一个网页(WebView)或是列表(TableView)内容都会较多,手机屏幕并不能放下所有内容,需要通过滚动方式才能将所有内容完全显示,所以首先通过系统监听方法,监听网页(WebView)或是列表(TableView)的内容总高度,获取到显示全部内容所需要的高度,获取到高度后将中间空白视图的高度设定为获取的高度。在这里获取到的总高度可能只是一部分,在再次监听到内容的总高度之后,可以根据新的总高度对中间空白视图按照新的总高度进行更新。手机应用的内容显示是通过手机系统的坐标系显示的,将中间空白视图的要显示的坐标设置好,可以是任意位置,加到滚动视图(ScrollView)上。In the above two steps, usually, a web page (WebView) or a list (TableView) will have a lot of content, and the mobile phone screen cannot put down all the content, and it needs to scroll to display all the content completely, so first through the system monitoring method , monitor the total height of the content of the web page (WebView) or list (TableView), obtain the height required to display all the content, and set the height of the middle blank view to the obtained height after obtaining the height. The total height obtained here may be only a part. After listening to the total height of the content again, the middle blank view can be updated according to the new total height according to the new total height. The content display of the mobile phone application is displayed through the coordinate system of the mobile phone system. Set the coordinates to be displayed in the middle blank view, which can be any position, and add it to the scroll view (ScrollView).

步骤S303:滚动视图开始滚动获取偏移量。Step S303: The scroll view starts to scroll to obtain the offset.

在本步骤中,滚动视图(ScrollView)滚动时,就会产生滚动的偏移量来,手机可以对滚动进行检测,可以实时获取到滚动视图的偏移量,一般来说,滚动视图的偏移量就是滚动视图上的内容在手机系统的坐标系上滑出屏幕的距离。In this step, when the scroll view (ScrollView) scrolls, a scroll offset will be generated. The mobile phone can detect the scroll and obtain the offset of the scroll view in real time. Generally speaking, the offset of the scroll view The amount is the distance that the content on the scroll view slides off the screen in the coordinate system of the mobile phone system.

步骤S304:偏移量+屏幕高度>=内容视图坐标?Step S304: offset + screen height >= content view coordinates?

步骤S305:通过公式:内容视图坐标=滚动视图的偏移量-中间视图坐标,调整内容视图坐标。Step S305: Adjust the content view coordinates by formula: content view coordinates=offset amount of scroll view-intermediate view coordinates.

步骤S305:通过公式:内容视图的偏移量=滚动视图的偏移量-中间空白楼层的坐标,调整内容视图偏移量。Step S305: Adjust the offset of the content view by formula: the offset of the content view=the offset of the scroll view-the coordinates of the middle blank floor.

在上述几个步骤中,用偏移量对比内容视图网页(UIWebView)或是列表(UITableView)的坐标位置,当内容视图网页(UIWebView)或是列表(UITableView)全部显示到手机屏幕上时,即公式:偏移量+手机屏幕高度>=内容视图坐标成立,开始对内容视图进行位置处理,包括两种处理方式,一种是:根据滚动视图的偏移量与中间视图的差值,得到内容视图坐标,然后根据该内容视图坐标调整屏幕上显示的内容视图坐标;另一种是:根据滚动视图偏移量与中间空白楼层的坐标之间的差值得到内容视图的偏移量,然后根据该内容视图的偏移量调整屏幕上显示的内容视图的偏移量。继续滚动时更新内容视图在中间空白视图上的坐标,通过调整坐标,让内容视图一直保持占在屏幕上显示,这样内容视图就会一直在用户视野当中。通过这两种方案更新内容视图网页(UIWebView)或是列表(UITableView)的中的偏移量,实现内外滚动的联动,造成内容视图在滚动的错觉,从而实现顺畅的滚动效果。In the above steps, use the offset to compare the coordinate position of the content view web page (UIWebView) or the list (UITableView), when the content view web page (UIWebView) or the list (UITableView) are all displayed on the mobile phone screen, that is Formula: offset + mobile phone screen height >= the coordinates of the content view are established, start to process the position of the content view, including two processing methods, one is: according to the difference between the offset of the scroll view and the middle view, get the content view coordinates, and then adjust the content view coordinates displayed on the screen according to the content view coordinates; the other is: get the content view offset according to the difference between the scroll view offset and the coordinates of the middle blank floor, and then according to The offset of this content view adjusts the offset of the content view displayed on the screen. When scrolling continues, update the coordinates of the content view on the blank view in the middle, and adjust the coordinates to keep the content view on the screen, so that the content view will always be in the user's field of vision. Through these two schemes, the offset in the content view web page (UIWebView) or the list (UITableView) is updated to realize the linkage of internal and external scrolling, causing the illusion that the content view is scrolling, so as to achieve a smooth scrolling effect.

本发明的滚动视图的处理方法中,运用中间空白视图的中间效果,通过动态调整内容视图的位置,同时使用滚动视图和内容视图的联动,并保持内容视图本身的内存复用效果,保持手机应用滚动的流畅的和减少内存溢出的风险,提高了应用程序使用的安全性和用户体验。In the processing method of the scroll view of the present invention, the intermediate effect of the middle blank view is used, the position of the content view is dynamically adjusted, the linkage between the scroll view and the content view is used at the same time, the memory reuse effect of the content view itself is maintained, and the mobile phone application is maintained. The scrolling is smooth and the risk of memory overflow is reduced, improving the security and user experience of the application.

图4是本发明根据一示例实施例示出的滚动视图的处理装置的结构示意图。如图4所示,本实施例提供的滚动视图的处理装置10,包括:FIG. 4 is a schematic structural diagram of an apparatus for processing a scroll view according to an exemplary embodiment of the present invention. As shown in FIG. 4 , the apparatus 10 for processing a scroll view provided in this embodiment includes:

获取模块11,用于获取需要通过滚动视图显示的待显示内容所需要的总高度;an acquisition module 11, used to acquire the total height required by the content to be displayed that needs to be displayed through the scroll view;

处理模块12,用于根据所述总高度生成空白视图,并将所述空白视图放入所述滚动视图中;a processing module 12, configured to generate a blank view according to the total height, and put the blank view into the scroll view;

所述处理模块12还用于获取所述滚动视图根据用户在触摸屏上的操作开始滚动至滚动结束的偏移量;The processing module 12 is further configured to obtain the offset of the scroll view from scrolling to the end of scrolling according to the user's operation on the touch screen;

所述处理模块12还用于根据所述空白视图和所述偏移量,获取滚动后的内容视图坐标;The processing module 12 is further configured to obtain the scrolled content view coordinates according to the blank view and the offset;

显示模块13,用于获取所述内容视图坐标对应的显示页面进行显示,所述待显示内容包括所述显示页面上的内容。The display module 13 is configured to acquire and display the display page corresponding to the coordinates of the content view, and the content to be displayed includes the content on the display page.

本实施例提供的滚动视图的处理装置,用于执行前述任一方法实施例的技术方案,其实现原理和技术效果类似,电子设备获取待显示内容所需的总高度,然后根据该总高度生成一个空白视图放入滚动视图中,滚动视图根据用户的操作开始滚动,电子设备获取滚动的偏移量,然后根据该空白视图和偏移量获取滚动后的内容视图坐标,然后获取对应的显示页面进行显示,通过中间空白视图的中间效果,通过动态调整内容视图的位置,同时使用滚动视图和内容视图的联动,并保持内容视图本身的内存复用效果,保持手机应用滚动的流畅的和减少内存占用。The apparatus for processing a scroll view provided in this embodiment is used to implement the technical solutions of any of the foregoing method embodiments. The implementation principle and technical effect are similar. The electronic device obtains the total height required for the content to be displayed, and then generates a A blank view is put into the scroll view, the scroll view starts to scroll according to the user's operation, the electronic device obtains the scroll offset, and then obtains the scrolled content view coordinates according to the blank view and offset, and then obtains the corresponding display page Display, through the intermediate effect of the middle blank view, by dynamically adjusting the position of the content view, using the linkage between the scroll view and the content view, and maintaining the memory reuse effect of the content view itself, keeping the mobile application scrolling smoothly and reducing memory occupied.

在上述实施例的基础上,该滚动视图的处理装置10的具体实现中,所述显示页面包括:On the basis of the above embodiment, in the specific implementation of the scroll view processing device 10, the display page includes:

与所述内容视图坐标对应的位置的一个页面;a page at a location corresponding to the content view coordinates;

或者,or,

与所述内容视图坐标对应的位置的一个页面以及之前的所有页面One page and all previous pages at the location corresponding to the content view coordinates

可选的,所述处理模块12具体用于:若所述偏移量与所述电子设备的屏幕高度之和大于或等于所述内容视图坐标,则根据所述内容视图坐标获取对应的内容视图位置;Optionally, the processing module 12 is specifically configured to: if the sum of the offset and the screen height of the electronic device is greater than or equal to the content view coordinates, obtain the corresponding content view according to the content view coordinates Location;

根据所述内容视图位置从所述待显示内容中获取所述显示页面。The display page is acquired from the content to be displayed according to the content view position.

可选的,所述内容视图位置包括内容视图坐标和/或内容视图偏移量。Optionally, the content view position includes content view coordinates and/or content view offset.

可选的,所述处理模块12具体用于:Optionally, the processing module 12 is specifically used for:

根据所述偏移量和滚动后的所述空白视图的楼层的坐标获取所述内容视图偏移量;Obtain the content view offset according to the offset and the coordinates of the scrolled floor of the blank view;

和/或,and / or,

根据所述偏移量和滚动后的所述空白视图的中间视图的坐标获取所述内容视图坐标。The content view coordinates are obtained according to the offset and the coordinates of the scrolled middle view of the blank view.

上述任一实施例提供的滚动视图的处理装置,用于执行前述任一方法实施例的技术方案,其实现原理和技术效果类似,在此不再赘述。The apparatus for processing a scroll view provided by any of the foregoing embodiments is used to execute the technical solutions of any of the foregoing method embodiments, and its implementation principles and technical effects are similar, and details are not described herein again.

图5是本发明根据一示例实施例示出的电子设备的结构示意图。如图5所示,本实施例提供的一种电子设备20包括:FIG. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 5 , an electronic device 20 provided in this embodiment includes:

显示器21、处理器22;以及,display 21, processor 22; and,

存储器23,用于存储所述处理器的可执行指令,该存储器23还可以是flash(闪存);a memory 23 for storing executable instructions of the processor, and the memory 23 may also be flash (flash memory);

其中,所述处理器22配置为经由执行所述可执行指令来执行上述方法中的各个步骤。具体可以参见前面方法实施例中的相关描述。Wherein, the processor 22 is configured to perform each step in the above method by executing the executable instructions. For details, refer to the relevant descriptions in the foregoing method embodiments.

可选地,存储器23既可以是独立的,也可以跟处理器22集成在一起。Optionally, the memory 23 may be independent or integrated with the processor 22 .

当所述存储器23是独立于处理器22之外的器件时,所述电子设备还可以包括:When the memory 23 is a device independent of the processor 22, the electronic device may further include:

总线24,用于连接所述处理器22以及所述存储器23。The bus 24 is used for connecting the processor 22 and the memory 23 .

本实施例还提供一种可读存储介质,可读存储介质中存储有计算机程序,当电子设备的至少一个处理器执行该计算机程序时,电子设备执行上述的各种实施方式提供的滚动视图的处理方法。This embodiment further provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of the electronic device executes the computer program, the electronic device executes the scrolling view provided by the various embodiments described above. Approach.

本实施例还提供一种程序产品,该程序产品包括计算机程序,该计算机程序存储在可读存储介质中。电子设备的至少一个处理器可以从可读存储介质读取该计算机程序,至少一个处理器执行该计算机程序使得电子设备实施上述的各种实施方式提供的滚动视图的处理方法。This embodiment also provides a program product, where the program product includes a computer program, and the computer program is stored in a readable storage medium. At least one processor of the electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to make the electronic device implement the scroll view processing methods provided by the various embodiments described above.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或对其中部分或全部技术特征进行等同替换;而这些修改或替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (12)

1. A processing method of a scroll view is applied to an electronic device, and the method comprises the following steps:
acquiring the total height required by the content to be displayed which needs to be displayed through a scroll view;
generating a blank view according to the total height and putting the blank view into the scroll view;
acquiring the offset from the beginning of scrolling to the end of scrolling of the scroll view according to the operation of a user on the touch screen;
acquiring the coordinates of the scrolled content view according to the blank view and the offset;
and acquiring a display page corresponding to the content view coordinate for displaying, wherein the content to be displayed comprises the content on the display page.
2. The method of claim 1, wherein displaying the page comprises:
a page of locations corresponding to the content view coordinates;
or,
one page and all previous pages of a location corresponding to the content view coordinates.
3. The method according to claim 1 or 2, wherein obtaining the display page corresponding to the content view coordinates comprises:
if the sum of the offset and the screen height of the electronic equipment is greater than or equal to the content view coordinate, acquiring a corresponding content view position according to the content view coordinate;
and acquiring the display page from the content to be displayed according to the content view position.
4. The method of claim 3, wherein the content view position comprises content view coordinates and/or content view offsets.
5. The method of claim 4, wherein the obtaining the corresponding content view location according to the content view coordinates comprises:
acquiring the content view offset according to the offset and the coordinate of the floor of the rolled blank view;
and/or the presence of a gas in the gas,
and acquiring the content view coordinates according to the offset and the coordinates of the middle view of the blank view after rolling.
6. A processing apparatus for scrolling a view, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the total height required by the content to be displayed which needs to be displayed through a scroll view;
the processing module is used for generating a blank view according to the total height and putting the blank view into the scroll view;
the processing module is further used for acquiring the offset from the start of scrolling to the end of scrolling of the scroll view according to the operation of the user on the touch screen;
the processing module is further used for acquiring the coordinates of the scrolled content view according to the blank view and the offset;
and the display module is used for acquiring a display page corresponding to the content view coordinate to display, and the content to be displayed comprises the content on the display page.
7. The apparatus of claim 6, wherein the display page comprises:
a page of locations corresponding to the content view coordinates;
or,
one page and all previous pages of a location corresponding to the content view coordinates.
8. The apparatus according to claim 6 or 7, wherein the processing module is specifically configured to: if the sum of the offset and the screen height of the electronic equipment is greater than or equal to the content view coordinate, acquiring a corresponding content view position according to the content view coordinate;
and acquiring the display page from the content to be displayed according to the content view position.
9. The apparatus of claim 8, wherein the content view location comprises content view coordinates and/or content view offsets.
10. The apparatus of claim 9, wherein the processing module is specifically configured to:
acquiring the content view offset according to the offset and the coordinate of the floor of the rolled blank view;
and/or the presence of a gas in the gas,
and acquiring the content view coordinates according to the offset and the coordinates of the middle view of the blank view after rolling.
11. An electronic device, comprising:
a display, a processor; and the number of the first and second groups,
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of processing a scroll view of any one of claims 1 to 5 via execution of the executable instructions.
12. A storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of processing a scroll view according to any one of claims 1 to 5.
CN201910580299.5A 2019-06-28 2019-06-28 Scroll view processing method, device, equipment and storage medium Active CN112148286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910580299.5A CN112148286B (en) 2019-06-28 2019-06-28 Scroll view processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910580299.5A CN112148286B (en) 2019-06-28 2019-06-28 Scroll view processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112148286A true CN112148286A (en) 2020-12-29
CN112148286B CN112148286B (en) 2025-06-17

Family

ID=73891727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910580299.5A Active CN112148286B (en) 2019-06-28 2019-06-28 Scroll view processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148286B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900574A (en) * 2021-10-08 2022-01-07 北京沃东天骏信息技术有限公司 Data display method and device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152528A (en) * 1993-11-26 1995-06-16 Fujitsu Ltd Screen scroll device and method
US20060236261A1 (en) * 2005-04-13 2006-10-19 Forstall Scott J Multiple-panel scrolling
JP2009252175A (en) * 2008-04-10 2009-10-29 Ricoh Co Ltd Horizontal coordinate determining method in display document and information processing apparatus
CN102314282A (en) * 2010-06-29 2012-01-11 腾讯科技(深圳)有限公司 Method for realizing content selection on the basis of scrolling widget and device
CN106126039A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 Operation interface display method and mobile terminal
CN108399041A (en) * 2018-02-12 2018-08-14 广州优视网络科技有限公司 Image display method, device, computing device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152528A (en) * 1993-11-26 1995-06-16 Fujitsu Ltd Screen scroll device and method
US20060236261A1 (en) * 2005-04-13 2006-10-19 Forstall Scott J Multiple-panel scrolling
JP2009252175A (en) * 2008-04-10 2009-10-29 Ricoh Co Ltd Horizontal coordinate determining method in display document and information processing apparatus
CN102314282A (en) * 2010-06-29 2012-01-11 腾讯科技(深圳)有限公司 Method for realizing content selection on the basis of scrolling widget and device
CN106126039A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 Operation interface display method and mobile terminal
CN108399041A (en) * 2018-02-12 2018-08-14 广州优视网络科技有限公司 Image display method, device, computing device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900574A (en) * 2021-10-08 2022-01-07 北京沃东天骏信息技术有限公司 Data display method and device, electronic equipment and computer readable medium
CN113900574B (en) * 2021-10-08 2025-05-16 北京沃东天骏信息技术有限公司 Data display method, device, electronic device and computer readable medium

Also Published As

Publication number Publication date
CN112148286B (en) 2025-06-17

Similar Documents

Publication Publication Date Title
CN101950235B (en) Method for sliding interface of touch screen and terminal
TW201617837A (en) A processing method of screen-displayed window and mobile terminal
CN102428438A (en) Method, apparatus and computer program product for creating graphic objects having desired physical characteristics for use in animation
US9043733B2 (en) Weighted N-finger scaling and scrolling
CN104156171A (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
WO2019052524A1 (en) View rendering method and apparatus, medium, and intelligent terminal
CN105045485A (en) Screen capture method and mobile terminal
CN103809871A (en) Processing method and mobile terminal for icon of application program
CN106681586A (en) Layout position adjustment method and device
CN105260103A (en) Picture scaling method and electronic device
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
CN103309575A (en) Image display method and terminal
AU2016205616A1 (en) Method of displaying content and electronic device implementing same
US20150169161A1 (en) Method and apparatus for scrolling control in mobile terminal
EP2891963A1 (en) Window display method and apparatus of displaying a window using an external input device
CN112596644B (en) Display method, device and electronic device
CN113835577A (en) Display method, display device, electronic equipment and storage medium
CN104166508B (en) A kind of touch-control implementation method and device
EP2911047A1 (en) Method and apparatus for displaying information and electronic device adapted to the method
CN107682535A (en) Based on intelligent mobile phone platform method for remote controlling computer
CN112148286A (en) Scroll view processing method, device, device and storage medium
CN114911441A (en) Information display method and device
CN114741042A (en) Content display method and device
CN110992862B (en) Method for executing display control on electronic equipment, main processor and display panel
CN104156145A (en) Text content selection method based on handwriting pen and portable terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant