Greetings ... someone could explain to me how I can change activity on the same screen, that is to say, I can change layouts on the same screen through buttons, like twitter. Any help is welcome, thanks in advance.
what you're looking for are the fragmentos
, twitter in that layout that you see there is using those fragments.
In the example of Twitter that you mention basically the layout of the activity consists of a toolbar above with the 4 icons and an internal layout that will house one of the four fragments, these will alternate depending on which icon you click on.
This way when you click on an icon, a "transaction" is made and the current fragment that is in the internal layout is replaced by the one corresponding to the icon pressed, all of this without changing activity.
The fragments were introduced to help produce UI that can be adapted to different orientations of device as well as to work perfectly on phones and tablets. You can even use different fragments within the same activity and rearrange them when the user rotates their device.
Click on this link to learn more about its use, after have read a little above what it is about, if you scroll down you will find a simple and well explained example of how to create and implement fragments in your activity.