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


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?