There are three distinguishing features of one accustomed to riya’: he expresses joy and cheerfulness when he is greeted by people; he becomes cheerless and sullen when alone; and he wishes to be praised for everything he does.
May Allah purify our hearts of riyaa and give us the utmost ikhlas, ameen.