Questions tagged [recycle]

338 questions
1
vote
3 answers

OutOfMemory: Recycle Images

I created a photoalbum. I've got 70 activities and in everyone is one Image (jpeg, png). And two arrows to go Back and forth. The Images are saved in drawable-folder. I know there are other ways to create a photo-album but now I want to make it that…
Knacks
  • 37
  • 6
1
vote
1 answer

TPL Dataflow data recycling

I am working on an audio processing tool that I would like to build using TPL Dataflow. The Data flow itself will consist of audio samples being passed between sound processing blocks. Those samples will typically be a few Kb in size (float[]/byte[]…
Lau Lu
  • 23
  • 4
1
vote
1 answer

How to stop ListView recycling?

I'm an Android beginner and I can't figure out why this is happening. Activity Screenshot: Everything works fine except when I scroll down (hence why I think it has to do with recycling)... So when I scroll back up and attempt to undo the vote (red…
wmcnally
  • 147
  • 2
  • 14
1
vote
2 answers

how do you recycle the bitmap loaded from a file into an ImageView when trying to load another into it

File imgFile = new File("/sdcard/Images/test_image.jpg"); if(imgFile.exists()){ Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath()); ImageView myImage = (ImageView) findViewById(R.id.imageviewTest); …
murphy
  • 11
  • 4
1
vote
1 answer

ListView recycles Bitmap without noticing in lrucache

I'm writing a gallery app. It works from the androidstudio template for list fragment, with an AbsList. I override getView to use a task and an lrucache to cache some bitmaps. Each view from the listview is a RelativeLayout with an ImageView above a…
dabicho
  • 383
  • 4
  • 19
1
vote
3 answers

Position of items in listview is changing when I scroll the listview

My application has an listview and listview's rows consist of imageView and Textview. The application downloads images from web to set imageview in the row layout. I had a problem about image redownloading when I scoll up and down the listview. For…
Cem
  • 361
  • 6
  • 17
1
vote
0 answers

Gridview wrong image when scrolling

I am developing an Android application for tablet which will be used as a catalog of many products (around 10 000). I display them in a gridview, I only display the 250 first, and if I reach the end of these 250 I load 250 more. My problem is the…
leb1755
  • 1,386
  • 2
  • 14
  • 29
1
vote
1 answer

IIS application pool is recycled every 20 minutes despite configuration

I'm trying to disable application pool recycling and changed recycling interval in the app pool configuration to 0. Here's full configuration from .config:
Arthur Stankevich
  • 372
  • 1
  • 4
  • 11
1
vote
2 answers

Is it possible to make ListView "draw more" than is on the screen? (Cache more.)

Imagine you have a full screen ListView, with cells roughly the size of the screen, and 100s of cells. In fact, I notice ListView "keeps alive" about five of the cells... (Let's say, roughly 1 or 2 on screen and 1 or 2 up and down offscreen.) Quite…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
0 answers

ParseQueryAdapter - two rows get the same image

I'm using the ParseQueryAdapter to set up a listview with data from my Parse sever. I have 3 rows in my table, two doesn't contain an image and one does. If an image doesn't exist on the server, I set my own default image from my resources. But…
1
vote
1 answer

Android ListView repeating modified list items

I have a ListView with some list items in. Each item has a delete button, which activates another layer on top of the list item to appear with the text that it has been deleted, as see in the delete onClickListener in the following code. These…
Pieterjan
  • 445
  • 6
  • 23
1
vote
0 answers

increase the number of views which are active in a listview

I've built my own listview with the specific design shown below. In order to get the rows to overlap as they do, I set the android:dividerHeight of the listview to -40dip. Everything works great and just as expected with one little exception:…
Simon Flückiger
  • 555
  • 1
  • 6
  • 11
1
vote
0 answers

iOS how to swap cycle 3 view controllers through 2 containers with animation?

How I can sequentially recycle 3 view controllers using 2 containers with animation and blocks? Here's the pattern I'm trying to implement: 2 ^ 2 > 1 1 > 3 //reassign pointers and repeat ^ 3 I have 3 view controllers setup, ready for…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
2 answers

How android Adapter removes and recreates views?

I know how to populate a ListView or any other list types, but now I am facing an issue where I should implement a ListView in a ScrollView. So, I decided to use a LinearLayout ( myLinearLayout.addView( adapter.getView(position, null, null) ). As…
Zbarcea Christian
  • 9,367
  • 22
  • 84
  • 137
1
vote
1 answer

Does changing any sub-directory or file in an ASP.NET application recycles the app pool

I thought I knew ASP.NET well, until a couple of hours ago. I am aware an IIS can recycle an app domain due to a variety of reasons including changes to web.config/bin/App_GlobalResources etc. file/directories, or otherwise on schedule or on…
r_honey
  • 883
  • 4
  • 15
  • 31