android - How to start Application main activity with Animation -


how can show object on activity translate animation when oncreate() method called??

i called method after setcontentview() on oncreate() doesn't work! me please , don't give me negativ point please!

 public void startanimation(){     linearlayout header=(linearlayout) findviewbyid(r.id.layout_main_header);     linearlayout onoff=(linearlayout) findviewbyid(r.id.layout_main_onoff);     linearlayout social=(linearlayout) findviewbyid(r.id.social_layer);     linearlayout netwo=(linearlayout) findviewbyid(r.id.network_layer);     animation in_1=animationutils.loadanimation(getapplicationcontext(),r.anim.in_1);     animation in_2=animationutils.loadanimation(getapplicationcontext(),r.anim.in_2);     animation in_3=animationutils.loadanimation(getapplicationcontext(),r.anim.in_3);     animation in_4=animationutils.loadanimation(getapplicationcontext(),r.anim.in_4);     header.startanimation(in_1);     onoff.startanimation(in_2);     social.startanimation(in_3);     netwo.startanimation(in_4); } 

in code nothing wrong please showme xml of animation , showme xml of activity

note: move code method oncreate()


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -