Generally speaking , there ' s no such thing as a layout with XML code only . At the end of the day , your activity still needs to inflate the XML , and you need to keep in mind that every View that gets created takes up memory . Those Views are actual Objects ! I know this isn ' t what you asked for , but you ' re likely going to want to use either a FrameLayout and swap in ViewsFragments as the user selects a tab , or use a ViewPager to do something similar . Loading up all of your tabs in one XML file is probably not recommended . <| sep |> I ' m comparing it to the United State ' s GDP on the world stage . <| sep |> Beautiful . But i dont like that hood . <| sep |> Lmao inferiority complex from a 91 team . Love it . <| sep |> How the fuck do you comb your hair to look like a damn baseball cap visor ?