I don't know, where you people are getting this idea, that Gohan trained throughout the 7 years.
He powered up, because he got stronger from Movie 8 to Cell Games, then got weaker throughout the 7 years, but still was stronger than Movie 8 Gohan.
He is dressed in the purple gi, because that's what Gohan was wearing at that time.