android - How to do FragmentStatePagerAdapter changes dynamically -
i implementing little image gallery viewpager , fragmentstatepageradapter (i'm using fragmentstatepageradapter cause supporting android 2.3, low memory devices have compatible too).
since images webservice (in asynctask), place example image in fragments of gallery until images webservices downloaded.
my question is, how change example image in visible fragment 1 of downloaded images? guess have in onpostexecute() inside asynctask, capturing visible fragment in moment , changing drawable in imageview, not sure how it. advices welcome.
you can register fragment
event bus otto
, , pass file
location picture stored subscribed fragment
(i.e. onpostexecute()
. can update fragment
's ui.
Comments
Post a Comment