Android : Change layout dynamically in the MainActivity : I'm working on an Android app about mobile network. I can get the serving cell information. I display the information in a CardView but i have a different layout for the CardView for each technology (2G, 3G, 4G). 
What i want to know is how should i code this? 

Should i create 3 Fragments and update the MainActivity with the good fragment when the radio technology changes? Is there a cleaner way to do this? It feels like it will take a lot of files if i do it like this.

Thanks