android-flip icon indicating copy to clipboard operation
android-flip copied to clipboard

getView() in TravelAdapter class recycles TextViews and they don't update right away

Open abcsrez4me2 opened this issue 11 years ago • 4 comments

In the provided TravelAdapter class, there's a getView() method. In it, I use a global boolean to determine whether or not a TextView should be "some text" or "" (empty).

However, the TextView does not update immediately and always takes 2 flips away from the current page for it to update.

What is the cause of this and how do I fix it?

abcsrez4me2 avatar Aug 02 '13 23:08 abcsrez4me2

Hi I am facing the same issue. I have added buttons in my view so on clicking on any button it should change it's state.

When my adapter has only one page & I click on any button it does not update the state value, so the state of button does not change & I always have to flip to change the state.But if I have more than one page it works fine.

Please suggest me anything.

AB1209 avatar Aug 12 '13 10:08 AB1209

I have a similar issue. I'm downloading images from the Internet and use a placeholder image while downloading. In some instances, although the image is downloaded and shown, when trying to flip, the image changes to the placeholder one. If I go 2 flips away and come back, the problem is solved.

kaciula avatar Oct 31 '13 11:10 kaciula

anyone got any solution...?

Pkaran01 avatar Dec 11 '15 13:12 Pkaran01

I have a similar issue. anyone got any solution?

Ram8948 avatar Jan 12 '16 07:01 Ram8948