HoloEverywhere
HoloEverywhere copied to clipboard
ListView not refreshing when triggered from Spinner OnItemSelectedListener
This is a quite similar issue than Issue #185. But in my case it happens inside a fragment and the workaround from Issue #185 is not working. This is clearly a focus problem. This log is always showing :
01-22 13:54:58.866: W/InputMethodManagerService(502): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@432b54d0 attribute=null, token = android.os.BinderProxy@43042d68
I re explain the problem : when a listview is refreshed (notifiyDataSetChanged on adapter or new adapter), the list disappears and only reappears on user interaction like touch, scroll etc...
I've tried to switch to a classic Spinner and then it works.
Could you please provide a workaround?
Thanks!
I met a same issue. When i select spinner view and change the data source of spinner on the action bar, then, list view on the fragment will be blank. If I touch the screen, get view will be triggered.
And I tried build-in spinner, it is no this issue.
Same as http://stackoverflow.com/questions/21282964/notifiydatasetchanged-makes-listview-disappear-until-touch/22411606#22411606