title: java.lang.RuntimeException: Unknown layout animation name: set
body: <p>I am trying to set up an animation. The Code compiles just fine however the App crashes after launching showing following error;</p>
  
  <pre><code>java.lang.RuntimeException: Unknown layout animation name: set
  </code></pre>
  
  <p>Before I added the animation things where working as they should and I cannot really figure out what is the problem. 
  I will link the whole Logcat, the XML Animation and the HomeFragment (where the Animation is applied). I tried my luck with the developer Documentation but that did not help me...
  So what can I do to solve the Problem? 
  Thanks for your help.</p>
  
  <p>Logcat</p>
  
  <pre><code>10-30 22:08:30.011 26013-26013/com.example.login E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.login, PID: 26013
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.login/com.example.login.HomeActivity}: java.lang.RuntimeException: Unknown layout animation name: set
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)
          at android.app.ActivityThread.access$900(ActivityThread.java:154)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:234)
          at android.app.ActivityThread.main(ActivityThread.java:5526)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
       Caused by: java.lang.RuntimeException: Unknown layout animation name: set
          at android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:198)
          at android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:173)
          at android.view.animation.AnimationUtils.loadLayoutAnimation(AnimationUtils.java:154)
          at com.example.login.ui.home.HomeFragment.init(HomeFragment.java:64)
          at com.example.login.ui.home.HomeFragment.onCreateView(HomeFragment.java:48)
          at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2439)
          at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
          at androidx.fragment.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2646)
          at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2416)
          at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2372)
          at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
          at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3273)
          at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3229)
          at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2466)
          at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1483)
          at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
          at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
          at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3269)
          at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3229)
          at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
          at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:620)
          at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
          at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1238)
          at android.app.Activity.performStart(Activity.java:6302)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2427)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524) 
          at android.app.ActivityThread.access$900(ActivityThread.java:154) 
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391) 
          at android.os.Handler.dispatchMessage(Handler.java:102) 
          at android.os.Looper.loop(Looper.java:234) 
          at android.app.ActivityThread.main(ActivityThread.java:5526) 
          at java.lang.reflect.Method.invoke(Native Method) 
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
  </code></pre>
  
  <p>HomeFragment </p>
  
  <pre><code>public class HomeFragment extends Fragment {
  
      private HomeViewModel homeViewModel;
  
      Unbinder unbinder;
  
      @BindView(R.id.recycler_popular)
      RecyclerView recycler_popular;
      @BindView(R.id.viewpager)
      LoopingViewPager viewPager;
  
      LayoutAnimationController layoutAnimationController;
  
      public View onCreateView(@NonNull LayoutInflater inflater,
                               ViewGroup container, Bundle savedInstanceState) {
          homeViewModel = ViewModelProviders.of(this).get(HomeViewModel.class);
          View root =inflater.inflate(R.layout.fragment_home,container,false);
          unbinder= ButterKnife.bind(this,root);
          init();
          homeViewModel.getPopularList().observe(this,popularCategoryModels -&gt;{
              //Create Adapter
              MyPopularCategoriesAdapter adapter=new MyPopularCategoriesAdapter(getContext(),popularCategoryModels);
              recycler_popular.setAdapter(adapter);
              recycler_popular.setLayoutAnimation(layoutAnimationController);
          });
  
          homeViewModel.getBestDealList().observe(this,bestDealModels -&gt; {
              MyBestDealsAdapter adapter = new MyBestDealsAdapter(getContext(),bestDealModels,true);
              viewPager.setAdapter(adapter);
          });
          return root;
      }
  
      private void init() {
          layoutAnimationController= AnimationUtils.loadLayoutAnimation(getContext(),R.anim.layout_item_from_left);
          recycler_popular.setHasFixedSize(true);
          recycler_popular.setLayoutManager(new LinearLayoutManager(getContext(),RecyclerView.HORIZONTAL,false));
  
      }
      @Override
      public void onResume(){
          super.onResume();
          viewPager.resumeAutoScroll();
      }
      @Override
      public void onPause(){
          viewPager.pauseAutoScroll();
          super.onPause();
  
      }
  
  }
  </code></pre>
  
  <p>item_animation_from_left.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:duration="1500"&gt;
  
      &lt;translate
          android:fromXDelta="-100%"
          android:toYDelta="0"
          android:interpolator="@android:anim/decelerate_interpolator"/&gt;
  
      &lt;alpha
          android:fromAlpha="0"
          android:toAlpha="1"
          android:interpolator="@android:anim/accelerate_decelerate_interpolator"/&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>layout_item_from_left.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:duration="1500"&gt;
  
      &lt;translate
          android:fromXDelta="-100%"
          android:toYDelta="0"
          android:interpolator="@android:anim/decelerate_interpolator"/&gt;
  
      &lt;alpha
          android:fromAlpha="0"
          android:toAlpha="1"
          android:interpolator="@android:anim/accelerate_decelerate_interpolator"/&gt;
  
  &lt;/set&gt;
  </code></pre>