Cannot start this animator on a detached view onCreate

 Cannot start this animator on a detached view onCreate

1. Select main layout of xml file in your activity

Like my main layout activity id is "layoumain"

2. Then after paste this code under onCreate  (protected void onCreate(Bundle savedInstanceState) )

    Code is this.

    layoutMain.Post(new Runnable(){

    @Override

    public void run()

        {

            viewMenu1(); // this my animation method

        }

    });

Comments

Popular posts from this blog

Network adapter does not showing in device manager