CN105045592A - Picture display method and device - Google Patents

Picture display method and device Download PDF

Info

Publication number
CN105045592A
CN105045592A CN201510441134.1A CN201510441134A CN105045592A CN 105045592 A CN105045592 A CN 105045592A CN 201510441134 A CN201510441134 A CN 201510441134A CN 105045592 A CN105045592 A CN 105045592A
Authority
CN
China
Prior art keywords
picture
adjacent
processing mode
switching
group
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
Application number
CN201510441134.1A
Other languages
Chinese (zh)
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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510441134.1A priority Critical patent/CN105045592A/en
Publication of CN105045592A publication Critical patent/CN105045592A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a picture display method and a picture display device, wherein the method comprises the following steps: setting a picture monitoring interface, and controlling the picture monitoring interface to monitor the display state of a current display picture in a picture group; when the picture monitoring interface monitors that the display state of the current display picture is a switching state, displaying the switched picture, and controlling the picture monitoring interface to call a preset picture processing mode; and pre-loading the adjacent pictures of the switched pictures according to the picture processing mode, and deleting the non-adjacent pictures. By adopting the invention, the problems of low picture display speed and collapse of application due to insufficient memory can be solved.

Description

A kind of image display method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of image display method and device.
Background technology
Current Banner hurdle generally includes multiple content item, and each content item is a level altitude and with screen with wide picture.First picture shown switches in Banner hurdle, and when switching to the second pictures, needs first to load the second pictures, and could show the second pictures after loaded.If but the content-data of the second pictures is comparatively large, then and need the time loaded may be long, thus may cause making screen be in blank interface before display second pictures always, reduce the display speed of picture; And when being switched to the 3rd pictures, the first pictures still can be stored in internal memory, now, in internal memory, plurality of pictures data will be stored simultaneously, application may be caused to collapse because of low memory.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of image display method and device, can solve picture display speed slow and apply the problem of collapsing because of low memory.
Embodiments provide a kind of image display method, comprising:
Picture is set and monitors interface, and control described picture and monitor the display state of interface to the current display picture in picture group and monitor;
When the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange;
According to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching, and delete processing is carried out to non-adjacent picture.
Wherein, describedly according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching, and delete processing is carried out to non-adjacent picture, comprising:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and according to described picture load path, described adjacent picture is loaded;
The non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and delete described non-adjacent picture;
Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
Wherein, described in described picture group, search described switching according to described picture processing mode after the non-adjacent picture of picture, and delete described non-adjacent picture, comprising:
In described picture group, the non-adjacent picture of the picture after whether there is described switching is searched according to described picture processing mode;
If there is described non-adjacent picture, then judge whether described non-adjacent picture loads further;
If judge, described non-adjacent picture loads, then delete the described non-adjacent picture after loading.
Wherein, described in described picture group, obtain described switching according to described picture processing mode after the picture load path of adjacent picture of picture, and according to described picture load path, described adjacent picture to be loaded, specifically comprises:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
Wherein, described picture group is Banner hurdle.
Correspondingly, the embodiment of the present invention additionally provides a kind of image display apparatus, comprising:
Controlling to monitor module, monitoring interface for arranging picture, and control described picture and monitor the display state of interface to the current display picture in picture group and monitor;
Control calling module, for when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange;
Picture processing module, for carrying out preload process according to described picture processing mode to the adjacent picture of the picture after described switching, and carries out delete processing to non-adjacent picture.
Wherein, described picture processing module comprises:
Loading unit, for the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and loads described adjacent picture according to described picture load path;
Delete cells, for the non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and deletes described non-adjacent picture;
Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
Wherein, described delete cells comprises:
Search subelement, for searching the non-adjacent picture of the picture after whether there is described switching in described picture group according to described picture processing mode;
Judgment sub-unit, if for there is described non-adjacent picture, then judges whether described non-adjacent picture loads further;
Subelement deleted by picture, if for judging that described non-adjacent picture loads, then deletes the described non-adjacent picture after loading.
Wherein, described loading unit, specifically for the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
Wherein, described picture group is Banner hurdle.
The embodiment of the present invention is monitored by controlling the display state of described picture monitoring interface to the current display picture in picture group, and when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after switching can be shown, and control the default picture processing mode of described picture monitoring interface interchange, according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching again, and delete processing is carried out to non-adjacent picture, thus can when switching picture, without the need to waiting for the loading procedure of next pictures, namely can show next pictures at once, improve the display speed of picture, and can effective releasing memory space by deleting non-adjacent picture, to solve the problem applied and collapse because of low memory.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of image display method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of image display method that the embodiment of the present invention provides;
Fig. 2 a is a kind of functional attributes schematic diagram that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of image display apparatus that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of picture processing module that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of delete cells that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, be the schematic flow sheet of a kind of image display method that the embodiment of the present invention provides, described method can comprise:
S101, arranges picture and monitors interface, and controls described picture and monitor the display state of interface to the current display picture in picture group and monitor.
Concrete, described picture group can be Banner hurdle, and usual realized Banner hurdle all can comprise the content item of more than 4, and namely described picture group comprises at least 4 pictures usually.Terminal is before the picture in group that Shows Picture, interface monitored by first initialization picture, monitor interface by Gallery for described picture again and monitor function is provided, and picture processing mode corresponding to described picture monitoring interface is set, described Gallery be provided by Android system and be used for realizing UI (UserInterface, the user interface) control of Banner advertisement column effect.When showing certain pictures in described picture group in terminal screen, this picture is defined as current display picture, now, described terminal can control the display state of described picture monitoring interface to the current display picture in picture group and monitor.Wherein, when described current display picture switches, be the switch instances being perceived picture by Gallery at first, then by Gallery, the switch instances of picture informed to described picture monitoring interface, thus realize described picture monitoring interface to the monitoring of described current display picture.
S102, when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange.
Concrete, when the display state that described picture monitoring interface listens to described current display picture is switching state, namely illustrate that Gallery detects that described current display picture switches, and inform that the display state of current display picture described in described picture monitoring interface is switching state by Gallery, now, described terminal is by the picture after the described switching of display, and control the default picture processing mode of described picture monitoring interface interchange, described picture processing mode comprises the processing mode of the processing mode of the adjacent picture of the picture after to described switching and the non-adjacent picture to the picture after described switching.Wherein, described adjacent picture can be a upper pictures of described current shown picture and/or next pictures of described current shown picture, or, also lower two pictures of upper two and/or the described current shown picture of described current shown picture can be defined as described adjacent picture, the quantity of described adjacent picture not limited here.Such as, when there are 6 pictures in picture group, and during current display the 3rd pictures, second and the 4th can be defined as the adjacent picture of current the 3rd shown pictures.Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
S103, carries out preload process according to described picture processing mode to the adjacent picture of the picture after described switching, and carries out delete processing to non-adjacent picture.
Concrete, the picture load path of the adjacent picture of the picture after described terminal can obtain described switching according to described picture processing mode in described picture group, and according to described picture load path, described adjacent picture is loaded; Meanwhile, the non-adjacent picture of the picture after described terminal can also search described switching according to described picture processing mode in described picture group, and delete described non-adjacent picture.Wherein, described picture load path can be URL (UniformResourceLocator, uniform resource locator) or local picture file path.When described picture load path is URL, described terminal can download image data by URL on the webserver; When described picture load path is local picture file path, described terminal can by the local picture file path of search to extract local image data.Described terminal is loaded described adjacent picture by described picture processing mode, when the picture after described switching can be made to be switched to described adjacent picture again, improving the display speed of picture, making user without the need to waiting for the loading of picture; Described terminal is deleted described non-adjacent picture by described picture processing mode, the picture that can control some is stored in internal memory simultaneously, the internal memory that picture is taken can remain in a secure threshold, to solve the problem applied and collapse because of low memory.
The embodiment of the present invention is monitored by controlling the display state of described picture monitoring interface to the current display picture in picture group, and when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after switching can be shown, and control the default picture processing mode of described picture monitoring interface interchange, according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching again, and delete processing is carried out to non-adjacent picture, thus can when switching picture, without the need to waiting for the loading procedure of next pictures, namely can show next pictures at once, improve the display speed of picture, and can effective releasing memory space by deleting non-adjacent picture, to solve the problem applied and collapse because of low memory.
Refer to Fig. 2 again, be the schematic flow sheet of the another kind of image display method that the embodiment of the present invention provides, described method can comprise:
S201, arranges picture and monitors interface, and controls described picture and monitor the display state of interface to the current display picture in picture group and monitor.
Concrete, described picture group can be Banner hurdle, and usual realized Banner hurdle all can comprise the content item of more than 4, and namely described Banner hurdle comprises at least 4 pictures usually.Refer to Fig. 2 a again, be a kind of functional attributes schematic diagram that the embodiment of the present invention provides, Fig. 2 a comprises three major function attributes: Gallery, Adapter and OnItemSelectedListener; Gallery be provided by Android system and be used for realizing the UI control of Banner advertisement column effect; Adapter is the adapter encapsulation class that Android system provides, and Gallery can be coordinated to use, and for telling in picture group described in Gallery have how many pictures, what the particular content of each pictures is; OnItemSelectedListener is that interface monitored by picture.Be described for Fig. 2 a, before the picture of terminal in display Banner hurdle, need first initialization Gallery and Adapter, and by the setAdapter () method in Gallery, Adapter is set, then load each content item by Gallery by the getView () method calling Adapter; Reinitialize OnItemSelectedListener simultaneously, and monitoring is set by the setOnItemSelectedListener () method of Gallery, setOnItemSelectedListener () method can monitor the display state of the current display picture in Banner hurdle, and by the display state notifying of described current display picture that listens to OnItemSelectedListener, to realize the function that the display state of OnItemSelectedListener to the current display picture in picture group is monitored.
S202, when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange.
Concrete, continue for Fig. 2 a, when the display state that OnItemSelectedListener listens to described current display picture is switching state, namely illustrate that setOnItemSelectedListener () method detects that described current display picture switches, now, described terminal is by the picture after the described switching of display, and adjust back in the onItemSelected () method of OnItemSelectedListener, onItemSelected () method is default picture processing mode, described onItemSelected () method comprises the processing mode of the processing mode of the adjacent picture of the picture after to described switching and the non-adjacent picture to the picture after described switching.Wherein, described adjacent picture can be a upper pictures of described current shown picture and/or next pictures of described current shown picture, or, also lower two pictures of upper two and/or the described current shown picture of described current shown picture can be defined as described adjacent picture, the quantity of described adjacent picture not limited here.Such as, when there are 6 pictures in Banner hurdle, and during current display the 3rd pictures, second and the 4th can be defined as the adjacent picture of current the 3rd shown pictures.Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
S203, the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
Concrete, after adjusting back in the onItemSelected () method of OnItemSelectedListener, the picture load path of the adjacent picture of the picture after can obtaining described switching according to adjusted back onItemSelected () method in described Banner hurdle, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.Described Adapter loads the concrete bandwagon effect namely referring to and loaded described adjacent picture by getView function to the adjacent picture data in described picture load path.
S204, searches the non-adjacent picture of the picture after whether there is described switching in described picture group according to described picture processing mode.
Concrete, described S204 step synchronously can perform with S203 step, and described terminal can also search the non-adjacent picture of the picture after whether there is described switching in described Banner hurdle according to described onItemSelected () method.
S205, if there is described non-adjacent picture, then judges whether described non-adjacent picture loads further.
Concrete, if S204 finds out the non-adjacent picture that there is described current display picture, then can judge whether described non-adjacent picture loads further.If S204 finds out there is not described non-adjacent picture, then do not delete any picture.
S206, if judge, described non-adjacent picture loads, then delete the described non-adjacent picture after loading.
Concrete, if S205 judges that described non-adjacent picture loads, then delete the described non-adjacent picture after loading, to reduce the total EMS memory occupation in Banner hurdle.Because existing Banner hurdle is when Showing Picture, internal memory will retain all pictures loaded, so picture may be made to take more and more internal memory, causes application to be collapsed because of low memory.And the embodiment of the present invention is by deleting described non-adjacent picture, the picture that can control some is stored in internal memory simultaneously, and the internal memory that picture is taken can remain in a secure threshold, to solve the problem applied and collapse because of low memory.If judge, described non-adjacent picture does not load, then do not carry out any operation to described non-adjacent picture.
In practical application scene, if Banner hurdle comprises 5 pictures, and adjacent picture is defined as next of upper and the current shown picture of current shown picture, then when opening place, the Banner hurdle page, and during display the first pictures, setOnItemSelectedListener () method in Gallery can inform that OnItemSelectedListener has started to show the first pictures, make described OnItemSelectedListener can call corresponding onItemSelected () method, and the second pictures can be loaded in advance according to described onItemSelected () method, now there is the first pictures and the second pictures in internal memory simultaneously, when switching to the second pictures display, described OnItemSelectedListener listens to and switches to the second pictures, described OnItemSelectedListener calls corresponding onItemSelected () method again, and load the 3rd pictures in advance according to described onItemSelected () method, now there is the first pictures, the second pictures and the 3rd pictures in internal memory simultaneously, same, when switching to the 3rd pictures, still can load the 4th pictures in advance according to described onItemSelected () method, and the first pictures in internal memory is deleted, now in internal memory, there is the second pictures, the 3rd pictures and the 4th pictures simultaneously, when switching to the 4th pictures, still the 5th pictures can be loaded in advance according to described onItemSelected () method, and the second pictures deleted in internal memory, now there is the 3rd pictures, the 4th pictures and the 5th pictures in internal memory simultaneously, when being back switched to the 3rd pictures, the second pictures can be reloaded in advance according to described onItemSelected () method, and the 5th pictures deleted in internal memory, now there is the second pictures, the 3rd pictures and the 4th pictures in internal memory simultaneously.As can be seen here, only can there are two or three pictures in internal memory simultaneously, avoid five pictures and be stored in situation in internal memory simultaneously, make the internal memory shared by picture can remain in a secure threshold, to solve the problem applied and collapse because of low memory.
The embodiment of the present invention is monitored by controlling the display state of described picture monitoring interface to the current display picture in picture group, and when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after switching can be shown, and control the default picture processing mode of described picture monitoring interface interchange, according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching again, and delete processing is carried out to non-adjacent picture, thus can when switching picture, without the need to waiting for the loading procedure of next pictures, namely can show next pictures at once, improve the display speed of picture, and can effective releasing memory space by deleting non-adjacent picture, to solve the problem applied and collapse because of low memory.
Refer to Fig. 3, it is the structural representation of a kind of image display apparatus that the embodiment of the present invention provides, described image display apparatus 1 is applied in the terminal, and described image display apparatus 1 can comprise: control to monitor module 10, control calling module 20, picture processing module 30.
Module 10 is monitored in described control, monitors interface for arranging picture, and controls described picture and monitor the display state of interface to the current display picture in picture group and monitor.
Concrete, described picture group can be Banner hurdle, and usual realized Banner hurdle all can comprise the content item of more than 4, and namely described picture group comprises at least 4 pictures usually.Terminal is before the picture in group that Shows Picture, first monitor module 10 initialization picture by described control and monitor interface, monitor interface by Gallery for described picture again and monitor function is provided, and described picture be set monitor picture processing mode corresponding to interface, described Gallery be provided by Android system and be used for realizing the UI control of Banner advertisement column effect.When showing certain pictures in described picture group in terminal screen, this picture is defined as current display picture, now, described control monitoring module 10 can control the display state of described picture monitoring interface to the current display picture in picture group and monitor.Wherein, when described current display picture switches, be the switch instances being perceived picture by Gallery at first, then by Gallery, the switch instances of picture informed to described picture monitoring interface, thus realize described picture monitoring interface to the monitoring of described current display picture.
Be described for above-mentioned Fig. 2 a, before the picture of terminal in display Banner hurdle, need first initialization Gallery and Adapter, and by the setAdapter () method in Gallery, Adapter is set, then load each content item by Gallery by the getView () method calling Adapter, monitor module 10 initialization OnItemSelectedListener by described control more simultaneously, and monitoring is set by the setOnItemSelectedListener () method of Gallery, describedly control to monitor module 10 and control setOnItemSelectedListener () method can monitor the display state of the current display picture in Banner hurdle, and by the display state notifying of described current display picture that listens to OnItemSelectedListener, monitor to realize the display state of described control monitoring module 10 control OnItemSelectedListener to the current display picture in picture group.
Described control calling module 20, for when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange.
Concrete, when the display state that described picture monitoring interface listens to described current display picture is switching state, namely illustrate that Gallery detects that described current display picture switches, and inform that the display state of current display picture described in described picture monitoring interface is switching state by Gallery, now, described control calling module 20 is by the picture after the described switching of display, and control the default picture processing mode of described picture monitoring interface interchange, described picture processing mode can for the onItemSelected () method in the OnItemSelectedListener shown in Fig. 2, namely onItemSelected () method can comprise the processing mode of the processing mode of the adjacent picture of the picture after to described switching and the non-adjacent picture to the picture after described switching.Wherein, described adjacent picture can be a upper pictures of described current shown picture and/or next pictures of described current shown picture, or, also lower two pictures of upper two and/or the described current shown picture of described current shown picture can be defined as described adjacent picture, the quantity of described adjacent picture not limited here.Such as, when there are 6 pictures in picture group, and during current display the 3rd pictures, second and the 4th can be defined as the adjacent picture of current the 3rd shown pictures.Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
Described picture processing module 30, for carrying out preload process according to described picture processing mode to the adjacent picture of the picture after described switching, and carries out delete processing to non-adjacent picture.
Concrete, the picture load path of the adjacent picture of the picture after described picture processing module 30 can obtain described switching according to described picture processing mode in described picture group, and according to described picture load path, described adjacent picture is loaded; Meanwhile, the non-adjacent picture of the picture after described picture processing module 30 can also search described switching according to described picture processing mode in described picture group, and delete described non-adjacent picture.Wherein, described picture load path can be URL or local picture file path.When described picture load path is URL, described picture processing module 30 can download image data by URL on the webserver; When described picture load path is local picture file path, described picture processing module 30 can by the local picture file path of search to extract local image data.Described picture processing module 30 is loaded described adjacent picture by described picture processing mode, when the picture after described switching can be made to be switched to described adjacent picture again, improving the display speed of picture, making user without the need to waiting for the loading of picture; Described picture processing module 30 is deleted described non-adjacent picture by described picture processing mode, the picture that can control some is stored in internal memory simultaneously, the internal memory that picture is taken can remain in a secure threshold, to solve the problem applied and collapse because of low memory.
Further, then refer to Fig. 4, be the structural representation of a kind of picture processing module 30 that the embodiment of the present invention provides, described picture processing module 30 can comprise: loading unit 301, delete cells 302.
Described loading unit 301, for the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and loads described adjacent picture according to described picture load path.
Concrete, again for above-mentioned Fig. 2 a, after calling out the onItemSelected () method in OnItemSelectedListener, the picture load path of the adjacent picture of the picture after described loading unit 301 can obtain described switching according to called onItemSelected () method in described Banner hurdle, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.Described Adapter loads the concrete bandwagon effect namely referring to and loaded described adjacent picture by getView function to the adjacent picture data in described picture load path.
Described delete cells 302, for the non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and deletes described non-adjacent picture.
Concrete, the non-adjacent picture of the picture after described delete cells 302 can search described switching according to called onItemSelected () method in described picture group, and delete described non-adjacent picture.
Further, then refer to Fig. 5, be the structural representation of a kind of delete cells 302 that the embodiment of the present invention provides, described delete cells 302 comprises: search subelement 3021, judgment sub-unit 3022, picture deletion subelement 3023.
Describedly search subelement 3021, for searching the non-adjacent picture of the picture after whether there is described switching in described picture group according to described picture processing mode.
Described judgment sub-unit 3022, if for there is described non-adjacent picture, then judges whether described non-adjacent picture loads further.
Concrete, if described in search subelement 3021 and find out the non-adjacent picture that there is described current display picture, then described judgment sub-unit 3022 can judge whether described non-adjacent picture loads further.If described in search subelement 3021 and find out and there is not described non-adjacent picture, then do not delete any picture.
Subelement 3023 deleted by described picture, if for judging that described non-adjacent picture loads, then deletes the described non-adjacent picture after loading.
Concrete, if described judgment sub-unit 3022 judges that described non-adjacent picture loads, then described picture is deleted subelement 3023 and is deleted the described non-adjacent picture after loading, to reduce the total EMS memory occupation in Banner hurdle.Because existing Banner hurdle is when Showing Picture, internal memory will retain all pictures loaded, so picture may be made to take more and more internal memory, causes application to be collapsed because of low memory.And the embodiment of the present invention is by deleting described non-adjacent picture, the picture that can control some is stored in internal memory simultaneously, and the internal memory that picture is taken can remain in a secure threshold, to solve the problem applied and collapse because of low memory.If judge, described non-adjacent picture does not load, then do not carry out any operation to described non-adjacent picture.
The embodiment of the present invention is monitored by controlling the display state of described picture monitoring interface to the current display picture in picture group, and when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after switching can be shown, and control the default picture processing mode of described picture monitoring interface interchange, according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching again, and delete processing is carried out to non-adjacent picture, thus can when switching picture, without the need to waiting for the loading procedure of next pictures, namely can show next pictures at once, improve the display speed of picture, and can effective releasing memory space by deleting non-adjacent picture, to solve the problem applied and collapse because of low memory.
The embodiment of the present invention additionally provides a kind of terminal, described terminal can comprise image display apparatus, the specific implementation of the image display apparatus in described terminal see the image display apparatus 1 in the corresponding embodiment of above-mentioned Fig. 3 to Fig. 5, no longer can repeat here.
Refer to Fig. 6, it is the structural representation of a kind of terminal that the embodiment of the present invention provides, described terminal 1000 can comprise processor 1001, communication interface 1002 and storer 1003 (quantity of the processor 1001 in terminal 1000 can be one or more, for a processor 1001 in Fig. 6).In some embodiments of the present invention, processor 1001, communication interface 1002 are connected by communication bus or other modes with storer 1003, and wherein, Fig. 6 is to connect by communication bus.
Wherein, described communication interface 1002, for communicating with the webserver;
Described storer 1003 is for storage program;
Described processor 1001 for performing described program, to realize
Picture is set and monitors interface, and control described picture and monitor the display state of interface to the current display picture in picture group and monitor;
When the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange;
According to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching, and delete processing is carried out to non-adjacent picture.
Wherein, described processor 1001 specifically for:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and according to described picture load path, described adjacent picture is loaded;
The non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and delete described non-adjacent picture;
Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
Wherein, described processor 1001 specifically for:
In described picture group, the non-adjacent picture of the picture after whether there is described switching is searched according to described picture processing mode;
If there is described non-adjacent picture, then judge whether described non-adjacent picture loads further;
If judge, described non-adjacent picture loads, then delete the described non-adjacent picture after loading.
Wherein, described processor 1001 specifically for:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
Wherein, described picture group is Banner hurdle.
The embodiment of the present invention is monitored by controlling the display state of described picture monitoring interface to the current display picture in picture group, and when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after switching can be shown, and control the default picture processing mode of described picture monitoring interface interchange, according to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching again, and delete processing is carried out to non-adjacent picture, thus can when switching picture, without the need to waiting for the loading procedure of next pictures, namely can show next pictures at once, improve the display speed of picture, and can effective releasing memory space by deleting non-adjacent picture, to solve the problem applied and collapse because of low memory.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an image display method, is characterized in that, comprising:
Picture is set and monitors interface, and control described picture and monitor the display state of interface to the current display picture in picture group and monitor;
When the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange;
According to described picture processing mode, preload process is carried out to the adjacent picture of the picture after described switching, and delete processing is carried out to non-adjacent picture.
2. the method for claim 1, is characterized in that, describedly carries out preload process according to described picture processing mode to the adjacent picture of the picture after described switching, and carries out delete processing to non-adjacent picture, comprising:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and according to described picture load path, described adjacent picture is loaded;
The non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and delete described non-adjacent picture;
Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
3. method as claimed in claim 2, is characterized in that, described in described picture group, search described switching according to described picture processing mode after the non-adjacent picture of picture, and delete described non-adjacent picture, comprising:
In described picture group, the non-adjacent picture of the picture after whether there is described switching is searched according to described picture processing mode;
If there is described non-adjacent picture, then judge whether described non-adjacent picture loads further;
If judge, described non-adjacent picture loads, then delete the described non-adjacent picture after loading.
4. method as claimed in claim 2, it is characterized in that, described in described picture group, obtain described switching according to described picture processing mode after the picture load path of adjacent picture of picture, and according to described picture load path, described adjacent picture to be loaded, specifically comprises:
The picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
5. the method as described in any one of Claims 1-4, is characterized in that,
Described picture group is Banner hurdle.
6. an image display apparatus, is characterized in that, comprising:
Controlling to monitor module, monitoring interface for arranging picture, and control described picture and monitor the display state of interface to the current display picture in picture group and monitor;
Control calling module, for when the display state that described picture monitoring interface listens to described current display picture is switching state, the picture after display switches, and control the default picture processing mode of described picture monitoring interface interchange;
Picture processing module, for carrying out preload process according to described picture processing mode to the adjacent picture of the picture after described switching, and carries out delete processing to non-adjacent picture.
7. device as claimed in claim 6, it is characterized in that, described picture processing module comprises:
Loading unit, for the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and loads described adjacent picture according to described picture load path;
Delete cells, for the non-adjacent picture of the picture after searching described switching according to described picture processing mode in described picture group, and deletes described non-adjacent picture;
Wherein, described non-adjacent picture is the picture in described picture group except the picture after described switching and described adjacent picture.
8. device as claimed in claim 7, it is characterized in that, described delete cells comprises:
Search subelement, for searching the non-adjacent picture of the picture after whether there is described switching in described picture group according to described picture processing mode;
Judgment sub-unit, if for there is described non-adjacent picture, then judges whether described non-adjacent picture loads further;
Subelement deleted by picture, if for judging that described non-adjacent picture loads, then deletes the described non-adjacent picture after loading.
9. device as claimed in claim 7, is characterized in that,
Described loading unit, specifically for the picture load path of the adjacent picture of the picture after obtaining described switching according to described picture processing mode in described picture group, and control Gallery calls Adapter loads the adjacent picture data in described picture load path.
10. the device as described in any one of claim 6 to 9, is characterized in that,
Described picture group is Banner hurdle.
CN201510441134.1A 2015-07-24 2015-07-24 Picture display method and device Pending CN105045592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510441134.1A CN105045592A (en) 2015-07-24 2015-07-24 Picture display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510441134.1A CN105045592A (en) 2015-07-24 2015-07-24 Picture display method and device

Publications (1)

Publication Number Publication Date
CN105045592A true CN105045592A (en) 2015-11-11

Family

ID=54452157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510441134.1A Pending CN105045592A (en) 2015-07-24 2015-07-24 Picture display method and device

Country Status (1)

Country Link
CN (1) CN105045592A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843517A (en) * 2016-03-14 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal total graph displaying method and system
CN106791911A (en) * 2016-12-28 2017-05-31 北京风行在线技术有限公司 A kind of loading method of picture and video
CN106775233A (en) * 2016-12-13 2017-05-31 青岛海信电器股份有限公司 Icon method for refreshing and terminal in a kind of terminal
CN108319420A (en) * 2018-01-02 2018-07-24 武汉斗鱼网络科技有限公司 A kind of picture loading method and device
CN108762836A (en) * 2018-05-21 2018-11-06 Oppo广东移动通信有限公司 Management method, device, storage medium and the intelligent terminal of preloaded applications
CN109710868A (en) * 2018-12-21 2019-05-03 北京金山安全软件有限公司 Picture carousel method and device
CN110489576A (en) * 2019-07-18 2019-11-22 五八有限公司 Picture resource processing method and system, client, server, processor and medium
CN110806910A (en) * 2018-07-18 2020-02-18 深圳市鸿合创新信息技术有限责任公司 Method and system for optimizing carousel map and electronic equipment
CN113867601A (en) * 2021-09-06 2021-12-31 广州方硅信息技术有限公司 Carousel method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544207A (en) * 2013-08-19 2014-01-29 Tcl集团股份有限公司 Picture loading and displaying method and system
CN103853417A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Rolling and pagination display method and device for network dynamic picture
CN104252350A (en) * 2013-06-28 2014-12-31 北京新媒传信科技有限公司 Method and device for loading picture in listbox
WO2015093582A1 (en) * 2013-12-19 2015-06-25 Ricoh Company, Limited Information processing device and information processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853417A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Rolling and pagination display method and device for network dynamic picture
CN104252350A (en) * 2013-06-28 2014-12-31 北京新媒传信科技有限公司 Method and device for loading picture in listbox
CN103544207A (en) * 2013-08-19 2014-01-29 Tcl集团股份有限公司 Picture loading and displaying method and system
WO2015093582A1 (en) * 2013-12-19 2015-06-25 Ricoh Company, Limited Information processing device and information processing method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843517A (en) * 2016-03-14 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal total graph displaying method and system
CN106775233A (en) * 2016-12-13 2017-05-31 青岛海信电器股份有限公司 Icon method for refreshing and terminal in a kind of terminal
CN106791911A (en) * 2016-12-28 2017-05-31 北京风行在线技术有限公司 A kind of loading method of picture and video
CN108319420A (en) * 2018-01-02 2018-07-24 武汉斗鱼网络科技有限公司 A kind of picture loading method and device
CN108319420B (en) * 2018-01-02 2020-04-10 武汉斗鱼网络科技有限公司 Picture loading method and device
CN108762836A (en) * 2018-05-21 2018-11-06 Oppo广东移动通信有限公司 Management method, device, storage medium and the intelligent terminal of preloaded applications
CN108762836B (en) * 2018-05-21 2022-04-19 Oppo广东移动通信有限公司 Management method and device for preloaded application, storage medium and intelligent terminal
CN110806910A (en) * 2018-07-18 2020-02-18 深圳市鸿合创新信息技术有限责任公司 Method and system for optimizing carousel map and electronic equipment
CN109710868A (en) * 2018-12-21 2019-05-03 北京金山安全软件有限公司 Picture carousel method and device
CN110489576A (en) * 2019-07-18 2019-11-22 五八有限公司 Picture resource processing method and system, client, server, processor and medium
CN110489576B (en) * 2019-07-18 2022-07-08 五八有限公司 Picture resource processing method and system, client, server, processor and medium
CN113867601A (en) * 2021-09-06 2021-12-31 广州方硅信息技术有限公司 Carousel method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105045592A (en) Picture display method and device
CN107493375B (en) Mobile terminal expansion screen projection method and screen projection system
CN102682093B (en) Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN107832100B (en) APK plug-in loading method and terminal thereof
EP2793185B1 (en) Plotting method, device and terminal
CN102541538B (en) Picture displaying method and device based on mobile terminal
CN103544207B (en) A kind of method and system of picture loaded and displayed
CN102081502A (en) Method for managing icons on standby interface of mobile terminal and mobile terminal
US9639256B2 (en) Method for starting activity of mobile terminal and the mobile terminal
CN105992056A (en) Video decoding method and device
CN103631958A (en) Method for multi-screen content display in automatic page matching mode
CN108319484B (en) Application page processing method and device and storage medium
CN104239076A (en) Interface color adjusting method and device
CN104898922A (en) Icon arranging method and terminal
CN104063125B (en) A kind of desktop icon management method and device
CN103530160A (en) Page loading method and device
US20180046472A1 (en) Method and system for customizing desktop launcher of mobile terminal
US20150326933A1 (en) Video reproduction apparatus, control method thereof, and computer-readable storage medium storing program
CN107066269A (en) A kind of split screen processing method and processing device of terminal
US11232066B2 (en) Method for data migration and terminal
CN110795192A (en) Language switching method and device and terminal equipment
CN104954699A (en) Shooting parameter setting method and user terminal
CN105808307B (en) Page display method and device
CN103425234A (en) Method for dynamically adjusting picture processing performance and display terminal
CN111400633A (en) Page resource loading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111