You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Im new in MultiSatateAnimation and in Java Android too, but I have a NavigationDrawawelFragment, and when I navigate thought the fragments, the image of my animation disapear I cant make it apear back how can I do that or is an issue of the MultiStateAnimation, please help me, thx in advance.
This isn't a problem with this library. You need to start the animation in onResume if you want it to start when you navigate away and back. The onCreate method is only called once when the fragment is created.
Im sorry if Im too nub for this but I put the code in my onResume and still without working, sorry, show the image at the begin of que init the fragment but once I back to one fragment and return to this frogmen the image of the animation disappear, look how I change the code:
Im not, I set to gone to my layout, but can you show me where in my code I put gone ?
I also commented all the code where I put Gone, and doesn’t works, excuse me if Im making you work but isn’t work, maybe I have a mistake but I think otherwise, thx :D
Activity
ajalt commentedon Nov 17, 2015
Can you provide some more information? I'm not sure what the problem you're having is.
iwwi commentedon Nov 17, 2015
Ok this is my code, all worlks fine, but when I press back and return to my fragment the ImageView of the element to animate disappear:
XML
public class NewsFragment extends AbstractSyncFragment implements MultiStateAnimation.AnimationSeriesListener{
private RecyclerView recyclerView;
private LiveQuery liveQuery;
private LinearLayout syncLayout;
private LinearLayout.LayoutParams mSyncLayoutParams;
private ImageView animationLoadiong;
private MultiStateAnimation mSyncAnimation;
private TextView mCurrentSincronizationText;
private Boolean isSinc = false;
So, when all work fine but when I go back to another fragment and return to this frogmen the image of the animation desappear
On Nov 17, 2015, at 10:54 AM, AJ Alt notifications@github.com wrote:
ajalt commentedon Nov 17, 2015
This isn't a problem with this library. You need to start the animation in
onResumeif you want it to start when you navigate away and back. TheonCreatemethod is only called once when the fragment is created.iwwi commentedon Nov 17, 2015
Im sorry if Im too nub for this but I put the code in my onResume and still without working, sorry, show the image at the begin of que init the fragment but once I back to one fragment and return to this frogmen the image of the animation disappear, look how I change the code:
On Nov 17, 2015, at 10:54 AM, AJ Alt notifications@github.com wrote:
ajalt commentedon Nov 17, 2015
You set the icon's visibility to
GONE, but never back toVISIBLE. That might be the issue.iwwi commentedon Nov 17, 2015
Im not, I set to gone to my layout, but can you show me where in my code I put gone ?
I also commented all the code where I put Gone, and doesn’t works, excuse me if Im making you work but isn’t work, maybe I have a mistake but I think otherwise, thx :D
On Nov 17, 2015, at 11:31 AM, AJ Alt notifications@github.com wrote: