I watched the Android App Development for Beginners part 34 (animations and transitions)

https://www.youtube.com/watch?v=n4IyvL-ACbk&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&index=34

I didn't get that why we used ViewGroup instead of RelativeLayout , and why we used View instead of Button . I know View and ViewGroup are super classes of RelativeLayout and Button respectively. But the question is, if we had used RelativeLayout and Button as Class , we would get same result right?